sqllogictest
Artifact Content
Not logged in

Artifact cf768b8acc4daabfb858622598887585ac4f4ef6:


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)

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

skipif mysql # not compatible
query I rowsort label-0
SELECT CAST ( NULL AS INTEGER ) - 91 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 + col1 col0 FROM tab2 AS cor0
----
-3
-31
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-5
SELECT DISTINCT cor0.col2 * + col0 + col2 * col1 DIV + col1 FROM tab1 cor0
----
216
3705
7776

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT cor0.col2 * + col0 + col2 * col1 / + col1 FROM tab1 cor0
----
216
3705
7776

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

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

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

query I rowsort
SELECT col2 + col1 - + 71 FROM tab2 AS cor0
----
-13
-16
14

query I rowsort
SELECT DISTINCT - - ( + col0 ) * 85 + + col1 * col2 FROM tab2 AS cor0
----
1432
7361
8164

onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT - col2 DIV ( - 16 ) + col2 FROM tab1 AS cor0
----
102
57
60

skipif mysql # not compatible
query I rowsort label-10
SELECT - col2 / ( - 16 ) + col2 FROM tab1 AS cor0
----
102
57
60

query I rowsort
SELECT - col2 * + col2 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT ALL - col0 * 3 * col1 AS col1 FROM tab1 AS cor0
----
-1920
-234
-3120

query I rowsort
SELECT col1 + col2 * - 55 FROM tab2 AS cor0
----
-1371
-1454
-2073

query I rowsort
SELECT DISTINCT cor0.col2 + 65 * 82 FROM tab0, tab2 AS cor0
----
5356
5357
5368

query I rowsort
SELECT ALL 71 + col0 FROM tab2
----
149
150
78

query I rowsort
SELECT DISTINCT - col0 + col1 + - ( + 13 * + col0 ) FROM tab0
----
-1155
-250
-393

onlyif mysql # use DIV operator for integer division
query I rowsort label-17
SELECT - - col0 * - cor0.col0 + col0 + - col2 DIV + cor0.col0 col2 FROM tab2 AS cor0
----
-45
-6006
-6162

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-17
SELECT - - col0 * - cor0.col0 + col0 + - col2 / + cor0.col0 col2 FROM tab2 AS cor0
----
-45
-6006
-6162

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

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

query I rowsort
SELECT + cor0.col1 * col0 + col0 * col2 AS col0 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b

query I rowsort
SELECT DISTINCT + + col0 + + col1 * col0 + - col2 AS col2 FROM tab2 AS cor0
----
1384
197
4654

query I rowsort
SELECT ALL 57 * + col2 AS col0 FROM tab2 AS cor0
----
1482
1539
2166

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT DISTINCT - CAST( - 21 AS SIGNED ) DIV - tab2.col1 + col2 col1 FROM tab2
----
26
27
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-25
SELECT DISTINCT - CAST ( - 21 AS INTEGER ) / - tab2.col1 + col2 col1 FROM tab2
----
26
27
37

query I rowsort
SELECT ( + tab1.col1 ) * col0 + tab1.col1 AS col2 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT col2 + + col0 * tab2.col1 + col0 AS col0 FROM tab2
----
1460
251
4706

onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT DISTINCT - col2 DIV + 53 + col1 + col2 AS col1 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT - col2 / + 53 + col1 + col2 AS col1 FROM tab2
----
55
58
85

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

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

query I rowsort
SELECT ( - 80 ) AS col1 FROM tab0
----
-80
-80
-80

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

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

query I rowsort
SELECT - col0 + 34 AS col0 FROM tab1
----
-30
-46
31

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

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

skipif mysql # not compatible
query I rowsort label-34
SELECT - 81 / - col1 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - 79 * col2 + + cor0.col1 col1 FROM tab0 AS cor0
----
2862
576633
62654

query I rowsort
SELECT DISTINCT cor0.col1 * 9 - 13 AS col2 FROM tab2 AS cor0
----
140
266
518

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * tab1.col0 col0 FROM tab1
----
213
4544
5680

query I rowsort
SELECT DISTINCT 30 * col0 FROM tab2
----
210
2340
2370

query I rowsort
SELECT col2 * - 60 AS col2 FROM tab2
----
-1560
-1620
-2280

query I rowsort
SELECT tab1.col2 * ( + col1 ) * col1 FROM tab1
----
16224
36504
5700

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

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

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

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

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

query I rowsort
SELECT ALL col2 * col0 + col0 - + col1 FROM tab2
----
165
2047
3064

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * col0 * + col2 ) NOT IN ( - col1 / col2 ) AND - col0 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT DISTINCT - col1 * + col0 * - col1 + - col1 FROM tab1
----
13507
2002
6390

query I rowsort
SELECT DISTINCT - col2 * + tab2.col2 + col0 * col0 + - tab2.col1 * - col1 AS col2 FROM tab2
----
281
5086
8889

query I rowsort
SELECT - col1 * col2 + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1222
-1352
-550

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * - col0 + - col1 col1 FROM tab1
----
-134
-3601
-7597

onlyif mysql # use DIV operator for integer division
query I rowsort label-56
SELECT ALL col1 + + tab0.col2 DIV col2 + tab0.col0 * col0 AS col2 FROM tab0
----
1323
663
8013

skipif mysql # not compatible
query I rowsort label-56
SELECT ALL col1 + + tab0.col2 / col2 + tab0.col0 * col0 AS col2 FROM tab0
----
1323
663
8013

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

query I rowsort
SELECT col2 * + col2 + + col1 + + col1 AS col2 FROM tab2 AS cor0
----
1478
791
794

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 * + col2 * + col0 AS col1 FROM tab0
----
-26136
-35
-598436

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

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

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

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

query I rowsort
SELECT - col0 * col0 * - col0 + - col2 + - col2 * col2 FROM tab1 AS cor0
----
-2943
258838
502688

onlyif mysql # use DIV operator for integer division
query I rowsort label-66
SELECT col2 * col2 + col2 + + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
1486
703
756

skipif mysql # not compatible
query I rowsort label-66
SELECT col2 * col2 + col2 + + col0 / col1 AS col1 FROM tab2 AS cor0
----
1486
703
756

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

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

query I rowsort
SELECT + 19 - col1 * col1 FROM tab1
----
-150
-657
-81

query I rowsort
SELECT ALL 11 + col2 AS col1 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT DISTINCT - 25 + - col1 * - col1 * col0 FROM tab0 AS cor0
----
177479
329290
736984

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

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

query I rowsort
SELECT - 26 * cor0.col2 FROM tab0 cor0
----
-2132
-26
-858

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

query I rowsort
SELECT ALL 53 * + col0 - col0 FROM tab1 AS cor0
----
156
3328
4160

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-77
SELECT - col2 * + col1 * - col0 - - col1 DIV col1 FROM tab2 AS cor0
----
119653
51035
5860

skipif mysql # not compatible
query I rowsort label-77
SELECT - col2 * + col1 * - col0 - - col1 / col1 FROM tab2 AS cor0
----
119653
51035
5860

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

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

query I rowsort
SELECT col0 * - col1 - - col0 AS col2 FROM tab1
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-81
SELECT + 55 + - tab2.col2 / - CAST( NULL AS SIGNED ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-81
SELECT + 55 + - tab2.col2 / - CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 74 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT - tab0.col2 + + col1 DIV col0 FROM tab0
----
-30
-81
1

skipif mysql # not compatible
query I rowsort label-83
SELECT - tab0.col2 + + col1 / col0 FROM tab0
----
-30
-81
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-84
SELECT + col1 DIV col0 + + col0 FROM tab0 cor0
----
27
37
90

skipif mysql # not compatible
query I rowsort label-84
SELECT + col1 / col0 + + col0 FROM tab0 cor0
----
27
37
90

query I rowsort
SELECT ALL - col1 * col1 * + ( + 83 ) AS col0 FROM tab0 AS cor0
----
-613868
-687323
-780947

query I rowsort
SELECT + tab2.col0 * - ( 25 ) FROM tab2, tab1 cor0
----
9 values hashing to eee5537b47f821d2e4fdd78e5fad2a2d

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

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

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

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

query I rowsort
SELECT - + col0 * 43 * col1 FROM tab2 cor0
----
-197886
-57749
-9331

query I rowsort
SELECT ALL - col2 * 92 AS col1 FROM tab2 AS cor0
----
-2392
-2484
-3496

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

query I rowsort
SELECT col1 * 58 AS col0 FROM tab0 AS cor0
----
4988
5278
5626

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-95
SELECT - CAST( ( col2 ) AS SIGNED ) + - 8 AS col0 FROM tab2 AS cor0
----
-34
-35
-46

skipif mysql # not compatible
query I rowsort label-95
SELECT - CAST ( ( col2 ) AS INTEGER ) + - 8 AS col0 FROM tab2 AS cor0
----
-34
-35
-46

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 28 * ( col2 ) * + ( ( col2 ) ) AS col2 FROM tab1 cor0
----
258048
81648
90972

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

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

query I rowsort
SELECT ALL col2 + - ( - col2 * 80 ) FROM tab2 AS cor0
----
2106
2187
3078

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-105
SELECT ALL - 69 + col2 DIV col0 FROM tab0 AS cor0
----
-68
-69
-69

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL - 69 + col2 / col0 FROM tab0 AS cor0
----
-68
-69
-69

onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT DISTINCT + col0 * col0 DIV + col1 + 27 FROM tab0 cor0
----
114
33
39

skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + col0 * col0 / + col1 + 27 FROM tab0 cor0
----
114
33
39

query I rowsort
SELECT ALL - + 2 * cor0.col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + 67 + col1 AS col0 FROM tab1 AS cor0
----
77
80
93

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-111
SELECT - - 23 DIV cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-111
SELECT - - 23 / cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-112
SELECT DISTINCT col2 * + col2 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL - ( 57 ) + + col0 FROM tab1
----
-54
23
7

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
54
57
96

query I rowsort
SELECT - 89 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + ( - col1 ) * 23 + col1 FROM tab2 AS cor0
----
-1298
-374
-682

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

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

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

query I rowsort
SELECT + 65 * - col0 + - 37 * - col2 AS col0 FROM tab2 AS cor0
----
-3729
-4108
544

query I rowsort
SELECT - 65 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT DISTINCT + 17 * col1 * - col1 + ( 95 ) AS col1 FROM tab2
----
-16242
-4818
-59082

query I rowsort
SELECT + 65 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1690
650
845

query I rowsort
SELECT ALL - + col2 + ( 55 ) * + col1 AS col2 FROM tab0 AS cor0
----
4697
4923
5334

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

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

query I rowsort
SELECT DISTINCT + col2 * 52 * col1 FROM tab0
----
147576
388024
5044

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

query I rowsort
SELECT + 25 * ( + cor1.col1 ) FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 cor2
----
81 values hashing to 5805ac8c3a8c5063af4460853e5e38fb

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

query I rowsort
SELECT - col2 * - col1 - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-131
SELECT + - ( - cor0.col1 ) + + col1 DIV + 61 AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-131
SELECT + - ( - cor0.col1 ) + + col1 / + 61 AS col0 FROM tab1 AS cor0
----
10
13
26

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

query I rowsort
SELECT + col0 + + ( col2 ) + - col1 AS col2 FROM tab2
----
100
3
45

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-134
SELECT + col1 + CAST( 80 * - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
-529
-6181
-6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-134
SELECT + col1 + CAST ( 80 * - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
-529
-6181
-6303

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

skipif mysql # not compatible
query I rowsort label-135
SELECT col1 / + col2 + + 19 FROM tab1 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - col0 + ( - 70 ) * + col2 FROM tab2 AS cor0
----
-1897
-1898
-2739

onlyif mysql # use DIV operator for integer division
query I rowsort label-137
SELECT ALL + + col1 DIV col1 + - 18 + col1 AS col0 FROM tab2 AS cor0
----
0
14
42

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL + + col1 / col1 + - 18 + col1 AS col0 FROM tab2 AS cor0
----
0
14
42

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-139
SELECT + col2 + ( col0 ) / col0 + + 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-139
SELECT + col2 + ( col0 ) / col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col1 * + 20 + 76 - + col0 AS col1 FROM tab1 AS cor0
----
-188
-264
-447

query I rowsort
SELECT + col2 + ( 51 ) + col0 FROM tab0 AS cor0
----
108
222
87

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

query I rowsort
SELECT DISTINCT + 55 + - col0 * - cor0.col1 FROM tab1 AS cor0
----
1095
133
695

query I rowsort
SELECT + ( - 23 ) * + col0 AS col2 FROM tab0 AS cor0
----
-2047
-552
-805

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-146
SELECT ALL - CAST( NULL AS DECIMAL ) * + cor0.col2 + col2 * - 24 * 63 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL - CAST ( NULL AS REAL ) * + cor0.col2 + col2 * - 24 * 63 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 * + 53 FROM tab0 AS cor0
----
1272
1855
4717

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

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL - 1 / + 20 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * col2 + 91 * + col2 FROM tab2 AS cor0
----
3042
3186
4902

query I rowsort
SELECT + 16 * cor0.col1 AS col0 FROM tab2 cor0
----
272
496
944

query I rowsort
SELECT - 36 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e

query I rowsort
SELECT DISTINCT 1 + + col1 AS col2 FROM tab2 AS cor0
----
18
32
60

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

query I rowsort
SELECT - + col2 * 37 FROM tab2 AS cor0
----
-1406
-962
-999

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + + 9 * cor0.col0 + ( + col0 ) col2 FROM tab2 AS cor0
----
259
2808
3792

query I rowsort
SELECT col2 * col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
14022
1881
36

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

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

query I rowsort
SELECT - - 99 * + cor0.col2 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 32338da340ed9c4337f7785c7835b93b

query I rowsort
SELECT DISTINCT - col0 * col0 + - col2 FROM tab2 AS cor0
----
-6110
-6279
-76

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

query I rowsort
SELECT ALL + - col1 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-156
-650
-90

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

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + col2 * - CAST ( - col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL - col1 + + ( 73 ) * + col0 FROM tab1 AS cor0
----
193
4662
5827

onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT DISTINCT - cor0.col2 + col0 + 44 * col1 DIV 40 FROM tab0 AS cor0
----
107
140
85

skipif mysql # not compatible
query I rowsort label-166
SELECT DISTINCT - cor0.col2 + col0 + 44 * col1 / 40 FROM tab0 AS cor0
----
107
140
85

query I rowsort
SELECT + col1 * + col2 + + col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT - + col2 * + cor0.col1 + - 61 AS col1 FROM tab2 AS cor0
----
-1595
-707
-898

query I rowsort
SELECT ALL col2 + + 27 FROM tab1 AS cor0
----
123
81
84

query I rowsort
SELECT + tab0.col1 + tab0.col2 * ( - tab0.col2 ) - 37 AS col1 FROM tab0
----
-1040
-6670
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT DISTINCT + + cor0.col0 * col2 + + 74 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
33
7298
789

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT + + cor0.col0 * col2 + + 74 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
33
7298
789

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

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT + + col0 / + 63 + + col1 FROM tab0 AS cor0
----
86
92
97

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( cor0.col1 AS REAL ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

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

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

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

query I rowsort
SELECT ALL + + col0 + cor0.col0 * - 51 AS col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT DISTINCT 3 * - cor0.col0 + col0 FROM tab1 cor0
----
-128
-160
-6

query I rowsort
SELECT ALL + ( col1 ) - - 16 FROM tab1 AS cor0
----
26
29
42

query I rowsort
SELECT DISTINCT - col0 + - 30 AS col1 FROM tab2
----
-108
-109
-37

query I rowsort
SELECT DISTINCT col1 + + tab2.col2 + - tab2.col0 * ( - col0 ) FROM tab2
----
107
6169
6296

query I rowsort
SELECT - ( 74 ) * - col1 + col0 FROM tab1
----
1042
1927
804

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 + col1 col0 FROM tab1
----
14
17
30

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

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

query I rowsort
SELECT ALL - 37 + - tab1.col0 AS col0 FROM tab1
----
-101
-117
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + - ( 3 + col2 ) * 51 col0 FROM tab0 AS cor0
----
228
3191
3764

query I rowsort
SELECT DISTINCT 87 - + col0 FROM tab1 AS cor0
----
23
7
84

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-191
SELECT DISTINCT + 38 + + col1 DIV col0 FROM tab1 AS cor0
----
38
46

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT + 38 + + col1 / col0 FROM tab1 AS cor0
----
38
46

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

skipif mysql # not compatible
query I rowsort label-192
SELECT - ( cor0.col2 ) * CAST ( NULL AS INTEGER ) * - 30 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL + 30 + cor0.col2 AS col2 FROM tab1 AS cor0
----
126
84
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-197
SELECT col1 DIV col2 + - col1 * col2 FROM tab1
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-197
SELECT col1 / col2 + - col1 * col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-198
SELECT DISTINCT col1 DIV tab1.col1 + 80 AS col2 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT col1 / tab1.col1 + 80 AS col2 FROM tab1
----
81

query I rowsort
SELECT DISTINCT + col0 + + col2 * tab2.col2 FROM tab2
----
1523
736
754

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 * col0 col1 FROM tab1
----
-136
-3638
-7667

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 79 FROM tab1
----
4266
4503
7584

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + + col0 * 55 * col2 AS col2 FROM tab0 AS cor0
----
1960
401479
43584

query I rowsort
SELECT 83 * col0 + col1 AS col0 FROM tab1 AS cor0
----
275
5322
6653

query I rowsort
SELECT 26 * col0 FROM tab0
----
2314
624
910

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

query I rowsort
SELECT + col2 * - 97 + - col1 FROM tab0 AS cor0
----
-194
-3287
-8045

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

query I rowsort
SELECT DISTINCT col0 - 2 * - col2 AS col1 FROM tab1 AS cor0
----
111
178
272

query I rowsort
SELECT 89 * - col1 + col2 FROM tab1 AS cor0
----
-1061
-2260
-833

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

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

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 32 * + col2 * + col0 AS col1 FROM tab1 AS cor0
----
116736
245760
5184

query I rowsort
SELECT DISTINCT + col0 + col1 * 16 FROM tab2 AS cor0
----
1022
351
503

query I rowsort
SELECT ALL - col2 * col0 + 84 * col2 * - col2 FROM tab0 AS cor0
----
-119
-572114
-92268

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + 15 AS col2 FROM tab1 cor0
----
1017
1296
99

query I rowsort
SELECT ALL + + 72 + col2 * - col2 * col1 FROM tab0 AS cor0
----
-25
-611812
-93582

query I rowsort
SELECT - 78 + + cor0.col1 FROM tab0 AS cor0
----
13
19
8

query I rowsort
SELECT ALL - 97 * - col0 AS col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT 63 + col1 AS col1 FROM tab0 AS cor0
----
149
154
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + cor0.col1 + 58 * - cor0.col2 col0 FROM tab0 AS cor0
----
-12218
-155
-4752

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

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-230
SELECT DISTINCT - col1 * + CAST( + 2 AS SIGNED ) + + cor0.col1 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-1298
-272
-4642

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT - col1 * + CAST ( + 2 AS INTEGER ) + + cor0.col1 * - col0 + col0 AS col1 FROM tab2 AS cor0
----
-1298
-272
-4642

query I rowsort
SELECT ALL + + col0 * 26 FROM tab0 AS cor0
----
2314
624
910

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT - col1 - - ( col0 ) * col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-234
SELECT - col1 - - ( col0 ) * col2 / col0 AS col0 FROM tab2 AS cor0
----
-33
-4
21

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

query I rowsort
SELECT DISTINCT - col0 * + col2 * 58 FROM tab2
----
-10962
-117624
-174116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 * 68 col1 FROM tab2, tab0 AS cor0
----
2652

query I rowsort
SELECT - col2 * ( 69 ) - col0 * + col1 FROM tab0 cor0
----
-13757
-3464
-4341

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * cor0.col2 col0 FROM tab1 AS cor0
----
-1536
-864
-912

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT col2 * cor0.col2 DIV - 42 FROM tab1 AS cor0
----
-219
-69
-77

skipif mysql # not compatible
query I rowsort label-243
SELECT col2 * cor0.col2 / - 42 FROM tab1 AS cor0
----
-219
-69
-77

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

query I rowsort
SELECT ALL + cor0.col0 - + col2 * + 88 * 77 AS col2 FROM tab0 AS cor0
----
-223584
-555543
-6741

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

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

query I rowsort
SELECT col0 * col1 + col2 * - col1 * col0 AS col2 FROM tab0 AS cor0
----
-656019
-66048
0

query I rowsort
SELECT 35 * col0 * 58 + col2 AS col1 FROM tab1 AS cor0
----
129977
162496
6144

onlyif mysql # use DIV operator for integer division
query I rowsort label-249
SELECT DISTINCT 85 + col0 DIV - col0 AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT 85 + col0 / - col0 AS col1 FROM tab1
----
84

query I rowsort
SELECT col0 * col0 * col2 - col2 * col0 AS col0 FROM tab1
----
229824
324
606720

onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL 4 DIV - col1 + ( col1 ) * + tab1.col1 AS col0 FROM tab1
----
100
169
676

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL 4 / - col1 + ( col1 ) * + tab1.col1 AS col0 FROM tab1
----
100
169
676

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

query I rowsort
SELECT - 22 * col0 - - col1 AS col0 FROM tab1 AS cor0
----
-1398
-1747
-40

query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab0 cor0
----
-39

query I rowsort
SELECT - - ( col2 ) + + 75 AS col1 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT DISTINCT - 25 + cor0.col1 AS col1 FROM tab0 AS cor0
----
61
66
72

query I rowsort
SELECT ALL + col1 * col1 * + 45 AS col2 FROM tab0 AS cor0
----
332820
372645
423405

query I rowsort
SELECT ALL - 28 * + col1 AS col2 FROM tab1 AS cor0
----
-280
-364
-728

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT DISTINCT 57 DIV 84 + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT 57 / 84 + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col0 * + 81 FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT - col0 * ( 76 ) FROM tab2 AS cor0
----
-532
-5928
-6004

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-262
SELECT DISTINCT - CAST( 32 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

skipif mysql # not compatible
query I rowsort label-262
SELECT DISTINCT - CAST ( 32 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
-1728
-1824
-3072

query I rowsort
SELECT - 67 * col1 FROM tab2 AS cor0
----
-1139
-2077
-3953

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

query I rowsort
SELECT ALL col0 * - 39 AS col2 FROM tab0
----
-1365
-3471
-936

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

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

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

query I rowsort
SELECT DISTINCT + ( - 38 ) * - col0 * col1 FROM tab0 AS cor0
----
129010
307762
78432

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-271
SELECT DISTINCT CAST( + 85 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-271
SELECT DISTINCT CAST ( + 85 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
-2
-3
0

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT DISTINCT - col1 * + col2 DIV cor0.col2 + ( - col0 ) * - col1 FROM tab1 AS cor0
----
1027
52
630

skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT - col1 * + col2 / cor0.col2 + ( - col0 ) * - col1 FROM tab1 AS cor0
----
1027
52
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * - 96 + col0 col0 FROM tab0 AS cor0
----
-8551
-8605
-8616

query I rowsort
SELECT + ( + 9 ) * - cor0.col1 FROM tab0 AS cor0
----
-774
-819
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 13 * 86 * col1 + + col2 col1 FROM tab1 AS cor0
----
11237
14630
29122

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0, tab1 cor1, tab2, tab2 cor2
----
3645 values hashing to 803a5565701c4ced6bba69940782c17a

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

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

query I rowsort
SELECT ( 4 ) * + col2 + col1 AS col2 FROM tab2
----
139
163
169

query I rowsort
SELECT ALL + ( - col2 ) * 1 FROM tab2 cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 * ( 39 + - cor0.col0 ) * + ( - col2 * - col2 ) col1 FROM tab2 AS cor0
----
-2056314
-4562961
163303

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

skipif mysql # not compatible
query I rowsort label-283
SELECT + col0 + - col2 / + 60 FROM tab1 AS cor0
----
3
64
79

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

query I rowsort
SELECT DISTINCT + col2 + + 23 * + col2 AS col2 FROM tab0 AS cor0
----
1968
24
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-286
SELECT - col1 DIV 88 + + 73 FROM tab1 cor0
----
73
73
73

skipif mysql # not compatible
query I rowsort label-286
SELECT - col1 / 88 + + 73 FROM tab1 cor0
----
73
73
73

query I rowsort
SELECT ALL - - col1 * ( + col0 * col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
106059
1492
358930

query I rowsort
SELECT - + col0 * 55 + + col1 * - col1 FROM tab2 cor0
----
-1346
-4634
-7771

query I rowsort
SELECT ALL - - cor0.col1 + col1 * + 12 + + col1 FROM tab1 AS cor0
----
140
182
364

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

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 99 AS col1 FROM tab0 AS cor0
----
2163
3494
8198

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

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

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

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

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

query I rowsort
SELECT ALL col1 + ( col2 + + col2 ) * + col2 AS col1 FROM tab0 cor0
----
13539
2264
99

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

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

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

query I rowsort
SELECT 17 - col1 * - col1 * + col2 AS col0 FROM tab2
----
10999
25964
90523

query I rowsort
SELECT ALL - tab0.col0 * col0 + + col2 * 43 FROM tab0
----
-1182
-4395
843

query I rowsort
SELECT ALL + col0 * - col0 - ( - ( col2 ) ) FROM tab0
----
-1224
-543
-7839

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

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

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

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

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

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

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

query I rowsort
SELECT ALL cor0.col0 + col0 + - col1 FROM tab1 AS cor0
----
-20
118
147

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + cor0.col0 AND NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= ( NULL )
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col0 + + col2 + col2 ) IN ( + col2 )
----
-54
-57
-96

query III rowsort
SELECT * FROM tab0 WHERE NULL <= ( + col0 )
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT NULL IN ( + col2 / - col0 )
----

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

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

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

query I rowsort
SELECT ALL col2 * col2 + col1 * - col2 * - col2 AS col1 FROM tab1
----
129024
35739
78732

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 / - col1 ) IN ( + col1 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE ( tab2.col2 ) <= NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - col1 * cor0.col1 + + col0 FROM tab2 cor0
----
-210
-3403
-954

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

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

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

query I rowsort
SELECT tab1.col2 * + tab1.col1 * - col2 + - col2 FROM tab1
----
-119904
-32547
-75870

query I rowsort
SELECT DISTINCT + 5 * + col1 FROM tab1
----
130
50
65

query I rowsort
SELECT ALL - 30 * + tab1.col2 AS col0 FROM tab1
----
-1620
-1710
-2880

query I rowsort
SELECT ALL + 82 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + cor0.col1 + + 71 * - 84 FROM tab2 AS cor0
----
-5905
-5933
-5947

query I rowsort
SELECT - + col2 * 2 * - 82 FROM tab2 AS cor0
----
4264
4428
6232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 40 col2 FROM tab2 cor0
----
1240
2360
680

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

query I rowsort
SELECT + col0 + + col1 + col1 FROM tab1 WHERE - col1 * - col0 <> NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-341
SELECT DISTINCT col2 + - col2 DIV col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-341
SELECT DISTINCT col2 + - col2 / col0 FROM tab2
----
24
26
38

query I rowsort
SELECT DISTINCT + col2 - col0 * + tab0.col0 * + col2 FROM tab0
----
-1224
-18975
-649440

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

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

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

query I rowsort
SELECT DISTINCT + tab0.col1 + - col0 + col1 AS col0 FROM tab0
----
148
159
93

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

query I rowsort
SELECT DISTINCT col2 * - col0 + + col1 * col1 FROM tab1
----
-3548
-7511
514

query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-349
SELECT col2 + col2 + - col0 DIV col1 FROM tab2
----
51
54
72

skipif mysql # not compatible
query I rowsort label-349
SELECT col2 + col2 + - col0 / col1 FROM tab2
----
51
54
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + col2 + col0 col1 FROM tab2
----
1460
251
4706

query I rowsort
SELECT + col0 + col1 * + col1 - + col1 AS col0 FROM tab0
----
7334
8279
9347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * cor0.col2 col0 FROM tab2 AS cor0
----
2054
2133
3002

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN + col2 AND ( - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT ALL col2 + - col1 DIV - 42 FROM tab0 AS cor0
----
3
35
84

skipif mysql # not compatible
query I rowsort label-359
SELECT ALL col2 + - col1 / - 42 FROM tab0 AS cor0
----
3
35
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-360
SELECT - col1 DIV 29 AS col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-360
SELECT - col1 / 29 AS col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + col2 + ( 51 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
1352
1404
1976

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

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

query I rowsort
SELECT DISTINCT + col0 * 27 * col2 FROM tab0 AS cor0
----
197046
21384
945

onlyif mysql # use DIV operator for integer division
query I rowsort label-364
SELECT DISTINCT + col2 + col1 DIV ( + col2 ) FROM tab0 AS cor0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-364
SELECT DISTINCT + col2 + col1 / ( + col2 ) FROM tab0 AS cor0
----
35
83
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-365
SELECT DISTINCT + col2 DIV + 73 - + 83 AS col2 FROM tab0 AS cor0
----
-82
-83

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT + col2 / + 73 - + 83 AS col2 FROM tab0 AS cor0
----
-82
-83

query I rowsort
SELECT ALL + col0 + col0 * - ( - col0 ) * col1 FROM tab0 AS cor0
----
118860
49560
720900

query I rowsort
SELECT col1 - col1 * - 92 AS col0 FROM tab2
----
1581
2883
5487

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

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

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

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

query I rowsort
SELECT + 32 + + 44 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT ALL 63 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT DISTINCT - 76 + - col0 AS col2 FROM tab0 cor0
----
-100
-111
-165

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

query I rowsort
SELECT 78 * + col2 * - col1 FROM tab1
----
-109512
-44460
-97344

query I rowsort
SELECT - col2 + + cor0.col2 * + 17 FROM tab1 AS cor0
----
1536
864
912

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

query I rowsort
SELECT ALL - 83 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

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

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

query I rowsort
SELECT - col1 * col0 - 67 AS col1 FROM tab2
----
-1410
-284
-4669

onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT - col1 + - col0 DIV 89 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-382
SELECT - col1 + - col0 / 89 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT 40 + col2 FROM tab1 AS cor0
----
136
94
97

query I rowsort
SELECT 54 * col0 AS col1 FROM tab2 AS cor0
----
378
4212
4266

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

query I rowsort
SELECT + 75 * col2 * + col2 FROM tab1 AS cor0
----
218700
243675
691200

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

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

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

query I rowsort
SELECT ALL - 77 * col0 * + col2 AS col0 FROM tab0 cor0
----
-2695
-561946
-60984

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

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

query I rowsort
SELECT ALL + - 48 * - col1 FROM tab1 AS cor0
----
1248
480
624

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

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

query I rowsort
SELECT ALL col0 + + col2 * + col0 * col2 FROM tab1 AS cor0
----
208000
737360
8751

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

query I rowsort
SELECT ALL - 50 * + 58 AS col0 FROM tab0 AS cor0
----
-2900
-2900
-2900

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

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

query I rowsort
SELECT - 72 * + col1 + - col1 + + col2 AS col0 FROM tab2
----
-1203
-2236
-4281

query I rowsort
SELECT ALL 29 + col2 AS col2 FROM tab0
----
111
30
62

query I rowsort
SELECT DISTINCT + col2 * - tab1.col2 * col2 + + col0 FROM tab1
----
-157461
-185129
-884656

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-403
SELECT ALL + CAST( 88 AS SIGNED ) + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
250
3736
7768

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + CAST ( 88 AS INTEGER ) + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
250
3736
7768

query I rowsort
SELECT ALL 26 * col0 + + col2 FROM tab0 AS cor0
----
2396
657
911

query I rowsort
SELECT ALL col1 * 49 FROM tab0 AS cor0
----
4214
4459
4753

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

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

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

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

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

query I rowsort
SELECT - cor0.col2 * 75 + col2 + + col1 AS col0 FROM tab0 AS cor0
----
-2356
-5977
23

query I rowsort
SELECT - + 9 - + col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
2829
7453
88

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

skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT cor1.col0 * cor0.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a8042fcd365197f4ce80520ccb46287c

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

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

query I rowsort
SELECT ALL 43 * - col1 FROM tab1 AS cor0
----
-1118
-430
-559

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

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

query I rowsort
SELECT DISTINCT - col2 * col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - 4 * col1 FROM tab1 AS cor0
----
-104
-40
-52

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

query I rowsort
SELECT ALL + col0 * col2 + - col2 - - col2 * + col0 FROM tab1 AS cor0
----
15264
270
7239

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

query I rowsort
SELECT ALL 69 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
118
6153
6310

query I rowsort
SELECT ALL ( - col0 ) + col2 - col2 FROM tab2
----
-7
-78
-79

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

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

query I rowsort
SELECT ALL - tab0.col1 - - ( - tab0.col1 ) FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL 52 * - col1 * + col1 - + col2 FROM tab1
----
-35206
-5257
-8884

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

query I rowsort
SELECT 57 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 - col2 col0 FROM tab1 AS cor0
----
-152
-155
-194

query I rowsort
SELECT - - 27 - + cor0.col0 * - 6 FROM tab0 cor0
----
171
237
561

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

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

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 DISTINCT tab2.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
17
31
59

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT - col1 + col0 DIV - col0 + + col1 * 59 FROM tab0 AS cor0
----
4987
5277
5625

skipif mysql # not compatible
query I rowsort label-442
SELECT - col1 + col0 / - col0 + + col1 * 59 FROM tab0 AS cor0
----
4987
5277
5625

query I rowsort
SELECT + cor0.col0 * - 11 FROM tab0 AS cor0
----
-264
-385
-979

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

query I rowsort
SELECT DISTINCT col1 + 6 AS col2 FROM tab0 cor0
----
103
92
97

query I rowsort
SELECT ALL + col2 * - 98 AS col1 FROM tab0 AS cor0
----
-3234
-8036
-98

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-448
SELECT ALL + + cor0.col0 * - ( + 67 ) + col1 DIV + 93 AS col2 FROM tab2 AS cor0
----
-469
-5226
-5293

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + + cor0.col0 * - ( + 67 ) + col1 / + 93 AS col2 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT DISTINCT - - col2 * 24 AS col0 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT - + col0 + - 33 FROM tab2 cor0
----
-111
-112
-40

query I rowsort
SELECT DISTINCT - col1 * col0 + col2 - - cor0.col2 AS col0 FROM tab1 AS cor0
----
-526
-848
30

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

query I rowsort
SELECT tab2.col0 + - tab2.col1 * + col1 AS col0 FROM tab2
----
-210
-3403
-954

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

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

query I rowsort
SELECT DISTINCT cor0.col2 * + 42 + - col0 + cor0.col2 FROM tab2 AS cor0
----
1040
1154
1555

query I rowsort
SELECT ALL 11 FROM tab2, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - col1 * - ( + 51 ) * col0 FROM tab0
----
105264
173145
413049

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

query I rowsort
SELECT + col2 * ( col2 ) * + col1 + col0 AS col2 FROM tab0
----
132
611973
93678

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

query I rowsort
SELECT + ( 28 ) AS col1 FROM tab1
----
28
28
28

query I rowsort
SELECT - 26 * 1 FROM tab1 cor0
----
-26
-26
-26

query I rowsort
SELECT + 45 * + col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT - + col2 * - col0 * - 53 + - col0 FROM tab1 AS cor0
----
-193408
-407120
-8589

onlyif mysql # use DIV operator for integer division
query I rowsort label-466
SELECT - col1 DIV - 3 + 94 FROM tab0 AS cor0
----
122
124
126

skipif mysql # not compatible
query I rowsort label-466
SELECT - col1 / - 3 + 94 FROM tab0 AS cor0
----
122
124
126

query I rowsort
SELECT + + col1 + ( + 80 ) * + col0 * - col2 FROM tab0 AS cor0
----
-2703
-583749
-63274

query I rowsort
SELECT + ( col0 ) * + col2 + + col0 * col2 AS col1 FROM tab0 AS cor0
----
14596
1584
70

query I rowsort
SELECT + + cor0.col2 * + cor0.col2 + + col0 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
1226
14645
1665

query I rowsort
SELECT ALL - 65 * - col0 FROM tab2 AS cor0
----
455
5070
5135

query I rowsort
SELECT 18 * cor0.col0 + - 1 AS col2 FROM tab2 AS cor0
----
125
1403
1421

query I rowsort
SELECT DISTINCT 83 + col1 AS col0 FROM tab0 AS cor0
----
169
174
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + col1 col2 FROM tab1 cor0
----
109
67
80

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

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

query I rowsort
SELECT ALL - col1 + ( + 7 ) FROM tab2 AS cor0
----
-10
-24
-52

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

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

query I rowsort
SELECT ALL col1 * col1 + + col1 + tab2.col2 FROM tab2
----
1019
344
3566

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

query I rowsort
SELECT DISTINCT 72 + + col2 + col2 * - col2 AS col0 FROM tab2
----
-1334
-578
-630

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT + col1 DIV - 5 + + col1 - 46 * + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-29702
-38477
-70516

skipif mysql # not compatible
query I rowsort label-486
SELECT + col1 / - 5 + + col1 - 46 * + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
-29702
-38477
-70516

query I rowsort
SELECT DISTINCT - + col0 + + 58 * col2 AS col2 FROM tab2 AS cor0
----
1430
1559
2125

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

query I rowsort
SELECT 42 * - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 52b3afe7f8d7b0abe00afd4ac7bc7bb2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * + tab0.col0 col1 FROM tab0, tab0 cor0
----
9 values hashing to 9480e887f0cd1334bb950c8d1abb4bf1

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

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

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

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

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

query I rowsort
SELECT + 27 + 45 FROM tab0 AS cor0
----
72
72
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-497
SELECT 74 DIV + col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-497
SELECT 74 / + col1 AS col0 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL + col1 * + 21 + + col2 * - 53 AS col2 FROM tab2
----
-139
-1657
-780

query I rowsort
SELECT ALL col2 + + 21 AS col2 FROM tab0
----
103
22
54

query I rowsort
SELECT DISTINCT + col1 + + 43 * col0 AS col0 FROM tab2
----
332
3413
3414

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT + CAST( col0 + + col2 AS SIGNED ) * - col1 AS col1 FROM tab1
----
-1210
-1482
-2288

skipif mysql # not compatible
query I rowsort label-501
SELECT + CAST ( col0 + + col2 AS INTEGER ) * - col1 AS col1 FROM tab1
----
-1210
-1482
-2288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * col1 + col2 col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT ALL 10 * col0 AS col2 FROM tab1 cor0
----
30
640
800

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

query I rowsort
SELECT ALL - 71 + 32 * + tab1.col0 FROM tab1
----
1977
2489
25

query I rowsort
SELECT + 98 + 91 FROM tab1
----
189
189
189

query I rowsort
SELECT - col2 * - 0 * - col1 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 88 + col2 * col1 * + 94 AS col2 FROM tab1
----
117400
132064
53668

query I rowsort
SELECT col1 + + col0 * + ( + col2 * - col1 ) + col1 FROM tab2
----
-119534
-51000
-5797

query I rowsort
SELECT + 75 * col1 + col0 + + ( - col0 + 83 ) AS col1 FROM tab1
----
1058
2033
833

query I rowsort
SELECT tab1.col2 * - tab1.col0 + ( - tab1.col1 ) * + col0 * col2 + + col0 FROM tab1
----
-107440
-40064
-4371

query I rowsort
SELECT ALL col0 * col2 - col2 * + col2 FROM tab1 cor0
----
-1536
-2754
399

query I rowsort
SELECT cor0.col1 - - cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 67b38587143f8e9874842c3dae179081

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 87 col2 FROM tab0 AS cor0
----
-7482
-7917
-8439

query I rowsort
SELECT ALL col0 + + 27 * col0 AS col0 FROM tab0 AS cor0
----
2492
672
980

query I rowsort
SELECT ALL - cor0.col2 * 90 * + col0 FROM tab1 AS cor0
----
-14580
-328320
-691200

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - - CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 35 - - 45 FROM tab2 AS cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-522
SELECT ALL ( 17 ) + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL ( 17 ) + col1 / + col1 AS col1 FROM tab1 AS cor0
----
18
18
18

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

query I rowsort
SELECT DISTINCT + ( - 28 ) * - col2 FROM tab1 cor0
----
1512
1596
2688

onlyif mysql # use DIV operator for integer division
query I rowsort label-525
SELECT DISTINCT - 84 DIV cor0.col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-525
SELECT DISTINCT - 84 / cor0.col0 FROM tab0 AS cor0
----
-2
-3
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 6 + + cor0.col2 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT ALL - ( + 92 ) AS col1 FROM tab2 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 12 col1 FROM tab1
----
-9
52
68

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

query I rowsort
SELECT DISTINCT - - 11 * 55 AS col2 FROM tab0 AS cor0
----
605

query I rowsort
SELECT ALL + col0 * + 55 * + col1 FROM tab1 AS cor0
----
35200
4290
57200

onlyif mysql # use DIV operator for integer division
query I rowsort label-535
SELECT DISTINCT CAST( - col1 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT CAST ( - col1 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + + col2 * 41 FROM tab1 cor0
----
2214
2337
3936

query I rowsort
SELECT + 14 * - col1 AS col2 FROM tab1 cor0
----
-140
-182
-364

query I rowsort
SELECT ALL - - 30 + col2 * + 92 AS col0 FROM tab2 AS cor0
----
2422
2514
3526

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

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

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

query I rowsort
SELECT DISTINCT col0 * - 7 AS col0 FROM tab1
----
-21
-448
-560

query I rowsort
SELECT ALL - 64 FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb

query I rowsort
SELECT col1 * 99 * + col0 FROM tab2 AS cor0
----
132957
21483
455598

query I rowsort
SELECT ALL - tab0.col2 * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT - 19 * + 23 * tab0.col2 AS col0 FROM tab0
----
-14421
-35834
-437

query I rowsort
SELECT ALL - col1 * - 17 * col2 AS col0 FROM tab0
----
126854
1649
48246

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-548
SELECT + col1 * - col2 + + col2 DIV ( 80 ) + col2 * 54 AS col0 FROM tab0 AS cor0
----
-1056
-3033
-43

skipif mysql # not compatible
query I rowsort label-548
SELECT + col1 * - col2 + + col2 / ( 80 ) + col2 * 54 AS col0 FROM tab0 AS cor0
----
-1056
-3033
-43

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

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

query I rowsort
SELECT + cor0.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-551
SELECT DISTINCT + 62 DIV - cor0.col0 FROM tab1 AS cor0
----
-20
0

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT + 62 / - cor0.col0 FROM tab1 AS cor0
----
-20
0

query I rowsort
SELECT + col0 * 29 + + col1 + + 96 AS col2 FROM tab0 AS cor0
----
1208
2768
878

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

query I rowsort
SELECT 59 + col2 + + cor0.col2 FROM tab1 cor0
----
167
173
251

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

query I rowsort
SELECT + 72 + col2 FROM tab2 AS cor0
----
110
98
99

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

query I rowsort
SELECT ALL 64 + + col0 * ( - ( + col2 ) ) + + col0 FROM tab1 AS cor0
----
-3520
-7536
-95

query I rowsort
SELECT 96 + col0 * col2 + 81 FROM tab0 AS cor0
----
212
7475
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-560
SELECT - + col0 DIV col0 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-560
SELECT - + col0 / col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT - col0 * ( 28 ) FROM tab0 AS cor0
----
-2492
-672
-980

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

query I rowsort
SELECT cor0.col0 * - 5 AS col2 FROM tab1 AS cor0
----
-15
-320
-400

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + col1 * 41 AS col0 FROM tab0 AS cor0
----
3526
3731
3977

query I rowsort
SELECT col2 + 43 * - cor0.col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

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

query I rowsort
SELECT - 67 * + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 4588f69e30e1086e19e448b020f1e6d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 14 col0 FROM tab0 AS cor0
----
-15
-47
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-574
SELECT + + CAST( col0 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
1
1
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-575
SELECT 53 + + ( + col1 ) DIV col0 FROM tab0 AS cor0
----
54
55
56

skipif mysql # not compatible
query I rowsort label-575
SELECT 53 + + ( + col1 ) / col0 FROM tab0 AS cor0
----
54
55
56

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

query I rowsort
SELECT ALL + - cor0.col2 * 80 AS col0 FROM tab0 AS cor0
----
-2640
-6560
-80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT + + ( cor0.col2 ) * + col1 + 75 DIV - col2 AS col2 FROM tab0 AS cor0
----
22
2836
7462

skipif mysql # not compatible
query I rowsort label-579
SELECT + + ( cor0.col2 ) * + col1 + 75 / - col2 AS col2 FROM tab0 AS cor0
----
22
2836
7462

query I rowsort
SELECT + 9 * - col1 FROM tab0
----
-774
-819
-873

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( col0 ) AS REAL ) * ( - col1 ) col2 FROM tab1
----
-1040
-640
-78

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

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

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

query I rowsort
SELECT ALL - col2 - + 92 FROM tab1
----
-146
-149
-188

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + 90 AS col0 FROM tab2 AS cor0
----
116
117
128

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-592
SELECT - 94 * + col0 * col2 + - ( - ( col2 ) ) * - CAST( + 20 + col2 AS SIGNED ) FROM tab0 AS cor0
----
-3311
-694376
-76197

skipif mysql # not compatible
query I rowsort label-592
SELECT - 94 * + col0 * col2 + - ( - ( col2 ) ) * - CAST ( + 20 + col2 AS INTEGER ) FROM tab0 AS cor0
----
-3311
-694376
-76197

onlyif mysql # use DIV operator for integer division
query I rowsort label-593
SELECT ALL + + ( cor0.col2 ) + col2 DIV ( - col1 ) FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + + ( cor0.col2 ) + col2 / ( - col1 ) FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT DISTINCT 88 + - 1 * - cor0.col2 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT ALL + 11 * - cor0.col1 + + col1 * 32 + - col0 FROM tab2 cor0
----
1161
278
644

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

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

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

query I rowsort
SELECT DISTINCT + ( 21 ) AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT + 15 + - 86 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT 47 + col1 + col0 FROM tab0 AS cor0
----
157
179
227

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

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

query I rowsort
SELECT 2 + + col1 AS col2 FROM tab1 AS cor0
----
12
15
28

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * 33 col0 FROM tab1 AS cor0
----
2739
2739
2739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 * - col2 * cor0.col1 - - cor0.col1 col2 FROM tab1 AS cor0
----
29080
63661
71630

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

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

query I rowsort
SELECT ALL + + 77 + + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - 93 + tab2.col2 * col0 FROM tab2
----
1935
2909
96

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

query I rowsort
SELECT ALL + col2 + - cor0.col2 * 5 FROM tab1 AS cor0
----
-216
-228
-384

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

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

query I rowsort
SELECT - 36 * cor0.col0 + col2 AS col1 FROM tab1 cor0
----
-2247
-2784
-54

query I rowsort
SELECT - + col1 + - col1 * + 21 * - 99 FROM tab1 AS cor0
----
20780
27014
54028

query I rowsort
SELECT DISTINCT - col2 * + 61 - - col1 FROM tab1 AS cor0
----
-3268
-3467
-5843

onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT ALL - col2 * 35 DIV col2 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7431
-8316
-9444

skipif mysql # not compatible
query I rowsort label-616
SELECT ALL - col2 * 35 / col2 + - col1 * col1 AS col2 FROM tab0 AS cor0
----
-7431
-8316
-9444

query I rowsort
SELECT + col1 + 25 FROM tab0 AS cor0
----
111
116
122

query I rowsort
SELECT DISTINCT + + col2 * col2 - + col0 * - cor0.col0 FROM tab2 AS cor0
----
6760
7685
778

query I rowsort
SELECT DISTINCT + col2 - - ( - col2 ) * col0 * 61 AS col0 FROM tab1 AS cor0
----
-222471
-468384
-9828

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

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

query I rowsort
SELECT - - col2 * col0 - col1 * - col2 FROM tab2 AS cor0
----
1026
3562
3648

query I rowsort
SELECT ALL col0 + + 92 FROM tab1 cor0
----
156
172
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - col0 * 38 FROM tab1 AS cor0
----
-114
-2432
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT ALL + col2 + - col1 DIV - col0 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + col2 + - col1 / - col0 FROM tab0 AS cor0
----
3
36
83

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 + col1 * col0 AS col2 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT - + col0 * 55 AS col1 FROM tab1 AS cor0
----
-165
-3520
-4400

query I rowsort
SELECT - cor0.col1 + 56 FROM tab1 cor0
----
30
43
46

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

query I rowsort
SELECT + col0 * ( tab1.col0 * col0 ) + col1 FROM tab1
----
262154
512013
53

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

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

query I rowsort
SELECT DISTINCT cor0.col2 + 83 + 1 FROM tab1, tab0 AS cor0
----
117
166
85

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

query I rowsort
SELECT ALL 86 + + tab1.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to cd7b6edc40b18187840d4c89b2d8084e

query I rowsort
SELECT ALL + cor1.col0 + 25 FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 060276dcaad8697c75a798df038f45f6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-640
SELECT ALL + 22 DIV + col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL + 22 / + col1 FROM tab1 AS cor0
----
0
1
2

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

query I rowsort
SELECT - col1 * 75 + col1 AS col2 FROM tab2 cor0
----
-1258
-2294
-4366

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

query I rowsort
SELECT + cor1.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

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

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

query I rowsort
SELECT DISTINCT - ( 64 + - col0 * - 76 ) AS col0 FROM tab0
----
-1888
-2724
-6828

query I rowsort
SELECT ALL 14 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT DISTINCT - tab0.col1 * col1 + - 99 DIV - col2 AS col0 FROM tab0
----
-7393
-8280
-9310

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT - tab0.col1 * col1 + - 99 / - col2 AS col0 FROM tab0
----
-7393
-8280
-9310

query I rowsort
SELECT DISTINCT + 90 * + cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
1170
2340
900

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

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

query I rowsort
SELECT ALL - cor0.col2 + 26 FROM tab2 AS cor0
----
-1
-12
0

query I rowsort
SELECT DISTINCT col1 + - ( col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 * 15 - col0 FROM tab0 AS cor0
----
-1424
-384
-560

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

query I rowsort
SELECT ALL - cor0.col2 + - 42 AS col1 FROM tab2 AS cor0
----
-68
-69
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-659
SELECT + col0 + + CAST( - col1 AS SIGNED ) * col2 * + 87 FROM tab1 AS cor0
----
-108496
-122145
-49526

skipif mysql # not compatible
query I rowsort label-659
SELECT + col0 + + CAST ( - col1 AS INTEGER ) * col2 * + 87 FROM tab1 AS cor0
----
-108496
-122145
-49526

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT + + col2 DIV - col0 - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-840

skipif mysql # not compatible
query I rowsort label-662
SELECT + + col2 / - col0 - col1 * col2 FROM tab2 AS cor0
----
-1534
-646
-840

query I rowsort
SELECT cor0.col2 * 11 * col0 AS col0 FROM tab2 AS cor0
----
2079
22308
33022

query I rowsort
SELECT DISTINCT + cor0.col0 + - 12 FROM tab1, tab0 AS cor0
----
12
23
77

query I rowsort
SELECT col1 * + ( 87 ) AS col2 FROM tab1
----
1131
2262
870

query I rowsort
SELECT + col2 * + ( + 38 ) FROM tab1
----
2052
2166
3648

onlyif mysql # use DIV operator for integer division
query I rowsort label-667
SELECT col1 DIV CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-667
SELECT col1 / CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
1
2
3

query I rowsort
SELECT DISTINCT + tab0.col2 * 8 FROM tab0
----
264
656
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-669
SELECT - col0 DIV + 24 AS col0 FROM tab1 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-669
SELECT - col0 / + 24 AS col0 FROM tab1 AS cor0
----
-2
-3
0

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

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

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

query I rowsort
SELECT + 14 - col2 * - col2 FROM tab1 cor0
----
2930
3263
9230

query I rowsort
SELECT + ( 32 ) + - cor0.col1 * cor0.col0 * + 50 + - col0 FROM tab2 AS cor0
----
-10825
-230146
-67197

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-676
SELECT 35 DIV + col1 - - col1 AS col2 FROM tab2 AS cor0
----
19
32
59

skipif mysql # not compatible
query I rowsort label-676
SELECT 35 / + col1 - - col1 AS col2 FROM tab2 AS cor0
----
19
32
59

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT - col0 DIV col2 + - col1 + CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-23
53
67

skipif mysql # not compatible
query I rowsort label-679
SELECT - col0 / col2 + - col1 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-23
53
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 + col0 col2 FROM tab1 AS cor0
----
150
166
89

query I rowsort
SELECT DISTINCT - 92 + ( - col2 ) FROM tab1 AS cor0
----
-146
-149
-188

query I rowsort
SELECT - 1 + + col2 * - ( ( - col2 ) ) AS col2 FROM tab0 cor0
----
0
1088
6723

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

query I rowsort
SELECT - ( - col2 ) + 70 FROM tab1 AS cor0
----
124
127
166

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

query I rowsort
SELECT DISTINCT col2 + ( col0 ) * col2 * ( + col2 ) FROM tab1 AS cor0
----
207993
737376
8802

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + 67 * 39 col0 FROM tab1, tab0 AS cor0
----
2699
2704
2710

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

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

query I rowsort
SELECT ( tab2.col0 ) - + col0 * col0 * tab2.col0 AS col1 FROM tab2
----
-336
-474474
-492960

query I rowsort
SELECT DISTINCT + - col1 + - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 - 63 * col2 * col0 col1 FROM tab2 cor0
----
-11690
-123162
-187783

query I rowsort
SELECT + col2 + - cor0.col2 * - 23 * col0 AS col2 FROM tab1 AS cor0
----
176736
3780
83961

query I rowsort
SELECT - + cor0.col0 * col2 + + col2 * 95 FROM tab2 AS cor0
----
2376
442
608

query I rowsort
SELECT ALL - + 5 * col0 AS col1 FROM tab0 AS cor0
----
-120
-175
-445

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT + ( col0 ) - + tab2.col2 * 30 FROM tab2
----
-1061
-702
-803

query I rowsort
SELECT col0 + 94 AS col1 FROM tab0
----
118
129
183

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

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

query I rowsort
SELECT ALL - col2 * col2 + - ( col2 * cor0.col2 ) FROM tab0 AS cor0
----
-13448
-2
-2178

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

query I rowsort
SELECT + col2 * - col0 + + 29 * + col0 FROM tab2 AS cor0
----
-711
14
234

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

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

query I rowsort
SELECT - - 67 * - col2 FROM tab2 AS cor0
----
-1742
-1809
-2546

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

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

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

query I rowsort
SELECT - cor0.col1 * - 45 * 76 + col0 FROM tab0 AS cor0
----
294144
311309
331775

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + 60 AS col2 FROM tab2 cor0
----
2088
249
3062

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * + col0 * tab1.col0 col1 FROM tab1
----
-115200
-162
-73728

query I rowsort
SELECT - 30 * - 35 + + col1 AS col1 FROM tab2
----
1067
1081
1109

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

query I rowsort
SELECT ALL - 30 * col0 + - col0 + 36 FROM tab2 AS cor0
----
-181
-2382
-2413

query I rowsort
SELECT - + 43 * + col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT DISTINCT + 93 + 44 FROM tab0 AS cor0
----
137

query I rowsort
SELECT + 1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - + col0 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT ( - 25 ) + col0 DIV - 5 FROM tab1 cor0
----
-25
-37
-41

skipif mysql # not compatible
query I rowsort label-720
SELECT ( - 25 ) + col0 / - 5 FROM tab1 cor0
----
-25
-37
-41

query I rowsort
SELECT DISTINCT + 81 * - col2 + - col0 AS col2 FROM tab2 cor0
----
-2184
-2194
-3157

onlyif mysql # use DIV operator for integer division
query I rowsort label-722
SELECT 79 DIV - 62 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-722
SELECT 79 / - 62 FROM tab1 AS cor0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * cor0.col0 * col1 col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + + ( - 96 ) + col1 * col2 FROM tab0 cor0
----
1
2742
7366

query I rowsort
SELECT - 29 * 87 AS col2 FROM tab0 AS cor0
----
-2523
-2523
-2523

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

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

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

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

query I rowsort
SELECT col1 * col0 * 44 FROM tab2 cor0
----
202488
59092
9548

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

query I rowsort
SELECT ALL - col2 * + cor0.col1 + 47 FROM tab1 AS cor0
----
-1201
-1357
-523

query I rowsort
SELECT DISTINCT 49 + col1 FROM tab2 AS cor0
----
108
66
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT DISTINCT 7 * + tab2.col1 - + ( - col1 ) DIV col1 col0 FROM tab2
----
120
218
414

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT 7 * + tab2.col1 - + ( - col1 ) / col1 col0 FROM tab2
----
120
218
414

query I rowsort
SELECT ALL col0 + + ( - tab1.col2 ) + + col0 FROM tab1
----
-48
64
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-736
SELECT ALL + tab1.col2 + + 83 DIV + col2 + + col0 * col1 FROM tab1
----
1136
133
698

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL + tab1.col2 + + 83 / + col2 + + col0 * col1 FROM tab1
----
1136
133
698

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

query I rowsort
SELECT + col1 + + col2 * + col2 + col0 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT DISTINCT - col0 + 36 AS col2 FROM tab2
----
-42
-43
29

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-742
SELECT cor0.col0 DIV col1 + col0 FROM tab1 AS cor0
----
3
70
86

skipif mysql # not compatible
query I rowsort label-742
SELECT cor0.col0 / col1 + col0 FROM tab1 AS cor0
----
3
70
86

onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT cor0.col2 DIV - 85 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-743
SELECT cor0.col2 / - 85 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + - 28 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1428
539
802

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 + 77 * + col1 AS col0 FROM tab2 AS cor0
----
1230
2380
4465

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

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

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

query I rowsort
SELECT 36 + - col2 FROM tab0 AS cor0
----
-46
3
35

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

query I rowsort
SELECT ALL 28 * + cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 30aa3594d67af24d5272b70ab120f514

query I rowsort
SELECT - col2 * 52 FROM tab2 AS cor0
----
-1352
-1404
-1976

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

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

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

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

query I rowsort
SELECT ALL - col1 + - ( 46 * col2 ) AS col0 FROM tab1 cor0
----
-2510
-2632
-4429

query I rowsort
SELECT cor0.col2 * col2 + 98 AS col0 FROM tab1 AS cor0
----
3014
3347
9314

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT - + col2 / - 79 col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT col0 DIV + 66 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT col0 / + 66 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT - 13 * ( + cor0.col0 * - 74 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7d38caad33e9532c14dd45ce27fe5e09

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

query I rowsort
SELECT ALL - 50 AS col0 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT 18 + 55 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

query I rowsort
SELECT - ( + col1 + - col1 ) * 53 FROM tab1
----
0
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-770
SELECT ALL - 28 DIV - 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL - 28 / - 77 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 79 * + col2 FROM tab2 AS cor0
----
2054
2133
3002

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col2 * col0 * col2 FROM tab0 AS cor0
----
-132
-26222
-598527

query I rowsort
SELECT 36 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1076
114
676

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

query I rowsort
SELECT ALL + 89 + + col1 * col0 AS col2 FROM tab1 cor0
----
1129
167
729

query I rowsort
SELECT + + 39 + - col0 AS col0 FROM tab0 AS cor0
----
-50
15
4

query I rowsort
SELECT ALL - 72 * + cor0.col0 - col1 * col1 FROM tab2 AS cor0
----
-1465
-5977
-9097

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

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

query I rowsort
SELECT DISTINCT 17 * - col2 + col0 AS col1 FROM tab1 cor0
----
-1552
-905
-915

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

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

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

query I rowsort
SELECT ALL - col0 * 50 FROM tab2 AS cor0
----
-350
-3900
-3950

skipif mysql # not compatible
query I rowsort
SELECT CAST ( ( - col0 ) AS REAL ) * ( 16 ) - + col2 FROM tab1
----
-102
-1081
-1376

query I rowsort
SELECT col1 * col2 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-244068
-679042
-9409

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

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

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

query I rowsort
SELECT ( - 18 ) AS col2 FROM tab2
----
-18
-18
-18

query I rowsort
SELECT + - 72 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

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

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

query I rowsort
SELECT ALL col1 * - 2 FROM tab1
----
-20
-26
-52

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 + ( col1 + + col2 ) AS col2 FROM tab1 AS cor0
----
124
134
205

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

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

query I rowsort
SELECT col2 * + col1 + col1 * + col0 * - col0 FROM tab2 AS cor0
----
-105451
-357422
-682

onlyif mysql # use DIV operator for integer division
query I rowsort label-801
SELECT col1 * col0 DIV - 59 col2 FROM tab0 cor0
----
-137
-34
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-801
SELECT col1 * col0 / - 59 col2 FROM tab0 cor0
----
-137
-34
-57

query I rowsort
SELECT - + cor0.col0 * + ( - 22 ) * col2 + 94 FROM tab1 AS cor0
----
169054
3658
80350

query I rowsort
SELECT - col0 * + col1 + 49 AS col1 FROM tab0 AS cor0
----
-2015
-3346
-8050

query I rowsort
SELECT DISTINCT col0 + - 93 * + cor0.col0 AS col0 FROM tab1 cor0
----
-276
-5888
-7360

query I rowsort
SELECT ALL + - col2 * col2 + 71 FROM tab2 AS cor0
----
-1373
-605
-658

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

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

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
73

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

query I rowsort
SELECT tab2.col1 * col1 * + 46 FROM tab2
----
13294
160126
44206

query I rowsort
SELECT - ( 80 ) AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # use DIV operator for integer division
query I rowsort label-811
SELECT ALL + tab1.col0 DIV + CAST( 91 * + col2 AS SIGNED ) + tab1.col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-811
SELECT ALL + tab1.col0 / + CAST ( 91 * + col2 AS INTEGER ) + tab1.col1 FROM tab1
----
10
13
26

query I rowsort
SELECT + + col1 + - cor0.col0 * + col2 * col1 FROM tab2 AS cor0
----
-119593
-51017
-5828

query I rowsort
SELECT + col0 * col2 + 39 AS col1 FROM tab0 cor0
----
7337
74
831

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

query I rowsort
SELECT - cor0.col2 + + 29 FROM tab0 cor0
----
-4
-53
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( + tab0.col0 ) + + col1 * + 25 + - 42 col2 FROM tab0
----
10154
2684
3608

query I rowsort
SELECT tab0.col1 + 21 FROM tab0
----
107
112
118

query I rowsort
SELECT ALL - col2 * 17 * col2 + + col2 FROM tab1
----
-156576
-49518
-55176

query I rowsort
SELECT + ( + col0 ) * col2 + 41 FROM tab0 AS cor0
----
7339
76
833

query I rowsort
SELECT DISTINCT - col1 + 88 AS col1 FROM tab2
----
29
57
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT + 93 + + 95 DIV col1 AS col1 FROM tab1 cor0
----
100
102
96

skipif mysql # not compatible
query I rowsort label-821
SELECT + 93 + + 95 / col1 AS col1 FROM tab1 cor0
----
100
102
96

query I rowsort
SELECT - + 50 + col1 FROM tab0 cor0
----
36
41
47

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

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

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

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

query I rowsort
SELECT 95 + + col0 FROM tab2 AS cor0
----
102
173
174

query I rowsort
SELECT DISTINCT + col1 * 39 * + col2 + 70 FROM tab0 AS cor0
----
110752
291088
3853

query I rowsort
SELECT + 66 * 29 AS col2 FROM tab1 AS cor0
----
1914
1914
1914

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

skipif mysql # not compatible
query I rowsort label-829
SELECT tab2.col0 * CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - col0 col1 FROM tab0
----
-2256
-3290
-8366

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * - col1 + CAST ( col2 AS REAL ) * tab2.col1 * col2 AS col0 FROM tab2
----
23560
24837
43365

query I rowsort
SELECT + 92 + - col0 FROM tab2 AS cor0
----
13
14
85

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col1 ) col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col1 * col0 * 79 FROM tab2 AS cor0
----
106097
17143
363558

query I rowsort
SELECT - - col0 + cor0.col1 * - 24 FROM tab0 AS cor0
----
-2040
-2095
-2293

query I rowsort
SELECT DISTINCT - + col1 + - col0 * - 51 * + col0 FROM tab1 AS cor0
----
208886
326387
433

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

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

query I rowsort
SELECT + 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + col1 * - 71 - + col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT + col1 * - cor0.col1 + col0 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-7396
-8280
-9374

skipif mysql # not compatible
query I rowsort label-844
SELECT + col1 * - cor0.col1 + col0 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-7396
-8280
-9374

query I rowsort
SELECT - col1 * + col2 + - col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-1592
-4228
-8941

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * tab2.col0 * + col0 - - col1 col0 FROM tab2
----
-106080
-1488
-358897

query I rowsort
SELECT - 55 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT ALL 89 FROM tab1, tab2 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

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

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

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

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

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

query I rowsort
SELECT - cor0.col1 * + col1 + col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT ALL col1 + col0 - + tab2.col0 FROM tab2
----
17
31
59

query I rowsort
SELECT - - 60 - col0 * col1 FROM tab0 cor0
----
-2004
-3335
-8039

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

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

query I rowsort
SELECT ALL - 99 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da

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

query I rowsort
SELECT 93 * - 76 FROM tab0, tab1 AS cor0
----
9 values hashing to b2dccc52a14fc74cf31d3d810f85bf47

query I rowsort
SELECT - col1 * - ( 52 ) AS col1 FROM tab2 AS cor0
----
1612
3068
884

query I rowsort
SELECT - col0 + col1 * 53 FROM tab1 AS cor0
----
1375
466
609

query I rowsort
SELECT + - 89 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-267
-5696
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT - - col2 DIV + cor0.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-866
SELECT - - col2 / + cor0.col0 col1 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT + 62 + 12 * col0 AS col0 FROM tab0 AS cor0
----
1130
350
482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query I rowsort
SELECT + ( 21 ) + - cor0.col0 * 30 FROM tab1 AS cor0
----
-1899
-2379
-69

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

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

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT col2 / ( col0 + + ( 38 ) ) AS col0 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT + 67 * col0 AS col2 FROM tab0
----
1608
2345
5963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34

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

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

query I rowsort
SELECT - col2 * col0 + cor0.col2 * col2 FROM tab2 AS cor0
----
-1352
-1558
540

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

query I rowsort
SELECT 99 * + col1 FROM tab1
----
1287
2574
990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-881
SELECT + 84 DIV + col1 FROM tab1
----
3
6
8

skipif mysql # not compatible
query I rowsort label-881
SELECT + 84 / + col1 FROM tab1
----
3
6
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 46 * col0 col0 FROM tab2
----
329
3666
3713

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

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

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

query I rowsort
SELECT - col0 * - col1 + - col0 * - cor0.col0 FROM tab0 AS cor0
----
16020
2640
4620

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

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

query I rowsort
SELECT - col1 + - 44 AS col1 FROM tab1 cor0
----
-54
-57
-70

query I rowsort
SELECT ALL + 42 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT 52 * - col1 * tab2.col0 AS col2 FROM tab2
----
-11284
-239304
-69836

onlyif mysql # use DIV operator for integer division
query I rowsort label-891
SELECT - col1 DIV col2 + col2 DIV tab0.col0 FROM tab0
----
-1
-1
-97

skipif mysql # not compatible
query I rowsort label-891
SELECT - col1 / col2 + col2 / tab0.col0 FROM tab0
----
-1
-1
-97

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

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

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

query I rowsort
SELECT 9 * col0 AS col2 FROM tab1
----
27
576
720

onlyif mysql # use DIV operator for integer division
query I rowsort label-896
SELECT DISTINCT + col1 + - col1 * col0 + + col0 DIV + col0 FROM tab0
----
-1977
-3297
-8007

skipif mysql # not compatible
query I rowsort label-896
SELECT DISTINCT + col1 + - col1 * col0 + + col0 / + col0 FROM tab0
----
-1977
-3297
-8007

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

query I rowsort
SELECT ALL + 73 + - col1 * 73 AS col0 FROM tab2 AS cor0
----
-1168
-2190
-4234

query I rowsort
SELECT + ( col1 ) * col0 * 26 FROM tab1 cor0
----
16640
2028
27040

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

query I rowsort
SELECT + col0 * col0 + + col0 * col2 AS col2 FROM tab1 cor0
----
14080
171
7744

query I rowsort
SELECT DISTINCT - col2 + col1 * + 56 AS col2 FROM tab1 AS cor0
----
1402
503
632

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * - 54 col1 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) + col0 * col2 + 39 FROM tab2 AS cor0
----
4095
417
6043

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

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

skipif mysql # not compatible
query I rowsort label-907
SELECT DISTINCT col1 / 89 AS col0 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - 6 col2 FROM tab0 AS cor0
----
-144
-210
-534

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

query I rowsort
SELECT ALL + cor0.col1 * - 73 FROM tab0 AS cor0
----
-6278
-6643
-7081

query I rowsort
SELECT + - col1 * col1 * + col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 41 * col2 col1 FROM tab2 cor0
----
1114
1144
1637

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

query I rowsort
SELECT ALL - col1 * + 17 + col0 * col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-106386
-2046
-359959

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-917
SELECT ALL + + cor0.col1 + + CAST( 0 AS SIGNED ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-917
SELECT ALL + + cor0.col1 + + CAST ( 0 AS INTEGER ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 - + ( col1 ) col1 FROM tab1
----
-2942
-3259
-9229

query I rowsort
SELECT - 26 * - col2 - + col1 AS col0 FROM tab1 cor0
----
1378
1472
2483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col0 col1 FROM tab2 AS cor0
----
1343
217
4602

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

query I rowsort
SELECT ALL col1 + - 97 * col1 AS col2 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT - - 8 - - cor0.col2 * col2 FROM tab2 AS cor0
----
1452
684
737

query I rowsort
SELECT ( + col1 ) + col1 + col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - col1 + - cor0.col1 + col2 AS col1 FROM tab1 AS cor0
----
2
37
70

query I rowsort
SELECT DISTINCT col2 + col0 * col2 * + 79 + col1 FROM tab0 AS cor0
----
2863
576715
62687

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

query I rowsort
SELECT - + ( + 26 ) - col0 FROM tab2 AS cor0
----
-104
-105
-33

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

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

query I rowsort
SELECT DISTINCT 24 + tab1.col2 + + col1 FROM tab1
----
104
133
91

query I rowsort
SELECT - 5 * + col2 FROM tab1
----
-270
-285
-480

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

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

query I rowsort
SELECT + 45 * col0 FROM tab1 cor0
----
135
2880
3600

query I rowsort
SELECT + col2 * col1 + ( 50 ) AS col2 FROM tab0 AS cor0
----
147
2888
7512

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-937
SELECT ALL + col1 + + cor0.col2 * cor0.col1 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
174
204
99

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL + col1 + + cor0.col2 * cor0.col1 / cor0.col0 AS col2 FROM tab0 AS cor0
----
174
204
99

query I rowsort
SELECT + + col0 + - col2 * 80 AS col1 FROM tab1 AS cor0
----
-4317
-4496
-7600

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-939
SELECT DISTINCT - ( col1 ) * + CAST( 24 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2064
-2184
-2328

skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT - ( col1 ) * + CAST ( 24 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2064
-2184
-2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT ALL tab2.col0 DIV 46 + + col0 AS col0 FROM tab2
----
7
79
80

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL tab2.col0 / 46 + + col0 AS col0 FROM tab2
----
7
79
80

query I rowsort
SELECT 28 + - col1 FROM tab1 AS cor0
----
15
18
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-942
SELECT DISTINCT - col1 DIV col2 + 82 FROM tab0 AS cor0
----
-15
80
81

skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT - col1 / col2 + 82 FROM tab0 AS cor0
----
-15
80
81

query I rowsort
SELECT ALL - cor0.col0 + col1 + + 56 FROM tab0 AS cor0
----
118
118
58

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

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

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

query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614

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

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

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

skipif mysql # not compatible
query I rowsort label-948
SELECT tab2.col0 * + col0 / col0 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 48 col2 FROM tab2
----
-74
-75
-86

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

query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) + cor0.col1 + col0 AS col0 FROM tab1 cor0
----
-1155
-1375
-496

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

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

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT - + CAST ( - ( col1 ) AS INTEGER ) * - ( 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 ) + col0 col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + + col1 * + 20 AS col1 FROM tab0 AS cor0
----
1720
1820
1940

query I rowsort
SELECT + cor0.col0 * 15 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT col2 + col2 * 26 AS col2 FROM tab1 cor0
----
1458
1539
2592

query I rowsort
SELECT ALL + col2 + col0 - - 80 * col1 FROM tab0 AS cor0
----
6937
7451
7796

query I rowsort
SELECT ALL - 82 * - 17 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ea1f9b7dbda91382d4df07b675e361c0

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

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + - cor0.col1 * + cor0.col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT 80 + - col0 FROM tab2 cor0
----
1
2
73

query I rowsort
SELECT DISTINCT + cor0.col0 - 67 FROM tab1 AS cor0
----
-3
-64
13

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

query I rowsort
SELECT ALL - ( - 29 ) + - col1 AS col0 FROM tab0 AS cor0
----
-57
-62
-68

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

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

query I rowsort
SELECT col2 + col0 + 90 FROM tab0
----
126
147
261

query I rowsort
SELECT - + 89 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + col0 * col2 + col1 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-17414
2648
5483

query I rowsort
SELECT - col1 - col2 * 25 AS col2 FROM tab0 AS cor0
----
-122
-2141
-911

query I rowsort
SELECT ALL + + 71 * + col0 AS col2 FROM tab2 AS cor0
----
497
5538
5609

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

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

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

query I rowsort
SELECT - - col0 * + col1 * + col0 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
312
41600
84240

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

query I rowsort
SELECT DISTINCT cor0.col2 + + 89 FROM tab0 AS cor0
----
122
171
90

query I rowsort
SELECT 88 * + tab2.col1 * col0 AS col2 FROM tab2
----
118184
19096
404976

query I rowsort
SELECT DISTINCT - col2 * - 14 + 36 AS col2 FROM tab2 AS cor0
----
400
414
568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 76 col1 FROM tab0 AS cor0
----
100
111
165

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

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

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

query I rowsort
SELECT - ( - col1 * - tab2.col2 ) + col2 * + 11 AS col1 FROM tab2
----
-1248
-228
-540

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

query I rowsort
SELECT + 72 + - cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 10d09bc2a82dbff50065fb5e189ca496

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

query I rowsort
SELECT ALL - 15 * col2 AS col1 FROM tab2 AS cor0
----
-390
-405
-570

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

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

query I rowsort
SELECT DISTINCT + + 20 + - col1 AS col0 FROM tab1 AS cor0
----
-6
10
7

query I rowsort
SELECT - col0 - - col1 * 14 FROM tab0 AS cor0
----
1180
1185
1323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + 17 + 8 * cor0.col1 col1 FROM tab2 AS cor0
----
1517
1824
394

query I rowsort
SELECT 11 * - cor0.col2 - 70 * - ( col1 ) * 96 FROM tab2 AS cor0
----
113822
208023
396194

query I rowsort
SELECT DISTINCT col2 * - cor0.col2 * 56 FROM tab1 AS cor0
----
-163296
-181944
-516096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 36 col2 FROM tab2
----
53
67
95

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

skipif mysql # not compatible
query I rowsort label-997
SELECT ( - ( + col1 ) ) / 76 AS col2 FROM tab0
----
-1
-1
-1

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

query I rowsort
SELECT DISTINCT - col2 * + 23 * col0 - - col1 FROM tab0
----
-167763
-18130
-708

query I rowsort
SELECT ALL - cor0.col1 + 64 AS col2 FROM tab0 cor0
----
-22
-27
-33

query I rowsort
SELECT + 69 * - col0 FROM tab0 AS cor0
----
-1656
-2415
-6141

skipif mysql # not compatible
query I rowsort
SELECT - col2 / CAST ( 16 AS REAL ) + tab0.col0 + + col2 AS col2 FROM tab0
----
165
35
54

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT + tab0.col0 + CAST ( + 15 AS INTEGER ) * col1 * col1 AS col0 FROM tab0
----
110964
124304
141170

query I rowsort
SELECT - col0 * 98 AS col1 FROM tab1
----
-294
-6272
-7840

query I rowsort
SELECT ALL - col0 + 58 AS col0 FROM tab1
----
-22
-6
55

query I rowsort
SELECT 58 * - col0 + - col0 AS col2 FROM tab1
----
-177
-3776
-4720

query I rowsort
SELECT DISTINCT col0 + + col1 * - tab2.col2 FROM tab2
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1008
SELECT + ( + col1 + tab1.col1 ) * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
1140
2496
2808

skipif mysql # not compatible
query I rowsort label-1008
SELECT + ( + col1 + tab1.col1 ) * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
1140
2496
2808

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1010
SELECT DISTINCT - CAST( 51 AS SIGNED ) + + col2 col1 FROM tab1 cor0
----
3
45
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1010
SELECT DISTINCT - CAST ( 51 AS INTEGER ) + + col2 col1 FROM tab1 cor0
----
3
45
6

query I rowsort
SELECT DISTINCT - - 13 AS col1 FROM tab0 cor0
----
13

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1013
SELECT ALL + CAST( col2 AS SIGNED ) + col0 * - 86 AS col0 FROM tab2 AS cor0
----
-575
-6682
-6756

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + CAST ( col2 AS INTEGER ) + col0 * - 86 AS col0 FROM tab2 AS cor0
----
-575
-6682
-6756

onlyif mysql # use DIV operator for integer division
query I rowsort label-1014
SELECT ALL + 84 + col2 DIV + col1 col0 FROM tab2 AS cor0
----
84
84
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1014
SELECT ALL + 84 + col2 / + col1 col0 FROM tab2 AS cor0
----
84
84
86

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

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

query I rowsort
SELECT + ( 15 ) + col1 * ( col0 ) AS col1 FROM tab2 AS cor0
----
1358
232
4617

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + ( 94 ) col0 FROM tab2
----
1628
740
931

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

query I rowsort
SELECT ALL + col2 * + col1 + ( - col1 ) * col2 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 + 4 AS col1 FROM tab2 cor0
----
-1530
-642
-833

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT - col2 - - 49 DIV + col0 AS col1 FROM tab2 AS cor0
----
-20
-26
-38

skipif mysql # not compatible
query I rowsort label-1024
SELECT - col2 - - 49 / + col0 AS col1 FROM tab2 AS cor0
----
-20
-26
-38

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

query I rowsort
SELECT + cor0.col2 * + col1 + + 38 AS col0 FROM tab0 AS cor0
----
135
2876
7500

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1030
SELECT DISTINCT - - cor0.col2 + + CAST( - 19 + col0 AS SIGNED ) col0 FROM tab1 cor0
----
102
157
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT - - cor0.col2 + + CAST ( - 19 + col0 AS INTEGER ) col0 FROM tab1 cor0
----
102
157
38

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1031
SELECT DISTINCT + + col0 / col2 col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + + col0 + ( 25 + col0 ) * + col0 FROM tab2 AS cor0
----
231
8112
8295

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

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

query I rowsort
SELECT - col1 * + ( - 21 ) FROM tab2 AS cor0
----
1239
357
651

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

query I rowsort
SELECT DISTINCT col2 * - 85 FROM tab1
----
-4590
-4845
-8160

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

query I rowsort
SELECT + 75 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

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

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

query I rowsort
SELECT 27 * col2 + col2 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1042
SELECT - CAST( 17 AS SIGNED ) * - col0 col0 FROM tab0 AS cor0
----
1513
408
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1042
SELECT - CAST ( 17 AS INTEGER ) * - col0 col0 FROM tab0 AS cor0
----
1513
408
595

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

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

query I rowsort
SELECT 24 + + col2 * col1 + 8 * - col2 FROM tab0 AS cor0
----
113
2598
6830

query I rowsort
SELECT - 15 * col2 + - col1 * - ( - col2 * col0 ) AS col0 FROM tab0 AS cor0
----
-3410
-665348
-68607

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1048
SELECT ( + col0 ) DIV - col1 - - col0 AS col0 FROM tab1 AS cor0
----
3
58
74

skipif mysql # not compatible
query I rowsort label-1048
SELECT ( + col0 ) / - col1 - - col0 AS col0 FROM tab1 AS cor0
----
3
58
74

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1050
SELECT + 61 DIV - col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1050
SELECT + 61 / - col0 FROM tab0 AS cor0
----
-1
-2
0

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

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

query I rowsort
SELECT ALL 41 AS col1 FROM tab0 cor0
----
41
41
41

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

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

query I rowsort
SELECT DISTINCT col0 + + 65 AS col2 FROM tab0
----
100
154
89

query I rowsort
SELECT DISTINCT 45 + 10 FROM tab0
----
55

query I rowsort
SELECT - + 90 + col0 * + col2 AS col0 FROM tab2 AS cor0
----
1938
2912
99

query I rowsort
SELECT + cor0.col2 * - 89 FROM tab0 AS cor0
----
-2937
-7298
-89

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

query I rowsort
SELECT DISTINCT + col1 * - col0 * 42 FROM tab1 AS cor0
----
-26880
-3276
-43680

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

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

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

query I rowsort
SELECT - + col0 + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-185
-256
-60

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= ( col0 )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT tab1.col1 + col1 <> col2
----

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

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

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

query I rowsort
SELECT col1 * + col1 + + tab0.col0 * - col1 - - tab0.col0 AS col1 FROM tab0
----
271
5356
6049

query I rowsort
SELECT tab2.col1 + - col1 * - tab2.col1 + + col0 AS col0 FROM tab2
----
3618
385
999

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

query I rowsort
SELECT cor0.col0 * col2 - col1 * col1 FROM tab2 AS cor0
----
-1453
-772
2713

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

query I rowsort
SELECT + col0 * - col0 - - col1 * + col0 * - col1 FROM tab0 AS cor0
----
-178080
-330540
-744930

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col1
----

query III rowsort
SELECT * FROM tab1 WHERE col0 - col0 IN ( col1 * col2 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1079
SELECT ALL - col2 * cor0.col0 + - col2 - + col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-214
-3700
-7769

skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - col2 * cor0.col0 + - col2 - + col2 / - col1 AS col1 FROM tab1 AS cor0
----
-214
-3700
-7769

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

query I rowsort
SELECT - col1 * col1 + - col2 FROM tab2
----
-327
-3507
-988

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT + col0 + col2 DIV - col2 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1084
SELECT + col0 + col2 / - col2 FROM tab0
----
23
34
88

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( col0 * - col1 )
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT ALL col0 + col0 DIV tab1.col0 col0 FROM tab1
----
4
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL col0 + col0 / tab1.col0 col0 FROM tab1
----
4
65
81

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

query I rowsort
SELECT 37 * col1 - col0 * 95 AS col1 FROM tab1 AS cor0
----
-5710
-7119
677

query I rowsort
SELECT DISTINCT - 90 + col1 AS col0 FROM tab1 AS cor0
----
-64
-77
-80

query I rowsort
SELECT ALL + + col0 * + col1 * - ( col1 * col2 ) AS col2 FROM tab0 AS cor0
----
-329315
-5857632
-60434738

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

query I rowsort
SELECT DISTINCT 39 * - cor0.col1 + + col2 FROM tab2 AS cor0
----
-1182
-2275
-625

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1096
SELECT + col1 DIV + col1 + tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
119
35
63

skipif mysql # not compatible
query I rowsort label-1096
SELECT + col1 / + col1 + tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
119
35
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT ALL - col1 * + col1 * - col2 + + col0 DIV col0 AS col2 FROM tab1
----
16225
36505
5701

skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL - col1 * + col1 * - col2 + + col0 / col0 AS col2 FROM tab1
----
16225
36505
5701

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

query I rowsort
SELECT ALL - tab2.col1 + + col1 * col1 FROM tab2
----
272
3422
930

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) < - col2
----

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1103
SELECT DISTINCT + col2 + + col2 DIV - tab2.col0 FROM tab2
----
24
26
38

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + col2 + + col2 / - tab2.col0 FROM tab2
----
24
26
38

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

query I rowsort
SELECT ALL col0 * col1 * - col1 + col2 * - tab1.col1 * - col0 FROM tab1
----
2184
30080
86320

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col2 IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT - col0 + + col2 DIV col1 FROM tab1
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-1110
SELECT - col0 + + col2 / col1 FROM tab1
----
-1
-59
-73

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

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

query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 + ( - 77 ) + - col0 FROM tab1 AS cor0
----
-2
499
883

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

query I rowsort
SELECT ALL + 29 + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1069
107
669

query I rowsort
SELECT - + 82 + + cor0.col0 FROM tab1 AS cor0
----
-18
-2
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col0 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col0 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 09a48fec24dd5ded01e53ec00cd6a7a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 + col1 col2 FROM tab1
----
43
46
59

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

query I rowsort
SELECT ALL + - col2 + col0 + - ( + cor0.col0 ) * - col2 * - col0 AS col2 FROM tab2 AS cor0
----
-1343
-158132
-237117

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT DISTINCT - col1 DIV + col0 + - ( col2 ) * + col0 + - tab2.col1 col1 FROM tab2
----
-2087
-224
-3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT - col1 / + col0 + - ( col2 ) * + col0 + - tab2.col1 col1 FROM tab2
----
-2087
-224
-3019

query I rowsort
SELECT ALL + 41 * - col2 + - 61 + - col1 AS col2 FROM tab0
----
-1500
-199
-3514

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 DISTINCT + col1 * col1 + - col2 AS col2 FROM tab2
----
251
3455
934

query I rowsort
SELECT ALL - col0 * + 5 FROM tab1 AS cor0
----
-15
-320
-400

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

query I rowsort
SELECT DISTINCT + col1 * col0 + col0 * + 48 FROM tab0 AS cor0
----
12371
3216
5075

query I rowsort
SELECT - 99 FROM tab2, tab1 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

query I rowsort
SELECT col0 + col2 * + 58 FROM tab1
----
3135
3370
5648

query I rowsort
SELECT col2 * 64 AS col0 FROM tab1
----
3456
3648
6144

query I rowsort
SELECT col1 * + ( - 29 ) * col1 FROM tab1
----
-19604
-2900
-4901

query I rowsort
SELECT ALL - - col1 * 76 FROM tab0 AS cor0
----
6536
6916
7372

query I rowsort
SELECT + - 26 * 94 FROM tab1 AS cor0
----
-2444
-2444
-2444

query I rowsort
SELECT ALL - 77 * 58 AS col0 FROM tab0 AS cor0
----
-4466
-4466
-4466

onlyif mysql # use DIV operator for integer division
query I rowsort label-1138
SELECT 24 DIV col1 AS col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-1138
SELECT 24 / col1 AS col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - + ( col0 ) + + col2 * 25 * - 13 FROM tab2 AS cor0
----
-12429
-8528
-8782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1140
SELECT CAST( col2 AS SIGNED ) * col2 + + 80 AS col0 FROM tab0
----
1169
6804
81

skipif mysql # not compatible
query I rowsort label-1140
SELECT CAST ( col2 AS INTEGER ) * col2 + + 80 AS col0 FROM tab0
----
1169
6804
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT DISTINCT - ( col1 ) DIV + col1 + - 80 AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT - ( col1 ) / + col1 + - 80 AS col1 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT - 27 * col2 AS col1 FROM tab1 AS cor0
----
-1458
-1539
-2592

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT ALL + 85 * col0 + - col2 * ( - col1 + cor0.col2 ) DIV cor0.col2 col1 FROM tab1 AS cor0
----
227
5393
6717

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1144
SELECT ALL + 85 * col0 + - col2 * ( - col1 + cor0.col2 ) / cor0.col2 col1 FROM tab1 AS cor0
----
227
5393
6717

query I rowsort
SELECT ALL cor0.col0 + 67 AS col1 FROM tab2 AS cor0
----
145
146
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 + col0 col1 FROM tab1 AS cor0
----
-36
-673
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * col1 col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT + + col1 * 13 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-17442
-2790
-59767

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + 79 * + cor0.col1 col2 FROM tab1 AS cor0
----
1107
2057
854

query I rowsort
SELECT 0 * + col1 + col1 * - tab1.col2 * col1 FROM tab1
----
-16224
-36504
-5700

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * col2 AS col1 FROM tab1
----
-2916
-3249
-9216

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

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

query I rowsort
SELECT ALL col0 * 79 AS col2 FROM tab0
----
1896
2765
7031

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT ALL col1 DIV cor0.col0 FROM tab1 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL col1 / cor0.col0 FROM tab1 cor0
----
0
0
8

query I rowsort
SELECT DISTINCT - col2 * ( cor0.col1 ) * - col1 FROM tab1 cor0
----
16224
36504
5700

query I rowsort
SELECT ( 70 ) * col0 * cor0.col2 FROM tab2 cor0
----
13230
141960
210140

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

query I rowsort
SELECT ALL - 45 * + cor0.col0 + + col2 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
-2149
-2860
387

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

skipif mysql # not compatible
query I rowsort label-1163
SELECT col2 / + col0 + - col2 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT col0 * ( + col2 ) + tab0.col1 * - col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT + 94 + col1 AS col2 FROM tab2 AS cor0
----
111
125
153

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

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

query I rowsort
SELECT - col1 + 29 - - 53 FROM tab0 AS cor0
----
-15
-4
-9

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

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

query I rowsort
SELECT DISTINCT + col1 * + col0 + + 79 FROM tab2 cor0
----
1422
296
4681

onlyif mysql # use DIV operator for integer division
query I rowsort label-1171
SELECT - cor0.col1 + ( col2 + + col1 ) DIV - col1 FROM tab2 AS cor0
----
-20
-32
-60

skipif mysql # not compatible
query I rowsort label-1171
SELECT - cor0.col1 + ( col2 + + col1 ) / - col1 FROM tab2 AS cor0
----
-20
-32
-60

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - col1 * - col0 col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT - col1 + - 30 + - 85 AS col2 FROM tab0 AS cor0
----
-201
-206
-212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 97 col1 FROM tab2 AS cor0
----
2522
2619
3686

query I rowsort
SELECT + + 17 * + col1 FROM tab0 AS cor0
----
1462
1547
1649

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT col2 DIV - CAST( col2 * col2 AS SIGNED ) AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1180
SELECT col2 / - CAST ( col2 * col2 AS INTEGER ) AS col1 FROM tab0
----
-1
0
0

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT 46 DIV cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1182
SELECT 46 / cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-1183
SELECT ALL + cor0.col0 DIV + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to db56280efe06500e9255119a3d82e073

skipif mysql # not compatible
query I rowsort label-1183
SELECT ALL + cor0.col0 / + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to db56280efe06500e9255119a3d82e073

onlyif mysql # use DIV operator for integer division
query I rowsort label-1184
SELECT - - col0 * + ( - cor0.col0 ) + + col2 DIV - ( col1 ) AS col1 FROM tab1 AS cor0
----
-11
-4101
-6407

skipif mysql # not compatible
query I rowsort label-1184
SELECT - - col0 * + ( - cor0.col0 ) + + col2 / - ( col1 ) AS col1 FROM tab1 AS cor0
----
-11
-4101
-6407

query I rowsort
SELECT - 57 * - 37 + + col0 * + ( - col2 ) * - col1 FROM tab1 AS cor0
----
101949
38589
6321

query I rowsort
SELECT - - 6 * col2 + col0 AS col1 FROM tab1 cor0
----
327
406
656

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

query I rowsort
SELECT - - 27 + - col1 FROM tab0 AS cor0
----
-59
-64
-70

query I rowsort
SELECT ALL - col0 + 97 * - col0 * ( col0 ) FROM tab1 cor0
----
-397376
-620880
-876

query I rowsort
SELECT 62 * + 73 FROM tab0 AS cor0
----
4526
4526
4526

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 33 * - col1 col0 FROM tab2 AS cor0
----
-1023
-1947
-561

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

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

query I rowsort
SELECT ALL - col2 * - col2 + - col2 * + col0 FROM tab1 cor0
----
-399
1536
2754

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

skipif mysql # not compatible
query I rowsort label-1195
SELECT - + CAST ( col0 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
-19
-62
24

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

query I rowsort
SELECT 57 * + cor0.col0 FROM tab2 AS cor0
----
399
4446
4503

query I rowsort
SELECT - cor2.col0 * - 72 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 708029b93651262d0fd3e762efc179fb

query I rowsort
SELECT + cor0.col0 + 24 * + 49 FROM tab0 AS cor0
----
1200
1211
1265

query I rowsort
SELECT 81 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 + + CAST ( col1 AS REAL ) + col1 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + col2 + + 38 FROM tab0 AS cor0
----
120
39
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 41 col0 FROM tab2 AS cor0
----
-287
-3198
-3239

onlyif mysql # use DIV operator for integer division
query I rowsort label-1206
SELECT DISTINCT + col1 + + ( - cor0.col2 ) DIV col0 + - col1 * 4 col1 FROM tab0 AS cor0
----
-259
-273
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1206
SELECT DISTINCT + col1 + + ( - cor0.col2 ) / col0 + - col1 * 4 col1 FROM tab0 AS cor0
----
-259
-273
-291

query I rowsort
SELECT - col0 * - 49 FROM tab2 AS cor0
----
343
3822
3871

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

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

query I rowsort
SELECT tab1.col2 * col1 + + 59 * col1 FROM tab1
----
1160
2015
2938

query I rowsort
SELECT DISTINCT cor0.col1 * 45 AS col2 FROM tab0 cor0
----
3870
4095
4365

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1213
SELECT + + CAST( col2 AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1213
SELECT + + CAST ( col2 AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 8 col1 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT DISTINCT - - 44 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1387
261
4646

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

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

query I rowsort
SELECT DISTINCT - ( - col1 + 16 ) FROM tab0
----
70
75
81

query I rowsort
SELECT 84 * + col0 * + tab1.col0 FROM tab1
----
344064
537600
756

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + col2 * col0 col1 FROM tab0
----
-6604
-9374
-983

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

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

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

query I rowsort
SELECT - 15 + - 41 FROM tab0
----
-56
-56
-56

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

query I rowsort
SELECT ALL col0 + - col1 + col2 * cor0.col0 AS col0 FROM tab0 cor0
----
-27
7296
730

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

query I rowsort
SELECT ALL + 20 + col1 FROM tab0 AS cor0
----
106
111
117

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

query I rowsort
SELECT ALL - 55 * col0 * col0 AS col0 FROM tab1 AS cor0
----
-225280
-352000
-495

query I rowsort
SELECT - 14 * + cor0.col1 AS col1 FROM tab1 cor0
----
-140
-182
-364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * 43 + col2 + 75 FROM tab1 AS cor0
----
1247
562
730

query I rowsort
SELECT DISTINCT + col1 * 88 FROM tab0 AS cor0
----
7568
8008
8536

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) - col2 col0 FROM tab2 AS cor0
----
-20
41
52

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

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

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

query I rowsort
SELECT 20 * col0 * col0 FROM tab1 AS cor0
----
128000
180
81920

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

query I rowsort
SELECT ALL - 42 + + col2 * ( col2 ) + cor0.col0 * + 35 FROM tab2 cor0
----
3364
4167
932

query I rowsort
SELECT DISTINCT - col2 * 49 FROM tab0 cor0
----
-1617
-4018
-49

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

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

query I rowsort
SELECT DISTINCT - col2 + 42 * + 85 + + col1 FROM tab1 AS cor0
----
3487
3523
3542

query I rowsort
SELECT + col2 + 29 * - col1 * col1 AS col0 FROM tab1
----
-19550
-2843
-4805

query I rowsort
SELECT ALL + col2 * cor0.col2 * col0 AS col1 FROM tab0 cor0
----
26136
35
598436

query I rowsort
SELECT + 39 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 27777aa64a5558a690b2738e24f7749f

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

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

query I rowsort
SELECT col2 * - 41 FROM tab0 AS cor0
----
-1353
-3362
-41

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

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

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

query I rowsort
SELECT col0 + + 55 * col2 FROM tab2 AS cor0
----
1492
1508
2169

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

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

query I rowsort
SELECT 81 + 90 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 4614b86556cf7855e8bae5fd04fe40a9

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

query I rowsort
SELECT DISTINCT + col0 * - ( - 22 ) AS col0 FROM tab1
----
1408
1760
66

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

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

skipif mysql # not compatible
query I rowsort label-1259
SELECT - CAST ( - 58 AS INTEGER ) AS col0 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT ALL + col0 * - col1 * - ( - col1 ) AS col1 FROM tab2
----
-22831
-271518
-6727

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

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

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

query I rowsort
SELECT ALL cor0.col1 + 97 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 934d50e2e9b15283f7d4413c56535f10

query I rowsort
SELECT ALL 80 + - col0 * + col1 AS col2 FROM tab2
----
-1263
-137
-4522

query I rowsort
SELECT + cor0.col2 * + ( col0 ) + col1 * 32 FROM tab1 AS cor0
----
3968
8096
994

onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT ALL col2 DIV col0 + col0 AS col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL col2 / col0 + col0 AS col0 FROM tab2
----
10
78
79

query I rowsort
SELECT + tab0.col2 + col1 * + 24 + - 98 * - col2 * - col0 FROM tab0
----
-1101
-712938
-75519

query I rowsort
SELECT DISTINCT col1 + col1 * - ( col0 ) + col2 * - 50 FROM tab1 cor0
----
-2752
-3480
-5827

query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT ALL - + col0 + cor0.col1 * 92 FROM tab1 AS cor0
----
1116
2389
856

query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 * - col1 - - 46 AS col2 FROM tab1 AS cor0
----
-1033
-424
-682

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

query I rowsort
SELECT DISTINCT - col0 + - 84 FROM tab2 cor0
----
-162
-163
-91

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

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

query I rowsort
SELECT - + col1 * + 11 + col1 * col1 * + ( - 31 ) AS col1 FROM tab2 AS cor0
----
-108560
-30132
-9146

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

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

query I rowsort
SELECT + col2 * 34 + + col1 - + col0 FROM tab2 AS cor0
----
1230
865
942

onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT - - cor0.col1 + - 23 DIV 52 - + col2 DIV + ( - 13 ) FROM tab0 AS cor0
----
88
97
97

skipif mysql # not compatible
query I rowsort label-1278
SELECT - - cor0.col1 + - 23 / 52 - + col2 / + ( - 13 ) FROM tab0 AS cor0
----
88
97
97

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1281
SELECT col0 * col0 DIV + col1 - + ( - col0 + - col0 ) AS col2 FROM tab2
----
15
259
525

skipif mysql # not compatible
query I rowsort label-1281
SELECT col0 * col0 / + col1 - + ( - col0 + - col0 ) AS col2 FROM tab2
----
15
259
525

query I rowsort
SELECT - 80 + + 73 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT + 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT - 31 * + col0 FROM tab2 AS cor0
----
-217
-2418
-2449

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

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

query I rowsort
SELECT DISTINCT + + col1 + col0 * - col0 + + 6 AS col2 FROM tab0 AS cor0
----
-1122
-484
-7824

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

query I rowsort
SELECT - 47 * cor0.col2 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 5d70f2b6f4869e3f55e958dbcf3486b6

query I rowsort
SELECT ALL - col2 * 85 FROM tab1
----
-4590
-4845
-8160

query I rowsort
SELECT - col1 + + 52 * - cor0.col2 FROM tab0 AS cor0
----
-149
-1802
-4355

query I rowsort
SELECT + - cor0.col0 * 20 + 91 FROM tab0 cor0
----
-1689
-389
-609

onlyif mysql # use DIV operator for integer division
query I rowsort label-1292
SELECT col0 * - 28 + - col1 DIV col1 FROM tab2 cor0
----
-197
-2185
-2213

skipif mysql # not compatible
query I rowsort label-1292
SELECT col0 * - 28 + - col1 / col1 FROM tab2 cor0
----
-197
-2185
-2213

query I rowsort
SELECT + col1 * 53 + + col0 AS col1 FROM tab0 AS cor0
----
4582
4912
5176

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 52 AS REAL ) + - col0 FROM tab0 AS cor0
----
-37
17
28

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

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

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

skipif mysql # not compatible
query I rowsort label-1297
SELECT CAST ( col0 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT - col2 DIV + 16 + col2 * - col0 FROM tab0 AS cor0
----
-35
-7303
-794

skipif mysql # not compatible
query I rowsort label-1299
SELECT - col2 / + 16 + col2 * - col0 FROM tab0 AS cor0
----
-35
-7303
-794

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

query I rowsort
SELECT ALL + col1 * 30 + col1 * - col2 FROM tab0 cor0
----
-258
-4732
2813

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col1 col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + - cor0.col0 + 98 * - col0 * col2 FROM tab0 AS cor0
----
-3465
-715293
-77640

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

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

query I rowsort
SELECT ALL - col1 * 96 AS col0 FROM tab0 cor0
----
-8256
-8736
-9312

query I rowsort
SELECT ALL col0 * - 57 AS col1 FROM tab2 AS cor0
----
-399
-4446
-4503

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + col1 AS REAL ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - - col2 * 95 FROM tab0 AS cor0
----
3135
7790
95

query I rowsort
SELECT + 50 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
6134
6291
99

query I rowsort
SELECT - ( - 67 ) + + cor0.col2 FROM tab0 AS cor0
----
100
149
68

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

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

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

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

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

query I rowsort
SELECT + col2 * cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - ( ( col0 ) ) + + ( + 77 + col2 ) * col1 col0 FROM tab2 AS cor0
----
1475
3007
612

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

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

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

query I rowsort
SELECT DISTINCT col1 * col0 + + 50 FROM tab2 AS cor0
----
1393
267
4652

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

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

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

skipif mysql # not compatible
query I rowsort label-1324
SELECT DISTINCT + col2 / + ( col1 ) FROM tab1
----
2
5
7

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT - col1 * - 40 + - col2 DIV col1 AS col1 FROM tab2 cor0
----
1240
2360
678

skipif mysql # not compatible
query I rowsort label-1326
SELECT - col1 * - 40 + - col2 / col1 AS col1 FROM tab2 cor0
----
1240
2360
678

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

query I rowsort
SELECT ALL 94 + - col2 FROM tab2
----
56
67
68

query I rowsort
SELECT - ( col2 ) * - tab1.col1 + - 83 * - tab1.col2 AS col1 FROM tab1
----
5301
5886
9216

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

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL + col2 / cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-85
-90
-96

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

query I rowsort
SELECT ALL - 46 * + col1 + - col0 * col0 + col2 FROM tab1 AS cor0
----
-1151
-4499
-6902

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

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT + 83 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

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

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

query I rowsort
SELECT DISTINCT + col0 * 3 AS col0 FROM tab0 AS cor0
----
105
267
72

query I rowsort
SELECT DISTINCT cor0.col2 + - 46 FROM tab2, tab2 cor0, tab1 AS cor1
----
-19
-20
-8

query I rowsort
SELECT - col2 * tab0.col0 + col0 * col0 AS col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT ALL col0 * - col0 * tab0.col1 + + ( - col2 ) * col0 AS col0 FROM tab0
----
-118860
-50328
-728109

query I rowsort
SELECT + 50 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL - + col0 + + 15 FROM tab2 AS cor0
----
-63
-64
8

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

query I rowsort
SELECT - 1 + - col0 FROM tab0 AS cor0
----
-25
-36
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT + 16 DIV + col1 - + col2 * 21 AS col2 FROM tab0 AS cor0
----
-1722
-21
-693

skipif mysql # not compatible
query I rowsort label-1346
SELECT + 16 / + col1 - + col2 * 21 AS col2 FROM tab0 AS cor0
----
-1722
-21
-693

query I rowsort
SELECT DISTINCT + cor0.col2 * 64 + col0 FROM tab0 AS cor0
----
2136
5337
99

query I rowsort
SELECT ALL + col0 * + 76 - + col1 FROM tab0 AS cor0
----
1738
2563
6673

onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT + ( - 37 ) * col2 + col1 DIV - 95 FROM tab2 AS cor0
----
-1406
-962
-999

skipif mysql # not compatible
query I rowsort label-1349
SELECT + ( - 37 ) * col2 + col1 / - 95 FROM tab2 AS cor0
----
-1406
-962
-999

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

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

query I rowsort
SELECT DISTINCT + 32 + col2 * + ( 54 ) AS col0 FROM tab1 AS cor0
----
2948
3110
5216

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT - - col0 * col0 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-1355
SELECT - - col0 * col0 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
4095
6399
8

query I rowsort
SELECT ALL - + cor0.col1 + col0 + col0 AS col0 FROM tab0 AS cor0
----
-27
-38
87

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

query I rowsort
SELECT ( col0 ) * - 19 + ( + col2 + 15 ) FROM tab0 AS cor0
----
-1594
-408
-649

query I rowsort
SELECT ALL - - 79 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
4266
4503
7584

query I rowsort
SELECT DISTINCT - 62 * col0 FROM tab2 cor0
----
-434
-4836
-4898

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

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

query I rowsort
SELECT - ( + 22 ) * col0 + - tab0.col2 + + ( + col2 ) AS col0 FROM tab0
----
-1958
-528
-770

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1365
SELECT + 1 * cor0.col1 DIV + 68 - - 17 * + col2 * - ( col0 ) FROM tab0 AS cor0
----
-124065
-13463
-594

skipif mysql # not compatible
query I rowsort label-1365
SELECT + 1 * cor0.col1 / + 68 - - 17 * + col2 * - ( col0 ) FROM tab0 AS cor0
----
-124065
-13463
-594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 * col1 - - 18 col0 FROM tab0 AS cor0
----
-6260
-6625
-7063

query I rowsort
SELECT col1 + col0 - - col0 AS col0 FROM tab0 AS cor0
----
134
167
269

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

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

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

query I rowsort
SELECT - ( 35 ) AS col0 FROM tab1 AS cor0
----
-35
-35
-35

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT col1 + + col0 DIV ( + tab1.col1 ) col0 FROM tab1
----
16
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1373
SELECT col1 + + col0 / ( + tab1.col1 ) col0 FROM tab1
----
16
19
26

query I rowsort
SELECT DISTINCT col1 * 70 FROM tab0
----
6020
6370
6790

onlyif mysql # use DIV operator for integer division
query I rowsort label-1375
SELECT - col1 DIV col0 + 98 col0 FROM tab2
----
94
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1375
SELECT - col1 / col0 + 98 col0 FROM tab2
----
94
98
98

query I rowsort
SELECT - col0 + ( tab2.col1 ) * - col0 FROM tab2
----
-1422
-224
-4680

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

query I rowsort
SELECT - 26 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1379
SELECT + col0 / cor0.col2 col1 FROM tab0 AS cor0
----
0
1
35

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

query I rowsort
SELECT DISTINCT 24 * - col0 AS col0 FROM tab2 AS cor0
----
-168
-1872
-1896

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + ( col1 ) * + col2 + col1 / col1 col2 FROM tab0 cor0
----
2839
7463
98

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

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

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 ALL - col2 * col1 * - col0 AS col1 FROM tab2
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT - 92 DIV 9 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-1387
SELECT - 92 / 9 FROM tab2
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col2 + - col0 * + col1 col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

query I rowsort
SELECT DISTINCT - 78 * + col2 FROM tab0 AS cor0
----
-2574
-6396
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * cor0.col0 + - cor0.col1 col2 FROM tab0 AS cor0
----
113
443
58

query I rowsort
SELECT ALL + 82 + col2 AS col0 FROM tab1 AS cor0
----
136
139
178

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

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

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

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

query I rowsort
SELECT + 84 * 29 AS col1 FROM tab2
----
2436
2436
2436

query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab1
----
-53

query I rowsort
SELECT ( + 6 + tab1.col0 ) FROM tab1
----
70
86
9

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

skipif mysql # not compatible
query I rowsort label-1398
SELECT CAST ( NULL AS INTEGER ) - tab1.col2 FROM tab1
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * ( + col2 ) col0 FROM tab0
----
-1419
-3526
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 83 col0 FROM tab0
----
2739
6806
83

query I rowsort
SELECT DISTINCT ( - col1 ) + col1 * - col1 + col1 * col2 FROM tab0
----
-4644
-910
-9409

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

query I rowsort
SELECT 35 * tab2.col2 FROM tab2
----
1330
910
945

query I rowsort
SELECT 4 + col2 AS col0 FROM tab2 AS cor0
----
30
31
42

query I rowsort
SELECT - - 58 + col1 FROM tab2 AS cor0
----
117
75
89

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

query I rowsort
SELECT - 59 * col1 FROM tab0 AS cor0
----
-5074
-5369
-5723

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

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

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

query I rowsort
SELECT tab1.col1 * col1 * col1 + col0 + col0 AS col1 FROM tab1
----
1128
17582
2357

query I rowsort
SELECT - col2 * tab0.col2 * - col0 AS col2 FROM tab0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + + col0 + + tab0.col1 col0 FROM tab0
----
196
229
271

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

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 - - col2 * - col2 * col0 FROM tab2 AS cor0
----
-114038
-5076
-52702

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

query I rowsort
SELECT + col1 + col1 + col1 AS col2 FROM tab2
----
177
51
93

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + col0 + col0 )
----

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

query I rowsort
SELECT DISTINCT + col0 + - col1 + col0 AS col0 FROM tab1
----
-20
118
147

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col2 * + tab0.col0 )
----

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col2 * - col0 * col1 + col1 AS col0 FROM tab1
----
-36470
-4186
-99827

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

query I rowsort
SELECT - tab1.col2 * tab1.col1 + col1 * - col1 FROM tab1
----
-1417
-2080
-670

query III rowsort
SELECT * FROM tab2 WHERE + col2 * col2 * + col2 <> ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * col0 col1 FROM tab1 AS cor0
----
-4086
-6387
17

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 * + col0 * cor0.col2 col0 FROM tab2 AS cor0
----
1350
158210
237196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * col1 * col1 col2 FROM tab2 AS cor0
----
-205320
-29760
-4896

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1444
SELECT DISTINCT col0 DIV col0 + - col1 * col1 FROM tab1 AS cor0
----
-168
-675
-99

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT col0 / col0 + - col1 * col1 FROM tab1 AS cor0
----
-168
-675
-99

query I rowsort
SELECT ALL col0 * + cor0.col2 - col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
14596
1584
70

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

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

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

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

query I rowsort
SELECT - - col1 + + col1 - col2 FROM tab0 cor0
----
100
139
193

query I rowsort
SELECT - col2 * col1 * col0 + col2 + - col1 AS col0 FROM tab1 cor0
----
-36433
-4184
-99757

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

query I rowsort
SELECT ALL - 89 * + col2 AS col0 FROM tab0 AS cor0
----
-2937
-7298
-89

query I rowsort
SELECT ALL + + ( - 32 ) * - col2 FROM tab1 AS cor0
----
1728
1824
3072

query I rowsort
SELECT col1 + 53 AS col2 FROM tab0 AS cor0
----
139
144
150

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT 42 + cor0.col2 DIV + cor0.col0 AS col2 FROM tab0 AS cor0
----
42
42
43

skipif mysql # not compatible
query I rowsort label-1456
SELECT 42 + cor0.col2 / + cor0.col0 AS col2 FROM tab0 AS cor0
----
42
42
43

query I rowsort
SELECT - col2 + 22 * col2 FROM tab0
----
1722
21
693

query I rowsort
SELECT - ( 88 ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

query I rowsort
SELECT ALL - col1 + col0 * + ( + col0 ) AS col1 FROM tab2
----
18
6025
6224

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

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

query I rowsort
SELECT - 63 * 9 FROM tab1, tab0 AS cor0
----
9 values hashing to e11dc7b02a8d9b10f4b5769c238e5f98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 16 col1 FROM tab1 AS cor0
----
-13
48
64

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

query I rowsort
SELECT ALL 17 + col0 FROM tab1 AS cor0
----
20
81
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1467
SELECT ( - col2 ) DIV + col1 + - 57 * 25 AS col0 FROM tab0 AS cor0
----
-1425
-1425
-1425

skipif mysql # not compatible
query I rowsort label-1467
SELECT ( - col2 ) / + col1 + - 57 * 25 AS col0 FROM tab0 AS cor0
----
-1425
-1425
-1425

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

query I rowsort
SELECT col0 * 93 AS col0 FROM tab2
----
651
7254
7347

query I rowsort
SELECT ALL ( - 90 ) * - col2 * col1 AS col0 FROM tab2
----
138060
58140
75330

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) + 37 * + col0 col0 FROM tab0 AS cor0
----
1260
3204
864

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1474
SELECT DISTINCT cor0.col2 DIV ( + 81 ) + col2 AS col0 FROM tab1 cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT cor0.col2 / ( + 81 ) + col2 AS col0 FROM tab1 cor0
----
54
57
97

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

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

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

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

query I rowsort
SELECT ALL - col2 + col0 * 62 AS col0 FROM tab1 AS cor0
----
132
3911
4864

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

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

query I rowsort
SELECT + col0 * col1 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
16198
4128
6790

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

query I rowsort
SELECT ( + 20 ) - col1 FROM tab0 cor0
----
-66
-71
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1484
SELECT ALL col0 * tab1.col2 DIV col0 - col1 * col2 FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL col0 * tab1.col2 / col0 - col1 * col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT + + col1 + 12 * - col1 FROM tab0 AS cor0
----
-1001
-1067
-946

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

query I rowsort
SELECT - cor0.col2 + ( col1 ) * col2 - col0 FROM tab0 AS cor0
----
2781
61
7291

query I rowsort
SELECT + 67 + 63 * col1 AS col0 FROM tab2 AS cor0
----
1138
2020
3784

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

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

query I rowsort
SELECT - - 41 * - col2 * - col1 + ( col1 ) FROM tab1 AS cor0
----
23380
51181
57590

query I rowsort
SELECT cor0.col2 * col2 * col2 AS col1 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT + 42 + col2 AS col1 FROM tab1 AS cor0
----
138
96
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT col0 * + tab1.col0 + col2 DIV + col2 FROM tab1
----
10
4097
6401

skipif mysql # not compatible
query I rowsort label-1493
SELECT col0 * + tab1.col0 + col2 / + col2 FROM tab1
----
10
4097
6401

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

skipif mysql # not compatible
query I rowsort label-1494
SELECT + col2 * - CAST ( - 75 AS INTEGER ) FROM tab2 AS cor0
----
1950
2025
2850

query I rowsort
SELECT ALL + 29 * + tab2.col2 AS col0 FROM tab2
----
1102
754
783

query I rowsort
SELECT 64 + + col0 AS col1 FROM tab2
----
142
143
71

query I rowsort
SELECT DISTINCT - tab1.col2 * col1 + - 35 + + ( - tab1.col2 ) * - ( + col2 ) AS col2 FROM tab1
----
1477
2644
7933

query I rowsort
SELECT - - 64 + - col1 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2128
3459
8163

query I rowsort
SELECT ALL + 15 * col2 FROM tab1 AS cor0
----
1440
810
855

query I rowsort
SELECT + col1 * - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374

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

query I rowsort
SELECT ALL + col2 + 56 * + col2 FROM tab2 cor0
----
1482
1539
2166

query I rowsort
SELECT DISTINCT - cor0.col2 * 76 - 5 FROM tab2 cor0
----
-1981
-2057
-2893

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

skipif mysql # not compatible
query I rowsort label-1504
SELECT DISTINCT - col0 * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - cor0.col2 * + 19 + + 0 * + col2 AS col1 FROM tab2 AS cor0
----
-494
-513
-722

query I rowsort
SELECT - + col1 + col2 * - 86 FROM tab2 AS cor0
----
-2295
-2353
-3285

query I rowsort
SELECT DISTINCT + 67 * + cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
201
4288
5360

query I rowsort
SELECT - col2 * tab1.col2 + + ( col0 ) * col2 AS col1 FROM tab1
----
-1536
-2754
399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 13 col2 FROM tab2 AS cor0
----
-1014
-1027
-91

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

query I rowsort
SELECT ALL 77 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL + 95 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + - col1 * - 97 AS col1 FROM tab0 AS cor0
----
8342
8827
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1514
SELECT + + col1 * - cor0.col2 - + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96

skipif mysql # not compatible
query I rowsort label-1514
SELECT + + col1 * - cor0.col2 - + col0 / - col0 AS col2 FROM tab0 AS cor0
----
-2837
-7461
-96

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1517
SELECT ALL col0 * col1 DIV - col0 - tab1.col0 * col2 * - col2 FROM tab1
----
207926
737267
8722

skipif mysql # not compatible
query I rowsort label-1517
SELECT ALL col0 * col1 / - col0 - tab1.col0 * col2 * - col2 FROM tab1
----
207926
737267
8722

query I rowsort
SELECT ALL 25 * cor0.col1 + col2 * cor0.col0 FROM tab2 cor0
----
3427
3503
964

onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT col0 DIV - col0 + + 58 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1507
1565
2203

skipif mysql # not compatible
query I rowsort label-1519
SELECT col0 / - col0 + + 58 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1507
1565
2203

query I rowsort
SELECT ALL 65 + col1 * + col2 FROM tab1 AS cor0
----
1313
1469
635

query I rowsort
SELECT ALL - + col0 * col2 * cor0.col1 + - col1 AS col0 FROM tab2 cor0
----
-119711
-51051
-5890

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

query I rowsort
SELECT ALL + col0 + + col0 * ( - 12 ) + col0 FROM tab1 AS cor0
----
-30
-640
-800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1524
SELECT - CAST( - 9 AS SIGNED ) + tab1.col1 FROM tab1
----
19
22
35

skipif mysql # not compatible
query I rowsort label-1524
SELECT - CAST ( - 9 AS INTEGER ) + tab1.col1 FROM tab1
----
19
22
35

query I rowsort
SELECT - 54 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 440ee4bea4c39df49899f4a4d88059fe

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + 67 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 243bcbbd06c49366dbe4a52c66de2a1d

query I rowsort
SELECT 24 * + col1 - - col0 FROM tab0
----
2088
2273
2363

query I rowsort
SELECT DISTINCT - + 12 * cor0.col0 FROM tab2 AS cor0
----
-84
-936
-948

query I rowsort
SELECT DISTINCT col0 * - col1 * 91 AS col0 FROM tab0 cor0
----
-187824
-308945
-737009

query I rowsort
SELECT - col2 + + col1 * + 92 + col0 FROM tab1 AS cor0
----
1180
2341
927

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 22 * + col0 col0 FROM tab2 AS cor0
----
154
1716
1738

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

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

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

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

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

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

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

query I rowsort
SELECT 69 * 70 FROM tab1 cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
81 values hashing to d924369add51ec17e91f0122476b1570

query I rowsort
SELECT ALL - cor0.col1 * 90 FROM tab0 AS cor0
----
-7740
-8190
-8730

query I rowsort
SELECT DISTINCT - 18 * - col1 + - col1 * - 15 * - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-19822
-2666
-67909

query I rowsort
SELECT + + col0 * 43 FROM tab2 AS cor0
----
301
3354
3397

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

query I rowsort
SELECT DISTINCT - - col1 + + 29 AS col0 FROM tab1 AS cor0
----
39
42
55

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

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

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

query I rowsort
SELECT col2 * 79 AS col1 FROM tab1 AS cor0
----
4266
4503
7584

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

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

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

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT col2 / col2 + + col0 FROM tab1 AS cor0
----
4
65
81

query I rowsort
SELECT DISTINCT - col1 * ( - col0 * - col0 ) AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200

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

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

skipif mysql # not compatible
query I rowsort label-1553
SELECT + CAST ( - 89 AS INTEGER ) * col0 - ( col1 ) AS col0 FROM tab1 cor0
----
-293
-5706
-7133

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

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

query I rowsort
SELECT + 77 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

query I rowsort
SELECT - - 13 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1547
659
850

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT col1 / + col2 IN ( - col1 )
----
24
35
89

query I rowsort
SELECT col2 + col2 * + tab0.col1 + col2 FROM tab0
----
2904
7626
99

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * col2
----

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

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

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

query I rowsort
SELECT ALL + 56 * col1 FROM tab2
----
1736
3304
952

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

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

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

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

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

query I rowsort
SELECT - 74 * col1 * col0 FROM tab1
----
-47360
-5772
-76960

query I rowsort
SELECT col1 * 72 AS col0 FROM tab1
----
1872
720
936

query I rowsort
SELECT ALL 79 - - ( col1 * ( col1 ) ) AS col2 FROM tab2 AS cor0
----
1040
3560
368

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

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

query I rowsort
SELECT ALL + 31 AS col1 FROM tab1
----
31
31
31

query I rowsort
SELECT ALL - ( 39 ) AS col1 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT 83 * 18 * cor0.col2 + ( 95 ) FROM tab1 cor0
----
143519
80771
85253

query I rowsort
SELECT DISTINCT - - 89 * col0 FROM tab2 AS cor0
----
623
6942
7031

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT DISTINCT - 52 DIV col2 - - col1 FROM tab0 AS cor0
----
45
85
91

skipif mysql # not compatible
query I rowsort label-1583
SELECT DISTINCT - 52 / col2 - - col1 FROM tab0 AS cor0
----
45
85
91

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT ALL + col1 DIV col1 + - col2 * ( 99 + cor0.col1 ) FROM tab0 AS cor0
----
-15579
-195
-6104

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL + col1 / col1 + - col2 * ( 99 + cor0.col1 ) FROM tab0 AS cor0
----
-15579
-195
-6104

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

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

skipif mysql # not compatible
query I rowsort label-1587
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0, tab2 cor1
----
NULL

query I rowsort
SELECT 26 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - tab0.col0 * + 4 * 85 + - tab0.col0 AS col2 FROM tab0
----
-11935
-30349
-8184

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

query I rowsort
SELECT - 62 + - 73 * + col1 FROM tab0
----
-6340
-6705
-7143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT - ( + col2 ) + + cor0.col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-1593
SELECT - ( + col2 ) + + cor0.col2 / - col2 AS col1 FROM tab0 AS cor0
----
-2
-34
-83

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL + tab2.col2 / col0 + col2 FROM tab2
----
26
30
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT 91 + - col1 DIV col0 - + col2 * + 1 FROM tab0 AS cor0
----
55
8
88

skipif mysql # not compatible
query I rowsort label-1595
SELECT 91 + - col1 / col0 - + col2 * + 1 FROM tab0 AS cor0
----
55
8
88

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

query I rowsort
SELECT - 86 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT ALL + - 79 * col2 + cor0.col1 FROM tab0 AS cor0
----
-2521
-6387
18

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

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

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

query I rowsort
SELECT DISTINCT + ( 28 ) + + col1 FROM tab1 AS cor0
----
38
41
54

onlyif mysql # use DIV operator for integer division
query I rowsort label-1602
SELECT DISTINCT col2 DIV + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-1602
SELECT DISTINCT col2 / + cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT - + col2 + + ( + col0 * 18 + - col2 ) AS col2 FROM tab2 AS cor0
----
1346
1352
72

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

skipif mysql # not compatible
query I rowsort label-1604
SELECT + CAST ( NULL AS REAL ) / - 46 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 29 * - col2 AS col0 FROM tab0 cor0
----
2378
29
957

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 - + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( col0 ) + col1 col0 FROM tab2 AS cor0
----
-1326
-186
-4543

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

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

query I rowsort
SELECT ALL - cor0.col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203

query I rowsort
SELECT DISTINCT - col0 * 34 - col1 FROM tab2 cor0
----
-269
-2703
-2711

query I rowsort
SELECT col0 - + col0 * + 64 FROM tab2
----
-441
-4914
-4977

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62

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

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

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

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

query I rowsort
SELECT + 94 * col0 AS col0 FROM tab1 AS cor0
----
282
6016
7520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col2 ) * col1 col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT DISTINCT - col2 DIV + col1 + - ( 34 ) * col0 FROM tab1 AS cor0
----
-104
-2181
-2727

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT - col2 / + col1 + - ( 34 ) * col0 FROM tab1 AS cor0
----
-104
-2181
-2727

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - ( + col1 ) + - CAST ( col1 AS REAL ) col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT + 23 * + col1 + col1 AS col0 FROM tab1 AS cor0
----
240
312
624

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

query I rowsort
SELECT ALL 48 + - col0 FROM tab1 AS cor0
----
-16
-32
45

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

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

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

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

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

query I rowsort
SELECT ALL 67 * - col1 FROM tab0 AS cor0
----
-5762
-6097
-6499

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

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

skipif mysql # not compatible
query I rowsort label-1640
SELECT - col1 / col1 + + 47 / + col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col0 + 43 * col2 FROM tab0
----
1443
3615
78

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT - ( - col1 ) * - col0 + - ( col1 ) DIV - col0 AS col2 FROM tab0
----
-2061
-3393
-8098

skipif mysql # not compatible
query I rowsort label-1643
SELECT - ( - col1 ) * - col0 + - ( col1 ) / - col0 AS col2 FROM tab0
----
-2061
-3393
-8098

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

query I rowsort
SELECT DISTINCT + + 97 * col2 + - ( - col2 ) FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT + + 94 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
94

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT ALL col2 * - cor0.col2 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL col2 * - cor0.col2 / col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - 6 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

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

query I rowsort
SELECT + + cor0.col2 * 55 + 0 FROM tab0 AS cor0
----
1815
4510
55

query I rowsort
SELECT ALL - col1 * + 67 AS col0 FROM tab0 cor0
----
-5762
-6097
-6499

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

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

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

query I rowsort
SELECT 14 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
238
434
826

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

query I rowsort
SELECT col0 + + 37 + col1 FROM tab2 AS cor0
----
133
174
75

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

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

query I rowsort
SELECT - 26 + cor0.col1 FROM tab0 AS cor0
----
60
65
71

query I rowsort
SELECT col2 * ( + col1 + ( - col2 ) ) * col1 AS col0 FROM tab2 AS cor0
----
-13566
3348
50622

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

query I rowsort
SELECT + + col0 * + col0 + col0 * 74 * 2 FROM tab0 cor0
----
21093
4128
6405

query I rowsort
SELECT DISTINCT + + 81 + - col0 FROM tab2 AS cor0
----
2
3
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-1667
SELECT ALL 71 DIV 82 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1667
SELECT ALL 71 / 82 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col1 + 76 AS col1 FROM tab0
----
-10
-15
-21

query I rowsort
SELECT ALL - - col2 + col2 * - col0 FROM tab2 AS cor0
----
-162
-2002
-2964

onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT ALL col2 - + col1 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL col2 - + col1 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT - col0 * - col2 * 40 FROM tab2 AS cor0
----
120080
7560
81120

query I rowsort
SELECT + col2 - - col1 * + col1 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT DISTINCT col2 * ( ( tab1.col0 ) ) DIV col1 FROM tab1
----
364
590
6

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT col2 * ( ( tab1.col0 ) ) / col1 FROM tab1
----
364
590
6

query I rowsort
SELECT col2 * 94 AS col2 FROM tab0
----
3102
7708
94

query I rowsort
SELECT DISTINCT + 9 AS col1 FROM tab1, tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - col2 * + cor0.col2 col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1677
SELECT + col2 * - col1 DIV - col1 AS col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-1677
SELECT + col2 * - col1 / - col1 AS col1 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1678
SELECT col1 DIV col2 + + 50 FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-1678
SELECT col1 / col2 + + 50 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT + col2 * + 10 + col2 FROM tab1 AS cor0
----
1056
594
627

query I rowsort
SELECT + 93 * col0 AS col2 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT - + ( + cor0.col1 ) + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT + ( col0 ) + 85 FROM tab2 AS cor0
----
163
164
92

query I rowsort
SELECT col1 - col0 * 84 AS col1 FROM tab0
----
-1930
-2843
-7385

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT col1 - + col1 DIV ( - col1 + + tab0.col0 ) FROM tab0
----
136
87
98

skipif mysql # not compatible
query I rowsort label-1684
SELECT col1 - + col1 / ( - col1 + + tab0.col0 ) FROM tab0
----
136
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT col1 DIV - col0 + col0 * ( - col0 * 72 ) + col1 AS col1 FROM tab1
----
-294902
-460787
-630

skipif mysql # not compatible
query I rowsort label-1685
SELECT col1 / - col0 + col0 * ( - col0 * 72 ) + col1 AS col1 FROM tab1
----
-294902
-460787
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 col0 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT cor0.col1 + ( - tab0.col2 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 01fd1afbe3d10d148c21df449f74d57c

query I rowsort
SELECT ALL col0 + tab0.col0 AS col0 FROM tab0
----
178
48
70

query I rowsort
SELECT ALL - + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT 10 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT + col2 - + ( tab0.col2 + tab0.col0 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT + col0 + 67 - - 2 FROM tab2
----
147
148
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1693
SELECT - + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 + + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-156
-3642
-7674

query I rowsort
SELECT + 48 + 3 AS col2 FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT - cor0.col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + col2 + + 37 FROM tab0 AS cor0
----
119
38
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 + col2 col2 FROM tab0 AS cor0
----
126
175
94

query I rowsort
SELECT ALL 38 * cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
1209
2301
663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1700
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT + CAST ( NULL AS REAL ) + - col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 46 ) col1 FROM tab0 AS cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + cor0.col0 col0 FROM tab0 cor0
----
126
61
72

query I rowsort
SELECT ALL + col1 * col2 * - col0 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * - 45 col0 FROM tab2
----
-3690
-3690
-3690

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1705
SELECT - tab0.col1 * col1 * col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT - tab0.col1 * col1 * col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) + + col2 FROM tab2
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 col0 FROM tab0
----
51
51
51

query I rowsort
SELECT - 96 * - tab2.col1 * - col1 + 37 AS col2 FROM tab2
----
-27707
-334139
-92219

query I rowsort
SELECT DISTINCT ( + 45 ) AS col0 FROM tab2 cor0
----
45

query I rowsort
SELECT + 25 + col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT 1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT 44 + + 70 AS col0 FROM tab1 AS cor0
----
114

query I rowsort
SELECT - ( - 32 ) * col1 + + ( + cor0.col0 + col1 ) FROM tab2 AS cor0
----
1030
2025
640

query I rowsort
SELECT ALL + - col0 * 96 AS col0 FROM tab2 AS cor0
----
-672
-7488
-7584

query I rowsort
SELECT ALL + - 25 + cor0.col2 * + ( - col0 ) FROM tab2 AS cor0
----
-2053
-214
-3027

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + cor0.col2 col0 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL + + col0 * col0 - col1 FROM tab0 AS cor0
----
1128
490
7830

onlyif mysql # use DIV operator for integer division
query I rowsort label-1718
SELECT DISTINCT + cor0.col2 DIV col0 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + cor0.col2 / col0 FROM tab2 AS cor0
----
0
3

query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 * + 49 FROM tab0 AS cor0
----
11610
12740
14162

query I rowsort
SELECT DISTINCT + - col0 * + col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + cor0.col1 * - col1 * - col2 + col1 AS col2 FROM tab2 cor0
----
10999
25978
90565

query I rowsort
SELECT DISTINCT - + 15 + cor0.col1 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT ALL - col1 + cor0.col0 * + 52 FROM tab0 AS cor0
----
1162
1723
4537

onlyif mysql # use DIV operator for integer division
query I rowsort label-1724
SELECT ALL cor0.col0 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-1724
SELECT ALL cor0.col0 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ALL + col2 + col0 * col0 * - 51 AS col0 FROM tab1
----
-208839
-326304
-405

query I rowsort
SELECT ALL 44 + - tab2.col0 FROM tab2
----
-34
-35
37

query I rowsort
SELECT ALL 82 * col2 + - tab0.col1 FROM tab0
----
-15
2620
6633

query I rowsort
SELECT ALL 18 * - col2 - + col0 FROM tab2 AS cor0
----
-493
-546
-763

query I rowsort
SELECT + - ( - col0 ) + - 64 * col0 FROM tab2 AS cor0
----
-441
-4914
-4977

onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT DISTINCT - + 62 + col2 DIV 1 FROM tab0 AS cor0
----
-29
-61
20

skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT - + 62 + col2 / 1 FROM tab0 AS cor0
----
-29
-61
20

query I rowsort
SELECT - + col0 * 42 + + col2 * - col0 + 27 FROM tab2 AS cor0
----
-456
-5277
-6293

query I rowsort
SELECT + col2 * + ( col2 ) + + cor0.col1 + col0 FROM tab1 AS cor0
----
2945
3323
9309

query I rowsort
SELECT DISTINCT col2 + + col2 * - 89 AS col0 FROM tab1 AS cor0
----
-4752
-5016
-8448

query I rowsort
SELECT - - cor0.col0 * col2 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ALL col0 * + col1 * col0 AS col2 FROM tab0 cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT col1 + ( - 45 ) FROM tab2 AS cor0
----
-14
-28
14

query I rowsort
SELECT + + col0 + + col1 + - 41 AS col0 FROM tab1 AS cor0
----
-12
33
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1738
SELECT + + col2 + CAST( col2 AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-1738
SELECT + + col2 + CAST ( col2 AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT col0 + 47 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT ALL - col1 * + col0 - 42 AS col0 FROM tab0 cor0
----
-2106
-3437
-8141

query I rowsort
SELECT + cor0.col2 * + col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT ALL - col1 + + col2 * col1 FROM tab1 cor0
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-1743
SELECT DISTINCT + col0 DIV 62 + col1 * + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
2805
7381
96

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT + col0 / 62 + col1 * + cor0.col2 + - cor0.col2 FROM tab0 AS cor0
----
2805
7381
96

query I rowsort
SELECT - col1 + col2 * - col0 * + col0 FROM tab2 AS cor0
----
-1354
-158243
-237175

query I rowsort
SELECT DISTINCT + + cor0.col0 * - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL col0 - 47 FROM tab1 AS cor0
----
-44
17
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 * col0 col2 FROM tab2 AS cor0
----
497
5538
5609

query I rowsort
SELECT ALL - col0 * col0 + cor0.col1 * + 25 AS col1 FROM tab2 AS cor0
----
-4609
-5816
726

query I rowsort
SELECT DISTINCT - col1 * 83 + - 94 AS col2 FROM tab0
----
-7232
-7647
-8145

query I rowsort
SELECT + col1 * 1 * col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 * + col1 + col0 * + col2 + ( 94 ) AS col1 FROM tab1
----
334
4382
8814

onlyif mysql # use DIV operator for integer division
query I rowsort label-1752
SELECT ALL 95 DIV - col1 + col1 * + 87 AS col1 FROM tab0
----
7481
7916
8439

skipif mysql # not compatible
query I rowsort label-1752
SELECT ALL 95 / - col1 + col1 * + 87 AS col1 FROM tab0
----
7481
7916
8439

query I rowsort
SELECT + col2 + ( 97 ) + + col1 * 84 AS col0 FROM tab1 AS cor0
----
1285
2335
994

query I rowsort
SELECT col2 * - col2 + 72 * tab2.col2 + col2 AS col0 FROM tab2
----
1222
1242
1330

query I rowsort
SELECT ALL + cor0.col2 * 65 AS col0 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT - col1 + ( - col1 + col2 ) * - 22 AS col2 FROM tab1 AS cor0
----
-1044
-1839
-642

onlyif mysql # use DIV operator for integer division
query I rowsort label-1757
SELECT + col1 DIV 59 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1757
SELECT + col1 / 59 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + + col0 + ( - col0 * ( col2 ) ) FROM tab1 AS cor0
----
-185
-3594
-7613

query I rowsort
SELECT DISTINCT col1 * + col1 + col2 AS col0 FROM tab1 cor0
----
157
265
730

query I rowsort
SELECT - col1 * ( cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col1 * - col0 + + 83 FROM tab2 AS cor0
----
-1260
-134
-4519

query I rowsort
SELECT ALL - + col0 * - col1 + 0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + 3 FROM tab0 AS cor0
----
38
7301
795

query I rowsort
SELECT DISTINCT + col0 + + col0 * col1 FROM tab1
----
1120
704
81

query I rowsort
SELECT - + 17 * 19 - - col1 * col1 AS col0 FROM tab2 AS cor0
----
-34
3158
638

query I rowsort
SELECT DISTINCT + - col1 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col2 ) * col1 - col0 col1 FROM tab0 cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT col1 * + 20 - col2 FROM tab2 cor0
----
1154
302
593

query I rowsort
SELECT DISTINCT 21 + + cor0.col1 FROM tab0 AS cor0
----
107
112
118

query I rowsort
SELECT 41 * col0 AS col2 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT 76 * tab2.col2 AS col1 FROM tab2
----
1976
2052
2888

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 6 * - 29 - + col2 FROM tab0 AS cor0
----
-175
-207
-256

query I rowsort
SELECT DISTINCT + + cor0.col0 * - 89 AS col0 FROM tab2 AS cor0
----
-623
-6942
-7031

onlyif mysql # use DIV operator for integer division
query I rowsort label-1775
SELECT DISTINCT - cor0.col1 + col2 DIV + col1 FROM tab2 cor0
----
-15
-31
-59

skipif mysql # not compatible
query I rowsort label-1775
SELECT DISTINCT - cor0.col1 + col2 / + col1 FROM tab2 cor0
----
-15
-31
-59

query I rowsort
SELECT DISTINCT + - col0 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-1777
SELECT ALL - col0 * - col2 + - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-1777
SELECT ALL - col0 * - col2 + - col0 / - col0 AS col1 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT col0 - - cor0.col2 * 15 FROM tab2 AS cor0
----
412
468
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-1779
SELECT ALL - + 79 - + col0 DIV col0 FROM tab0 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-1779
SELECT ALL - + 79 - + col0 / col0 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - 67 * cor0.col2 + - 19 AS col1 FROM tab1 AS cor0
----
-3637
-3838
-6451

query I rowsort
SELECT ALL + - col2 + col0 * cor0.col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT cor0.col2 * col1 + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 * - col1 + 36 AS col0 FROM tab2 AS cor0
----
-119616
-50998
-5823

query I rowsort
SELECT col2 * col1 - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1785
SELECT cor0.col0 + - col2 - - 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-1785
SELECT cor0.col0 + - col2 - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 74 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - - ( + cor0.col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 45 + + col2 FROM tab2 AS cor0
----
71
72
83

query I rowsort
SELECT - + col2 * col2 + + col1 FROM tab1 cor0
----
-2890
-3239
-9203

query I rowsort
SELECT + ( + col2 ) * - ( col2 + - col2 ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT - col1 * col0 * - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-234
-40960
-83200

skipif mysql # not compatible
query I rowsort label-1791
SELECT - col1 * col0 * - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + 78 - - col0 * + ( + col0 ) FROM tab2 cor0
----
127
6162
6319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 66 * 29 col0 FROM tab1 cor0
----
11130
4830
5163

query I rowsort
SELECT - - cor0.col1 * 99 AS col0 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT ALL + ( - col2 * - 99 ) FROM tab2
----
2574
2673
3762

query I rowsort
SELECT DISTINCT + + col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT - 44 * ( col0 ) FROM tab0 cor0
----
-1056
-1540
-3916

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 76 col0 FROM tab0
----
-6536
-6916
-7372

query I rowsort
SELECT ALL - ( - 68 ) FROM tab1
----
68
68
68

query I rowsort
SELECT ALL ( ( - col1 ) ) * 84 AS col2 FROM tab1
----
-1092
-2184
-840

query I rowsort
SELECT 91 + cor0.col1 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to eb9deaabaf40ef0d84f95958c4266091

query I rowsort
SELECT ALL - 75 + - cor0.col2 + cor0.col0 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 89fb17e036e892fd1793b930269a4011

query I rowsort
SELECT DISTINCT + 69 * col1 AS col1 FROM tab2
----
1173
2139
4071

query I rowsort
SELECT ALL col0 * ( col2 ) FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 58 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-7240
-734
23

query I rowsort
SELECT ( 52 ) * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884

query I rowsort
SELECT ALL + + 64 FROM tab0 AS cor0
----
64
64
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1809
SELECT ALL - ( cor0.col2 ) DIV - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL - ( cor0.col2 ) / - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT cor0.col1 * col2 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT ALL CAST( NULL AS SIGNED ) - + col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL CAST ( NULL AS INTEGER ) - + col1 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1813
SELECT ALL CAST( 78 AS SIGNED ) * + col1 col2 FROM tab2 AS cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1813
SELECT ALL CAST ( 78 AS INTEGER ) * + col1 col2 FROM tab2 AS cor0
----
1326
2418
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1814
SELECT DISTINCT + col1 DIV 16 FROM tab0 AS cor0
----
5
6

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + col1 / 16 FROM tab0 AS cor0
----
5
6

query I rowsort
SELECT ALL - - col1 * - 70 FROM tab2 AS cor0
----
-1190
-2170
-4130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 + col2 col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL 94 + col0 AS col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT + 64 + col0 * col2 AS col1 FROM tab1 AS cor0
----
226
3712
7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT DISTINCT + + col2 DIV col2 + - col2 + 9 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
738
742
873

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + + col2 / col2 + - col2 + 9 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
738
742
873

query I rowsort
SELECT ALL + ( - col2 ) * col0 * col1 + + col1 AS col2 FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT 81 + - col1 FROM tab1
----
55
68
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT + CAST( NULL AS DECIMAL ) - 80 col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1822
SELECT + CAST ( NULL AS REAL ) - 80 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - ( - cor0.col2 ) FROM tab2 AS cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-1824
SELECT DISTINCT col2 + col0 DIV + col2 AS col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT col2 + col0 / + col2 AS col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT ALL col2 * + ( - col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + cor0.col1 * col1 + - col0 - col0 AS col0 FROM tab0 AS cor0
----
7348
8103
9339

query I rowsort
SELECT cor0.col2 * + 60 FROM tab2, tab1 AS cor0
----
9 values hashing to 6ee85309e05757a775ead99d5fd0ef50

query I rowsort
SELECT ALL - - 4 + ( - cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9d52e9049791e330faa9e9e018457411

query I rowsort
SELECT + col0 + 66 * col0 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT DISTINCT col1 + col1 + + 21 FROM tab1
----
41
47
73

query I rowsort
SELECT ALL + 80 + cor0.col2 AS col2 FROM tab0 AS cor0
----
113
162
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col0 * + 35 FROM tab1
----
105
2240
2800

query I rowsort
SELECT + col2 * - col1 + + ( - col1 ) * cor0.col0 * 96 AS col0 FROM tab1 AS cor0
----
-101088
-62010
-8892

query I rowsort
SELECT ALL + col1 + - 26 AS col1 FROM tab0
----
60
65
71

query I rowsort
SELECT 22 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT - - ( - cor0.col1 ) DIV col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1837
SELECT - - ( - cor0.col1 ) / col1 AS col0 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT 37 * col0 AS col1 FROM tab2 cor0
----
259
2886
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT - 83 DIV 32 FROM tab1 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1839
SELECT - 83 / 32 FROM tab1 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL col2 + - 18 AS col1 FROM tab1
----
36
39
78

query I rowsort
SELECT + col0 + col1 * + 36 FROM tab2
----
1123
2202
691

query I rowsort
SELECT ALL + ( cor1.col2 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT DISTINCT + tab0.col2 + - 64 AS col0 FROM tab0
----
-31
-63
18

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( 34 + + tab0.col1 AS REAL ) * - tab0.col1 AS col1 FROM tab0
----
-10320
-11375
-12707

query I rowsort
SELECT 24 * 85 AS col0 FROM tab2
----
2040
2040
2040

query I rowsort
SELECT ALL + 31 + + col0 + col2 * + col0 * 87 AS col0 FROM tab2 AS cor0
----
16481
176545
261284

query I rowsort
SELECT ALL + 45 * + 57 AS col1 FROM tab2 AS cor0
----
2565
2565
2565

query I rowsort
SELECT DISTINCT - cor2.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
-3
-64
-80

query I rowsort
SELECT ALL 77 * col2 FROM tab1 AS cor0
----
4158
4389
7392

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1850
SELECT ALL - + CAST( - cor0.col1 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif mysql # not compatible
query I rowsort label-1850
SELECT ALL - + CAST ( - cor0.col1 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col2 col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT ALL + cor0.col2 + 20 FROM tab1 AS cor0
----
116
74
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
56

query I rowsort
SELECT + ( col1 + + 34 ) AS col1 FROM tab0
----
120
125
131

query I rowsort
SELECT ( + 10 ) FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-1857
SELECT DISTINCT + col2 DIV + col0 + + col1 FROM tab1 AS cor0
----
10
14
44

skipif mysql # not compatible
query I rowsort label-1857
SELECT DISTINCT + col2 / + col0 + + col1 FROM tab1 AS cor0
----
10
14
44

query I rowsort
SELECT DISTINCT + - col1 * col0 * + 81 FROM tab0 AS cor0
----
-167184
-274995
-656019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT - - ( + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT ALL 30 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT ALL - col1 * 89 FROM tab1 AS cor0
----
-1157
-2314
-890

query I rowsort
SELECT ALL col2 + col2 * + ( col0 ) AS col0 FROM tab1 cor0
----
216
3705
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT ALL + - cor0.col0 * - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-1864
SELECT ALL + - cor0.col0 * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + col0 * - col1 + + 64 AS col1 FROM tab1 AS cor0
----
1104
142
704

query I rowsort
SELECT DISTINCT + col1 + ( col1 ) * - col0 * col1 FROM tab1 AS cor0
----
-13507
-2002
-6390

query I rowsort
SELECT DISTINCT - col0 + ( col1 ) * + col1 FROM tab1 AS cor0
----
36
673
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT col2 DIV 53 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1868
SELECT col2 / 53 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * 51 * ( - col2 ) FROM tab0 AS cor0
----
342924
51
55539

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 * col1 + 27 col2 FROM tab0
----
124
611911
93681

query I rowsort
SELECT DISTINCT col2 * + col1 + cor0.col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - col1 * + col0 + ( + col2 ) FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - col0 + + 57 FROM tab2 AS cor0
----
-21
-22
50

query I rowsort
SELECT DISTINCT + col2 * + col2 + + col1 * + col1 + ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
10425
3670
3989

query I rowsort
SELECT ALL - + col1 * col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col2 + col2 * 15 FROM tab0 AS cor0
----
1312
16
528

query I rowsort
SELECT - - col2 * col1 + ( 99 ) AS col0 FROM tab0 AS cor0
----
196
2937
7561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1878
SELECT col2 * col0 + CAST( - col2 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1242
3078
6432

skipif mysql # not compatible
query I rowsort label-1878
SELECT col2 * col0 + CAST ( - col2 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT 96 * tab0.col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 414c112a07146b5c51cb9917b6641d2e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 - col2 col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1881
SELECT - cor0.col1 / + col0 + - CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT - cor0.col1 / + col0 + - CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 - - col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-1883
SELECT + col2 - + col1 * col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-18
-191
-9408

skipif mysql # not compatible
query I rowsort label-1883
SELECT + col2 - + col1 * col1 / + col2 AS col2 FROM tab0 AS cor0
----
-18
-191
-9408

query I rowsort
SELECT DISTINCT + col1 * + tab2.col0 AS col2 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - 10 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0

query I rowsort
SELECT - col0 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT 89 * + col1 * col2 AS col0 FROM tab2
----
136526
57494
74493

query I rowsort
SELECT DISTINCT + tab1.col1 * col2 * - 75 AS col0 FROM tab1
----
-105300
-42750
-93600

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 * + col1 ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL tab2.col1 + + col1 * col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT col1 + - col0 + + col0 * col1 * - col1 FROM tab0
----
-177442
-329253
-737007

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NULL IN ( - col2 * - col1 )
----

query I rowsort
SELECT col1 + col2 + tab0.col0 * - col2 * + col1 AS col1 FROM tab0
----
-3297
-663945
-67993

query I rowsort
SELECT col2 + - col1 * - col0 FROM tab1
----
1136
132
697

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + col0 / tab1.col1 )
----

query I rowsort
SELECT ALL col0 + - col1 * col2 FROM tab2
----
-1456
-567
-830

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( col1 + - col2 )
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col1 * + col2 + col1 FROM tab2
----
1593
663
868

query I rowsort
SELECT ALL - col0 + col0 * - tab2.col0 FROM tab2
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab2.col1 * + col1 col0 FROM tab2
----
22831
271518
6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-1902
SELECT + col2 DIV + tab0.col2 + - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-1902
SELECT + col2 / + tab0.col2 + - col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT - tab1.col2 + - col0 + - tab1.col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT 45 * - col2 + 19 FROM tab2 AS cor0
----
-1151
-1196
-1691

query I rowsort
SELECT ALL + 65 * col1 AS col1 FROM tab1
----
1690
650
845

query I rowsort
SELECT - ( 21 ) * cor0.col1 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to e0e9dce42dfd5a5a2ab02692c023ea10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 * - col1 + col0 col0 FROM tab0
----
-3330
-3460
-3748

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT col2 DIV 17 FROM tab1 AS cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-1908
SELECT col2 / 17 FROM tab1 AS cor0
----
3
3
5

query I rowsort
SELECT - col0 + col0 - + 79 FROM tab1 AS cor0
----
-79
-79
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT ALL col0 - - col0 * CAST( - 13 + - col2 AS SIGNED ) FROM tab1
----
-198
-4416
-8640

skipif mysql # not compatible
query I rowsort label-1910
SELECT ALL col0 - - col0 * CAST ( - 13 + - col2 AS INTEGER ) FROM tab1
----
-198
-4416
-8640

query I rowsort
SELECT DISTINCT - col1 * col2 * + 16 AS col2 FROM tab1 AS cor0
----
-19968
-22464
-9120

query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 76 + - col0 FROM tab1 AS cor0
----
-4
12
73

query I rowsort
SELECT 56 * + col0 AS col2 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT ( cor0.col1 ) * - ( - col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + col0 + col1 + - 10 FROM tab1 AS cor0
----
19
64
83

query I rowsort
SELECT + 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + cor0.col2 + col2 + 48 FROM tab2 cor0
----
100
102
124

query I rowsort
SELECT + col2 * + ( col2 ) * col2 + col1 * + cor0.col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1288377
213441
329316

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1920
SELECT + + CAST( 99 AS SIGNED ) FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-1920
SELECT + + CAST ( 99 AS INTEGER ) FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT + cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * + cor0.col2 + + col1 col1 FROM tab1 AS cor0
----
4076
4285
7213

query I rowsort
SELECT - 31 * col0 FROM tab2
----
-217
-2418
-2449

query I rowsort
SELECT ALL + col0 + + col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT + 57 * - col2 AS col1 FROM tab1 AS cor0
----
-3078
-3249
-5472

query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - - cor0.col1 * + col2 + - ( col0 ) FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT - col0 - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL - - col1 + - col1 * + ( - col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
291
3010
7644

onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT + 11 - cor0.col1 DIV ( + col2 ) AS col0 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-1931
SELECT + 11 - cor0.col1 / ( + col2 ) AS col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT - - 98 * + col1 FROM tab0 AS cor0
----
8428
8918
9506

skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + CAST ( - cor0.col2 AS REAL ) + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT ALL + col1 + + ( + 78 ) FROM tab1 AS cor0
----
104
88
91

query I rowsort
SELECT + - col1 + + 64 AS col1 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT DISTINCT + col1 + ( - col1 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col0 * 91 FROM tab1 AS cor0
----
273
5824
7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT ALL + + col1 + + cor0.col1 + + cor0.col2 DIV col0 AS col2 FROM tab0 cor0
----
173
182
194

skipif mysql # not compatible
query I rowsort label-1938
SELECT ALL + + col1 + + cor0.col1 + + cor0.col2 / col0 AS col2 FROM tab0 cor0
----
173
182
194

query I rowsort
SELECT + - 54 * col0 AS col0 FROM tab0 AS cor0
----
-1296
-1890
-4806

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT - 96 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-182
-187
-193

query I rowsort
SELECT DISTINCT + col2 * 22 FROM tab0 cor0
----
1804
22
726

query I rowsort
SELECT ALL cor0.col1 + - col2 * - col1 * + col1 FROM tab2 AS cor0
----
10999
25978
90565

onlyif mysql # use DIV operator for integer division
query I rowsort label-1944
SELECT DISTINCT ( + col2 ) * + col2 - 80 DIV cor0.col0 FROM tab1 AS cor0
----
2890
3248
9215

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT ( + col2 ) * + col2 - 80 / cor0.col0 FROM tab1 AS cor0
----
2890
3248
9215

query I rowsort
SELECT DISTINCT - 62 + 36 * col1 FROM tab0 AS cor0
----
3034
3214
3430

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1946
SELECT CAST( col0 AS SIGNED ) + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1946
SELECT CAST ( col0 AS INTEGER ) + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col1 col1 FROM tab2 cor0
----
55
58
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT DISTINCT - col0 + col0 DIV - 19 FROM tab0 AS cor0
----
-25
-36
-93

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT - col0 + col0 / - 19 FROM tab0 AS cor0
----
-25
-36
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-1949
SELECT DISTINCT + ( - col2 ) + + 91 DIV + col0 col0 FROM tab0 AS cor0
----
-30
-81
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT + ( - col2 ) + + 91 / + col0 col0 FROM tab0 AS cor0
----
-30
-81
1

query I rowsort
SELECT ALL 13 - col0 FROM tab0 AS cor0
----
-11
-22
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1951
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( - col2 ) + + 81 AS col2 FROM tab0 cor0
----
-1
48
80

query I rowsort
SELECT - ( + ( + col2 ) ) * - ( col0 ) + col1 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT 27 * + col2 - tab0.col2 FROM tab0
----
2132
26
858

query I rowsort
SELECT DISTINCT + col1 * - 24 - tab1.col1 * + tab1.col0 * col0 AS col1 FROM tab1
----
-41200
-83512
-858

query I rowsort
SELECT - col1 * 57 * col2 + - col0 FROM tab2
----
-36901
-47716
-87516

query I rowsort
SELECT ALL + col1 * + col1 - + col1 AS col2 FROM tab1
----
156
650
90

query I rowsort
SELECT ALL 81 FROM tab1, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 66 AS INTEGER ) + col2 * - CAST ( col2 * + col2 AS REAL ) FROM tab0
----
-36003
-551434
-67

query I rowsort
SELECT + ( col2 ) * - col1 + - col2 - col1 * col0 FROM tab2
----
-1081
-2027
-6162

query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT 38 + cor0.col1 + - ( - cor0.col2 ) DIV - col1 FROM tab0 AS cor0
----
124
129
135

skipif mysql # not compatible
query I rowsort label-1962
SELECT 38 + cor0.col1 + - ( - cor0.col2 ) / - col1 FROM tab0 AS cor0
----
124
129
135

query I rowsort
SELECT - 71 AS col2 FROM tab2 cor0
----
-71
-71
-71

query I rowsort
SELECT - + 45 * col2 AS col2 FROM tab1 AS cor0
----
-2430
-2565
-4320

query I rowsort
SELECT ALL + 3 + cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e74fcc39b2d76dfdc4375c6f529960aa

onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT ALL - + col0 + - col2 * 65 DIV - col2 AS col2 FROM tab1 AS cor0
----
-15
1
62

skipif mysql # not compatible
query I rowsort label-1966
SELECT ALL - + col0 + - col2 * 65 / - col2 AS col2 FROM tab1 AS cor0
----
-15
1
62

query I rowsort
SELECT - col1 * - cor0.col1 - col1 AS col0 FROM tab2 cor0
----
272
3422
930

onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT ALL - 5 DIV tab1.col1 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1968
SELECT ALL - 5 / tab1.col1 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 + 5 AS col0 FROM tab2 AS cor0
----
-21
-22
-33

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1970
SELECT DISTINCT - col1 * + col1 + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - col1 * + col1 + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 * + col1 - 51 FROM tab1 AS cor0
----
-1091
-129
-691

query I rowsort
SELECT col1 * col0 * + col0 + - col0 * + col2 FROM tab2 AS cor0
----
103095
1330
356928

query I rowsort
SELECT ALL 29 * + tab0.col0 + - col0 FROM tab0
----
2492
672
980

query I rowsort
SELECT + 14 - 4 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL 26 * + col0 AS col2 FROM tab2 AS cor0
----
182
2028
2054

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1976
SELECT ALL - CAST( col1 AS SIGNED ) + - col1 FROM tab1 cor0
----
-20
-26
-52

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL - CAST ( col1 AS INTEGER ) + - col1 FROM tab1 cor0
----
-20
-26
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-1977
SELECT + + col2 DIV - 61 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1977
SELECT + + col2 / - 61 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1978
SELECT + CAST( + cor0.col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-1978
SELECT + CAST ( + cor0.col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + col0 * ( + tab0.col2 * col0 ) FROM tab0
----
1225
19008
649522

query I rowsort
SELECT DISTINCT - 18 * + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-180
-234
-468

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT - CAST( + col1 AS SIGNED ) DIV - col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-1981
SELECT - CAST ( + col1 AS INTEGER ) / - col0 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1982
SELECT ALL + CAST( NULL AS SIGNED ) * col1 + col1 * + 82 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 + col1 * + 82 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 98 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT - 0 DIV + col0 + - tab0.col0 * + col1 AS col0 FROM tab0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-1984
SELECT - 0 / + col0 + - tab0.col0 * + col1 AS col0 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 46 AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + - 94 * + 14 FROM tab1 AS cor0
----
-1316
-1316
-1316

query I rowsort
SELECT DISTINCT ( col1 ) * col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1988
SELECT + col2 + + 20 DIV - col0 FROM tab2 AS cor0
----
25
26
38

skipif mysql # not compatible
query I rowsort label-1988
SELECT + col2 + + 20 / - col0 FROM tab2 AS cor0
----
25
26
38

query I rowsort
SELECT ALL + col2 * 30 FROM tab1 cor0
----
1620
1710
2880

query I rowsort
SELECT + col0 + 3 AS col0 FROM tab0 AS cor0
----
27
38
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-1991
SELECT DISTINCT + + ( - 81 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + + ( - 81 ) / + col2 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - + col1 * - ( col1 ) FROM tab1 AS cor0
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-1993
SELECT ALL + ( - cor0.col1 ) * cor0.col2 + - 42 DIV - 54 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL + ( - cor0.col1 ) * cor0.col2 + - 42 / - 54 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - col2 * 31 FROM tab1 AS cor0
----
1674
1767
2976

query I rowsort
SELECT - col1 + + col0 * col1 AS col0 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT ALL col2 * 64 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT - 95 * ( + col0 ) FROM tab0 AS cor0
----
-2280
-3325
-8455

query I rowsort
SELECT DISTINCT + 52 * 97 + + col2 * col1 FROM tab1 AS cor0
----
5614
6292
6448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * - col2 col0 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT + + col0 + - 10 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT ( - cor0.col2 ) - + col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT + 81 + + col1 FROM tab1 AS cor0
----
107
91
94

query I rowsort
SELECT - + 18 * + col0 + col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-595
360
5696

query I rowsort
SELECT col2 + + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - + col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col0 ) * col1 - + 0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT col1 + ( col1 ) + col2 FROM tab1
----
106
122
77

query I rowsort
SELECT 83 * - col1 FROM tab0 AS cor0
----
-7138
-7553
-8051

query I rowsort
SELECT DISTINCT - col1 * - col1 + - ( 84 ) + + col2 AS col2 FROM tab0 AS cor0
----
7345
8279
9326

query I rowsort
SELECT ALL - col1 - - cor0.col1 * 80 AS col0 FROM tab0 AS cor0
----
6794
7189
7663

query I rowsort
SELECT - 45 * col1 AS col2 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL - 56 * col2 - col1 FROM tab2 AS cor0
----
-1515
-1543
-2145

query I rowsort
SELECT + + col2 * + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - ( col0 ) + ( + col1 ) FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT + 60 + - col2 AS col2 FROM tab2
----
22
33
34

query I rowsort
SELECT ALL - ( + col0 ) AS col2 FROM tab2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT - ( + col0 ) DIV col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2017
SELECT - ( + col0 ) / col0 col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

query I rowsort
SELECT DISTINCT col2 * - 56 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-163296
-181944
-516096

query I rowsort
SELECT col0 * ( ( col2 ) ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + cor0.col1 + 29 * col1 AS col0 FROM tab2 AS cor0
----
1770
510
930

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2022
SELECT - + col1 * CAST( NULL AS DECIMAL ) + col1 * - col0 * - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2022
SELECT - + col1 * CAST ( NULL AS REAL ) + col1 * - col0 * - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + 70 FROM tab0 AS cor0
----
1680
2450
6230

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2024
SELECT col0 * + CAST( - col2 + + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT col0 * + CAST ( - col2 + + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( col2 ) col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - col1 * 80 AS col2 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT ALL ( tab0.col0 ) * col0 AS col2 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 99 * + col0 AS col2 FROM tab1
----
-297
-6336
-7920

query I rowsort
SELECT - col2 * ( col0 * col1 ) AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a

query I rowsort
SELECT ALL 17 FROM tab1, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL tab1.col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 8 * - col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT DISTINCT + col1 * + 62 AS col0 FROM tab1 cor0
----
1612
620
806

query I rowsort
SELECT col1 * + col2 + + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT col2 * - cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT + 59 + cor0.col0 FROM tab1 AS cor0
----
123
139
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2038
SELECT ALL ( - tab0.col1 ) DIV + 41 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

skipif mysql # not compatible
query I rowsort label-2038
SELECT ALL ( - tab0.col1 ) / + 41 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387

query I rowsort
SELECT DISTINCT + 24 * col1 FROM tab1
----
240
312
624

query I rowsort
SELECT - 85 + col0 * ( col1 * col2 + 85 ) AS col0 FROM tab1 AS cor0
----
106555
41835
4382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT cor0.col1 + + cor0.col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * 50 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT ALL + - ( col2 ) * - col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + col1 - 56 * col1 AS col0 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT DISTINCT - col2 * + col2 + + cor0.col1 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT ( col1 ) * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT DISTINCT + ( col2 ) * + col2 FROM tab0 cor0
----
1
1089
6724

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2051
SELECT - tab0.col2 + + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-2051
SELECT - tab0.col2 + + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-164
-2
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2052
SELECT DISTINCT + tab0.col1 DIV - col0 AS col0 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT + tab0.col1 / - col0 AS col0 FROM tab0
----
-1
-2
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2053
SELECT - ( col1 ) + + col0 DIV 64 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-2053
SELECT - ( col1 ) + + col0 / 64 FROM tab0
----
-86
-90
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 * col2 col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + 65 * + col0 + tab2.col0 AS col0 FROM tab2
----
462
5148
5214

query I rowsort
SELECT 68 - + col0 AS col0 FROM tab1 AS cor0
----
-12
4
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-2057
SELECT DISTINCT - ( + col0 ) * + col0 + + col2 DIV + col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif mysql # not compatible
query I rowsort label-2057
SELECT DISTINCT - ( + col0 ) * + col0 + + col2 / + col2 FROM tab0 AS cor0
----
-1224
-575
-7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col1 ) col2 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2059
SELECT + CAST( NULL AS SIGNED ) + - 36 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT + CAST ( NULL AS INTEGER ) + - 36 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 34 * + cor0.col0 * - col0 + - ( - col1 + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1642
-206875
-212256

query I rowsort
SELECT DISTINCT - 91 * 7 + col0 FROM tab2 cor0
----
-558
-559
-630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2062
SELECT - 80 DIV - col2 + col1 AS col2 FROM tab0 AS cor0
----
177
88
91

skipif mysql # not compatible
query I rowsort label-2062
SELECT - 80 / - col2 + col1 AS col2 FROM tab0 AS cor0
----
177
88
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 * col2 col2 FROM tab0 AS cor0
----
-2541
-6314
-77

query I rowsort
SELECT + ( 43 ) + + col2 * 85 FROM tab2 cor0
----
2253
2338
3273

query I rowsort
SELECT DISTINCT + 77 + col1 AS col0 FROM tab0 AS cor0
----
163
168
174

query I rowsort
SELECT ALL ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT 30 * - col2 + col2 FROM tab0 AS cor0
----
-2378
-29
-957

query I rowsort
SELECT ALL - 98 + + cor1.col1 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ea852fae4411496cf414cd484a269269

query I rowsort
SELECT + cor0.col1 + + cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 13a45e994f0549dd29e84599a57026d0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2070
SELECT - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2070
SELECT - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + + col2 * 79 FROM tab2 AS cor0
----
2054
2133
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT ALL + - col2 + CAST( 23 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-59
22

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + - col2 + CAST ( 23 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-59
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT DISTINCT col1 DIV + cor0.col0 - 83 FROM tab1 AS cor0
----
-75
-83

skipif mysql # not compatible
query I rowsort label-2073
SELECT DISTINCT col1 / + cor0.col0 - 83 FROM tab1 AS cor0
----
-75
-83

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e

query I rowsort
SELECT ALL + col0 - ( col1 + col2 ) * 86 FROM tab0 AS cor0
----
-10210
-14789
-8393

query I rowsort
SELECT DISTINCT + col2 + - 3 * + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - col1 + col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT ALL - - col2 * - 38 * ( + col0 ) + - col1 DIV - 66 AS col1 FROM tab1 AS cor0
----
-138624
-291840
-6156

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL - - col2 * - 38 * ( + col0 ) + - col1 / - 66 AS col1 FROM tab1 AS cor0
----
-138624
-291840
-6156

query I rowsort
SELECT DISTINCT - col0 + ( 67 ) FROM tab1 AS cor0
----
-13
3
64

query I rowsort
SELECT ALL - col2 + col1 * - col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT + col0 * 49 + + col1 FROM tab0 AS cor0
----
1262
1812
4452

query I rowsort
SELECT ALL col1 * ( - 9 ) - col0 AS col0 FROM tab0 AS cor0
----
-798
-908
-908

query I rowsort
SELECT ALL - col2 + - col0 * + 57 FROM tab1 AS cor0
----
-225
-3705
-4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT DISTINCT + col1 DIV 77 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT + col1 / 77 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2085
SELECT DISTINCT cor0.col1 DIV col2 + + 24 AS col0 FROM tab0 AS cor0
----
121
25
26

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT cor0.col1 / col2 + + 24 AS col0 FROM tab0 AS cor0
----
121
25
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT ALL col1 DIV + ( + col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2086
SELECT ALL col1 / + ( + col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - - col2 - + col2 AS col1 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 9 - - col2 * + col0 * + cor0.col2 col2 FROM tab1 AS cor0
----
207927
737271
8739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT + col0 * - col0 + - CAST( col0 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif mysql # not compatible
query I rowsort label-2089
SELECT + col0 * - col0 + - CAST ( col0 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2090
SELECT DISTINCT + 94 + - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT + 94 + - cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT DISTINCT + col0 DIV col1 + + 4 - + col0 FROM tab1 AS cor0
----
-54
-70
1

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT + col0 / col1 + + 4 - + col0 FROM tab1 AS cor0
----
-54
-70
1

query I rowsort
SELECT - col0 * - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - cor1.col1 - cor0.col0 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 49f32056a579e814ad1a4a50498da3c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - col1 col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL col1 * col2 * - 53 + - col2 FROM tab1
----
-30267
-66240
-74466

query I rowsort
SELECT ALL - 97 * + col1 AS col2 FROM tab0
----
-8342
-8827
-9409

query I rowsort
SELECT 74 FROM tab2, tab1, tab0 cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL - ( 20 + - col0 ) * - col0 * - tab0.col2 FROM tab0
----
3168
503562
525

query I rowsort
SELECT + col2 + col1 * 49 AS col0 FROM tab2 AS cor0
----
1546
2917
871

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2
----
3645 values hashing to e3dd03163bf3bbebd049e3a988dfe640

query I rowsort
SELECT - + cor0.col2 * + col1 + 97 * 73 AS col1 FROM tab0 cor0
----
-381
4243
6984

query I rowsort
SELECT DISTINCT cor1.col2 * 73 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
2409
5986
73

query I rowsort
SELECT 36 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - col2 + + col0 * - col1 AS col1 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab0, tab0 AS cor0
----
41

query I rowsort
SELECT ALL + tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - + col2 + col1 * col0 * - col0 FROM tab1 AS cor0
----
-288
-41017
-83296

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT col0 DIV + 75 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2108
SELECT col0 / + 75 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + - col1 * 93 - 13 AS col0 FROM tab2 cor0
----
-1594
-2896
-5500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + 43 * + cor0.col2 FROM tab0 AS cor0
----
1419
3526
43

query I rowsort
SELECT 29 + + col0 AS col1 FROM tab1 AS cor0
----
109
32
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2113
SELECT - - ( col1 ) DIV - col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2113
SELECT - - ( col1 ) / - col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + col0 * + col1 + ( cor0.col0 ) FROM tab1 AS cor0
----
13600
2031
6464

onlyif mysql # use DIV operator for integer division
query I rowsort label-2115
SELECT - 3 DIV + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-2115
SELECT - 3 / + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - - col0 + 0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + 29 + col1 AS col1 FROM tab1
----
39
42
55

query I rowsort
SELECT ALL - + cor0.col2 + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * ( col1 ) AS col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + - col0 + 31 FROM tab1 AS cor0
----
-33
-49
28

query I rowsort
SELECT - 80 * + 23 FROM tab0 AS cor0
----
-1840
-1840
-1840

query I rowsort
SELECT + cor0.col2 * + col0 + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT 56 + col0 AS col0 FROM tab1 AS cor0
----
120
136
59

query I rowsort
SELECT + - col2 * - cor0.col0 + col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT ALL + + cor0.col1 + - col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * col2 + - 50 AS col1 FROM tab1 AS cor0
----
1198
1354
520

query I rowsort
SELECT ALL + col1 + col1 + - 39 FROM tab1 AS cor0
----
-13
-19
13

query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 + 44 FROM tab0 AS cor0
----
106
46

query I rowsort
SELECT + 10 + col0 FROM tab1 AS cor0
----
13
74
90

query I rowsort
SELECT DISTINCT + 5 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT ALL col2 * - ( col2 ) * + ( ( + col2 ) ) + - 76 AS col2 FROM tab0
----
-36013
-551444
-77

query I rowsort
SELECT 10 + - tab2.col1 * + col0 FROM tab2
----
-1333
-207
-4592

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab2, tab2 AS cor0
----
-62

query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT + + col2 - col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT - + col1 + + 24 AS col0 FROM tab1 cor0
----
-2
11
14

query I rowsort
SELECT col0 * ( + col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - col0 * 57 - 89 FROM tab0 AS cor0
----
-1457
-2084
-5162

query I rowsort
SELECT + col1 * col2 - + cor0.col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col0 + - 66 AS col1 FROM tab0 AS cor0
----
-31
-42
23

query I rowsort
SELECT 42 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e

query I rowsort
SELECT DISTINCT col2 * 39 FROM tab2 AS cor0
----
1014
1053
1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT DISTINCT + col2 * + col1 DIV - col1 col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT + col2 * + col1 / - col1 col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT col2 + col2 * 55 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col1 FROM tab0 cor0
----
172
182
194

query I rowsort
SELECT ALL - 17 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e

query I rowsort
SELECT col1 * col2 * + col2 AS col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT ALL - col2 * col0 + 61 - col2 * 68 AS col1 FROM tab0
----
-12813
-2975
-42

query I rowsort
SELECT ALL - + 53 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT + ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - + col2 + - col1 * col1 AS col1 FROM tab0 cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT ALL + + 60 * + col0 AS col1 FROM tab1 AS cor0
----
180
3840
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + - col0 col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL - - col0 - + col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 73 - + col1 AS col2 FROM tab0 cor0
----
-159
-164
-170

query I rowsort
SELECT DISTINCT + - 90 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT DISTINCT - + 71 * col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-147
-404
-524

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT - + 71 * col2 / col1 AS col2 FROM tab1 AS cor0
----
-147
-404
-524

query I rowsort
SELECT - - col0 * col2 - col0 AS col1 FROM tab0 AS cor0
----
0
7209
768

onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT ALL - + col2 + col0 DIV col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL - + col2 + col0 / col2 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT ALL + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT - tab0.col1 + - tab0.col2 AS col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - cor0.col1 + - col1 - + col0 AS col2 FROM tab0 cor0
----
-196
-229
-271

query I rowsort
SELECT - cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT DISTINCT 33 + + 41 * + col1 AS col2 FROM tab2 AS cor0
----
1304
2452
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 92 + col2 col1 FROM tab1
----
159
172
201

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 49 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - 0 + col2 * col2 AS col0 FROM tab2
----
1444
676
729

query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab2 AS cor0 WHERE cor0.col1 >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + 75 FROM tab1
----
225
4800
6000

query I rowsort
SELECT + ( + 41 ) + + col0 FROM tab1
----
105
121
44

query I rowsort
SELECT ALL col0 * - col2 * col0 AS col2 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2175
SELECT ALL + CAST( NULL AS SIGNED ) * 20 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT ALL + CAST ( NULL AS INTEGER ) * 20 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + col2 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-2177
SELECT DISTINCT - col1 DIV - tab2.col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - col1 / - tab2.col1 AS col2 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + col2 * tab1.col2 col1 FROM tab1
----
10464
3819
4320

query I rowsort
SELECT col1 * - col2 + col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE ( NULL ) > - col2 * col0
----

query I rowsort
SELECT DISTINCT + cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2182
SELECT DISTINCT col2 + - col1 * col1 DIV col0 FROM tab2 AS cor0
----
-110
-18
35

skipif mysql # not compatible
query I rowsort label-2182
SELECT DISTINCT col2 + - col1 * col1 / col0 FROM tab2 AS cor0
----
-110
-18
35

query I rowsort
SELECT DISTINCT + - col2 + + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > ( - col0 )
----

query I rowsort
SELECT + col0 + col2 FROM tab0 AS cor0 WHERE ( col2 * + cor0.col0 ) NOT IN ( - col0 )
----
171
36
57

query I rowsort
SELECT ALL - col2 + tab0.col0 * - col0 * + col0 AS col0 FROM tab0
----
-13857
-42876
-705051

query I rowsort
SELECT ALL tab1.col0 * + col0 + col2 FROM tab1
----
4153
63
6496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 - col0 * col0 col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT DISTINCT + col1 * - col2 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
-611793
-93568
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT - col1 DIV + col1 - - col1 * col2 AS col2 FROM tab0 cor0
----
2837
7461
96

skipif mysql # not compatible
query I rowsort label-2191
SELECT - col1 / + col1 - - col1 * col2 AS col2 FROM tab0 cor0
----
2837
7461
96

query I rowsort
SELECT cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT cor0.col0 AS col0 FROM tab0 cor0 WHERE + col1 > NULL OR NULL IN ( col0 * + cor0.col2 + - col2 * - col2 )
----

query I rowsort
SELECT + + col2 + col0 * col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-2195
SELECT + tab1.col1 DIV tab1.col0 AS col1 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2195
SELECT + tab1.col1 / tab1.col0 AS col1 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2196
SELECT + col2 + - col1 DIV col0 col2 FROM tab2
----
23
26
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2196
SELECT + col2 + - col1 / col0 col2 FROM tab2
----
23
26
38

query I rowsort
SELECT tab1.col1 * + col2 * col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT DISTINCT + col0 + + col2 * + tab2.col1 FROM tab2
----
1612
725
844

query I rowsort
SELECT + col0 + - col1 * col2 + tab1.col0 FROM tab1
----
-1088
-1398
-442

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe

query I rowsort
SELECT + col1 + + cor0.col1 * - col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + 13 * tab0.col1 FROM tab0, tab1 AS cor0
----
1118
1183
1261

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2203
SELECT ALL CAST( NULL AS SIGNED ) + + 22 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL CAST ( NULL AS INTEGER ) + + 22 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( + col2 ) col2 FROM tab0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2205
SELECT ALL - col1 * 34 DIV + col2 + col1 + - col2 FROM tab1
----
-44
-52
-87

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL - col1 * 34 / + col2 + col1 + - col2 FROM tab1
----
-44
-52
-87

query I rowsort
SELECT ALL tab1.col2 + + ( - col1 + tab1.col2 ) FROM tab1
----
104
179
82

query I rowsort
SELECT + 32 + + cor0.col1 * ( col1 ) FROM tab2 cor0
----
321
3513
993

onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT DISTINCT - col2 * col0 DIV + col2 + col2 * tab1.col2 + - col1 FROM tab1
----
2887
3175
9123

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT - col2 * col0 / + col2 + col2 * tab1.col2 + - col1 FROM tab1
----
2887
3175
9123

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
-10
-13
-26

query I rowsort
SELECT ALL - col1 + 35 FROM tab2
----
-24
18
4

query I rowsort
SELECT col1 * - 93 AS col2 FROM tab1 AS cor0
----
-1209
-2418
-930

onlyif mysql # use DIV operator for integer division
query I rowsort label-2212
SELECT cor0.col0 DIV - 10 AS col2 FROM tab1 AS cor0
----
-6
-8
0

skipif mysql # not compatible
query I rowsort label-2212
SELECT cor0.col0 / - 10 AS col2 FROM tab1 AS cor0
----
-6
-8
0

query I rowsort
SELECT DISTINCT - col2 + + 52 AS col2 FROM tab1 cor0
----
-2
-44
-5

query I rowsort
SELECT ALL 0 * col0 * - col0 + - tab2.col2 AS col0 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT + col1 + col1 - + 71 FROM tab2 AS cor0
----
-37
-9
47

query I rowsort
SELECT + 60 * - col2 AS col0 FROM tab2
----
-1560
-1620
-2280

query I rowsort
SELECT - cor0.col0 + col0 * - col0 FROM tab1 AS cor0
----
-12
-4160
-6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2218
SELECT col1 + col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2218
SELECT col1 + col2 + 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 + col0 - + col1 * col2 col0 FROM tab2
----
-1456
-567
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-2220
SELECT DISTINCT col1 DIV + col1 - col1 FROM tab2
----
-16
-30
-58

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT col1 / + col1 - col1 FROM tab2
----
-16
-30
-58

query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT - 77 + - 44 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-121

query I rowsort
SELECT col0 + + col0 - + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
168
3776
7840

query I rowsort
SELECT + + col2 * - col1 + 45 AS col1 FROM tab0 cor0
----
-2793
-52
-7417

query I rowsort
SELECT 9 - tab1.col2 FROM tab1
----
-45
-48
-87

query I rowsort
SELECT tab0.col1 + col1 + + col0 FROM tab0
----
196
229
271

query I rowsort
SELECT + + col2 * col2 * 43 + - col0 AS col0 FROM tab1 AS cor0
----
125385
139643
396208

onlyif mysql # use DIV operator for integer division
query I rowsort label-2228
SELECT + cor0.col2 DIV + 70 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2228
SELECT + cor0.col2 / + 70 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col2 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT - - cor0.col2 DIV ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2230
SELECT - - cor0.col2 / ( + col1 ) AS col2 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT + + col1 * + col2 + - ( + cor0.col1 ) FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - col0 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - col0 + 12 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-184
-236
-315

query I rowsort
SELECT ALL + col2 * 64 - col0 FROM tab0 cor0
----
2088
29
5159

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT + cor0.col1 - - CAST( NULL AS SIGNED ) * 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT + cor0.col1 - - CAST ( NULL AS INTEGER ) * 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 * - col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT DISTINCT - - col2 + cor0.col2 * - 18 AS col0 FROM tab1 AS cor0
----
-1632
-918
-969

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT ALL + col0 DIV + cor0.col0 AS col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + col0 / + cor0.col0 AS col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT - col2 + 83 FROM tab2 AS cor0
----
45
56
57

query I rowsort
SELECT ALL - cor0.col0 * - col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL - - col1 * 28 FROM tab1 AS cor0
----
280
364
728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + col0 col0 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT DISTINCT + col1 * + cor0.col0 + + col0 DIV col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT + col1 * + cor0.col0 + + col0 / col1 FROM tab2 AS cor0
----
1347
217
4603

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( - col2 AS REAL ) + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - + col1 + - 21 AS col2 FROM tab1 AS cor0
----
-31
-34
-47

query I rowsort
SELECT + + ( + col0 ) * col2 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2247
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - col1 - 45 FROM tab1 AS cor0
----
-1085
-123
-685

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2249
SELECT ALL 22 * col1 * - CAST( - 7 * cor0.col1 AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1139017
1275356
1448987

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL 22 * col1 * - CAST ( - 7 * cor0.col1 AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
1139017
1275356
1448987

query I rowsort
SELECT DISTINCT + 88 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
88

query I rowsort
SELECT ALL - col0 + col2 + + 96 AS col0 FROM tab0 AS cor0
----
105
62
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2252
SELECT CAST( ( - col0 ) AS SIGNED ) FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-2252
SELECT CAST ( ( - col0 ) AS INTEGER ) FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col0 FROM tab2
----
19
19
19

query I rowsort
SELECT col2 * - col2 + col2 AS col0 FROM tab2
----
-1406
-650
-702

query I rowsort
SELECT ALL 66 FROM tab0, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 * col2 + + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-16883
-3052
-6887

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2257
SELECT ALL - CAST( - col0 AS SIGNED ) 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-2257
SELECT ALL - CAST ( - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + 32 * + 65 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 659c8c338335d84840bf38e99dede6e6

query I rowsort
SELECT DISTINCT + + ( 36 ) AS col2 FROM tab2 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * + col1 col0 FROM tab1 AS cor0
----
-1209
-2418
-930

query I rowsort
SELECT ALL - 9 AS col0 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT ALL + col1 + + cor0.col1 DIV + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + col1 + + cor0.col1 / + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 + col2 + CAST ( + col2 AS REAL ) FROM tab2 AS cor0
----
114
78
81

query I rowsort
SELECT + - 67 + + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1467
579
770

query I rowsort
SELECT DISTINCT + col2 * col0 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT ALL + 29 AS col1 FROM tab2 AS cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - col0 + col2 * col2 AS col1 FROM tab2 cor0
----
1365
598
722

query I rowsort
SELECT ALL col1 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-2269
SELECT DISTINCT + + col0 + + ( + col1 ) DIV col0 AS col0 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-2269
SELECT DISTINCT + + col0 + + ( + col1 ) / col0 AS col0 FROM tab2 AS cor0
----
11
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2270
SELECT ALL - - col1 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - - col1 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2271
SELECT ALL - col1 * CAST( NULL AS SIGNED ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - col1 * CAST ( NULL AS INTEGER ) - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2272
SELECT ALL + + col1 * - CAST( col1 AS SIGNED ) * col0 + 9 FROM tab2 cor0
----
-22822
-271509
-6718

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + + col1 * - CAST ( col1 AS INTEGER ) * col0 + 9 FROM tab2 cor0
----
-22822
-271509
-6718

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT DISTINCT + col1 * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT + col1 * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 * ( 46 ) - + col0 FROM tab1 AS cor0
----
1193
396
518

query I rowsort
SELECT ALL col2 * 54 AS col1 FROM tab1 AS cor0
----
2916
3078
5184

onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT col0 DIV 64 - + col1 AS col0 FROM tab2 AS cor0
----
-16
-31
-58

skipif mysql # not compatible
query I rowsort label-2276
SELECT col0 / 64 - + col1 AS col0 FROM tab2 AS cor0
----
-16
-31
-58

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2278
SELECT ALL + + col1 / - ( col0 ) + + cor0.col2 * + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + + col1 / - ( col0 ) + + cor0.col2 * + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - cor0.col1 col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col0 * col1 - col1 AS col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT + - col1 * ( 15 * + col0 ) FROM tab1 AS cor0
----
-1170
-15600
-9600

query I rowsort
SELECT ALL + col0 * - 5 * col0 FROM tab2 cor0
----
-245
-30420
-31205

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - ( 43 ) + + col0 FROM tab0 AS cor0
----
-19
-8
46

query I rowsort
SELECT - - 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - col2 + col0 + col0 AS col1 FROM tab1
----
-48
64
71

query I rowsort
SELECT DISTINCT col1 * + 22 + + col0 AS col2 FROM tab2
----
1376
453
689

query I rowsort
SELECT col0 * + tab1.col0 * - col1 FROM tab1
----
-234
-40960
-83200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2289
SELECT DISTINCT + tab2.col0 + - CAST( - 22 AS SIGNED ) FROM tab2
----
100
101
29

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + tab2.col0 + - CAST ( - 22 AS INTEGER ) FROM tab2
----
100
101
29

skipif mysql # not compatible
query I rowsort
SELECT col2 * - cor0.col1 / col1 + CAST ( - col2 AS REAL ) AS col1 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT - - 10 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2828
-7452
-87

query I rowsort
SELECT + cor0.col2 * - 42 AS col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT ALL col1 * cor0.col2 + col0 DIV col2 AS col1 FROM tab0 cor0
----
132
2838
7463

skipif mysql # not compatible
query I rowsort label-2293
SELECT ALL col1 * cor0.col2 + col0 / col2 AS col1 FROM tab0 cor0
----
132
2838
7463

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2294
SELECT + col1 * - 16 + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT + col1 * - 16 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - col0 - col2 * + col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT ALL col1 * tab1.col0 + + col0 + + col2 * 40 AS col1 FROM tab1
----
2241
2984
4960

query I rowsort
SELECT col0 * col1 + - col1 * col1 FROM tab0
----
-182
-5332
-6014

onlyif mysql # use DIV operator for integer division
query I rowsort label-2299
SELECT tab0.col2 + + 14 DIV col0 + - col1 * - col0 FROM tab0
----
2097
3396
8181

skipif mysql # not compatible
query I rowsort label-2299
SELECT tab0.col2 + + 14 / col0 + - col1 * - col0 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL + 52 * - 6 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to a577a53150a3af3bafc73154955532a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 * col1 + + col2 col0 FROM tab2
----
11020
25974
90532

onlyif mysql # use DIV operator for integer division
query I rowsort label-2302
SELECT DISTINCT - tab0.col2 * - ( col1 ) + col2 * col1 DIV + 84 col0 FROM tab0
----
2871
7550
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - tab0.col2 * - ( col1 ) + col2 * col1 / + 84 col0 FROM tab0
----
2871
7550
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2303
SELECT ALL + + ( + col0 ) + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2303
SELECT ALL + + ( + col0 ) + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2304
SELECT DISTINCT - col2 + 51 DIV + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - col2 + 51 / + col2 AS col0 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT + cor0.col0 * 77 + col2 * 2 + + col2 DIV - col2 AS col1 FROM tab0 cor0
----
1913
2696
7016

skipif mysql # not compatible
query I rowsort label-2305
SELECT + cor0.col0 * 77 + col2 * 2 + + col2 / - col2 AS col1 FROM tab0 cor0
----
1913
2696
7016

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2306
SELECT - col0 * col0 * col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2306
SELECT - col0 * col0 * col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - cor0.col1 + 90 AS col1 FROM tab2, tab0 cor0
----
-1
-7
4

query I rowsort
SELECT ALL - col2 * 26 AS col2 FROM tab1
----
-1404
-1482
-2496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2310
SELECT DISTINCT + col1 + - 0 DIV 7 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + col1 + - 0 / 7 AS col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - ( col0 ) * - col1 col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT 50 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT ALL + + col2 * 55 AS col1 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT ALL + col1 * ( col2 * + col1 ) AS col0 FROM tab2 cor0
----
10982
25947
90506

query I rowsort
SELECT - 89 AS col1 FROM tab1 cor0
----
-89
-89
-89

query I rowsort
SELECT + cor0.col1 * - 96 FROM tab0, tab0 AS cor0
----
9 values hashing to dd419481b609348b1a758935e59915ae

query I rowsort
SELECT col1 * + col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2318
SELECT - col2 * - col2 - col0 DIV col0 FROM tab0 AS cor0
----
0
1088
6723

skipif mysql # not compatible
query I rowsort label-2318
SELECT - col2 * - col2 - col0 / col0 FROM tab0 AS cor0
----
0
1088
6723

onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT col0 * col0 - 62 DIV + 79 col2 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2319
SELECT col0 * col0 - 62 / + 79 col2 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( cor0.col1 ) * + col0 col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT DISTINCT col0 * ( + 81 ) FROM tab0 AS cor0
----
1944
2835
7209

query I rowsort
SELECT ALL 37 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

query I rowsort
SELECT ALL - + cor0.col2 * 32 FROM tab2 cor0
----
-1216
-832
-864

query I rowsort
SELECT - + 98 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT - 28 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 70e92c218433163922867899a16e1269

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2326
SELECT CAST( col0 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-2326
SELECT CAST ( col0 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 AS col1 FROM tab1
----
-1328
-1407
-634

query I rowsort
SELECT + + col2 * - col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL 42 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + 62 + - 86 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT + ( 18 ) FROM tab0
----
18
18
18

query I rowsort
SELECT DISTINCT - + 42 * - col1 + 0 - 74 AS col2 FROM tab1 AS cor0
----
1018
346
472

query I rowsort
SELECT + - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2335
SELECT + ( col0 ) DIV col1 - - ( - 27 ) DIV + col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT + ( col0 ) / col1 - - ( - 27 ) / + col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * col0 - + col0 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT col0 - + col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT ALL tab0.col0 * 30 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5e32ffbbbc021b2e0273869aa7570abb

query I rowsort
SELECT DISTINCT + col1 * col2 - tab2.col2 * 58 * col0 AS col1 FROM tab2
----
-10125
-116090
-173470

query I rowsort
SELECT - col2 + col2 + - ( + 87 ) FROM tab0
----
-87
-87
-87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT - ( - col2 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2341
SELECT - ( - col2 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + tab2.col0 + 98 AS col2 FROM tab2
----
112
254
256

query I rowsort
SELECT + 80 * col2 AS col1 FROM tab2 AS cor0
----
2080
2160
3040

query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT cor0.col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT col2 * - 1 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL - ( - col0 ) + col1 * 74 + col1 AS col1 FROM tab0 AS cor0
----
6474
6914
7310

query I rowsort
SELECT DISTINCT - col2 * 33 AS col2 FROM tab1
----
-1782
-1881
-3168

query I rowsort
SELECT col0 - + col1 * - col0 AS col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT - col2 + + col1 * + ( col1 + + 55 ) FROM tab2
----
1186
2639
6700

query I rowsort
SELECT + 66 * + col2 AS col2 FROM tab0 AS cor0
----
2178
5412
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT ( 33 ) + + col1 DIV 67 FROM tab0 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-2352
SELECT ( 33 ) + + col1 / 67 FROM tab0 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT + + 82 * - 19 AS col2 FROM tab2 cor0
----
-1558

query I rowsort
SELECT DISTINCT - ( ( - col0 ) ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 + + col2 + col1 AS col2 FROM tab0 AS cor0
----
152
255
99

query I rowsort
SELECT + ( col1 ) * cor0.col0 + - 78 + col0 AS col0 FROM tab0 cor0
----
2010
3352
8110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col0 + + col1 + 85 col0 FROM tab1 cor0
----
-545
-942
33

query I rowsort
SELECT ALL col2 + col1 + ( 59 + col0 ) FROM tab1
----
142
190
248

query I rowsort
SELECT DISTINCT col2 * col1 * - col0 + col1 * - col2 + col1 FROM tab1
----
-101075
-37040
-5590

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2360
SELECT ALL + CAST( cor0.col0 AS SIGNED ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + CAST ( cor0.col0 AS INTEGER ) FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT ALL 69 DIV - col2 + ( 17 ) AS col0 FROM tab0
----
-52
15
17

skipif mysql # not compatible
query I rowsort label-2361
SELECT ALL 69 / - col2 + ( 17 ) AS col0 FROM tab0
----
-52
15
17

query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT + col2 * + ( + col0 * + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT - cor0.col0 * - 16 FROM tab2 cor0
----
112
1248
1264

query I rowsort
SELECT ALL col1 * - 44 AS col2 FROM tab1
----
-1144
-440
-572

query I rowsort
SELECT DISTINCT - - col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + 2 AS col0 FROM tab2 cor0
----
1446
678
731

query I rowsort
SELECT ALL col2 + - 46 AS col2 FROM tab0 AS cor0
----
-13
-45
36

query I rowsort
SELECT + col2 * col0 + + 26 AS col0 FROM tab2 cor0
----
2054
215
3028

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2370
SELECT ALL - col0 * + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
-1225
-576
-7921

skipif mysql # not compatible
query I rowsort label-2370
SELECT ALL - col0 * + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col1 * + 95 + 33 FROM tab0 AS cor0
----
8203
8678
9248

query I rowsort
SELECT - col0 * - col2 + - col1 * + col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL col0 * 59 + - 8 AS col1 FROM tab0 AS cor0
----
1408
2057
5243

query I rowsort
SELECT ALL + - 31 * - 11 * + col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
18360
19380
32640

query I rowsort
SELECT ALL - + col1 * col0 + col2 - ( - col0 ) AS col2 FROM tab2 cor0
----
-1226
-183
-4498

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col1 + col1 - - col2 FROM tab1 AS cor0
----
106
122
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT ALL col2 * - 3 - + col0 DIV ( - col1 ) FROM tab2 cor0
----
-110
-77
-81

skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL col2 * - 3 - + col0 / ( - col1 ) FROM tab2 cor0
----
-110
-77
-81

query I rowsort
SELECT ALL - - col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + col0 - col0 * col2 FROM tab1 cor0
----
-159
-3584
-7600

query I rowsort
SELECT 67 * - cor0.col0 - + 5 AS col1 FROM tab2 AS cor0
----
-474
-5231
-5298

query I rowsort
SELECT - - col0 * - col2 + 31 FROM tab1 AS cor0
----
-131
-3617
-7649

query I rowsort
SELECT ALL - + cor0.col0 * - col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + + col0 + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-7

query I rowsort
SELECT ALL - 20 - - 39 * col1 AS col0 FROM tab2
----
1189
2281
643

query I rowsort
SELECT - col0 + - 31 * - col2 AS col2 FROM tab2
----
1099
728
830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 * ( ( - col1 ) * - 72 ) - col2 col2 FROM tab0 AS cor0
----
45795999
54257030
65712455

query I rowsort
SELECT DISTINCT - - 46 * col2 + cor0.col2 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT ALL cor0.col1 * col0 - + col1 * + 46 AS col2 FROM tab1 AS cor0
----
-1118
180
442

query I rowsort
SELECT DISTINCT ( col2 ) * col2 + - col0 FROM tab1 AS cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-2392
SELECT DISTINCT - cor0.col1 + col0 DIV - 22 FROM tab2 AS cor0
----
-20
-31
-62

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - cor0.col1 + col0 / - 22 FROM tab2 AS cor0
----
-20
-31
-62

query I rowsort
SELECT ALL + col1 * col1 * + 61 + 12 AS col1 FROM tab0 AS cor0
----
451168
505153
573961

query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + 63 FROM tab0 AS cor0
----
7361
855
98

query I rowsort
SELECT 92 + - col2 AS col1 FROM tab1 AS cor0
----
-4
35
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2396
SELECT DISTINCT - + 29 + + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT - + 29 + + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT - 59 DIV 67 + col2 * - col2 FROM tab0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-2397
SELECT - 59 / 67 + col2 * - col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT 57 * col0 AS col2 FROM tab0 AS cor0
----
1368
1995
5073

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - 36 col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4a82ced5cc673b5c5a9579cdeb493696

query I rowsort
SELECT + + col2 * - 82 - + col2 FROM tab2 AS cor0
----
-2158
-2241
-3154

query I rowsort
SELECT - 44 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # use DIV operator for integer division
query I rowsort label-2402
SELECT ALL col1 DIV - col1 + + col2 col2 FROM tab1
----
53
56
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2402
SELECT ALL col1 / - col1 + + col2 col2 FROM tab1
----
53
56
95

query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + col1 ) ) * col1 col0 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - col0 * ( col2 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT 37 * - cor0.col0 AS col1 FROM tab2 cor0
----
-259
-2886
-2923

query I rowsort
SELECT DISTINCT + col0 * + col1 * + tab1.col1 AS col2 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT 10 * 26 + + col0 AS col2 FROM tab0
----
284
295
349

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col0 col1 FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2410
SELECT CAST( NULL AS SIGNED ) * - col2 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2410
SELECT CAST ( NULL AS INTEGER ) * - col2 + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 17 ) * col2 + col0 * + col2 * - col0 FROM tab1
----
-232503
-612768
432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - ( col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT ALL - cor0.col0 + - col0 * col2 AS col1 FROM tab1 cor0
----
-165
-3712
-7760

query I rowsort
SELECT ( - 2 ) AS col1 FROM tab0 cor0
----
-2
-2
-2

query I rowsort
SELECT + 85 * + 99 AS col1 FROM tab0 AS cor0
----
8415
8415
8415

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2417
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 64 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2419
SELECT + CAST( + 24 AS SIGNED ) FROM tab0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-2419
SELECT + CAST ( + 24 AS INTEGER ) FROM tab0
----
24
24
24

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT + + ( col1 ) + + cor0.col0 DIV + CAST( col1 AS SIGNED ) + col0 * ( col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
58
59
86

skipif mysql # not compatible
query I rowsort label-2422
SELECT + + ( col1 ) + + cor0.col0 / + CAST ( col1 AS INTEGER ) + col0 * ( col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
58
59
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2423
SELECT - CAST( NULL AS SIGNED ) + col2 * + col1 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT - CAST ( NULL AS INTEGER ) + col2 * + col1 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 22 * 28 * col2 + 13 + col2 * + col2 FROM tab0 AS cor0
----
-19226
-43775
-602

query I rowsort
SELECT - - col0 + - col0 - col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + 91 - + col2 AS col0 FROM tab0
----
58
9
90

query I rowsort
SELECT ( col2 ) * col2 + + col0 - col0 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col2 * + col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + col1 * - 18 FROM tab2 cor0
----
-1062
-306
-558

query I rowsort
SELECT + 70 * - col2 * - col1 + col2 FROM tab2
----
107406
45258
58617

query I rowsort
SELECT + col2 * 36 FROM tab1 cor0
----
1944
2052
3456

query I rowsort
SELECT ALL col0 + - 38 FROM tab1 AS cor0
----
-35
26
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT cor0.col2 * - CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2433
SELECT cor0.col2 * - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col1 * ( 15 ) * col2 AS col1 FROM tab0 AS cor0
----
111930
1455
42570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2435
SELECT ALL cor0.col0 * 49 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2
-40
-55

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL cor0.col0 * 49 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
-2
-40
-55

query I rowsort
SELECT DISTINCT - - col1 * - 1 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2437
SELECT ALL - col0 * + col0 * - col2 + + col2 DIV - 58 + cor0.col0 * col2 FROM tab1 AS cor0
----
237120
622079
648

skipif mysql # not compatible
query I rowsort label-2437
SELECT ALL - col0 * + col0 * - col2 + + col2 / - 58 + cor0.col0 * col2 FROM tab1 AS cor0
----
237120
622079
648

query I rowsort
SELECT ALL - ( - col0 ) * + col2 + + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT col2 + col0 * ( col1 * - col2 ) FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT DISTINCT col0 * - col2 * - col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ALL - - col0 + col2 * col1 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2442
SELECT col0 * - cor0.col1 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT col0 * - cor0.col1 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 96 col2 FROM tab0
----
3168
7872
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2444
SELECT DISTINCT CAST( ( - col2 ) + + ( col1 ) AS SIGNED ) FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-2444
SELECT DISTINCT CAST ( ( - col2 ) + + ( col1 ) AS INTEGER ) FROM tab1
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * + 51 col0 FROM tab2
----
-1326
-1377
-1938

onlyif mysql # use DIV operator for integer division
query I rowsort label-2446
SELECT + + col1 + col2 DIV + col2 + - cor0.col0 FROM tab0 AS cor0
----
3
63
63

skipif mysql # not compatible
query I rowsort label-2446
SELECT + + col1 + col2 / + col2 + - cor0.col0 FROM tab0 AS cor0
----
3
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + cor0.col0 col1 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + ( - 48 ) * + col1 + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1257
-4576
-7024

query I rowsort
SELECT ALL 44 + + ( col2 ) AS col0 FROM tab0 AS cor0
----
126
45
77

query I rowsort
SELECT DISTINCT + col2 * - 14 FROM tab1 AS cor0
----
-1344
-756
-798

query I rowsort
SELECT + + col0 * - 80 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-4706
-5674
277

query I rowsort
SELECT col2 - + 28 AS col2 FROM tab1 AS cor0
----
26
29
68

query I rowsort
SELECT ALL - col2 + col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col0 * + col2 - col1 AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # use DIV operator for integer division
query I rowsort label-2456
SELECT col1 DIV - 49 col2 FROM tab2
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2456
SELECT col1 / - 49 col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - 77 AS REAL ) + tab1.col1 * - col1 * - col0 AS col0 FROM tab1
----
13597
2105
6477

onlyif mysql # use DIV operator for integer division
query I rowsort label-2458
SELECT - col1 DIV + col0 + col1 AS col2 FROM tab2 cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-2458
SELECT - col1 / + col0 + col1 AS col2 FROM tab2 cor0
----
17
27
59

query I rowsort
SELECT DISTINCT col1 + ( + col1 * col0 ) FROM tab1
----
104
1053
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab1.col0 col1 FROM tab1
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2461
SELECT CAST( NULL AS DECIMAL ) + col1 * cor0.col2 + col1 / - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2461
SELECT CAST ( NULL AS REAL ) + col1 * cor0.col2 + col1 / - col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 col1 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL - col1 * - col0 + + col0 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL + col0 * col2 + - col0 FROM tab2
----
182
1950
2923

query I rowsort
SELECT - col1 * - 98 FROM tab1 AS cor0
----
1274
2548
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT col0 DIV - 67 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2467
SELECT col0 / - 67 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col0 + 39 AS col0 FROM tab1 AS cor0
----
103
119
42

query I rowsort
SELECT DISTINCT - col1 * col1 + + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1079
470
728

onlyif mysql # use DIV operator for integer division
query I rowsort label-2470
SELECT 82 DIV - col2 + + col1 AS col1 FROM tab1
----
13
25
9

skipif mysql # not compatible
query I rowsort label-2470
SELECT 82 / - col2 + + col1 AS col1 FROM tab1
----
13
25
9

query I rowsort
SELECT ALL col1 * + col1 * - 55 FROM tab0
----
-406780
-455455
-517495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2472
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-2472
SELECT col2 + + CAST ( NULL AS INTEGER ) * col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2473
SELECT ALL + - col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2473
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-2474
SELECT DISTINCT + col1 DIV 82 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT + col1 / 82 FROM tab2 AS cor0
----
0

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to df00d19f178a708f636b036dcb6c6f87

query I rowsort
SELECT col2 * + 11 AS col2 FROM tab0 AS cor0
----
11
363
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2477
SELECT DISTINCT - col1 * CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - col1 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - - cor0.col1 * + 29 AS col2 FROM tab1 AS cor0
----
290
377
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2479
SELECT ALL + col2 DIV 19 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL + col2 / 19 AS col0 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ALL - col0 * 81 AS col1 FROM tab1 cor0
----
-243
-5184
-6480

query I rowsort
SELECT - + col1 * + col0 * + cor0.col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT + col0 * 1 FROM tab1 AS cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2483
SELECT DISTINCT - col2 DIV CAST( col1 * + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT - col2 / CAST ( col1 * + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col2 + - 79 AS col1 FROM tab1 cor0
----
-22
-25
17

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL col2 + col0 * cor0.col2 AS col2 FROM tab1 cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-2487
SELECT col0 + col1 DIV col0 FROM tab1 AS cor0
----
11
64
80

skipif mysql # not compatible
query I rowsort label-2487
SELECT col0 + col1 / col0 FROM tab1 AS cor0
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2488
SELECT - cor0.col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2488
SELECT - cor0.col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT col2 + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT col2 + + col0 * + cor0.col2 FROM tab0 AS cor0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 + tab1.col1 ) col0 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL - + ( + col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col1 * - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + cor0.col1 - + col1 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT + 51 * cor0.col0 + col2 FROM tab0 AS cor0
----
1257
1786
4621

query I rowsort
SELECT + col1 * col0 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
406
4345
6630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + cor0.col0 * col1 col2 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT 89 * tab2.col0 + col0 * + col0 FROM tab2
----
13026
13272
672

query I rowsort
SELECT ALL col0 * col1 + + 66 + + 70 * cor0.col0 AS col1 FROM tab2 AS cor0
----
10128
6939
773

query I rowsort
SELECT DISTINCT - 32 - col0 FROM tab1 AS cor0
----
-112
-35
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2503
SELECT DISTINCT col2 * - col1 * - CAST( NULL AS DECIMAL ) - 23 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT col2 * - col1 * - CAST ( NULL AS REAL ) - 23 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 45 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( tab1.col2 ) col2 FROM tab1
----
-54
-57
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( ( col1 ) ) * - ( col0 ) * col1 col0 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - - 39 + cor1.col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5de53199516d39b4c062739dfa5c2bd8

query I rowsort
SELECT cor0.col2 + - 64 FROM tab0, tab0 AS cor0
----
9 values hashing to eac854d5fd7a814dfc96813b68df7c5a

query I rowsort
SELECT DISTINCT + ( 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT + - col1 * col1 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-2510
SELECT + - col1 * col1 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab2 AS cor2, tab0
----
13122 values hashing to 1540e73316bf41a391717376f2b32fb4

query I rowsort
SELECT DISTINCT + 31 FROM tab1, tab1 AS cor0
----
31

onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT - ( cor0.col2 ) DIV - col2 + + col0 FROM tab0 cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2513
SELECT - ( cor0.col2 ) / - col2 + + col0 FROM tab0 cor0
----
25
36
90

query I rowsort
SELECT + - ( - cor0.col0 ) * col2 * + ( 42 ) FROM tab2 AS cor0
----
126084
7938
85176

query I rowsort
SELECT + col1 * 30 AS col2 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT ALL cor0.col1 + 72 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 06409ab194ab0c44f6883184bba40487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2517
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - 6 col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT + CAST ( NULL AS REAL ) / - 6 col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 55 + - col1 * col1 AS col1 FROM tab2
----
-234
-3426
-906

query I rowsort
SELECT DISTINCT - + cor0.col0 * ( + 72 ) * - cor0.col1 FROM tab0, tab0 AS cor0
----
148608
244440
583128

onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT - 9 DIV - 98 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2520
SELECT - 9 / - 98 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2521
SELECT + CAST( - col2 AS SIGNED ) + col2 DIV 33 col2 FROM tab2 AS cor0
----
-26
-27
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2521
SELECT + CAST ( - col2 AS INTEGER ) + col2 / 33 col2 FROM tab2 AS cor0
----
-26
-27
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT ALL ( + 81 ) * + col2 * - col0 + + col2 DIV + col2 + + tab0.col0 FROM tab0
----
-2799
-591048
-64127

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL ( + 81 ) * + col2 * - col0 + + col2 / + col2 + + tab0.col0 FROM tab0
----
-2799
-591048
-64127

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb

query I rowsort
SELECT DISTINCT col2 + col2 + + col1 * - col0 FROM tab0
----
-1998
-3393
-7935

query I rowsort
SELECT ALL - col1 * cor0.col1 * col2 + col0 * - 77 * col0 AS col0 FROM tab2 AS cor0
----
-29720
-491539
-558974

query I rowsort
SELECT 5 * + col0 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL + - col0 * - ( + cor0.col2 ) + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
1150
3291
5509

onlyif mysql # use DIV operator for integer division
query I rowsort label-2529
SELECT - - 48 + 72 DIV - col0 AS col1 FROM tab0 AS cor0
----
45
46
48

skipif mysql # not compatible
query I rowsort label-2529
SELECT - - 48 + 72 / - col0 AS col1 FROM tab0 AS cor0
----
45
46
48

query I rowsort
SELECT + 85 * ( cor0.col1 ) + - 50 AS col0 FROM tab1 AS cor0
----
1055
2160
800

query I rowsort
SELECT DISTINCT - 1 * - col2 AS col2 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - 88 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT - 64 * - cor0.col1 FROM tab0 cor0
----
5504
5824
6208

query I rowsort
SELECT - 18 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 89 col1 FROM tab2 AS cor0
----
89

query I rowsort
SELECT ALL + - 77 + - col2 * - ( col0 ) AS col2 FROM tab0 AS cor0
----
-42
715
7221

query I rowsort
SELECT - - col0 + ( - 66 ) FROM tab2 AS cor0
----
-59
12
13

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7

query I rowsort
SELECT col1 + - col2 + - col1 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT - col1 DIV + col0 AS col1 FROM tab0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2540
SELECT - col1 / + col0 AS col1 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - 65 * col0 col1 FROM tab0 AS cor0
----
1527
2274
5703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col1 FROM tab1 cor0
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2543
SELECT ALL + col1 + 48 * + ( cor0.col1 ) - col0 DIV + ( - col2 + col1 ) AS col1 FROM tab2 AS cor0
----
1518
2889
836

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL + col1 + 48 * + ( cor0.col1 ) - col0 / + ( - col2 + col1 ) AS col1 FROM tab2 AS cor0
----
1518
2889
836

query I rowsort
SELECT DISTINCT - col1 + 41 * + col1 FROM tab2 AS cor0
----
1240
2360
680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2545
SELECT ALL - col0 DIV 77 - 62 * col0 FROM tab2 AS cor0
----
-434
-4837
-4899

skipif mysql # not compatible
query I rowsort label-2545
SELECT ALL - col0 / 77 - 62 * col0 FROM tab2 AS cor0
----
-434
-4837
-4899

query I rowsort
SELECT DISTINCT - ( col1 ) * cor0.col2 + + ( col1 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-357
124
1947

query I rowsort
SELECT - col0 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - + cor0.col0 * - 76 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 91e3caab06f0df18dab6806021edd75c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2549
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 8 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 8 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2550
SELECT ALL - col0 * 42 DIV col2 AS col2 FROM tab0 cor0
----
-1470
-30
-45

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - col0 * 42 / col2 AS col2 FROM tab0 cor0
----
-1470
-30
-45

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 * + col2 FROM tab0 AS cor0
----
36
7380
825

onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT 20 + col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-77
18
19

skipif mysql # not compatible
query I rowsort label-2552
SELECT 20 + col1 / - col2 AS col2 FROM tab0 AS cor0
----
-77
18
19

query I rowsort
SELECT ALL + + col0 * + 69 + - col2 * + 60 AS col0 FROM tab2 cor0
----
-1137
3171
3822

query I rowsort
SELECT - col0 * 60 + - tab2.col0 + col0 FROM tab2
----
-420
-4680
-4740

query I rowsort
SELECT DISTINCT col1 - - col0 * + col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT DISTINCT + tab1.col2 - 55 AS col2 FROM tab1
----
-1
2
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT tab0.col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2557
SELECT tab0.col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2558
SELECT DISTINCT + tab2.col2 - + 8 DIV + col1 AS col0 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-2558
SELECT DISTINCT + tab2.col2 - + 8 / + col1 AS col0 FROM tab2
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2559
SELECT ALL - col1 + + cor0.col1 + - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL - col1 + + cor0.col1 + - col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 * + col0 + col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - col2 * col1 + 28 FROM tab0 AS cor0
----
-2810
-69
-7434

query I rowsort
SELECT ALL - col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 80 FROM tab2 cor0
----
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT DISTINCT ( 0 ) DIV col1 + + col1 * + cor0.col2 * col1 + col2 * - ( - col0 ) FROM tab2 AS cor0
----
13984
26136
92534

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT ( 0 ) / col1 + + col1 * + cor0.col2 * col1 + col2 * - ( - col0 ) FROM tab2 AS cor0
----
13984
26136
92534

query I rowsort
SELECT 27 * - col0 + cor0.col0 FROM tab0 AS cor0
----
-2314
-624
-910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2566
SELECT ALL - col2 * col1 * col0 + CAST( col0 AS SIGNED ) + cor0.col2 * col1 FROM tab2 AS cor0
----
-118040
-5015
-50309

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL - col2 * col1 * col0 + CAST ( col0 AS INTEGER ) + cor0.col2 * col1 FROM tab2 AS cor0
----
-118040
-5015
-50309

query I rowsort
SELECT 90 * - 20 AS col2 FROM tab2 AS cor0
----
-1800
-1800
-1800

query I rowsort
SELECT tab1.col2 * col2 + ( + tab1.col1 ) FROM tab1
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT DISTINCT col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT col0 / - cor0.col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT DISTINCT - cor0.col1 * col0 - + col0 * col0 * + col2 FROM tab1 AS cor0
----
-234112
-564
-615440

query I rowsort
SELECT ALL - + 73 * col1 * 93 + + col2 AS col1 FROM tab2 AS cor0
----
-115375
-210432
-400525

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT DISTINCT - + col0 - cor0.col2 * CAST( + 49 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1641
-4107
-84

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT - + col0 - cor0.col2 * CAST ( + 49 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1641
-4107
-84

query I rowsort
SELECT cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2574
SELECT - ( cor0.col1 ) + + 34 DIV col0 col1 FROM tab2 AS cor0
----
-17
-27
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2574
SELECT - ( cor0.col1 ) + + 34 / col0 col1 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT ALL - 54 + - col1 * col1 FROM tab1 cor0
----
-154
-223
-730

onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT col1 DIV - col1 + col0 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2576
SELECT col1 / - col1 + col0 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT ALL - - ( col1 ) * - ( 98 ) AS col2 FROM tab1 cor0
----
-1274
-2548
-980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2578
SELECT DISTINCT - - col0 + cor0.col1 * CAST( + 35 + cor0.col2 * + CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-65078
-660844
35

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT - - col0 + cor0.col1 * CAST ( + 35 + cor0.col2 * + CAST ( - col0 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-65078
-660844
35

query I rowsort
SELECT - 43 * + col2 + - tab1.col1 + - tab1.col1 FROM tab1
----
-2374
-2471
-4154

query I rowsort
SELECT 5 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * + cor0.col0 col0 FROM tab0 AS cor0
----
-1200
-1750
-4450

onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT cor0.col2 + - col0 DIV + col1 col1 FROM tab1 AS cor0
----
51
54
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2582
SELECT cor0.col2 + - col0 / + col1 col1 FROM tab1 AS cor0
----
51
54
90

query I rowsort
SELECT DISTINCT + col2 * col2 + - col1 AS col0 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT + ( col1 ) * + tab2.col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT ( 5 ) + - col2 AS col0 FROM tab0
----
-28
-77
4

query I rowsort
SELECT DISTINCT + 90 + + 7 FROM tab2
----
97

query I rowsort
SELECT DISTINCT 45 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
45

query I rowsort
SELECT 12 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6

query I rowsort
SELECT - tab2.col0 + - tab2.col2 AS col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * 69 AS col1 FROM tab2 AS cor0
----
1820
1890
2660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + 43 col1 FROM tab0 AS cor0
----
2107
3438
8142

query I rowsort
SELECT + col0 * 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ( + col1 ) * 9 AS col2 FROM tab1
----
117
234
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-2594
SELECT ALL tab0.col0 DIV col1 col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2594
SELECT ALL tab0.col0 / col1 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT tab1.col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - + col2 * ( - col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2597
SELECT - col1 DIV - ( cor0.col1 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2597
SELECT - col1 / - ( cor0.col1 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - col1 * 73 * + cor0.col0 AS col2 FROM tab2 cor0
----
-15841
-335946
-98039

onlyif mysql # use DIV operator for integer division
query I rowsort label-2599
SELECT - + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-2599
SELECT - + col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT 4 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + ( col0 ) + tab2.col2 * + tab2.col2 FROM tab2
----
1523
736
754

onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT DISTINCT + col1 DIV - col2 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2602
SELECT DISTINCT + col1 / - col2 + col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col1 ) * col0 + col0 + col0 * col0 * - col2 col2 FROM tab0 AS cor0
----
-16920
-641334
2205

query I rowsort
SELECT col1 + + 76 AS col1 FROM tab2 AS cor0
----
107
135
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2605
SELECT ALL - ( col2 ) - - col2 / - CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL - ( col2 ) - - col2 / - CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 62 * 63 + col0 * + ( + col1 ) * col1 + + col1 FROM tab1 cor0
----
10316
17439
5960

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 25 AS REAL ) * + col1 + 28 col2 FROM tab0 AS cor0
----
-2122
-2247
-2397

query I rowsort
SELECT DISTINCT - cor0.col1 + + 30 * col2 AS col0 FROM tab0 AS cor0
----
-67
2369
904

query I rowsort
SELECT DISTINCT + col0 * 33 + col0 * ( + col1 ) AS col0 FROM tab1 cor0
----
177
2752
3680

query I rowsort
SELECT + + ( col1 ) * col2 + ( col2 ) * col0 AS col0 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT ALL col0 * 92 FROM tab2 AS cor0
----
644
7176
7268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 21 ) - col2 * + 55 col1 FROM tab0 cor0
----
-1836
-4531
-76

query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * + col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + 74 * - cor0.col2 FROM tab0 AS cor0
----
-2442
-6068
-74

query I rowsort
SELECT ALL 28 * col1 AS col2 FROM tab0 AS cor0
----
2408
2548
2716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT col1 + col0 * col0 + + col2 FROM tab1
----
4163
6509
89

query I rowsort
SELECT DISTINCT - tab1.col0 * + col0 AS col1 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col1 + + col2 * - col2 + + col1 * + col2 FROM tab0
----
1835
193
829

query I rowsort
SELECT DISTINCT col1 * + tab0.col1 AS col2 FROM tab0
----
7396
8281
9409

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col2 * + col2 + + col2 + col1 * + col1 * col2 )
----

query I rowsort
SELECT ALL col1 + + col0 * tab0.col2 AS col1 FROM tab0
----
132
7389
878

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * + tab0.col0 - + col2 col2 FROM tab0
----
2031
3394
8017

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + + col0 NOT BETWEEN + col1 AND ( NULL )
----

query I rowsort
SELECT ALL tab1.col2 FROM tab1 WHERE col1 / - col0 + + col0 BETWEEN ( NULL ) AND - col0
----

query I rowsort
SELECT + tab1.col2 * col0 * col2 - col2 * col1 FROM tab1
----
207366
7344
736032

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * col0 > ( + col2 + - col2 )
----

query I rowsort
SELECT - col0 + + tab2.col0 * - col1 AS col1 FROM tab2 WHERE col2 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2630
SELECT DISTINCT ( cor0.col2 ) + ( col2 ) DIV - col2 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-2630
SELECT DISTINCT ( cor0.col2 ) + ( col2 ) / - col2 FROM tab0 cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + 67 + + col2 FROM tab1 AS cor0
----
121
124
163

query I rowsort
SELECT DISTINCT - col2 * col1 + ( - col1 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1798
-5015
-935

query I rowsort
SELECT col0 * tab0.col2 FROM tab0 WHERE NOT ( - col2 ) BETWEEN - col0 + col1 AND - col1
----
35
7298
792

query I rowsort
SELECT col0 + tab0.col2 + - col1 AS col0 FROM tab0
----
-29
-61
80

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( + col1 + - col2 * col1 )
----

query I rowsort
SELECT ALL tab1.col1 * + tab1.col2 * col1 AS col1 FROM tab1
----
16224
36504
5700

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT col1 DIV col0 + col2 - col0 * - col0 AS col1 FROM tab1
----
4153
6496
71

skipif mysql # not compatible
query I rowsort label-2638
SELECT col1 / col0 + col2 - col0 * - col0 AS col1 FROM tab1
----
4153
6496
71

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( + col0 / + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT - col0 * cor0.col1 DIV col1 - + col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-2640
SELECT - col0 * cor0.col1 / col1 - + col1 FROM tab1 AS cor0
----
-29
-74
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT col1 > NULL
----

query I rowsort
SELECT DISTINCT col2 * col2 * + tab0.col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT tab2.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL < NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT DISTINCT + col1 * + col0 + + col0 DIV col2 FROM tab1
----
1040
641
78

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + col1 * + col0 + + col0 / col2 FROM tab1
----
1040
641
78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( col2 * - col2 + - col2 * col0 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 * col2 + col2 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT - col1 + col1 * col2 AS col1 FROM tab0
----
0
2752
7371

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 IN ( col1 / col0 )
----

query I rowsort
SELECT - col0 + - col1 * - col0 * col1 FROM tab1
----
13440
2025
6336

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN col2 + + col0 + + col1 AND col0
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT cor0.col1 + + col0 + col0 FROM tab2 AS cor0
----
175
215
45

query I rowsort
SELECT ALL - tab2.col0 + + col1 * col2 AS col2 FROM tab2
----
1456
567
830

query I rowsort
SELECT DISTINCT col0 * + col1 AS col2 FROM tab2 WHERE NOT ( col1 - + col1 ) <= col2 * col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2655
SELECT + col0 DIV tab1.col0 + - tab1.col1 * col1 * + col1 FROM tab1
----
-17575
-2196
-999

skipif mysql # not compatible
query I rowsort label-2655
SELECT + col0 / tab1.col0 + - tab1.col1 * col1 * + col1 FROM tab1
----
-17575
-2196
-999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * + col1 col1 FROM tab0 cor0
----
-1978
-3298
-8008

query I rowsort
SELECT + ( col1 ) - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT cor1.col2 * - 42 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
-1386
-3444
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2659
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 78 FROM tab1
----
132
135
174

query I rowsort
SELECT + col2 * col1 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
1357
1484
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT ALL - 35 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT ALL - 35 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 58 + tab0.col0 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to 084a8015d25e847f044ef805383e159a

onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT ALL + - 40 + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-33
-35
-38

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + - 40 + col2 / col1 AS col2 FROM tab1 AS cor0
----
-33
-35
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT DISTINCT 36 DIV + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT 36 / + col1 + + col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ( + col1 ) * + col2 + - col1 - cor0.col2 AS col0 FROM tab1 AS cor0
----
1139
1324
503

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28

query I rowsort
SELECT + + 37 * 65 + - col1 * 42 AS col0 FROM tab0 cor0
----
-1207
-1417
-1669

query I rowsort
SELECT DISTINCT ( - 30 ) FROM tab1 cor0
----
-30

query I rowsort
SELECT ALL col0 * - 72 AS col0 FROM tab0 AS cor0
----
-1728
-2520
-6408

query I rowsort
SELECT ( col0 ) * - tab1.col1 - + col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT 56 - + tab1.col1 FROM tab1
----
30
43
46

query I rowsort
SELECT ALL + 96 AS col0 FROM tab0
----
96
96
96

query I rowsort
SELECT ALL 15 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0

query I rowsort
SELECT DISTINCT + - col1 * - col1 + - 46 AS col2 FROM tab2 AS cor0
----
243
3435
915

query I rowsort
SELECT + 84 + col1 * 25 FROM tab1 AS cor0
----
334
409
734

query I rowsort
SELECT DISTINCT + + col1 * ( col1 * col2 + + ( col1 ) ) FROM tab1 cor0
----
16393
37180
5800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2678
SELECT ALL col0 * CAST( 69 AS SIGNED ) col0 FROM tab2 AS cor0
----
483
5382
5451

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2678
SELECT ALL col0 * CAST ( 69 AS INTEGER ) col0 FROM tab2 AS cor0
----
483
5382
5451

onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + col0 DIV + 75 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2679
SELECT + col0 / + 75 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - + col2 + + 80 FROM tab0 AS cor0
----
-2
47
79

query I rowsort
SELECT + col0 + + ( + 72 ) * + col2 FROM tab0 cor0
----
107
2400
5993

onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT - + col0 DIV - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2682
SELECT - + col0 / - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col0 * - 40 FROM tab0 AS cor0
----
1400
3560
960

query I rowsort
SELECT DISTINCT - cor0.col0 * 4 * col0 FROM tab0 AS cor0
----
-2304
-31684
-4900

query I rowsort
SELECT ALL + col2 * - col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT + 9 * tab2.col1 AS col0 FROM tab2
----
153
279
531

onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT + - ( 19 ) * col1 DIV + 41 AS col1 FROM tab1 AS cor0
----
-12
-4
-6

skipif mysql # not compatible
query I rowsort label-2687
SELECT + - ( 19 ) * col1 / + 41 AS col1 FROM tab1 AS cor0
----
-12
-4
-6

query I rowsort
SELECT DISTINCT - col1 + + 82 * col2 FROM tab0 AS cor0
----
-15
2620
6633

query I rowsort
SELECT ALL - col2 * - 92 + + col0 FROM tab0 cor0
----
127
3060
7633

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT + CAST( col2 AS SIGNED ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2690
SELECT + CAST ( col2 AS INTEGER ) * - col0 AS col2 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 + + col2 * - ( + col1 ) FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - 6 + - col2 AS col1 FROM tab2 AS cor0
----
-32
-33
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 41 + + 52 col0 FROM tab2
----
110
124
152

query I rowsort
SELECT col1 * - col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT col1 * - ( col1 ) + - col1 + - col0 AS col2 FROM tab2
----
-3618
-385
-999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2696
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT ALL col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-2697
SELECT ALL col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT ALL + col1 - col0 DIV 59 FROM tab2 AS cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL + col1 - col0 / 59 FROM tab2 AS cor0
----
16
31
58

query I rowsort
SELECT DISTINCT - + col0 * ( col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col0 - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col0 - 36 AS col2 FROM tab1 AS cor0
----
-33
28
44

query I rowsort
SELECT DISTINCT + + col2 + + ( + col1 ) FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT + col1 + + 43 AS col0 FROM tab2 AS cor0
----
102
60
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2704
SELECT - - cor0.col1 * - CAST( NULL AS SIGNED ) + - col1 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2704
SELECT - - cor0.col1 * - CAST ( NULL AS INTEGER ) + - col1 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT - col1 DIV 7 + + col0 FROM tab1 AS cor0
----
0
63
79

skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT - col1 / 7 + + col0 FROM tab1 AS cor0
----
0
63
79

query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + col0 * - 46 + col1 FROM tab1 AS cor0
----
-112
-2934
-3667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col2 col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 AS col1 FROM tab1 AS cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2711
SELECT DISTINCT + - col0 + - ( + cor0.col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT + - col0 + - ( + cor0.col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col2 + col1 AS col2 FROM tab1 cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-2713
SELECT DISTINCT + 0 DIV + 75 FROM tab0, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT + 0 / + 75 FROM tab0, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col0 + - tab0.col2 AS col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT DISTINCT - col1 * ( col2 ) + col2 + - col1 * col1 FROM tab2
----
-1771
-4989
-897

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab2, tab0 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * + col2 col0 FROM tab1
----
4914
5187
8736

query I rowsort
SELECT - + col2 + col0 * col0 * + 39 FROM tab1 AS cor0
----
159687
249504
297

query I rowsort
SELECT + + col2 * + 86 - + col0 FROM tab2 AS cor0
----
2158
2315
3189

query I rowsort
SELECT - col0 * - col0 - + col0 AS col0 FROM tab0 AS cor0
----
1190
552
7832

query I rowsort
SELECT 36 + col1 AS col0 FROM tab2 AS cor0
----
53
67
95

query I rowsort
SELECT 56 + cor0.col2 FROM tab0 AS cor0
----
138
57
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col0 col1 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col2 FROM tab1
----
72
72
72

query I rowsort
SELECT + col0 * + ( col1 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT + col1 * - col0 * 27 AS col2 FROM tab1
----
-17280
-2106
-28080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT col2 + col2 DIV col1 FROM tab2
----
26
27
40

skipif mysql # not compatible
query I rowsort label-2727
SELECT col2 + col2 / col1 FROM tab2
----
26
27
40

query I rowsort
SELECT + col0 * 6 AS col1 FROM tab2
----
42
468
474

query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col0 + 45 * ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
3894
4184
4400

query I rowsort
SELECT + 92 * 33 FROM tab2, tab2 AS cor0
----
9 values hashing to 2c50bf6833de2da98956a8aebe2714e4

query I rowsort
SELECT DISTINCT col2 * + 35 * 22 - + cor0.col1 AS col1 FROM tab0 cor0
----
25324
63049
673

query I rowsort
SELECT + tab0.col0 + - col0 - + 48 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT - tab1.col1 - + tab1.col0 AS col1 FROM tab1
----
-29
-74
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2735
SELECT col0 + - col2 * CAST( 30 AS SIGNED ) FROM tab0
----
-2371
-966
5

skipif mysql # not compatible
query I rowsort label-2735
SELECT col0 + - col2 * CAST ( 30 AS INTEGER ) FROM tab0
----
-2371
-966
5

query I rowsort
SELECT DISTINCT col2 - col1 * 2 * col2 AS col1 FROM tab0
----
-14842
-193
-5643

query I rowsort
SELECT - col1 * cor0.col0 - - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1054
-1121
744

onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT + tab0.col0 + col1 DIV + ( + col2 ) FROM tab0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-2738
SELECT + tab0.col0 + col1 / + ( + col2 ) FROM tab0
----
132
26
90

query I rowsort
SELECT - col0 + col1 + ( - col0 + + col2 * - 63 ) AS col2 FROM tab1
----
-3382
-3709
-6195

query I rowsort
SELECT - + col0 * col0 + 90 AS col2 FROM tab2 AS cor0
----
-5994
-6151
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT + - cor0.col0 DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2741
SELECT + - cor0.col0 / + col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT col2 + 83 AS col1 FROM tab1 cor0
----
137
140
179

query I rowsort
SELECT - col0 * 43 + - 13 * - col0 FROM tab2 AS cor0
----
-210
-2340
-2370

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2744
SELECT ALL col0 * + CAST( NULL AS SIGNED ) + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT ALL col0 * + CAST ( NULL AS INTEGER ) + + ( - col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + ( + col0 + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - 92 * + ( col0 * + ( + col0 ) ) FROM tab0 AS cor0
----
-112700
-52992
-728732

query I rowsort
SELECT DISTINCT - ( ( col2 ) ) + - 54 * - col0 FROM tab2 AS cor0
----
351
4186
4228

query I rowsort
SELECT ALL + col0 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 - + col0 * + 85 AS col1 FROM tab0 AS cor0
----
-14863
-2832
-3010

query I rowsort
SELECT - 83 + - 30 AS col1 FROM tab0 AS cor0
----
-113
-113
-113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2751
SELECT col0 * - col1 + CAST( NULL AS SIGNED ) - cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2751
SELECT col0 * - col1 + CAST ( NULL AS INTEGER ) - cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - col0 * - col1 - + 71 FROM tab1 cor0
----
-1111
-149
-711

query I rowsort
SELECT DISTINCT - ( 35 ) FROM tab1
----
-35

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2755
SELECT ALL + col0 * col0 + CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
18
6025
6224

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + col0 * col0 + CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT ALL - col1 * col1 + col1 * col1 AS col0 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col1 + + col2 * - 21 AS col1 FROM tab2 AS cor0
----
-487
-536
-781

onlyif mysql # use DIV operator for integer division
query I rowsort label-2759
SELECT DISTINCT - - ( col0 ) + + ( 19 ) + col2 * CAST( + col1 AS SIGNED ) DIV - col1 col2 FROM tab1 AS cor0
----
-32
26
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - - ( col0 ) + + ( 19 ) + col2 * CAST ( + col1 AS INTEGER ) / - col1 col2 FROM tab1 AS cor0
----
-32
26
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT ALL 14 * - col0 + 34 * - col2 DIV cor0.col2 FROM tab1 AS cor0
----
-1154
-76
-930

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL 14 * - col0 + 34 * - col2 / cor0.col2 FROM tab1 AS cor0
----
-1154
-76
-930

query I rowsort
SELECT DISTINCT - 78 + col2 - 67 FROM tab2 AS cor0
----
-107
-118
-119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT 11 DIV - tab0.col2 + + tab0.col1 FROM tab0
----
86
86
91

skipif mysql # not compatible
query I rowsort label-2762
SELECT 11 / - tab0.col2 + + tab0.col1 FROM tab0
----
86
86
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2763
SELECT DISTINCT + + col0 + - col1 * - CAST( 90 * col1 AS SIGNED ) FROM tab0 AS cor0
----
665664
745379
846845

skipif mysql # not compatible
query I rowsort label-2763
SELECT DISTINCT + + col0 + - col1 * - CAST ( 90 * col1 AS INTEGER ) FROM tab0 AS cor0
----
665664
745379
846845

query I rowsort
SELECT DISTINCT 79 * + col1 + - 2 AS col0 FROM tab1 cor0
----
1025
2052
788

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2765
SELECT ALL - col0 * + cor0.col1 - + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - col0 * + cor0.col1 - + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT col0 * col0 + + 10 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
1270
1378
15229

query I rowsort
SELECT ALL col2 * ( cor0.col0 ) - + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT + cor0.col2 * + col0 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT - 52 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT + 55 + ( + col1 ) * col0 * + 27 AS col2 FROM tab2 AS cor0
----
124309
36316
5914

query I rowsort
SELECT ALL + col0 + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2772
SELECT - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2772
SELECT - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + - 9 * + 7 AS col1 FROM tab2 AS cor0
----
-63
-63
-63

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-2775
SELECT col2 + - CAST( 53 AS SIGNED ) AS col1 FROM tab2
----
-15
-26
-27

skipif mysql # not compatible
query I rowsort label-2775
SELECT col2 + - CAST ( 53 AS INTEGER ) AS col1 FROM tab2
----
-15
-26
-27

query I rowsort
SELECT DISTINCT + col1 * + col0 * + 86 + col2 + col0 * - col1 FROM tab2
----
114193
18472
391196

query I rowsort
SELECT ALL ( + col1 + + col2 * 9 ) FROM tab0
----
106
383
829

query I rowsort
SELECT + cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT DISTINCT + 39 * + 54 FROM tab1 AS cor0
----
2106

query I rowsort
SELECT - 99 * + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1604
-3062
-5763

query I rowsort
SELECT + + col0 * + ( - cor0.col2 * + 35 ) AS col1 FROM tab2 AS cor0
----
-105070
-6615
-70980

query I rowsort
SELECT ALL - - 61 + + col1 * col1 FROM tab0 cor0
----
7457
8342
9470

query I rowsort
SELECT + 33 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT - col0 * tab1.col2 + + ( - tab1.col1 ) AS col2 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT + 98 * - col2 FROM tab1
----
-5292
-5586
-9408

query I rowsort
SELECT DISTINCT + 75 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
75

query I rowsort
SELECT 80 * - col2 * tab1.col2 AS col1 FROM tab1
----
-233280
-259920
-737280

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
47

query I rowsort
SELECT ALL col1 * + ( - col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT + col0 * 25 FROM tab2
----
175
1950
1975

query I rowsort
SELECT + + col2 * cor0.col1 * + ( col1 ) FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL 61 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT DISTINCT + + col1 + + col1 * col2 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-2794
SELECT - col1 DIV - 7 AS col1 FROM tab2 AS cor0
----
2
4
8

skipif mysql # not compatible
query I rowsort label-2794
SELECT - col1 / - 7 AS col1 FROM tab2 AS cor0
----
2
4
8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT - col2 * + cor0.col0 + col0 + + cor0.col2 * CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT - col2 * + cor0.col0 + col0 + + cor0.col2 * CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col1 * 92 AS col0 FROM tab1 AS cor0
----
-15548
-62192
-9200

onlyif mysql # use DIV operator for integer division
query I rowsort label-2797
SELECT DISTINCT col0 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT col0 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 77 AS col1 FROM tab0
----
77
77
77

query I rowsort
SELECT DISTINCT col0 * 98 AS col1 FROM tab0
----
2352
3430
8722

query I rowsort
SELECT DISTINCT - 54 * 43 FROM tab2
----
-2322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col2 FROM tab2, tab0 AS cor0
----
-7

query I rowsort
SELECT ALL 41 * col0 AS col0 FROM tab2 AS cor0
----
287
3198
3239

query I rowsort
SELECT DISTINCT - col0 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + ( 46 ) + tab1.col2 FROM tab1
----
100
103
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT + - 52 DIV col0 col1 FROM tab1 AS cor0
----
-17
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2805
SELECT + - 52 / col0 col1 FROM tab1 AS cor0
----
-17
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2806
SELECT ALL + - 64 DIV col1 + + 65 + + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1999
-3330
-8034

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + - 64 / col1 + + 65 + + cor0.col1 * - col0 AS col0 FROM tab0 AS cor0
----
-1999
-3330
-8034

query I rowsort
SELECT - + ( + col2 ) * - col0 + 2 + col1 * + ( 7 ) FROM tab1 cor0
----
346
3720
7773

query I rowsort
SELECT 32 + col1 AS col1 FROM tab1 AS cor0
----
42
45
58

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2810
SELECT DISTINCT + col2 DIV col1 - - col1 * + col1 AS col1 FROM tab2
----
291
3481
961

skipif mysql # not compatible
query I rowsort label-2810
SELECT DISTINCT + col2 / col1 - - col1 * + col1 AS col1 FROM tab2
----
291
3481
961

query I rowsort
SELECT ALL - col1 + + col0 * col2 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT + col2 + cor0.col1 * ( - 42 ) DIV - cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
152
207
213

skipif mysql # not compatible
query I rowsort label-2812
SELECT + col2 + cor0.col1 * ( - 42 ) / - cor0.col0 + ( col0 ) FROM tab0 AS cor0
----
152
207
213

query I rowsort
SELECT ALL 12 * cor0.col2 AS col2 FROM tab2 AS cor0
----
312
324
456

query I rowsort
SELECT ALL 33 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

query I rowsort
SELECT DISTINCT + tab0.col0 * col1 * ( + col1 ) FROM tab0
----
177504
329315
737009

query I rowsort
SELECT 76 FROM tab2, tab2 cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f

query I rowsort
SELECT DISTINCT + col2 + col2 * + 85 * + 85 FROM tab0 AS cor0
----
238458
592532
7226

query I rowsort
SELECT + col0 * ( 89 ) + cor0.col1 - + col2 * + col0 AS col2 FROM tab1 AS cor0
----
-547
131
2058

query I rowsort
SELECT + + col1 + 78 + 29 AS col2 FROM tab0 AS cor0
----
193
198
204

query I rowsort
SELECT - col2 - 38 AS col2 FROM tab0 AS cor0
----
-120
-39
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT + col0 * - 17 + cor0.col2 DIV + col0 FROM tab1 cor0
----
-1088
-1359
-33

skipif mysql # not compatible
query I rowsort label-2821
SELECT + col0 * - 17 + cor0.col2 / + col0 FROM tab1 cor0
----
-1088
-1359
-33

query I rowsort
SELECT - col2 + 83 AS col0 FROM tab2 AS cor0
----
45
56
57

query I rowsort
SELECT - 66 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112

query I rowsort
SELECT + col0 + + 79 - + ( col2 ) FROM tab1 AS cor0
----
28
63
86

query I rowsort
SELECT ALL - tab0.col0 + - col0 * col1 AS col1 FROM tab0
----
-2088
-3430
-8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT 30 * col0 DIV col0 FROM tab0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2826
SELECT 30 * col0 / col0 FROM tab0
----
30
30
30

query I rowsort
SELECT - 15 * + col2 AS col0 FROM tab1
----
-1440
-810
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 95 + + col2 col2 FROM tab0 AS cor0
----
128
177
96

query I rowsort
SELECT - 90 + 52 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col1 * - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ( - cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + 40 + - col1 FROM tab2 AS cor0
----
-19
23
9

query I rowsort
SELECT DISTINCT - 76 + 29 * + col2 FROM tab2 AS cor0
----
1026
678
707

query I rowsort
SELECT ( col0 ) * + col1 * ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL + cor0.col1 * ( col2 * col0 ) + col0 AS col2 FROM tab0 AS cor0
----
3430
664207
68136

query I rowsort
SELECT + col0 * - ( col1 ) FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + 35 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT + col0 + - ( + col1 ) * + col1 FROM tab0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT - 14 DIV + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2a707b9c937c7ffb5bac28e19acedb

skipif mysql # not compatible
query I rowsort label-2839
SELECT - 14 / + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2a707b9c937c7ffb5bac28e19acedb

query I rowsort
SELECT cor0.col1 + col0 * + ( + col1 * col0 ) AS col1 FROM tab0 AS cor0
----
118922
49622
720902

query I rowsort
SELECT ALL + cor1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ( 13 * col1 ) FROM tab1
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-2843
SELECT + + cor0.col2 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-2843
SELECT + + cor0.col2 / cor0.col1 AS col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + - col2 * col2 + col1 * col1 FROM tab0 cor0
----
1557
6307
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 - 59 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT 28 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4068
-6372
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - 66 col2 FROM tab1 AS cor0
----
-120
-123
-162

query I rowsort
SELECT - - ( 52 ) FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - 37 + + 92 FROM tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT 8 AS col2 FROM tab1 cor0
----
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT col2 DIV ( - col0 * col1 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT col2 / ( - col0 * col1 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT ( + col0 ) * col1 * 1 AS col2 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col2 * col0 + + 37 AS col2 FROM tab2 cor0
----
-152
-1991
-2965

query I rowsort
SELECT ALL + 25 FROM tab0, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT cor0.col2 * - 67 FROM tab0 cor0
----
-2211
-5494
-67

query I rowsort
SELECT ALL col0 + 97 FROM tab1 cor0
----
100
161
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 * col1 col2 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT DISTINCT - - col2 * ( + col1 ) * col2 + col0 FROM tab2 AS cor0
----
22606
24627
39962

query I rowsort
SELECT ALL + col2 - col2 * col2 * - col1 FROM tab0 AS cor0
----
611966
93687
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT - - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT - - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + col0 * - col1 FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL - col0 * col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT cor0.col1 * + 5 - - 79 AS col2 FROM tab1 AS cor0
----
129
144
209

query I rowsort
SELECT DISTINCT col1 + - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col0 * - 70 AS col1 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT ALL - + col2 * + col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT - + CAST( + ( col0 ) AS SIGNED ) + ( + 24 ) FROM tab2 AS cor0
----
-54
-55
17

skipif mysql # not compatible
query I rowsort label-2869
SELECT - + CAST ( + ( col0 ) AS INTEGER ) + ( + 24 ) FROM tab2 AS cor0
----
-54
-55
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-2870
SELECT DISTINCT - - col1 DIV col2 + col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT - - col1 / col2 + col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL + col1 * col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
157
265
730

query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 AS col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT - col2 * ( 99 ) + - col2 FROM tab0
----
-100
-3300
-8200

query I rowsort
SELECT col1 + col1 * - 24 FROM tab0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL col1 * - col0 - - 90 FROM tab1 cor0
----
-550
-950
12

query I rowsort
SELECT ALL 31 FROM tab0, tab0 cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 * 35 * col1 col2 FROM tab0
----
165550
175175
186725

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT DISTINCT + + col0 + + col1 DIV col1 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT + + col0 + + col1 / col1 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - + col1 * col2 * + 13 + col0 AS col0 FROM tab2 AS cor0
----
-10874
-19864
-8319

query I rowsort
SELECT ALL 6 + tab1.col0 * col0 FROM tab1
----
15
4102
6406

onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT + col2 * + col0 + col2 DIV 27 AS col1 FROM tab2
----
190
2028
3003

skipif mysql # not compatible
query I rowsort label-2881
SELECT + col2 * + col0 + col2 / 27 AS col1 FROM tab2
----
190
2028
3003

query I rowsort
SELECT + 81 - col2 FROM tab2
----
43
54
55

query I rowsort
SELECT DISTINCT + col1 + + 43 AS col0 FROM tab1 cor0
----
53
56
69

query I rowsort
SELECT + cor0.col0 * col2 + - col2 * + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2886
SELECT ALL col0 * - tab0.col1 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT ALL col0 * - tab0.col1 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab0, tab1 cor0, tab1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col0 col1 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL - col0 - col1 * - cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT + + 28 + col0 FROM tab1 AS cor0
----
108
31
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 45 * col1 col0 FROM tab0 AS cor0
----
-3870
-4095
-4365

query I rowsort
SELECT + + col0 + col2 * + ( - 58 ) - - col1 FROM tab0 AS cor0
----
-1804
-4576
74

query I rowsort
SELECT ALL 42 + - col1 FROM tab1 AS cor0
----
16
29
32

query I rowsort
SELECT DISTINCT - + ( - col0 ) * col2 - col0 * + col2 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 - - col0 * - ( - 78 + col0 ) FROM tab0 AS cor0
----
-890
1320
1540

query I rowsort
SELECT + - 0 + col2 * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col2 * + col1 - - col1 * - col1 * col0 FROM tab1 cor0
----
-14768
-3432
-6970

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2898
SELECT DISTINCT 78 + col0 / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT 78 + col0 / - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query I rowsort
SELECT 90 * tab1.col0 FROM tab1
----
270
5760
7200

query I rowsort
SELECT ALL col0 + - col0 * col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT - col2 * 78 FROM tab0 AS cor0
----
-2574
-6396
-78

query I rowsort
SELECT + + 96 * + col2 FROM tab1 cor0
----
5184
5472
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT DISTINCT + 49 DIV 61 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT DISTINCT + 49 / 61 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + col0 + 78 * col2 * + col1 FROM tab0
----
221388
582125
7601

onlyif mysql # use DIV operator for integer division
query I rowsort label-2905
SELECT ALL cor0.col1 DIV - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7d94127a4b67449262b97bb17d976ac4

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL cor0.col1 / - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 7d94127a4b67449262b97bb17d976ac4

query I rowsort
SELECT ALL - cor0.col0 * tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3487a66046c0f82adc7bce5d4bb79ebc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT CAST( NULL AS DECIMAL ) / col1 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2907
SELECT CAST ( NULL AS REAL ) / col1 + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT ALL 95 * col1 * - cor0.col0 + - 43 AS col2 FROM tab2 AS cor0
----
-127628
-20658
-437233

onlyif mysql # use DIV operator for integer division
query I rowsort label-2910
SELECT - - 87 DIV - col0 FROM tab2 AS cor0
----
-1
-1
-12

skipif mysql # not compatible
query I rowsort label-2910
SELECT - - 87 / - col0 FROM tab2 AS cor0
----
-1
-1
-12

query I rowsort
SELECT - - ( + col2 ) + + col2 * + col2 FROM tab0 cor0
----
1122
2
6806

query I rowsort
SELECT 89 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 cor2
----
243 values hashing to c6425afc100dd55de8d45dec18c469ea

query I rowsort
SELECT cor1.col2 * + 60 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 687a8e4179339b37e2b4a30b54678561

query I rowsort
SELECT cor0.col2 * - cor0.col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT ALL 78 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048

onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT DISTINCT tab2.col2 DIV 23 AS col1 FROM tab2, tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2917
SELECT DISTINCT tab2.col2 / 23 AS col1 FROM tab2, tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - ( 8 ) AS col2 FROM tab2, tab1 AS cor0
----
-8

query I rowsort
SELECT cor0.col2 + + ( col0 + - col2 ) * cor0.col0 AS col1 FROM tab1 cor0
----
-1184
-99
505

query I rowsort
SELECT ALL + + col0 + col2 * 34 FROM tab1 AS cor0
----
1839
2002
3344

onlyif mysql # use DIV operator for integer division
query I rowsort label-2921
SELECT + cor0.col1 DIV cor0.col0 + - col0 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-2921
SELECT + cor0.col1 / cor0.col0 + - col0 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT ALL col1 * cor0.col0 * col1 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT + - col2 * - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT cor0.col0 + 58 * + col2 AS col2 FROM tab2 AS cor0
----
1573
1586
2283

query I rowsort
SELECT - ( - cor0.col2 ) * - col0 * - 68 AS col0 FROM tab1 cor0
----
11016
248064
522240

query I rowsort
SELECT col1 + - 71 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT + - col1 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2930
SELECT ALL - col1 * col2 + col0 AS col0 FROM tab0 WHERE col2 DIV - col0 + col1 * - col0 * - col2 IN ( + col0 * + col1 )
----
-62

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL - col1 * col2 + col0 AS col0 FROM tab0 WHERE col2 / - col0 + col1 * - col0 * - col2 IN ( + col0 * + col1 )
----
-62

query I rowsort
SELECT ALL col0 + - col1 * cor0.col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col0 + + col2 * - col2 + - col1 AS col2 FROM tab1 WHERE - col2 * - col1 BETWEEN - col1 + - col0 AND col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT tab0.col0 * col0 + col1 DIV - col2 AS col1 FROM tab0
----
1128
574
7920

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT tab0.col0 * col0 + col1 / - col2 AS col1 FROM tab0
----
1128
574
7920

query I rowsort
SELECT DISTINCT col0 + col0 * + tab2.col1 * - col0 AS col2 FROM tab2
----
-106018
-1512
-358878

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= NULL
----

query I rowsort
SELECT + col0 - + col1 * col2 * tab2.col1 AS col1 FROM tab2
----
-10903
-25940
-90428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col0 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT - tab1.col0 DIV + tab1.col1 FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-2938
SELECT - tab1.col0 / + tab1.col1 FROM tab1
----
-6
-6
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE NOT + col2 IN ( col1 )
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT - col0 + col1 DIV - col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - col0 + col1 / - col2 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT cor0.col2 + col0 + - col0 * - col1 FROM tab2 cor0 WHERE + col2 * cor0.col0 <> ( NULL ) OR ( NULL ) IN ( col0 - - col2 )
----

query I rowsort
SELECT - cor0.col0 + col1 AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT DISTINCT col2 * + col2 * - col0 + + col2 - - col2 FROM tab0
----
-26070
-33
-598272

query I rowsort
SELECT tab0.col1 * + col1 * col2 AS col1 FROM tab0
----
244068
679042
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-2946
SELECT ALL col1 DIV col2 + col1 * col0 + col0 FROM tab0
----
2090
3527
8189

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL col1 / col2 + col1 * col0 + col0 FROM tab0
----
2090
3527
8189

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 > col0
----
3
26
54
80
13
96

query I rowsort
SELECT - - cor0.col0 + + cor0.col0 * col1 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT 19 * col1 FROM tab2
----
1121
323
589

onlyif mysql # use DIV operator for integer division
query I rowsort label-2951
SELECT DISTINCT + col0 * col2 + - 36 DIV col0 AS col0 FROM tab2
----
184
2028
3002

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT + col0 * col2 + - 36 / col0 AS col0 FROM tab2
----
184
2028
3002

query I rowsort
SELECT + - col0 * ( + col0 ) + col2 * + 48 FROM tab0 cor0
----
-1177
-3985
1008

query I rowsort
SELECT DISTINCT ( col2 ) + + 24 AS col0 FROM tab0
----
106
25
57

query I rowsort
SELECT 90 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e

query I rowsort
SELECT ALL + 60 + col2 FROM tab1
----
114
117
156

query I rowsort
SELECT - col1 + + col1 - - 25 AS col0 FROM tab2 AS cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col1 col0 FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2958
SELECT DISTINCT - cor0.col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT - cor0.col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + - col0 + - 46 FROM tab1 AS cor0
----
-110
-126
-49

query I rowsort
SELECT ALL + ( - 67 ) + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 8c9d940f220fd112b850e1812a798b1b

query I rowsort
SELECT - - col1 * 71 FROM tab2 AS cor0
----
1207
2201
4189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 98 col0 FROM tab0 AS cor0
----
2352
3430
8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col2 col2 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT + - col1 * 40 + 8 DIV col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

skipif mysql # not compatible
query I rowsort label-2965
SELECT + - col1 * 40 + 8 / col1 FROM tab0 AS cor0
----
-3440
-3640
-3880

onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT - col0 DIV - col0 + + col2 * col1 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-2966
SELECT - col0 / - col0 + + col2 * col1 FROM tab1 AS cor0
----
1249
1405
571

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2967
SELECT DISTINCT - col1 * - CAST( - 23 AS SIGNED ) + col0 FROM tab0 cor0
----
-1954
-2004
-2196

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - col1 * - CAST ( - 23 AS INTEGER ) + col0 FROM tab0 cor0
----
-1954
-2004
-2196

query I rowsort
SELECT ALL col0 * - 8 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT - col1 * col0 * + col0 AS col0 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT + col0 + col0 + + tab0.col0 FROM tab0
----
105
267
72

query I rowsort
SELECT + col1 * col2 + col0 - col1 AS col1 FROM tab1
----
1315
1381
624

query I rowsort
SELECT DISTINCT col2 + col2 * - tab1.col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT col1 + col0 FROM tab2 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT DISTINCT tab1.col2 + tab1.col2 DIV - col0 AS col2 FROM tab1 WHERE NOT - col0 - - col2 IN ( col2 + - col0 * col0 )
----
36
57
95

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT tab1.col2 + tab1.col2 / - col0 AS col2 FROM tab1 WHERE NOT - col0 - - col2 IN ( col2 + - col0 * col0 )
----
36
57
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) NOT IN ( + col1 + + col1 )
----

query I rowsort
SELECT + col2 + col0 * - col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT DISTINCT - + 94 FROM tab2 cor0
----
-94

query I rowsort
SELECT DISTINCT - 7 + + col1 FROM tab1 AS cor0
----
19
3
6

query I rowsort
SELECT + + col0 * - col0 + col0 * - col0 + col2 * col1 FROM tab2 AS cor0
----
-10634
-11836
739

query I rowsort
SELECT ALL + - cor0.col2 + col0 * + col1 + col1 AS col0 FROM tab2 AS cor0
----
1322
221
4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-2981
SELECT - col0 + + col1 DIV - col1 - - col2 col2 FROM tab0
----
-35
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2981
SELECT - col0 + + col1 / - col1 - - col2 col2 FROM tab0
----
-35
-8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT ALL col1 * col1 DIV + tab2.col0 AS col2 FROM tab2
----
137
3
44

skipif mysql # not compatible
query I rowsort label-2982
SELECT ALL col1 * col1 / + tab2.col0 AS col2 FROM tab2
----
137
3
44

query I rowsort
SELECT col0 + col0 + - col2 * - col0 FROM tab2
----
203
2184
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-2984
SELECT ALL - col2 DIV + col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL - col2 / + col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + tab2.col1 FROM tab2 WHERE - col0 * + col2 * col2 IN ( + col2 + - col0 )
----

query I rowsort
SELECT col0 + - col1 + tab1.col2 AS col1 FROM tab1
----
111
163
31

query I rowsort
SELECT ALL + 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT DISTINCT - cor0.col2 DIV - 24 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT - cor0.col2 / - 24 AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2989
SELECT DISTINCT + + col2 DIV + cor0.col2 + col2 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-4
-6

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT + + col2 / + cor0.col2 + col2 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-4
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 * col2 col2 FROM tab1 AS cor0
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 col0 FROM tab1 AS cor0
----
-54
-57
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2993
SELECT ALL + - col0 * CAST( NULL AS DECIMAL ) + - cor0.col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + - col0 * CAST ( NULL AS REAL ) + - cor0.col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * col1 + + 89 * + col2 FROM tab2 AS cor0
----
-1167
1442
3093

onlyif mysql # use DIV operator for integer division
query I rowsort label-2995
SELECT - + col2 DIV 96 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2995
SELECT - + col2 / 96 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT col0 + + 96 DIV - col1 FROM tab0 AS cor0
----
23
35
88

skipif mysql # not compatible
query I rowsort label-2996
SELECT col0 + + 96 / - col1 FROM tab0 AS cor0
----
23
35
88

query I rowsort
SELECT - - 33 + col0 AS col2 FROM tab1 AS cor0
----
113
36
97

query I rowsort
SELECT + + 0 * + col0 + col0 * - col0 + 79 AS col1 FROM tab1 cor0
----
-4017
-6321
70

query I rowsort
SELECT DISTINCT + col2 * 89 * col0 AS col2 FROM tab0 AS cor0
----
3115
649522
70488

onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT - - CAST( col2 AS SIGNED ) DIV - col0 col2 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3000
SELECT - - CAST ( col2 AS INTEGER ) / - col0 col2 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL - cor0.col2 * - col0 + - col1 * + col2 - col1 FROM tab0 AS cor0
----
-159
-2132
-255

query I rowsort
SELECT ALL + 33 FROM tab2, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT + + 40 * - col2 AS col1 FROM tab1 cor0
----
-2160
-2280
-3840

query I rowsort
SELECT + - 90 * col1 AS col0 FROM tab0 AS cor0
----
-7740
-8190
-8730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col1 FROM tab0 cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2, tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT + col2 + 28 AS col2 FROM tab2 AS cor0
----
54
55
66

query I rowsort
SELECT ( col0 + - col0 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + ( 10 ) col0 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT + + cor0.col1 + - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * ( 81 ) AS col2 FROM tab1
----
-4374
-4617
-7776

query I rowsort
SELECT - cor1.col0 * cor0.col1 AS col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to c25bf2f069c912fb3438dc73db666079

query I rowsort
SELECT 10 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 99 * col2 + + tab2.col2 ) col1 FROM tab2
----
-2600
-2700
-3800

query I rowsort
SELECT DISTINCT - 60 * col0 + + col0 * - col1 AS col2 FROM tab0
----
-13439
-3504
-5495

query I rowsort
SELECT - - col1 * + col0 + + 67 + + 16 FROM tab2 AS cor0
----
1426
300
4685

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT ( col0 ) DIV + col0 + col1 + - col0 DIV col0 FROM tab1 cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-3017
SELECT ( col0 ) / + col0 + col1 + - col0 / col0 FROM tab1 cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3018
SELECT col1 * col0 * + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT col1 * col0 * + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 27 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col0 col0 FROM tab2
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 14 + col2 + + col1 * + tab2.col1 col1 FROM tab2
----
1086
1433
4599

query I rowsort
SELECT DISTINCT + 6 + - col2 * col2 FROM tab0
----
-1083
-6718
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3023
SELECT ALL CAST( NULL AS SIGNED ) / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 93 * + col2 * col1 FROM tab2
----
142662
60078
77841

query I rowsort
SELECT DISTINCT - cor0.col1 * 38 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-380
-494
-988

query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
-3
-64
-80

query I rowsort
SELECT - 69 * - col1 - + col1 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3

query I rowsort
SELECT DISTINCT + 8 + col2 FROM tab2 AS cor0
----
34
35
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT - col1 + col0 DIV 86 col0 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3030
SELECT - col1 + col0 / 86 col0 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col1 FROM tab1
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 6 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
-61

query I rowsort
SELECT + col0 + cor0.col2 + col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT + - col2 + + col1 * - 81 - col0 FROM tab1 cor0
----
-1229
-2163
-931

query I rowsort
SELECT - 49 * col1 + 80 * - col0 AS col1 FROM tab0 AS cor0
----
-11579
-6134
-7553

query I rowsort
SELECT ALL col0 * + col2 + - col0 * col2 * - col2 FROM tab2
----
117078
5292
54756

query I rowsort
SELECT ALL col2 + 44 AS col2 FROM tab1
----
101
140
98

query I rowsort
SELECT col0 + + 19 AS col0 FROM tab2 AS cor0
----
26
97
98

query I rowsort
SELECT ALL + ( 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-3041
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3041
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + + col0 * cor0.col0 AS col2 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + + col0 * - col1 + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL - col2 + col1 * 71 + 95 FROM tab1 AS cor0
----
1887
748
922

query I rowsort
SELECT DISTINCT col2 + col0 + - 74 FROM tab1 AS cor0
----
-17
102
47

query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + + 88 + cor0.col1 AS col1 FROM tab0 AS cor0
----
174
179
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 * col1 + - col0 * col1 + col1 col0 FROM tab2 cor0
----
-221
-708
1829

query I rowsort
SELECT ALL - 49 * col0 + cor0.col0 + + 38 FROM tab2 AS cor0
----
-298
-3706
-3754

query I rowsort
SELECT ALL + 25 * - col0 + + col2 AS col0 FROM tab1
----
-1543
-1904
-21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT - + col0 DIV - col0 + col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3051
SELECT - + col0 / - col0 + col0 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT ALL + col0 + cor0.col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3053
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT tab1.col0 * + 25 AS col0 FROM tab1
----
1600
2000
75

query I rowsort
SELECT 69 * 20 * tab0.col1 FROM tab0
----
118680
125580
133860

query I rowsort
SELECT + col1 * + ( + 62 ) FROM tab2 AS cor0
----
1054
1922
3658

query I rowsort
SELECT cor0.col2 * - col0 + 52 AS col0 FROM tab2 AS cor0
----
-137
-1976
-2950

onlyif mysql # use DIV operator for integer division
query I rowsort label-3058
SELECT col2 - - col0 DIV + 11 FROM tab1 AS cor0
----
103
54
62

skipif mysql # not compatible
query I rowsort label-3058
SELECT col2 - - col0 / + 11 FROM tab1 AS cor0
----
103
54
62

query I rowsort
SELECT col0 + ( col2 * col2 ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - col1 * + ( + 64 ) - - col2 AS col1 FROM tab0 AS cor0
----
-5471
-5742
-6207

query I rowsort
SELECT ALL + tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT 84 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT ALL + col0 * cor0.col0 + 25 * col2 AS col0 FROM tab0 cor0
----
1250
1401
9971

query I rowsort
SELECT DISTINCT + col2 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - + col0 * col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT ALL col0 * + ( + col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3067
SELECT + - col1 - - CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3067
SELECT + - col1 - - CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * + col0 + + 91 FROM tab0 AS cor0
----
-1973
-3304
-8008

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2 cor0 CROSS JOIN tab1, tab0 AS cor1
----
26
27
38

query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL col0 - col0 * 60 AS col2 FROM tab0
----
-1416
-2065
-5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT ALL + col1 - - tab0.col2 DIV - col1 AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-3073
SELECT ALL + col1 - - tab0.col2 / - col1 AS col2 FROM tab0
----
86
91
97

query I rowsort
SELECT DISTINCT + + ( 28 ) FROM tab2 AS cor0
----
28

query I rowsort
SELECT ALL + col2 - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT + ( + cor0.col1 ) DIV + col0 + + 35 * - col0 FROM tab0 AS cor0
----
-1223
-3114
-837

skipif mysql # not compatible
query I rowsort label-3076
SELECT + ( + cor0.col1 ) / + col0 + + 35 * - col0 FROM tab0 AS cor0
----
-1223
-3114
-837

query I rowsort
SELECT ALL col1 * + 70 * ( col0 ) - + col1 AS col1 FROM tab1
----
44790
5434
72787

query I rowsort
SELECT ALL - 45 * + col2 AS col0 FROM tab0 AS cor0
----
-1485
-3690
-45

query I rowsort
SELECT DISTINCT - col2 * + 97 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT DISTINCT - + col1 * 81 * col0 FROM tab0 AS cor0
----
-167184
-274995
-656019

query I rowsort
SELECT - - col2 * + 0 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - ( 59 ) AS col1 FROM tab2 AS cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col0 + - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + + col1 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + col2 - - ( + 11 * - tab1.col0 ) FROM tab1
----
-647
-784
21

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT + col2 * CAST( + 54 AS SIGNED ) + + col1 * 92 FROM tab0
----
12800
8978
9694

skipif mysql # not compatible
query I rowsort label-3086
SELECT + col2 * CAST ( + 54 AS INTEGER ) + + col1 * 92 FROM tab0
----
12800
8978
9694

query I rowsort
SELECT col2 + - ( col0 ) FROM tab0
----
-34
-7
9

query I rowsort
SELECT col2 * + col2 + - 21 AS col1 FROM tab2
----
1423
655
708

query I rowsort
SELECT + col1 * - 7 * col2 + + col2 * ( + col2 ) AS col1 FROM tab2
----
-10062
-3078
-5130

query I rowsort
SELECT ALL 66 * tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 08947d915aab150cea9ea45d94d4263b

query I rowsort
SELECT DISTINCT 68 * 85 FROM tab2, tab2 AS cor0
----
5780

query I rowsort
SELECT - col1 * - col0 - - col1 * - col1 FROM tab0 AS cor0
----
-182
-5332
-6014

query I rowsort
SELECT ALL col2 + + 58 * - col1 AS col0 FROM tab2 AS cor0
----
-1771
-3396
-948

query I rowsort
SELECT DISTINCT 57 - col0 FROM tab0 cor0
----
-32
22
33

query I rowsort
SELECT ALL - 92 * - 98 + + cor0.col1 FROM tab0 AS cor0
----
9102
9107
9113

query I rowsort
SELECT - - 76 * - cor0.col1 + cor0.col1 * col1 FROM tab0 AS cor0
----
1365
2037
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 + - 56 col2 FROM tab2 AS cor0
----
-13

onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT - col2 * - cor0.col0 + col0 DIV - 32 AS col1 FROM tab0 AS cor0
----
34
7296
792

skipif mysql # not compatible
query I rowsort label-3098
SELECT - col2 * - cor0.col0 + col0 / - 32 AS col1 FROM tab0 AS cor0
----
34
7296
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3099
SELECT ALL - - col1 * col2 + col2 * CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
164
2046
62

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - - col1 * col2 + col2 * CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT + 3 - + col1 * 33 AS col0 FROM tab2
----
-1020
-1944
-558

query I rowsort
SELECT DISTINCT + 32 + 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

query I rowsort
SELECT - + 80 + 53 + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1077f4d7c54b01cf99bff455d1cdd241

onlyif mysql # use DIV operator for integer division
query I rowsort label-3103
SELECT + col0 * col1 DIV - 69 FROM tab1 AS cor0
----
-1
-15
-9

skipif mysql # not compatible
query I rowsort label-3103
SELECT + col0 * col1 / - 69 FROM tab1 AS cor0
----
-1
-15
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3104
SELECT DISTINCT - cor0.col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT - cor0.col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * 72 AS col2 FROM tab1
----
216
4608
5760

query I rowsort
SELECT ALL col0 * - 84 FROM tab0 AS cor0
----
-2016
-2940
-7476

query I rowsort
SELECT + 63 + - col2 AS col1 FROM tab0 AS cor0
----
-19
30
62

query I rowsort
SELECT col0 * col1 + - 25 * - 45 AS col2 FROM tab1 AS cor0
----
1203
1765
2165

query I rowsort
SELECT + + col2 * col0 + 89 FROM tab0 AS cor0
----
124
7387
881

query I rowsort
SELECT ALL + ( - 50 ) * + col0 FROM tab0
----
-1200
-1750
-4450

onlyif mysql # use DIV operator for integer division
query I rowsort label-3111
SELECT DISTINCT + col1 DIV - col1 + + col0 + col1 FROM tab0 AS cor0
----
109
131
179

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT + col1 / - col1 + + col0 + col1 FROM tab0 AS cor0
----
109
131
179

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT ALL + col0 DIV col2 + 64 AS col0 FROM tab0 cor0
----
64
65
99

skipif mysql # not compatible
query I rowsort label-3112
SELECT ALL + col0 / col2 + 64 AS col0 FROM tab0 cor0
----
64
65
99

query I rowsort
SELECT ALL - col1 + + col2 * - col0 + - col1 AS col2 FROM tab1
----
-214
-3668
-7706

query I rowsort
SELECT DISTINCT col2 * ( - col2 ) + + tab2.col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT col1 * + ( col0 ) AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT - col0 * 95 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-696
-7469
-7522

query I rowsort
SELECT ALL - cor0.col0 + 29 FROM tab0 AS cor0
----
-6
-60
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( 48 ) col0 FROM tab0 cor0
----
-13
-24
41

query I rowsort
SELECT ALL col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT DISTINCT - col0 DIV 54 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - col0 / 54 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL 24 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT col2 * 64 + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1161
-2673
1536

query I rowsort
SELECT ALL + 18 * col1 AS col0 FROM tab1 AS cor0
----
180
234
468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3124
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - ( col0 ) * - col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT - col2 * 35 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360

query I rowsort
SELECT col2 * col0 + - ( col2 * - 18 ) AS col1 FROM tab0
----
1386
53
8774

query I rowsort
SELECT ALL col1 * + col1 - - col1 FROM tab1
----
110
182
702

query I rowsort
SELECT - - cor0.col1 - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT + 76 + - col1 AS col0 FROM tab2 AS cor0
----
17
45
59

query I rowsort
SELECT ( col1 ) * - col2 + - 64 FROM tab0 cor0
----
-161
-2902
-7526

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3132
SELECT ALL + CAST( + 28 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL + CAST ( + 28 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT ALL + 59 * col0 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT DISTINCT + col2 * - ( col2 * + ( + 28 ) ) FROM tab1
----
-258048
-81648
-90972

query I rowsort
SELECT 86 * + col2 AS col0 FROM tab2
----
2236
2322
3268

query I rowsort
SELECT + 67 + col0 AS col0 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT + cor0.col1 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT cor0.col0 + ( col1 ) * - col0 AS col1 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT + col0 + ( col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT col1 + + ( - ( col1 ) ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ( cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT + col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col2 * 2 AS col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT - col2 * 77 * col2 AS col2 FROM tab2
----
-111188
-52052
-56133

query I rowsort
SELECT + ( 72 ) - - col1 AS col1 FROM tab1 cor0
----
82
85
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3146
SELECT DISTINCT - cor0.col1 * - col1 + - col2 + CAST( NULL AS SIGNED ) * - 98 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - cor0.col1 * - col1 + - col2 + CAST ( NULL AS INTEGER ) * - 98 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 * col1 * col1 + tab0.col0 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT + col1 * + cor0.col1 + col2 * 37 FROM tab2 AS cor0
----
1695
1960
4443

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3149
SELECT ALL + col0 * + CAST( ( col2 ) AS SIGNED ) * 46 AS col1 FROM tab1
----
167808
353280
7452

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + col0 * + CAST ( ( col2 ) AS INTEGER ) * 46 AS col1 FROM tab1
----
167808
353280
7452

skipif mysql # not compatible
query I rowsort
SELECT - col2 * + col0 + CAST ( col2 AS REAL ) * + col1 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT ALL + col1 * - col1 + 37 FROM tab0
----
-7359
-8244
-9372

query I rowsort
SELECT 40 * + cor0.col2 - + cor0.col0 AS col1 FROM tab0 AS cor0
----
1296
3191
5

query I rowsort
SELECT ALL - cor0.col2 + 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 26a6b445e22c6574687e64b1d53a2341

query I rowsort
SELECT ALL - col2 + - 9 AS col0 FROM tab1
----
-105
-63
-66

query I rowsort
SELECT DISTINCT + col2 * ( - ( + cor0.col2 ) ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + tab1.col2 + + 70 FROM tab1
----
124
127
166

query I rowsort
SELECT + col0 - ( - col1 ) * + col2 AS col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT + col2 + col0 * 27 FROM tab1 AS cor0
----
135
1785
2256

query I rowsort
SELECT ALL + - col2 - + 72 FROM tab0 AS cor0
----
-105
-154
-73

query I rowsort
SELECT ALL col1 * col1 * - cor0.col1 + cor0.col1 + - col1 * 24 AS col0 FROM tab1 AS cor0
----
-1230
-18174
-2496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3161
SELECT DISTINCT - cor0.col1 * + CAST( col0 AS SIGNED ) - col0 * + 3 FROM tab0 AS cor0
----
-2136
-3500
-8366

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT - cor0.col1 * + CAST ( col0 AS INTEGER ) - col0 * + 3 FROM tab0 AS cor0
----
-2136
-3500
-8366

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3162
SELECT + CAST( ( + col0 ) AS SIGNED ) - CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3162
SELECT + CAST ( ( + col0 ) AS INTEGER ) - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3163
SELECT ALL 76 DIV 4 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL 76 / 4 FROM tab2
----
19
19
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3164
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT ALL 94 DIV - tab0.col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL 94 / - tab0.col1 FROM tab0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + - col1 * + col1 col0 FROM tab2 AS cor0
----
-282
-3474
-954

onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT - col2 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3167
SELECT - col2 / col1 AS col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT + - col1 + col0 * cor0.col2 DIV - 43 FROM tab0 AS cor0
----
-104
-260
-97

skipif mysql # not compatible
query I rowsort label-3168
SELECT + - col1 + col0 * cor0.col2 / - 43 FROM tab0 AS cor0
----
-104
-260
-97

query I rowsort
SELECT ALL + - col0 * - col2 + - col1 FROM tab1 cor0
----
136
3638
7667

query I rowsort
SELECT ALL + + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col2 * + col0 col1 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL + col2 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT - ( col2 ) * 40 FROM tab2 AS cor0
----
-1040
-1080
-1520

query I rowsort
SELECT DISTINCT col1 * + cor0.col1 * 47 AS col2 FROM tab0 AS cor0
----
347612
389207
442223

onlyif mysql # use DIV operator for integer division
query I rowsort label-3175
SELECT DISTINCT + col2 DIV + col2 + - 70 * col1 AS col1 FROM tab1 cor0
----
-1819
-699
-909

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + col2 / + col2 + - 70 * col1 AS col1 FROM tab1 cor0
----
-1819
-699
-909

query I rowsort
SELECT ALL + 60 - col0 AS col2 FROM tab0 AS cor0
----
-29
25
36

query I rowsort
SELECT col1 + + col1 + 82 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1428
2604
4956

onlyif mysql # use DIV operator for integer division
query I rowsort label-3178
SELECT + cor0.col0 DIV col1 + + ( + col0 * col0 ) col1 FROM tab1 AS cor0
----
4102
6406
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3178
SELECT + cor0.col0 / col1 + + ( + col0 * col0 ) col1 FROM tab1 AS cor0
----
4102
6406
9

query I rowsort
SELECT col1 + col2 * - col1 * + 3 + + col2 AS col1 FROM tab1 AS cor0
----
-1643
-3635
-4132

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3180
SELECT ALL + CAST( + col1 AS SIGNED ) col0 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL + CAST ( + col1 AS INTEGER ) col0 FROM tab0
----
86
91
97

query I rowsort
SELECT ALL + 63 * + cor0.col1 FROM tab2 cor0
----
1071
1953
3717

query I rowsort
SELECT + 48 * col2 AS col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT ALL 0 + col2 * + 12 FROM tab1 cor0
----
1152
648
684

query I rowsort
SELECT DISTINCT 84 * - col1 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT DISTINCT + + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3186
SELECT + - 80 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT + - 80 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 19 + - col0 FROM tab2
----
-59
-60
12

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT ALL col2 * + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL col2 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) + + col1 * 61 AS col0 FROM tab2 AS cor0
----
1116
1898
3677

query I rowsort
SELECT - 85 + - cor0.col1 * - col2 AS col1 FROM tab1 AS cor0
----
1163
1319
485

query I rowsort
SELECT + - col0 * 61 + - col0 FROM tab2 cor0
----
-434
-4836
-4898

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3192
SELECT + col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-3192
SELECT + col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 * - col2 + - col2 - + col1 FROM tab0 cor0
----
-63
673
7125

query I rowsort
SELECT + + col2 + + col0 * 80 - col0 AS col2 FROM tab2 AS cor0
----
580
6188
6279

onlyif mysql # use DIV operator for integer division
query I rowsort label-3195
SELECT - col2 DIV - ( 64 ) + col2 + + 76 AS col2 FROM tab1 cor0
----
130
133
173

skipif mysql # not compatible
query I rowsort label-3195
SELECT - col2 / - ( 64 ) + col2 + + 76 AS col2 FROM tab1 cor0
----
130
133
173

query I rowsort
SELECT - col1 + ( col2 ) + + col2 FROM tab2 AS cor0
----
-7
23
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT + tab2.col1 DIV col1 + col2 * + 40 AS col1 FROM tab2
----
1041
1081
1521

skipif mysql # not compatible
query I rowsort label-3197
SELECT + tab2.col1 / col1 + col2 * + 40 AS col1 FROM tab2
----
1041
1081
1521

query I rowsort
SELECT 61 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55

query I rowsort
SELECT ALL - + ( 76 ) AS col0 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3200
SELECT ALL 76 DIV 10 AS col2 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL 76 / 10 AS col2 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - + ( + 22 ) AS col1 FROM tab2 AS cor0
----
-22
-22
-22

query I rowsort
SELECT - + col1 * - col0 * - col0 + 49 FROM tab1 AS cor0
----
-185
-40911
-83151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT ALL + col0 / 82 - + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + col0 / 82 - + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * tab2.col2 + + col1 FROM tab2
----
1461
735
760

query I rowsort
SELECT - cor0.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT DISTINCT - tab1.col1 + 3 AS col0 FROM tab1
----
-10
-23
-7

query I rowsort
SELECT ALL + col0 + col0 * + tab0.col2 * + col0 AS col2 FROM tab0
----
1260
19032
649611

query I rowsort
SELECT DISTINCT col0 + + ( + 55 + col0 ) FROM tab2
----
211
213
69

query I rowsort
SELECT ALL col2 * + col0 + col0 + col1 AS col1 FROM tab1 AS cor0
----
191
3722
7773

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3210
SELECT col2 * CAST( NULL AS SIGNED ) * + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT col2 * CAST ( NULL AS INTEGER ) * + ( + col2 ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 1 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT DISTINCT - col2 DIV 83 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT - col2 / 83 AS col1 FROM tab2
----
0

query I rowsort
SELECT - + 78 + col2 FROM tab1 AS cor0
----
-21
-24
18

query I rowsort
SELECT ALL + 29 + + ( - col2 ) * ( col2 ) FROM tab0 AS cor0
----
-1060
-6695
28

skipif mysql # not compatible
query I rowsort
SELECT + + CAST ( + 56 AS REAL ) FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 * col2 FROM tab2 AS cor0
----
1054
1989
6136

query I rowsort
SELECT + col2 * col2 + - col0 * col2 AS col0 FROM tab1 cor0
----
-399
1536
2754

query I rowsort
SELECT - col0 + - col2 + + ( col2 ) FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 17 * col2 + col0 * - col1 AS col1 FROM tab1
----
329
592
840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT + col0 DIV + col1 + col0 + - col2 * + col0 AS col2 FROM tab2
----
-182
-1949
-2919

skipif mysql # not compatible
query I rowsort label-3220
SELECT + col0 / + col1 + col0 + - col2 * + col0 AS col2 FROM tab2
----
-182
-1949
-2919

onlyif mysql # use DIV operator for integer division
query I rowsort label-3221
SELECT DISTINCT col1 + + col2 DIV - 75 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT col1 + + col2 / - 75 FROM tab2
----
17
31
59

query I rowsort
SELECT 15 + col1 + + col2 FROM tab1
----
124
82
95

query I rowsort
SELECT ALL col2 + col1 * 60 FROM tab2
----
1058
1887
3566

query I rowsort
SELECT ALL 27 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT col1 * 96 FROM tab1
----
1248
2496
960

query I rowsort
SELECT DISTINCT + - 90 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-90

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 + + col0 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab1.col2 col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + - 95 FROM tab2 AS cor0
----
-95
-95
-95

query I rowsort
SELECT ALL + 8 * - tab2.col1 * - tab2.col1 FROM tab2
----
2312
27848
7688

query I rowsort
SELECT ALL + - 18 + col2 FROM tab0 AS cor0
----
-17
15
64

query I rowsort
SELECT ALL col2 * + col2 * col2 + 65 FROM tab1 AS cor0
----
157529
185258
884801

query I rowsort
SELECT DISTINCT + 7 + + col1 * tab2.col1 * tab2.col2 FROM tab2
----
10989
25954
90513

query I rowsort
SELECT ALL 45 * + tab0.col2 + + col2 AS col2 FROM tab0
----
1518
3772
46

query I rowsort
SELECT DISTINCT - 11 + + col0 * - 30 AS col0 FROM tab0 AS cor0
----
-1061
-2681
-731

query I rowsort
SELECT 96 + col1 AS col0 FROM tab2 AS cor0
----
113
127
155

query I rowsort
SELECT + col2 - col0 * ( col2 * - col2 ) FROM tab0 cor0
----
26169
36
598518

query I rowsort
SELECT ALL + - col1 + col2 + - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT DISTINCT - col2 * - col1 - - col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - 51 + - 88 FROM tab0, tab2 AS cor0
----
9 values hashing to 8700daa0b0e07938edbe7b70766d1f43

query I rowsort
SELECT col2 * col0 - - col2 AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT - 48 * col0 AS col2 FROM tab2 AS cor0
----
-336
-3744
-3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3243
SELECT - col0 DIV col2 + + col0 DIV col1 FROM tab1 AS cor0
----
0
5
6

skipif mysql # not compatible
query I rowsort label-3243
SELECT - col0 / col2 + + col0 / col1 FROM tab1 AS cor0
----
0
5
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 - - cor0.col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT col2 * tab1.col2 + col0 + + col1 FROM tab1
----
2945
3323
9309

query I rowsort
SELECT DISTINCT col1 - + col2 * - col1 AS col2 FROM tab1
----
1261
1430
580

query I rowsort
SELECT - col2 - - tab0.col1 * + col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - col1 - - col1 * col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + col1 * - col2 - cor0.col1 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + ( col2 + tab2.col0 ) AS col1 FROM tab2
----
104
117
34

query I rowsort
SELECT ( + 29 + col2 ) AS col0 FROM tab1
----
125
83
86

query I rowsort
SELECT - - 52 * - col2 AS col2 FROM tab1 AS cor0
----
-2808
-2964
-4992

onlyif mysql # use DIV operator for integer division
query I rowsort label-3254
SELECT DISTINCT - col0 DIV - col0 col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT - col0 / - col0 col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 * col1 * tab0.col1 col1 FROM tab0
----
621264
695604
790356

query I rowsort
SELECT DISTINCT cor0.col2 * + 60 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
1560
1620
2280

query I rowsort
SELECT DISTINCT + 46 * - cor0.col1 FROM tab0 AS cor0
----
-3956
-4186
-4462

onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT ALL + 99 DIV col0 + - col1 * - col0 * - col2 FROM tab1 AS cor0
----
-36479
-4179
-99839

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL + 99 / col0 + - col1 * - col0 * - col2 FROM tab1 AS cor0
----
-36479
-4179
-99839

query I rowsort
SELECT DISTINCT 9 + - col1 AS col2 FROM tab0 AS cor0
----
-77
-82
-88

query I rowsort
SELECT + col0 + col2 * 2 FROM tab0
----
253
37
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT - 56 DIV col2 AS col2 FROM tab0
----
-1
-56
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT - 56 / col2 AS col2 FROM tab0
----
-1
-56
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT DISTINCT + 7 DIV + ( + col2 ) - + 32 FROM tab0
----
-25
-32

skipif mysql # not compatible
query I rowsort label-3262
SELECT DISTINCT + 7 / + ( + col2 ) - + 32 FROM tab0
----
-25
-32

query I rowsort
SELECT ALL - 25 - - tab1.col1 * col2 AS col2 FROM tab1
----
1223
1379
545

onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT ALL - 74 * 85 - col0 * col1 DIV - col1 AS col0 FROM tab1
----
-6210
-6226
-6287

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL - 74 * 85 - col0 * col1 / - col1 AS col0 FROM tab1
----
-6210
-6226
-6287

query I rowsort
SELECT ALL - - col0 * 52 + - col1 AS col1 FROM tab1 AS cor0
----
130
3318
4147

query I rowsort
SELECT DISTINCT + 5 + - col0 AS col1 FROM tab0
----
-19
-30
-84

query I rowsort
SELECT cor0.col0 * - col1 + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + tab1.col2 * - col1 + + 35 AS col1 FROM tab1
----
-1213
-1369
-535

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3269
SELECT ALL + col1 + col1 * + CAST( + 9 AS SIGNED ) FROM tab0
----
860
910
970

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + col1 + col1 * + CAST ( + 9 AS INTEGER ) FROM tab0
----
860
910
970

query I rowsort
SELECT col1 * col1 + + 64 * col1 AS col0 FROM tab0
----
12900
14105
15617

query I rowsort
SELECT - - col1 * - 36 AS col0 FROM tab0 AS cor0
----
-3096
-3276
-3492

skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT + + col1 * + 7 FROM tab0 AS cor0
----
602
637
679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3274
SELECT DISTINCT + cor0.col1 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * 80 + 81 * + col0 AS col0 FROM tab2 cor0
----
2727
8398
9439

query I rowsort
SELECT ALL - col0 * + 22 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT - col1 + 39 * col2 FROM tab2 AS cor0
----
1022
1465
955

onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT - col0 DIV - col1 + col1 + col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-3278
SELECT - col0 / - col1 + col1 + col1 FROM tab0 AS cor0
----
172
182
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL col0 * - 91 FROM tab2 cor0
----
-637
-7098
-7189

query I rowsort
SELECT ALL 45 AS col2 FROM tab1 AS cor0
----
45
45
45

onlyif mysql # use DIV operator for integer division
query I rowsort label-3282
SELECT col2 DIV + 1 AS col2 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3282
SELECT col2 / + 1 AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + - col1 * - 77 + col1 FROM tab2 AS cor0
----
1326
2418
4602

query I rowsort
SELECT DISTINCT + + 73 * col1 + col2 FROM tab2 AS cor0
----
1279
2290
4333

query I rowsort
SELECT DISTINCT 22 * + 77 FROM tab0 AS cor0
----
1694

query I rowsort
SELECT - - col0 + 94 AS col0 FROM tab1 AS cor0
----
158
174
97

query I rowsort
SELECT DISTINCT + ( + 94 ) * col0 AS col1 FROM tab0 AS cor0
----
2256
3290
8366

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT 5 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT 5 / cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 10 * + 23 AS col1 FROM tab1 AS cor0
----
230
230
230

query I rowsort
SELECT ( - 63 ) + cor0.col2 FROM tab0 cor0
----
-30
-62
19

query I rowsort
SELECT + ( + col2 ) * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT - - CAST( NULL AS DECIMAL ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3292
SELECT - - CAST ( NULL AS REAL ) * - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + ( - col1 ) ) * + 45 FROM tab2 AS cor0
----
-1395
-2655
-765

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT DISTINCT - 39 DIV col0 - 49 FROM tab1 AS cor0
----
-49
-62

skipif mysql # not compatible
query I rowsort label-3294
SELECT DISTINCT - 39 / col0 - 49 FROM tab1 AS cor0
----
-49
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT ALL + + 8 + cor0.col2 DIV 14 AS col0 FROM tab1 cor0
----
11
12
14

skipif mysql # not compatible
query I rowsort label-3295
SELECT ALL + + 8 + cor0.col2 / 14 AS col0 FROM tab1 cor0
----
11
12
14

query I rowsort
SELECT DISTINCT + 27 + - col2 FROM tab1 AS cor0
----
-27
-30
-69

query I rowsort
SELECT DISTINCT + + 53 * col1 - - col1 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL - cor0.col0 * + col1 + - col0 * col0 AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT + + col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT ALL - + col0 + - col1 DIV - 94 + 47 col1 FROM tab2 AS cor0
----
-31
-32
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL - + col0 + - col1 / - 94 + 47 col1 FROM tab2 AS cor0
----
-31
-32
40

query I rowsort
SELECT DISTINCT + 70 * - col2 AS col2 FROM tab2 AS cor0
----
-1820
-1890
-2660

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3302
SELECT DISTINCT - col0 + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT - col0 + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col1 - col2 * ( ( col0 ) ) AS col0 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL ( 98 * tab1.col2 ) AS col2 FROM tab1
----
5292
5586
9408

query I rowsort
SELECT - - col1 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT col2 * col1 + 69 AS col2 FROM tab0 cor0
----
166
2907
7531

query I rowsort
SELECT DISTINCT ( col2 ) + 77 FROM tab0 cor0
----
110
159
78

query I rowsort
SELECT + + ( col1 ) * col0 - 10 FROM tab1 cor0
----
1030
630
68

query I rowsort
SELECT - 94 * col1 + col1 AS col0 FROM tab2 AS cor0
----
-1581
-2883
-5487

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3311
SELECT + col1 * + CAST( - ( cor0.col0 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-3311
SELECT + col1 * + CAST ( - ( cor0.col0 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3312
SELECT ALL col2 + CAST( - 65 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
1744
707
941

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL col2 + CAST ( - 65 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
1744
707
941

query I rowsort
SELECT ALL - col0 + - col2 * - col2 + tab2.col0 AS col1 FROM tab2
----
1444
676
729

query I rowsort
SELECT DISTINCT - 50 + col2 AS col2 FROM tab1
----
4
46
7

query I rowsort
SELECT - col1 + col0 * col1 * + col1 FROM tab2
----
22814
271459
6696

query I rowsort
SELECT + tab0.col2 * - col0 + col0 + - 29 FROM tab0
----
-29
-7238
-797

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3317
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3318
SELECT + + cor0.col2 * - cor0.col2 * CAST( - 33 AS SIGNED ) FROM tab1 AS cor0
----
107217
304128
96228

skipif mysql # not compatible
query I rowsort label-3318
SELECT + + cor0.col2 * - cor0.col2 * CAST ( - 33 AS INTEGER ) FROM tab1 AS cor0
----
107217
304128
96228

query I rowsort
SELECT - + col0 * - 38 FROM tab0 AS cor0
----
1330
3382
912

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3320
SELECT - col1 * CAST( NULL AS SIGNED ) * + col0 + col2 / - ( + col0 ) - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3320
SELECT - col1 * CAST ( NULL AS INTEGER ) * + col0 + col2 / - ( + col0 ) - - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col1 * + col0 * col0 FROM tab0 AS cor0
----
118826
49569
720893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3322
SELECT + col2 * - CAST( NULL AS SIGNED ) + 52 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3322
SELECT + col2 * - CAST ( NULL AS INTEGER ) + 52 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 * + col0 + 97 AS col1 FROM tab1
----
-3679
-4623
-80

query I rowsort
SELECT - + ( - col2 ) + cor0.col0 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT + ( + col2 ) + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + col0 * col2 + - col0 AS col2 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT ALL ( + cor0.col1 ) * + col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * + col2 + 53 col2 FROM tab0 cor0
----
1142
54
6777

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3329
SELECT - CAST( NULL AS SIGNED ) * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT - CAST ( NULL AS INTEGER ) * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT ALL 75 * - ( + col1 ) + + CAST( - 78 AS SIGNED ) col1 FROM tab0 AS cor0
----
-6528
-6903
-7353

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL 75 * - ( + col1 ) + + CAST ( - 78 AS INTEGER ) col1 FROM tab0 AS cor0
----
-6528
-6903
-7353

query I rowsort
SELECT DISTINCT 93 * col2 AS col1 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT - col2 * col2 + - tab2.col1 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT - - col0 * + col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - 84 + 27 AS col0 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT cor1.col2 * 81 + 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c36c2ab6ce17babaa21c28628e1fc7b3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 - + col2 * 28 col2 FROM tab2 AS cor0
----
-1102
-754
-783

onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT DISTINCT col0 * col0 * col2 + - 73 DIV - col0 + 38 FROM tab1 cor0
----
233511
548
614438

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT col0 * col0 * col2 + - 73 / - col0 + 38 FROM tab1 cor0
----
233511
548
614438

query I rowsort
SELECT ALL + - cor0.col1 * col1 - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT + 98 AS col1 FROM tab2 AS cor0
----
98

query I rowsort
SELECT + 60 * col0 * - ( + col0 + col2 ) AS col2 FROM tab1 AS cor0
----
-10260
-464640
-844800

query I rowsort
SELECT + 99 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

query I rowsort
SELECT ( - 88 ) FROM tab1
----
-88
-88
-88

query I rowsort
SELECT DISTINCT - 22 FROM tab2, tab0, tab0 AS cor0
----
-22

query I rowsort
SELECT ( - col1 ) * - ( + col0 ) * col0 - + 82 FROM tab1
----
152
40878
83118

query I rowsort
SELECT + col2 * col1 + + 4 AS col2 FROM tab1
----
1252
1408
574

query I rowsort
SELECT ALL - - cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT + col0 * 58 FROM tab2
----
406
4524
4582

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3348
SELECT + col0 + - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3348
SELECT + col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + col1 * col0 + ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab0, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL + 84 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3352
SELECT ALL CAST( NULL AS SIGNED ) * + 96 / col2 + + ( tab0.col1 + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT ALL CAST ( NULL AS INTEGER ) * + 96 / col2 + + ( tab0.col1 + - col0 ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col2 * 35 col2 FROM tab1 cor0
----
1893
2059
3440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 + - col0 col2 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT ( cor1.col0 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b

query I rowsort
SELECT + col1 + + col2 * + col1 + + col1 FROM tab2 AS cor0
----
1652
680
899

query I rowsort
SELECT col0 * col0 * - col1 AS col2 FROM tab0 AS cor0
----
-118825
-49536
-720811

query I rowsort
SELECT ALL + col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - + col0 * - 46 FROM tab0 AS cor0
----
1104
1610
4094

query I rowsort
SELECT + col1 * col2 + - 79 + - col2 FROM tab2 AS cor0
----
1429
529
731

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3361
SELECT DISTINCT + CAST( + col1 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-3361
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + 46 ) * col1 col2 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT ALL - cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + - 55 AS col1 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT DISTINCT - 68 + + col0 FROM tab1 AS cor0
----
-4
-65
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT DISTINCT + col1 DIV - 95 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + col1 / - 95 AS col0 FROM tab0
----
-1
0

query I rowsort
SELECT DISTINCT + 88 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2, tab0 AS cor3
----
88

query I rowsort
SELECT DISTINCT col0 - + col1 AS col0 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - - 75 + + col1 * 29 AS col1 FROM tab1 cor0
----
365
452
829

query I rowsort
SELECT DISTINCT + 96 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-8256
-8736
-9312

query I rowsort
SELECT DISTINCT col0 * 71 AS col0 FROM tab0 AS cor0
----
1704
2485
6319

onlyif mysql # use DIV operator for integer division
query I rowsort label-3372
SELECT DISTINCT + col2 DIV col2 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + col2 / col2 + cor0.col2 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT - 47 - col2 AS col0 FROM tab2
----
-73
-74
-85

query I rowsort
SELECT DISTINCT col0 * + col2 + - ( col2 ) FROM tab1
----
108
3591
7584

query I rowsort
SELECT col0 * + col2 + col1 FROM tab0
----
132
7389
878

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 * - col0 col2 FROM tab1
----
-1027
-52
-630

query I rowsort
SELECT ALL + 59 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT DISTINCT - + 86 FROM tab2, tab0 AS cor0
----
-86

query I rowsort
SELECT DISTINCT - ( - 85 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
85

query I rowsort
SELECT + 47 + - col0 AS col2 FROM tab0
----
-42
12
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT DISTINCT + col1 * tab0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3381
SELECT DISTINCT + col1 * tab0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + + 97 AS col0 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT ALL + col2 + 99 FROM tab0 AS cor0
----
100
132
181

query I rowsort
SELECT - 76 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT ALL - - col2 + 72 FROM tab1 AS cor0
----
126
129
168

query I rowsort
SELECT + 78 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT + + col0 * col0 + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT + col2 * ( col2 ) + col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - ( + 42 ) FROM tab1
----
-42

query I rowsort
SELECT DISTINCT + 24 FROM tab2, tab1, tab2 AS cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT 61 DIV col2 col0 FROM tab0
----
0
1
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3391
SELECT 61 / col2 col0 FROM tab0
----
0
1
61

query I rowsort
SELECT DISTINCT - ( + col1 ) - - tab2.col1 FROM tab2
----
0

query I rowsort
SELECT ALL + cor1.col0 * 96 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to c5695da4d86da91b5699bbc263605518

query I rowsort
SELECT ALL - ( 59 ) AS col0 FROM tab1 AS cor0
----
-59
-59
-59

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col2 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3397
SELECT - col0 DIV col1 - ( - cor0.col2 * col2 ) FROM tab0 AS cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-3397
SELECT - col0 / col1 - ( - cor0.col2 * col2 ) FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + col0 * tab0.col0 * - col0 FROM tab0
----
-13824
-42875
-704969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * col1 + 68 col0 FROM tab1 AS cor0
----
1706
698
887

query I rowsort
SELECT + - col0 - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col0 + + col0 col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + - cor0.col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL - + col0 - - col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - + 93 + + col0 FROM tab0 AS cor0
----
-4
-58
-69

query I rowsort
SELECT - 30 - - col2 FROM tab2 AS cor0
----
-3
-4
8

query I rowsort
SELECT ALL + + col0 + - col0 + 75 FROM tab1 AS cor0
----
75
75
75

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab2, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # use DIV operator for integer division
query I rowsort label-3408
SELECT + col0 + 60 DIV 51 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-3408
SELECT + col0 + 60 / 51 FROM tab0
----
25
36
90

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 FROM tab1
----
-13520
-2028
-6400

query I rowsort
SELECT - + 70 * + col2 AS col0 FROM tab0 AS cor0
----
-2310
-5740
-70

query I rowsort
SELECT ALL - col0 * 22 + col2 AS col0 FROM tab2 AS cor0
----
-127
-1690
-1700

query I rowsort
SELECT + 69 * + col0 * + cor0.col1 FROM tab1 AS cor0
----
44160
5382
71760

query I rowsort
SELECT - col2 * - cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400

query I rowsort
SELECT - ( col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT col1 * 34 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-115430
-275366
-70176

query I rowsort
SELECT - ( 75 ) AS col2 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - col0 + - col0 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
-13848
-42910
-705058

query I rowsort
SELECT ALL - 47 * - cor0.col1 * - 31 AS col2 FROM tab2 AS cor0
----
-24769
-45167
-85963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 + 93 * - col0 col0 FROM tab2 AS cor0
----
-1106
-1170
-602

query I rowsort
SELECT - + col1 * col0 + cor0.col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - 81 + + cor0.col1 * col1 FROM tab0 AS cor0
----
7315
8200
9328

query I rowsort
SELECT ALL + 82 * + col0 FROM tab0 AS cor0
----
1968
2870
7298

onlyif mysql # use DIV operator for integer division
query I rowsort label-3423
SELECT cor0.col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3423
SELECT cor0.col0 / + cor0.col1 AS col2 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col1 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT + col1 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT + - 41 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT col1 * - col2 + cor0.col0 * ( - col1 ) FROM tab2 AS cor0
----
-1054
-1989
-6136

query I rowsort
SELECT + 34 * col2 AS col1 FROM tab2
----
1292
884
918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3429
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 * - 52 + - col0 AS col1 FROM tab0 AS cor0
----
-4496
-4821
-5079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3431
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT + col0 DIV ( 58 ) + col2 * col1 FROM tab1 cor0
----
1249
1404
571

skipif mysql # not compatible
query I rowsort label-3432
SELECT + col0 / ( 58 ) + col2 * col1 FROM tab1 cor0
----
1249
1404
571

query I rowsort
SELECT tab0.col2 * ( + cor0.col1 ) AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 + + col1 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT - + col0 * + col0 * col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL ( + 91 ) + + col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1353
-585
-638

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3437
SELECT ALL - + CAST( NULL AS SIGNED ) + 67 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL - + CAST ( NULL AS INTEGER ) + 67 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col2 * + col2 + col2 FROM tab0
----
1146
37
6895

query I rowsort
SELECT - - col1 - + col2 AS col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL - ( col2 ) * col2 * + col2 + col2 FROM tab2
----
-17550
-19656
-54834

query I rowsort
SELECT - ( + 15 ) - cor0.col1 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 5f4dc9dbb8e82ed43a051b47c2b45a9c

query I rowsort
SELECT ( - col2 ) * 16 AS col1 FROM tab2
----
-416
-432
-608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * + col1 + col2 * - cor0.col0 col1 FROM tab1 AS cor0
----
-3078
-6432
1242

query I rowsort
SELECT cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3445
SELECT + 49 + - col1 DIV - tab2.col1 AS col0 FROM tab2
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3445
SELECT + 49 + - col1 / - tab2.col1 AS col0 FROM tab2
----
50
50
50

query I rowsort
SELECT DISTINCT col0 + - col0 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - col2 * - ( - col0 ) + + 71 AS col2 FROM tab0 AS cor0
----
-721
-7227
36

query I rowsort
SELECT DISTINCT - + ( + 51 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT DISTINCT + ( - col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL ( + cor0.col1 ) + col2 * 0 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL 25 AS col2 FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT - col1 * - 35 + col2 AS col2 FROM tab0 AS cor0
----
3043
3267
3396

query I rowsort
SELECT - 88 * col2 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT DISTINCT + col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884

query I rowsort
SELECT ALL - - col0 + col1 * + cor0.col2 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT col2 * col1 DIV ( 86 ) AS col1 FROM tab0 AS cor0
----
1
33
86

skipif mysql # not compatible
query I rowsort label-3456
SELECT col2 * col1 / ( 86 ) AS col1 FROM tab0 AS cor0
----
1
33
86

query I rowsort
SELECT col1 + cor0.col0 * - ( col0 * col2 + col2 ) FROM tab1 AS cor0
----
-237110
-622
-622067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col0 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3459
SELECT DISTINCT - col2 * col2 + + CAST( 43 * col2 AS SIGNED ) FROM tab0 AS cor0
----
-3198
330
42

skipif mysql # not compatible
query I rowsort label-3459
SELECT DISTINCT - col2 * col2 + + CAST ( 43 * col2 AS INTEGER ) FROM tab0 AS cor0
----
-3198
330
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT DISTINCT - col2 DIV col0 FROM tab2 cor0
----
-3
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - col2 / col0 FROM tab2 cor0
----
-3
0

query I rowsort
SELECT - ( + col2 ) * + col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT - col1 - + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-17
-34
-59

skipif mysql # not compatible
query I rowsort label-3462
SELECT - col1 - + col2 / col0 AS col1 FROM tab2 AS cor0
----
-17
-34
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3463
SELECT ALL - col0 + + 79 DIV col1 FROM tab2 AS cor0
----
-5
-75
-77

skipif mysql # not compatible
query I rowsort label-3463
SELECT ALL - col0 + + 79 / col1 FROM tab2 AS cor0
----
-5
-75
-77

query I rowsort
SELECT col2 * - ( col0 ) FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT ALL + col0 * 30 AS col0 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - col1 + - ( ( + col0 ) ) * col0 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-4049
-6317
19

query I rowsort
SELECT DISTINCT - col2 * ( + 90 ) FROM tab2 AS cor0
----
-2340
-2430
-3420

onlyif mysql # use DIV operator for integer division
query I rowsort label-3469
SELECT DISTINCT col0 * col1 DIV 87 col0 FROM tab2 cor0
----
15
2
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT col0 * col1 / 87 col0 FROM tab2 cor0
----
15
2
52

query I rowsort
SELECT - col2 + - ( - col1 ) * col1 * - ( cor0.col2 ) - col1 AS col0 FROM tab0 cor0
----
-244187
-679215
-9507

query I rowsort
SELECT ALL - + ( col2 ) * - col0 + + col0 + col1 FROM tab0 AS cor0
----
167
7478
902

query I rowsort
SELECT + - col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-3473
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT DISTINCT col1 DIV col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT col1 / col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT + col1 * - ( tab1.col1 * col2 + + col0 ) FROM tab1
----
-17264
-36582
-6340

query I rowsort
SELECT + - 17 * 84 AS col1 FROM tab0 AS cor0
----
-1428
-1428
-1428

query I rowsort
SELECT + + cor0.col2 * col0 + - col1 * col1 FROM tab2 AS cor0
----
-1453
-772
2713

query I rowsort
SELECT DISTINCT - + col2 * col1 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col1 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col1 + col0 - ( tab2.col2 * tab2.col2 + - 16 ) AS col0 FROM tab2
----
-1332
-523
-675

query I rowsort
SELECT ALL col2 + col0 * col2 - tab0.col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col0 * - ( - ( - col2 ) ) - - col0 AS col1 FROM tab1
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT + + ( + 69 ) - col1 DIV 84 FROM tab1 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-3483
SELECT + + ( + 69 ) - col1 / 84 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) - + cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 + ( col2 ) - + 75 FROM tab2 AS cor0
----
-108
-54
-79

query I rowsort
SELECT cor0.col0 * col1 - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + ( + col2 ) - + cor0.col2 FROM tab1 cor0
----
0

query I rowsort
SELECT - cor0.col1 - 43 AS col1 FROM tab2 cor0
----
-102
-60
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT col2 DIV - col0 - - col1 AS col0 FROM tab1 AS cor0
----
10
12
8

skipif mysql # not compatible
query I rowsort label-3489
SELECT col2 / - col0 - - col1 AS col0 FROM tab1 AS cor0
----
10
12
8

query I rowsort
SELECT - col1 - 69 FROM tab2 AS cor0
----
-100
-128
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * col1 col2 FROM tab1
----
1344
1458
627

query I rowsort
SELECT + col0 + col1 * - col2 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT - 70 * + col2 FROM tab2
----
-1820
-1890
-2660

query I rowsort
SELECT + 3 FROM tab0, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 + - col2 col1 FROM tab2 AS cor0
----
13
24
25

query I rowsort
SELECT ALL + - col0 * cor0.col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL col0 + 73 FROM tab1
----
137
153
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-3498
SELECT ALL + 50 + col0 DIV - col0 FROM tab2
----
49
49
49

skipif mysql # not compatible
query I rowsort label-3498
SELECT ALL + 50 + col0 / - col0 FROM tab2
----
49
49
49

query I rowsort
SELECT DISTINCT - tab0.col1 + 53 AS col0 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
-33
-38
-44

query I rowsort
SELECT DISTINCT + 94 * col0 AS col0 FROM tab0
----
2256
3290
8366

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + cor0.col1 - CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-172
-182
-194

query I rowsort
SELECT ALL + - cor0.col0 * - 81 * - 88 AS col0 FROM tab1 AS cor0
----
-21384
-456192
-570240

query I rowsort
SELECT - 51 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

query I rowsort
SELECT - 22 * + tab0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 8e0c90f3a9413fc2dcd03bbf28fb6d8d

onlyif mysql # use DIV operator for integer division
query I rowsort label-3505
SELECT ALL col2 DIV + ( col1 ) - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL col2 / + ( col1 ) - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2914
-3244
-9209

query I rowsort
SELECT DISTINCT - - col1 + 55 AS col1 FROM tab1 AS cor0
----
65
68
81

query I rowsort
SELECT ALL + cor0.col2 + - col0 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
1976
209
2961

query I rowsort
SELECT DISTINCT - col1 + - col2 * cor0.col2 * - col2 FROM tab0 AS cor0
----
-96
35851
551277

query I rowsort
SELECT DISTINCT - col1 * + ( 83 ) FROM tab1 AS cor0
----
-1079
-2158
-830

query I rowsort
SELECT DISTINCT - + col1 + 93 AS col2 FROM tab1 AS cor0
----
67
80
83

query I rowsort
SELECT ALL + + col2 - 6 AS col2 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT ALL + - cor0.col2 + 8 FROM tab0 AS cor0
----
-25
-74
7

query I rowsort
SELECT ALL + + col1 + - 41 AS col1 FROM tab2 AS cor0
----
-10
-24
18

query I rowsort
SELECT DISTINCT + col1 * col0 * - col2 FROM tab2 cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT DISTINCT - cor0.col1 + + ( - col0 + col1 ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT - cor0.col1 + + ( - col0 + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + tab2.col0 ) * + col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - ( col1 ) * col2 + ( - col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT - - col2 + + col0 * col2 + + col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
405
4082
6042

query I rowsort
SELECT - tab1.col1 * col0 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT 32 * col1 + col2 FROM tab1
----
377
512
886

query I rowsort
SELECT DISTINCT 94 * - cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-282
-6016
-7520

query I rowsort
SELECT - - col2 + - col2 * + 40 FROM tab2 cor0
----
-1014
-1053
-1482

onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT DISTINCT - 86 * col1 DIV col0 AS col2 FROM tab2
----
-18
-380
-65

skipif mysql # not compatible
query I rowsort label-3524
SELECT DISTINCT - 86 * col1 / col0 AS col2 FROM tab2
----
-18
-380
-65

query I rowsort
SELECT col1 * ( - col1 ) * tab1.col0 + + col1 * - col0 AS col2 FROM tab1
----
-14560
-2106
-7040

query I rowsort
SELECT - 84 * col0 FROM tab2 cor0
----
-588
-6552
-6636

onlyif mysql # use DIV operator for integer division
query I rowsort label-3527
SELECT col0 DIV + col0 + - col0 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3527
SELECT col0 / + col0 + - col0 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT DISTINCT - tab1.col1 + ( + col2 ) * col2 AS col0 FROM tab1
----
2890
3239
9203

query I rowsort
SELECT ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 73 * col1 + + col2 * - cor0.col1 * + 21 FROM tab1 AS cor0
----
-12700
-27157
-31382

query I rowsort
SELECT DISTINCT + - col1 + 61 AS col0 FROM tab0 AS cor0
----
-25
-30
-36

query I rowsort
SELECT col0 * - ( + col0 + col0 ) * - 50 AS col2 FROM tab0
----
122500
57600
792100

query I rowsort
SELECT ALL - 11 FROM tab0, tab1 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT ALL col2 * 52 * - tab1.col2 AS col0 FROM tab1
----
-151632
-168948
-479232

onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT ALL col1 DIV ( - col0 ) FROM tab2
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-3535
SELECT ALL col1 / ( - col0 ) FROM tab2
----
-4
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT + col1 DIV col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

skipif mysql # not compatible
query I rowsort label-3536
SELECT + col1 / col0 + col2 AS col2 FROM tab1 AS cor0
----
57
62
96

query I rowsort
SELECT - - col0 * - 45 + col0 * 56 FROM tab1 AS cor0
----
33
704
880

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + cor0.col2 AS REAL ) + col1 col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT + + ( col0 ) * + col0 + + col2 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT col0 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT + col0 * + col1 - + col2 * 61 FROM tab2 AS cor0
----
-1430
-975
3016

query I rowsort
SELECT ALL - col2 - col2 * + tab1.col2 AS col1 FROM tab1
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3543
SELECT col1 - - tab1.col0 DIV + col2 AS col2 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-3543
SELECT col1 - - tab1.col0 / + col2 AS col2 FROM tab1
----
11
13
26

query I rowsort
SELECT DISTINCT - ( col2 ) * col1 * - col0 + + col2 - col1 AS col0 FROM tab1
----
36527
4240
99923

query I rowsort
SELECT DISTINCT col2 - 37 AS col1 FROM tab2
----
-10
-11
1

query I rowsort
SELECT tab2.col0 + + 83 - col0 AS col1 FROM tab2
----
83
83
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT + col2 + col2 - col1 * col1 DIV col2 FROM tab1 AS cor0
----
113
191
96

skipif mysql # not compatible
query I rowsort label-3547
SELECT + col2 + col2 - col1 * col1 / col2 FROM tab1 AS cor0
----
113
191
96

query I rowsort
SELECT - ( + col2 ) + - col0 * col1 + col1 FROM tab2
----
-1364
-213
-4569

query I rowsort
SELECT col2 * - 42 + - col1 AS col2 FROM tab1
----
-2294
-2404
-4045

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col1 FROM tab0 cor0
----
77

query I rowsort
SELECT ALL - - ( cor0.col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - 63 * col2 * col2 + col0 FROM tab1 AS cor0
----
-183705
-204623
-580528

query I rowsort
SELECT col2 * + col0 + - col1 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT + + col2 - col0 * col0 * col0 FROM tab0 cor0
----
-13791
-42874
-704887

query I rowsort
SELECT - + 13 * - cor0.col1 FROM tab2 cor0
----
221
403
767

query I rowsort
SELECT DISTINCT + + col0 * + cor0.col0 - col0 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT DISTINCT - 64 + + col0 AS col0 FROM tab1 AS cor0
----
-61
0
16

query I rowsort
SELECT col2 + + cor0.col0 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - col0 * col0 * col2 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-3560
SELECT DISTINCT cor0.col2 * + col0 + - col1 DIV col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT cor0.col2 * + col0 + - col1 / col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - col1 * - cor0.col1 * - col2 FROM tab1 cor0
----
-16224
-36504
-5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-3562
SELECT ALL - col0 DIV col0 + + cor0.col2 - col1 FROM tab2 AS cor0
----
-34
-5
20

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - col0 / col0 + + cor0.col2 - col1 FROM tab2 AS cor0
----
-34
-5
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col0 * col1 col1 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT + - col2 + 76 * col0 * col2 FROM tab1 AS cor0
----
12258
277191
583584

query I rowsort
SELECT + + cor0.col1 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT col0 + + col2 * - 68 * col2 AS col0 FROM tab0 AS cor0
----
-33
-457143
-74028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 51 col1 FROM tab0 cor0
----
51

query I rowsort
SELECT - col2 + - col2 + col1 AS col0 FROM tab1 AS cor0
----
-104
-179
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 - - col1 col0 FROM tab0 AS cor0
----
75
80
86

query I rowsort
SELECT DISTINCT - - col0 * col1 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT - ( cor0.col1 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT - col0 - + 17 AS col2 FROM tab2 AS cor0
----
-24
-95
-96

query I rowsort
SELECT ALL - - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - col1 - - 45 AS col2 FROM tab1 AS cor0
----
19
32
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT - cor0.col0 DIV 28 + 3 AS col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-3575
SELECT - cor0.col0 / 28 + 3 AS col2 FROM tab2 AS cor0
----
1
1
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT DISTINCT col2 * - col2 - + CAST( ( - col1 ) AS SIGNED ) FROM tab0
----
-1003
-6633
96

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT col2 * - col2 - + CAST ( ( - col1 ) AS INTEGER ) FROM tab0
----
-1003
-6633
96

query I rowsort
SELECT ALL + - cor0.col2 * cor0.col1 + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT ALL + col0 + ( 43 ) FROM tab2 AS cor0
----
121
122
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 33 + col1 * - col2 col0 FROM tab2 AS cor0
----
-606
1040
1961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT DISTINCT col0 * col1 + 81 FROM tab2
----
1424
298
4683

onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT - col1 + col0 DIV + col2 + col2 * col2 AS col2 FROM tab0
----
-61
1003
6634

skipif mysql # not compatible
query I rowsort label-3582
SELECT - col1 + col0 / + col2 + col2 * col2 AS col2 FROM tab0
----
-61
1003
6634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3583
SELECT ( + tab2.col0 ) * + CAST( - ( col2 ) AS SIGNED ) + ( + col2 ) + + col2 FROM tab2
----
-135
-1976
-2926

skipif mysql # not compatible
query I rowsort label-3583
SELECT ( + tab2.col0 ) * + CAST ( - ( col2 ) AS INTEGER ) + ( + col2 ) + + col2 FROM tab2
----
-135
-1976
-2926

query I rowsort
SELECT - col0 + col1 * 39 + - col0 FROM tab2
----
1195
2145
505

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT + col2 * - col2 + CAST( + col2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-2888
-3202
-9133

skipif mysql # not compatible
query I rowsort label-3585
SELECT + col2 * - col2 + CAST ( + col2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-2888
-3202
-9133

query I rowsort
SELECT ALL 24 - - col2 FROM tab2
----
50
51
62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 773bb916e463ebc075d701108532badb

query I rowsort
SELECT col1 + col2 * 69 FROM tab0 AS cor0
----
166
2363
5749

query I rowsort
SELECT ALL col0 * 34 + col1 FROM tab0 AS cor0
----
1287
3117
902

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3590
SELECT + + col2 * - CAST( NULL AS SIGNED ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3590
SELECT + + col2 * - CAST ( NULL AS INTEGER ) + + 87 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - 7 FROM tab0 AS cor0
----
-40
-8
-89

query I rowsort
SELECT + + col1 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3593
SELECT DISTINCT + - col0 * CAST( + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + - col0 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col1 + - 82 FROM tab2 AS cor0
----
-113
-141
-99

query I rowsort
SELECT DISTINCT - col0 * + 6 + + col2 FROM tab2 AS cor0
----
-15
-436
-442

query I rowsort
SELECT 99 * col1 + col1 FROM tab2 AS cor0
----
1700
3100
5900

query I rowsort
SELECT - ( - col1 ) * col0 + + col2 * 18 AS col0 FROM tab0
----
2658
3413
9575

query I rowsort
SELECT + + col2 + col1 * col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT + 65 + - col2 FROM tab0 AS cor0
----
-17
32
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 - - col0 * ( 58 ) col1 FROM tab2 AS cor0
----
4620
4678
502

query I rowsort
SELECT + + 49 * col0 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT ALL - cor0.col1 + + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT + cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT col0 + col0 + col1 * + col1 AS col2 FROM tab2
----
3637
447
975

query I rowsort
SELECT ( + col0 * + col2 ) FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 91 * - col1 + ( + col0 ) AS col2 FROM tab0 cor0
----
-7802
-8192
-8792

query I rowsort
SELECT - 73 + - col2 FROM tab0 AS cor0
----
-106
-155
-74

query I rowsort
SELECT DISTINCT col1 + cor0.col1 * 16 AS col2 FROM tab2 AS cor0
----
1003
289
527

onlyif mysql # use DIV operator for integer division
query I rowsort label-3609
SELECT ALL + 33 DIV - col0 FROM tab1 AS cor0
----
-11
0
0

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL + 33 / - col0 FROM tab1 AS cor0
----
-11
0
0

query I rowsort
SELECT 26 + + col1 * - 38 * + col1 FROM tab1 AS cor0
----
-25662
-3774
-6396

query I rowsort
SELECT DISTINCT + + 94 FROM tab0 AS cor0
----
94

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 + 79 * + col2 AS col2 FROM tab0 cor0
----
2607
6478
79

query I rowsort
SELECT ALL + - 13 * - col1 AS col2 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT + + ( col1 ) * ( 28 ) FROM tab1 AS cor0
----
280
364
728

query I rowsort
SELECT + - col1 + 29 AS col2 FROM tab2 AS cor0
----
-2
-30
12

query I rowsort
SELECT ALL + cor0.col2 + ( - col1 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT - col0 + col0 DIV col2 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif mysql # not compatible
query I rowsort label-3618
SELECT - col0 + col0 / col2 AS col0 FROM tab1 AS cor0
----
-3
-63
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * col1 + + col2 col2 FROM tab1
----
36537
4266
99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3620
SELECT - + col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT - + col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3621
SELECT + 50 + ( - col0 ) DIV cor0.col1 AS col1 FROM tab2 cor0
----
46
49
50

skipif mysql # not compatible
query I rowsort label-3621
SELECT + 50 + ( - col0 ) / cor0.col1 AS col1 FROM tab2 cor0
----
46
49
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT DISTINCT + 21 DIV + 95 + col0 AS col0 FROM tab0 cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT + 21 / + 95 + col0 AS col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL - 43 * ( cor0.col1 ) FROM tab2 AS cor0
----
-1333
-2537
-731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 * col0 col0 FROM tab2
----
-504
-5616
-5688

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT - - col0 + - 95 + + col1 * CAST( + ( col0 ) * - ( col0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-118885
-49607
-720817

skipif mysql # not compatible
query I rowsort label-3625
SELECT - - col0 + - 95 + + col1 * CAST ( + ( col0 ) * - ( col0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-118885
-49607
-720817

query I rowsort
SELECT + - cor0.col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ALL ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 45 + ( + col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1134
46
6769

query I rowsort
SELECT + + cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * - col1 AS col1 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL ( - 50 ) * - col1 AS col0 FROM tab0
----
4300
4550
4850

query I rowsort
SELECT ALL - ( 11 ) * col0 FROM tab0
----
-264
-385
-979

query I rowsort
SELECT + 66 + - col1 AS col2 FROM tab1
----
40
53
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-3634
SELECT DISTINCT - 24 DIV - col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 24 / - col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL 6 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3636
SELECT - + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-3636
SELECT - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 59 + col2 AS col2 FROM tab1 AS cor0
----
113
116
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT - 29 + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-21
-29
-29

skipif mysql # not compatible
query I rowsort label-3638
SELECT - 29 + col1 / col0 AS col2 FROM tab1 AS cor0
----
-21
-29
-29

query I rowsort
SELECT - 68 * 98 + - col0 AS col1 FROM tab0 AS cor0
----
-6688
-6699
-6753

onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT - col0 + - col2 DIV + 63 col2 FROM tab0 AS cor0
----
-24
-35
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3640
SELECT - col0 + - col2 / + 63 col2 FROM tab0 AS cor0
----
-24
-35
-90

query I rowsort
SELECT + col2 * + col2 + - 8 FROM tab1 AS cor0
----
2908
3241
9208

query I rowsort
SELECT - col0 + + col2 * - 23 FROM tab1 AS cor0
----
-1245
-1375
-2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-3643
SELECT + + col0 + + col0 DIV + CAST( ( + col2 ) * + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3643
SELECT + + col0 + + col0 / + CAST ( ( + col2 ) * + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT cor0.col2 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - col2 * + 33 FROM tab0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT + 82 * 56 FROM tab2
----
4592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 13 * col1 col0 FROM tab2 AS cor0
----
183
376
741

query I rowsort
SELECT col2 + ( - cor0.col2 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 78 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
78

query I rowsort
SELECT + 65 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + col2 * - col1 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1612
-725
-844

query I rowsort
SELECT + + col1 * col1 + - col2 FROM tab2 AS cor0
----
251
3455
934

onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT ALL - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL - col0 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + - 87 FROM tab0 AS cor0
----
-1
10
4

query I rowsort
SELECT + cor0.col0 + + cor0.col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT tab1.col2 * 95 + - tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 5e7d2458f044bc5ec38c0b55005f24aa

query I rowsort
SELECT ALL + ( + col1 ) - + col0 AS col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT ALL ( + cor0.col2 ) + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 32 * + col1 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT ALL - + 88 * cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-2145
-3081
-7914

query I rowsort
SELECT DISTINCT + 0 * - col0 AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 98 * - col0 + col1 * + col2 - + col2 AS col0 FROM tab2 AS cor0
----
-6136
-7134
124

query I rowsort
SELECT + 34 * + cor0.col0 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT 66 - - ( - col2 ) * + 61 * col1 FROM tab2 AS cor0
----
-39340
-50991
-93508

query I rowsort
SELECT ALL ( + col2 ) * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col0 + 17 AS col2 FROM tab2 AS cor0
----
-61
-62
10

query I rowsort
SELECT + - ( 80 ) + col1 FROM tab2 cor0
----
-21
-49
-63

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT DISTINCT + + col2 + - 58 DIV - cor0.col0 col2 FROM tab1 AS cor0
----
57
73
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT + + col2 + - 58 / - cor0.col0 col2 FROM tab1 AS cor0
----
57
73
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3669
SELECT + 86 * col2 + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 86 * col2 + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 69 - 23 AS col1 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT - 10 * 96 - col2 * + col0 * + col1 AS col1 FROM tab2 cor0
----
-120612
-51994
-6819

query I rowsort
SELECT - - ( - cor0.col1 ) AS col1 FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb

query I rowsort
SELECT + col0 * - ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - + col2 * 53 FROM tab1 AS cor0
----
-2862
-3021
-5088

query I rowsort
SELECT - col1 * + col0 * - 57 AS col2 FROM tab1 cor0
----
36480
4446
59280

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 cor1, tab1, tab2 cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

query I rowsort
SELECT DISTINCT - col1 + - col2 - + col1 AS col2 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT ALL col1 + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT DISTINCT + col2 + 37 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1944
-2052
-3456

query I rowsort
SELECT ALL col2 * col1 + + col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 + + col2 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3682
SELECT ALL + + col2 * - col1 * col0 + col2 DIV + col0 + col0 FROM tab2 AS cor0
----
-119574
-50955
-5849

skipif mysql # not compatible
query I rowsort label-3682
SELECT ALL + + col2 * - col1 * col0 + col2 / + col0 + col0 FROM tab2 AS cor0
----
-119574
-50955
-5849

query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT col1 + col1 + + col1 FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT col2 * col0 - col2 / - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( col2 * col2 ) OR NOT NULL >= - col1
----

query I rowsort
SELECT ALL + col1 * col2 * col1 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT ALL + col0 + cor0.col0 + col1 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2112
3465
8277

query I rowsort
SELECT ALL - cor0.col2 * col2 - col0 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT + cor0.col0 + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3690
SELECT + + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3690
SELECT + + col2 / + col0 AS col2 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT ALL - col1 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT DISTINCT + col1 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT + col1 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + cor0.col2 * + col0 + col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT ALL + col2 - tab0.col0 * + col1 FROM tab0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL tab2.col1 - + col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - tab0.col2 * col2 AS col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 WHERE ( NULL ) IN ( - col1 + - col2 )
----

query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col0 * col1 + + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430

query I rowsort
SELECT + ( + col1 ) * col1 AS col0 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL - col0 * col2 * - col1 + col0 + + tab2.col2 * col0 AS col0 FROM tab2
----
121758
54115
6055

query I rowsort
SELECT + col2 * + col1 + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT + tab0.col1 + col2 - col2 FROM tab0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - tab1.col2 col0 FROM tab1
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-3707
SELECT + tab1.col1 * col0 + col1 DIV tab1.col0 FROM tab1
----
1040
640
86

skipif mysql # not compatible
query I rowsort label-3707
SELECT + tab1.col1 * col0 + col1 / tab1.col0 FROM tab1
----
1040
640
86

query I rowsort
SELECT col0 * col1 + - col2 FROM tab1
----
24
583
944

query I rowsort
SELECT DISTINCT + - col0 + + col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT ( - tab0.col0 ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT 59 * + col2 FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT ALL + col1 * + col1 * col1 AS col2 FROM tab0
----
636056
753571
912673

query I rowsort
SELECT DISTINCT - col2 + + col1 * col0 AS col1 FROM tab2
----
1305
190
4576

query I rowsort
SELECT cor0.col2 + col2 * + col2 - col2 * col1 * - col2 FROM tab0 cor0
----
618690
94776
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( col2 )
----

query I rowsort
SELECT col0 * col2 + col0 * - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 + col2 + col1 AS col2 FROM tab0
----
133
143
262

onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT + tab1.col2 + + col1 DIV tab1.col0 + + tab1.col2 FROM tab1
----
114
116
192

skipif mysql # not compatible
query I rowsort label-3718
SELECT + tab1.col2 + + col1 / tab1.col0 + + tab1.col2 FROM tab1
----
114
116
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3719
SELECT tab0.col1 DIV col2 AS col0 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3719
SELECT tab0.col1 / col2 AS col0 FROM tab0
----
1
2
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - col2 < + col2
----

query I rowsort
SELECT - col2 * col2 - + col0 * col2 AS col1 FROM tab0
----
-14022
-1881
-36

query I rowsort
SELECT ALL - col0 + tab2.col1 FROM tab2 WHERE col0 + col0 / col2 = ( NULL )
----

query I rowsort
SELECT + col0 * - col2 * col0 AS col1 FROM tab2
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-3724
SELECT DISTINCT - col0 + tab0.col1 DIV + tab0.col0 + col1 AS col2 FROM tab0
----
3
64
65

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT - col0 + tab0.col1 / + tab0.col0 + col1 AS col2 FROM tab0
----
3
64
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 * col2 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT DISTINCT + col2 * col1 * tab1.col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT ALL + col1 + col2 + + col0 FROM tab0
----
133
143
262

query I rowsort
SELECT - col1 * + tab2.col0 * tab2.col1 AS col2 FROM tab2
----
-22831
-271518
-6727

query I rowsort
SELECT cor0.col1 * - col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT - - cor0.col0 * 15 - col2 AS col0 FROM tab1 AS cor0
----
-9
1104
903

query I rowsort
SELECT + + col2 * - 53 - ( - col2 ) FROM tab1 AS cor0
----
-2808
-2964
-4992

query I rowsort
SELECT DISTINCT + col0 + col0 * col2 AS col0 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + 35 + - col0 col2 FROM tab1
----
-19
-32
58

query I rowsort
SELECT ALL col1 + ( 41 ) FROM tab0 AS cor0
----
127
132
138

onlyif mysql # use DIV operator for integer division
query I rowsort label-3735
SELECT ALL tab2.col1 * tab2.col0 DIV + col0 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL tab2.col1 * tab2.col0 / + col0 FROM tab2
----
17
31
59

query I rowsort
SELECT ( + 81 ) * - cor0.col0 FROM tab2 AS cor0
----
-567
-6318
-6399

query I rowsort
SELECT + cor0.col2 * - cor0.col1 * + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 422ca613b76e420055994b6a092ef37d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * cor0.col0 col1 FROM tab2 AS cor0
----
-21
-234
-237

skipif mysql # not compatible
query I rowsort
SELECT - + ( + col1 ) * CAST ( - col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 99 + + col2 FROM tab1 AS cor0
----
153
156
195

query I rowsort
SELECT - 43 * col2 FROM tab2 AS cor0
----
-1118
-1161
-1634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 * + col2 col0 FROM tab0
----
-1353
-3362
-41

query I rowsort
SELECT DISTINCT col2 * + col0 * col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT ALL + col0 * + 13 AS col1 FROM tab1
----
1040
39
832

query I rowsort
SELECT DISTINCT 14 * - tab0.col0 FROM tab0
----
-1246
-336
-490

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3746
SELECT - CAST( + 7 AS SIGNED ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

skipif mysql # not compatible
query I rowsort label-3746
SELECT - CAST ( + 7 AS INTEGER ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466

query I rowsort
SELECT DISTINCT + ( col0 ) + col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + 98 AS col2 FROM tab1 AS cor0
----
98
98
98

query I rowsort
SELECT - 37 * col1 + col2 * col2 FROM tab0 AS cor0
----
-2093
-3588
3357

query I rowsort
SELECT ALL + cor1.col1 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT DISTINCT - col0 + + col1 * - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT - 11 AS col0 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202

onlyif mysql # use DIV operator for integer division
query I rowsort label-3753
SELECT DISTINCT + 38 + - col2 DIV + 64 FROM tab0 cor0
----
37
38

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + 38 + - col2 / + 64 FROM tab0 cor0
----
37
38

query I rowsort
SELECT ( + col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - col1 + + ( - col0 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT + - col2 + ( col2 ) * - col1 AS col0 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT DISTINCT col1 * ( + 31 ) FROM tab1 AS cor0
----
310
403
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3758
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 cor0, tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 cor0, tab2 cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT + cor0.col0 DIV 44 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-3759
SELECT + cor0.col0 / 44 FROM tab2, tab2 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3760
SELECT ALL CAST( - col1 AS SIGNED ) + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-144
-72
-89

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL CAST ( - col1 AS INTEGER ) + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-144
-72
-89

query I rowsort
SELECT ALL + col2 + 18 + col1 * col0 FROM tab0 AS cor0
----
2115
3414
8199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 48 * - col0 + col0 * col2 col1 FROM tab0 cor0
----
-1548
-274
3117

onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT DISTINCT + col0 * col2 * col2 + ( col1 ) * col2 * - CAST( 81 AS SIGNED ) + col0 DIV + 58 AS col0 FROM tab1 AS cor0
----
-104976
161767
636193

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT + col0 * col2 * col2 + ( col1 ) * col2 * - CAST ( 81 AS INTEGER ) + col0 / + 58 AS col0 FROM tab1 AS cor0
----
-104976
161767
636193

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3764
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3764
SELECT ALL - CAST ( NULL AS INTEGER ) * - col1 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) + - col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT - - ( 57 ) AS col0 FROM tab0 AS cor0
----
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-3767
SELECT - col0 * + tab0.col1 + col1 + col2 DIV + col2 AS col2 FROM tab0
----
-1977
-3297
-8007

skipif mysql # not compatible
query I rowsort label-3767
SELECT - col0 * + tab0.col1 + col1 + col2 / + col2 AS col2 FROM tab0
----
-1977
-3297
-8007

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT col1 + + ( col2 ) * col1 + - col0 AS col0 FROM tab0 AS cor0
----
159
2900
7464

query I rowsort
SELECT ( cor0.col1 ) AS col2 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT + ( cor0.col2 ) * col0 + + col0 + - col2 AS col2 FROM tab2 AS cor0
----
169
2080
3043

query I rowsort
SELECT + col2 * + col0 * - col1 + - cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-3492
-671580
-70950

query I rowsort
SELECT DISTINCT - ( 84 ) + - col0 * ( 14 + + tab1.col1 ) AS col0 FROM tab1
----
-1620
-204
-2244

query I rowsort
SELECT - col0 + - 38 AS col2 FROM tab0 AS cor0
----
-127
-62
-73

query I rowsort
SELECT DISTINCT + col2 * + 4 AS col1 FROM tab2
----
104
108
152

query I rowsort
SELECT ALL - - col1 * - 87 FROM tab2 AS cor0
----
-1479
-2697
-5133

query I rowsort
SELECT DISTINCT col2 + ( col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT cor0.col1 * col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT col1 * + 75 * + col0 FROM tab2 AS cor0
----
100725
16275
345150

query I rowsort
SELECT + - col1 * + col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col2 * - ( col2 ) + col1 AS col0 FROM tab0 cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT col2 * - col0 * - col1 + - ( - ( + cor0.col0 ) ) - + 83 FROM tab0 AS cor0
----
3347
664124
68053

query I rowsort
SELECT DISTINCT - 50 AS col1 FROM tab2 cor0
----
-50

query I rowsort
SELECT DISTINCT - ( 88 ) FROM tab2 AS cor0
----
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT - CAST( 66 AS SIGNED ) FROM tab1 cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-3785
SELECT - CAST ( 66 AS INTEGER ) FROM tab1 cor0
----
-66
-66
-66

query I rowsort
SELECT DISTINCT - 76 + + 58 * + col1 AS col1 FROM tab0 AS cor0
----
4912
5202
5550

query I rowsort
SELECT ALL 1 + col2 AS col2 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + + 66 * col1 * + col2 AS col2 FROM tab2 AS cor0
----
101244
42636
55242

query I rowsort
SELECT DISTINCT 59 * - col1 AS col0 FROM tab2 AS cor0
----
-1003
-1829
-3481

query I rowsort
SELECT + col1 + - ( cor0.col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 9 - col2 FROM tab0 AS cor0
----
-24
-73
8

query I rowsort
SELECT DISTINCT ( + cor0.col0 ) + col0 * col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL + - 86 + col0 AS col2 FROM tab1 AS cor0
----
-22
-6
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT CAST( NULL AS SIGNED ) * + col1 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3794
SELECT CAST ( NULL AS INTEGER ) * + col1 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 6 * col1 + col1 * + col2 FROM tab2 AS cor0
----
1180
544
651

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3796
SELECT - + CAST( + 33 AS SIGNED ) FROM tab0 cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-3796
SELECT - + CAST ( + 33 AS INTEGER ) FROM tab0 cor0
----
-33
-33
-33

query I rowsort
SELECT - + 36 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT + cor0.col2 + - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 * col2 AS col0 FROM tab2 cor0
----
-2054
-216
-3040

query I rowsort
SELECT + col0 + - col0 * + 65 FROM tab1 AS cor0
----
-192
-4096
-5120

query I rowsort
SELECT - 31 + cor0.col0 * 77 AS col0 FROM tab2 AS cor0
----
508
5975
6052

query I rowsort
SELECT ALL + col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT ALL col0 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL col0 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3805
SELECT DISTINCT 35 DIV col0 FROM tab1 AS cor0
----
0
11

skipif mysql # not compatible
query I rowsort label-3805
SELECT DISTINCT 35 / col0 FROM tab1 AS cor0
----
0
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT - col2 + + col0 DIV col1 FROM tab2 AS cor0
----
-25
-27
-34

skipif mysql # not compatible
query I rowsort label-3806
SELECT - col2 + + col0 / col1 FROM tab2 AS cor0
----
-25
-27
-34

query I rowsort
SELECT ALL + 50 + 76 - col2 FROM tab0
----
125
44
93

query I rowsort
SELECT 84 + col2 * cor0.col2 FROM tab2 AS cor0
----
1528
760
813

query I rowsort
SELECT DISTINCT col0 * + col2 + + ( col1 ) FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL - - cor0.col1 * col0 + - cor0.col1 * 23 AS col1 FROM tab1 AS cor0
----
-520
410
741

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 + - col1 col1 FROM tab2 AS cor0
----
18
46
60

query I rowsort
SELECT + 72 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4024
-6328
63

query I rowsort
SELECT + 48 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT ALL - 72 * col2 + cor0.col0 FROM tab1 AS cor0
----
-3885
-4040
-6832

onlyif mysql # use DIV operator for integer division
query I rowsort label-3815
SELECT DISTINCT - + col0 DIV col1 col1 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - + col0 / col1 col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT DISTINCT + 3 FROM tab0, tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort
SELECT ALL 65 + tab1.col2 + CAST ( - 71 AS REAL ) * - col0 FROM tab1
----
332
4666
5841

query I rowsort
SELECT cor0.col0 * 29 FROM tab0 AS cor0
----
1015
2581
696

query I rowsort
SELECT DISTINCT - 57 FROM tab2, tab1 cor0, tab1 cor1, tab1, tab1 AS cor2
----
-57

query I rowsort
SELECT DISTINCT - col2 * - ( 83 * col0 ) FROM tab2 cor0
----
15687
168324
249166

query I rowsort
SELECT col2 * + col2 + - ( cor0.col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
6760
7685
778

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3822
SELECT ALL col1 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL col1 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3823
SELECT tab1.col0 + + tab1.col2 * - CAST( NULL AS SIGNED ) * col0 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3823
SELECT tab1.col0 + + tab1.col2 * - CAST ( NULL AS INTEGER ) * col0 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * ( - col1 * + col1 ) + col1 FROM tab1 AS cor0
----
-16211
-36478
-5690

onlyif mysql # use DIV operator for integer division
query I rowsort label-3825
SELECT - + col2 DIV col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3825
SELECT - + col2 / col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT - ( col2 * - 51 ) + 81 AS col1 FROM tab0
----
132
1764
4263

query I rowsort
SELECT ALL col0 * col1 + - 11 + col1 FROM tab2
----
1349
237
4650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3828
SELECT + - col2 * col0 + + ( cor0.col2 + CAST( NULL AS SIGNED ) ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3828
SELECT + - col2 * col0 + + ( cor0.col2 + CAST ( NULL AS INTEGER ) ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 * 40 FROM tab0 AS cor0
----
-1400
-3560
-960

query I rowsort
SELECT ALL - col1 * ( col0 ) + + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + + col1 * 70 + 66 * col1 + - 95 AS col2 FROM tab2 AS cor0
----
2217
4121
7929

query I rowsort
SELECT DISTINCT - - col0 * + 81 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT + - 29 * - col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT - 1 + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0b08c13815e3a019ec3852834e7eec44

query I rowsort
SELECT - 23 * cor1.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 761087a544937f4b9ce09a94ad1d16e1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3836
SELECT - - col0 - col2 DIV col0 AS col2 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-3836
SELECT - - col0 - col2 / col0 AS col2 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT ALL col2 * col0 - ( 30 ) * cor0.col2 FROM tab0 AS cor0
----
-198
4838
5

query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 AS col1 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT - 83 * cor0.col2 - col2 AS col2 FROM tab2 AS cor0
----
-2184
-2268
-3192

query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 + ( - col0 ) * col0 FROM tab0 AS cor0
----
-16020
-2640
-4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - col2 - + cor0.col1 col1 FROM tab0 AS cor0
----
-195
-205
-264

onlyif mysql # use DIV operator for integer division
query I rowsort label-3842
SELECT + 2 DIV + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3842
SELECT + 2 / + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - col1 + col0 * col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT DISTINCT ( + col2 ) * cor0.col0 - col2 DIV - col2 AS col0 FROM tab0 cor0
----
36
7299
793

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT ( + col2 ) * cor0.col0 - col2 / - col2 AS col0 FROM tab0 cor0
----
36
7299
793

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0
----
15
15
15

query I rowsort
SELECT + 42 FROM tab1, tab2 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT DISTINCT 53 * cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
2862
3021
5088

query I rowsort
SELECT + - ( + col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 85 FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb

query I rowsort
SELECT + ( - col2 ) + - 21 * cor0.col2 FROM tab2 AS cor0
----
-572
-594
-836

onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT DISTINCT col0 DIV - col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT col0 / - col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * - tab0.col1 col1 FROM tab0
----
-3440
-3640
-3880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT col0 + + 47 AS col1 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT - + col1 * col2 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ( cor0.col1 ) FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT + + col1 * - 84 + col0 AS col2 FROM tab0 AS cor0
----
-7200
-7555
-8113

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3858
SELECT + + col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-3858
SELECT + + col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT col0 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + - 87 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT tab2.col0 + - tab2.col1 DIV - CAST( 15 * col0 AS SIGNED ) AS col1 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3861
SELECT tab2.col0 + - tab2.col1 / - CAST ( 15 * col0 AS INTEGER ) AS col1 FROM tab2
----
7
78
79

query I rowsort
SELECT - col1 * col1 - 39 FROM tab2
----
-1000
-328
-3520

query I rowsort
SELECT - col1 * 93 - 64 FROM tab1
----
-1273
-2482
-994

query I rowsort
SELECT DISTINCT tab0.col0 * col2 + col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT + col1 + CAST( NULL AS SIGNED ) * - 30 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3866
SELECT + col1 + CAST ( NULL AS INTEGER ) * - 30 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT col2 * - ( + ( col2 ) ) * + col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col2 * + 10 FROM tab1 AS cor0
----
-540
-570
-960

query I rowsort
SELECT DISTINCT 8 * + col0 AS col2 FROM tab1 AS cor0
----
24
512
640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3871
SELECT ALL - CAST( - 24 AS SIGNED ) FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL - CAST ( - 24 AS INTEGER ) FROM tab1 AS cor0
----
24
24
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3872
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 / + col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 / + col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - ( cor0.col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT - col2 + 5 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3874
SELECT - col2 + 5 / - col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + + 46 + + col0 FROM tab1 AS cor0
----
110
126
49

query I rowsort
SELECT ALL ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT ( + col1 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT ALL 44 + col2 * + col1 FROM tab1 AS cor0
----
1292
1448
614

query I rowsort
SELECT DISTINCT + - 58 AS col0 FROM tab2 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort
SELECT col2 + - CAST ( + col0 AS REAL ) * col1 AS col0 FROM tab1
----
-24
-583
-944

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3882
SELECT DISTINCT - tab0.col2 * CAST( col0 AS SIGNED ) + col1 AS col1 FROM tab0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT - tab0.col2 * CAST ( col0 AS INTEGER ) + col1 AS col1 FROM tab0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT - ( + col2 ) DIV col0 AS col0 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-3883
SELECT - ( + col2 ) / col0 AS col0 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL + 75 + cor0.col2 AS col1 FROM tab1 AS cor0
----
129
132
171

query I rowsort
SELECT + 25 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT - + col1 * col1 + - 27 * col0 AS col0 FROM tab0 AS cor0
----
-10354
-10684
-8044

onlyif mysql # use DIV operator for integer division
query I rowsort label-3887
SELECT ALL col2 * col1 + + col1 DIV - col0 - + col1 AS col2 FROM tab0 cor0
----
-2
2749
7370

skipif mysql # not compatible
query I rowsort label-3887
SELECT ALL col2 * col1 + + col1 / - col0 - + col1 AS col2 FROM tab0 cor0
----
-2
2749
7370

query I rowsort
SELECT DISTINCT cor1.col2 + 46 - 14 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
128
86
89

query I rowsort
SELECT ALL + + col0 * - col1 + - cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
-106
-1123
-687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL - col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-3892
SELECT + col2 DIV 19 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3892
SELECT + col2 / 19 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT 20 * - col2 AS col0 FROM tab2
----
-520
-540
-760

onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT 31 DIV + col0 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3894
SELECT 31 / + col0 FROM tab2 AS cor0
----
0
0
4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT + CAST( NULL AS SIGNED ) * + col2 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3895
SELECT + CAST ( NULL AS INTEGER ) * + col2 * - col2 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - tab2.col0 AS col0 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT - col2 DIV col1 + col1 DIV - 83 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3897
SELECT - col2 / col1 + col1 / - 83 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT col1 + + col0 * col1 * + col0 FROM tab1
----
260
40970
83213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * - col0 col0 FROM tab1
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 * - tab0.col2 AS col2 FROM tab0
----
-513
1197
1224

query I rowsort
SELECT - 72 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888

query I rowsort
SELECT + 1 * + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT DISTINCT - col2 - - col1 * - cor0.col0 * col1 FROM tab0 AS cor0
----
-177537
-329316
-737091

onlyif mysql # use DIV operator for integer division
query I rowsort label-3904
SELECT + col2 DIV cor0.col1 + - col2 * 64 * col0 AS col1 FROM tab2 AS cor0
----
-12096
-129792
-192126

skipif mysql # not compatible
query I rowsort label-3904
SELECT + col2 / cor0.col1 + - col2 * 64 * col0 AS col1 FROM tab2 AS cor0
----
-12096
-129792
-192126

query I rowsort
SELECT DISTINCT - 99 + col0 FROM tab0 AS cor0
----
-10
-64
-75

query I rowsort
SELECT + + 50 + col2 FROM tab1 AS cor0
----
104
107
146

query I rowsort
SELECT ALL + col1 * + col2 - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + 51 + - col2 FROM tab0
----
-31
18
50

query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * 92 AS col0 FROM tab0 AS cor0
----
-7912
-8372
-8924

query I rowsort
SELECT ALL cor0.col2 * - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT - col1 + cor0.col2 * col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT ALL - + ( col1 ) + - col1 FROM tab2 AS cor0
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT col0 + - col2 * - CAST( 55 * col0 AS SIGNED ) FROM tab1 AS cor0
----
200704
422480
8913

skipif mysql # not compatible
query I rowsort label-3914
SELECT col0 + - col2 * - CAST ( 55 * col0 AS INTEGER ) FROM tab1 AS cor0
----
200704
422480
8913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * cor0.col0 - - col1 col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT + - cor0.col1 * cor0.col2 + 86 * 79 FROM tab2 AS cor0
----
5260
5957
6148

onlyif mysql # use DIV operator for integer division
query I rowsort label-3917
SELECT cor0.col2 DIV + col2 + col2 AS col0 FROM tab1 cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-3917
SELECT cor0.col2 / + col2 + col2 AS col0 FROM tab1 cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT ALL 95 DIV + col0 + col2 FROM tab2 AS cor0
----
27
39
40

skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL 95 / + col0 + col2 FROM tab2 AS cor0
----
27
39
40

query I rowsort
SELECT ALL - 1 * col0 + + 78 FROM tab1 AS cor0
----
-2
14
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04

query I rowsort
SELECT ALL - cor0.col0 + - 51 * + col0 AS col2 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT DISTINCT - - col2 + ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3923
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT col2 + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-3924
SELECT col2 + + col1 / col0 AS col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT DISTINCT + + col2 * + ( col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - col2 * col2 + 43 AS col0 FROM tab2 cor0
----
-1401
-633
-686

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3927
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 26 - col2 FROM tab2 AS cor0
----
-1
-12
0

query I rowsort
SELECT ( col0 ) + + cor0.col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 32 + - col0 - col0 FROM tab0 cor0
----
-146
-16
-38

query I rowsort
SELECT DISTINCT - cor0.col0 * 97 + col2 * ( 40 * + col2 ) - ( - col2 ) * col2 AS col2 FROM tab2 AS cor0
----
20150
29210
51541

query I rowsort
SELECT ALL - + ( - 2 ) * cor0.col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL col1 * + ( - col0 ) - - col2 FROM tab1
----
-24
-583
-944

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( 63 AS REAL ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT - col2 + ( col0 ) * + cor0.col0 * - col0 + + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-14946
-42877
-711775

query I rowsort
SELECT DISTINCT + - 38 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-1254
-3116
-38

query I rowsort
SELECT 91 * + cor0.col2 + + col1 * ( col0 ) AS col2 FROM tab1 AS cor0
----
4992
5827
9776

query I rowsort
SELECT ALL - - col2 + cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
131
189
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 94 + + col1 col1 FROM tab0 AS cor0
----
180
185
191

query I rowsort
SELECT DISTINCT col1 * 82 AS col1 FROM tab1 AS cor0
----
1066
2132
820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3941
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + tab2.col1 * + col2 FROM tab2
----
-22599
-24548
-39884

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + tab2.col1 * + col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL 35 + + col0 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT - - col2 * + col2 - col0 FROM tab0 AS cor0
----
-34
1065
6635

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3944
SELECT - CAST( + ( cor0.col0 ) AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3944
SELECT - CAST ( + ( cor0.col0 ) AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL ( - col1 ) + col2 * 97 FROM tab0
----
0
3115
7863

query I rowsort
SELECT + 14 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1092
-14560
-8960

query I rowsort
SELECT 73 * col0 AS col1 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT + col0 + - ( + ( col1 ) ) FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT ALL - 27 * - tab1.col1 AS col1 FROM tab1
----
270
351
702

query I rowsort
SELECT col0 + - ( + col2 ) * col0 AS col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT col2 + - ( col1 ) AS col2 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT - + col1 * 32 AS col0 FROM tab0 AS cor0
----
-2752
-2912
-3104

query I rowsort
SELECT ALL - col1 * + col0 * cor0.col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3955
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT - tab0.col2 DIV 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3956
SELECT - tab0.col2 / 98 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2, tab0, tab0 AS cor0, tab2 cor1
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-3958
SELECT ALL - tab2.col2 DIV 41 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - tab2.col2 / 41 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - + col1 + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
100
3
45

query I rowsort
SELECT - - cor0.col2 AS col1 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 67 * + col0 FROM tab0
----
1608
2345
5963

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * - col1 col2 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT + - col2 + col0 * 41 FROM tab1 cor0
----
2567
3184
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT ALL - col0 + - col0 DIV col2 FROM tab1 AS cor0
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-3965
SELECT ALL - col0 + - col0 / col2 FROM tab1 AS cor0
----
-3
-65
-80

query I rowsort
SELECT DISTINCT - col2 * 41 AS col0 FROM tab0 AS cor0
----
-1353
-3362
-41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3967
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) / - col2 col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3967
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) / - col2 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT col1 * + col2 + + col0 DIV - col1 FROM tab2
----
1533
642
837

skipif mysql # not compatible
query I rowsort label-3968
SELECT col1 * + col2 + + col0 / - col1 FROM tab2
----
1533
642
837

query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0 WHERE - col0 / col1 + + col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + + col2 + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - col1 * cor0.col0 - + col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT + col0 - col0 * - ( + 98 ) FROM tab2 AS cor0
----
693
7722
7821

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 / col1 ) = col0 + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) <= + col1 / col1
----

query I rowsort
SELECT tab0.col2 * - col0 - - col1 AS col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT tab0.col1 * + tab0.col0 * + col1 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT ALL 76 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT - tab0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT col2 + + tab1.col0 DIV - CAST( 77 AS SIGNED ) AS col2 FROM tab1
----
54
57
95

skipif mysql # not compatible
query I rowsort label-3980
SELECT col2 + + tab1.col0 / - CAST ( 77 AS INTEGER ) AS col2 FROM tab1
----
54
57
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT - ( + col0 ) DIV + col2 + + col2 - col1 AS col1 FROM tab1
----
28
46
83

skipif mysql # not compatible
query I rowsort label-3981
SELECT - ( + col0 ) / + col2 + + col2 - col1 AS col1 FROM tab1
----
28
46
83

query I rowsort
SELECT ALL 98 + - tab2.col0 * - 44 FROM tab2
----
3530
3574
406

query I rowsort
SELECT - col2 * - col0 * - 60 - col1 AS col0 FROM tab1
----
-218890
-460813
-9746

query I rowsort
SELECT + col0 + col0 * + col2 AS col2 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ( 86 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 94 + col0 * col0 FROM tab0 AS cor0
----
1319
670
8015

query I rowsort
SELECT + 86 + + col1 * + col1 + - tab1.col0 FROM tab1
----
122
175
759

query I rowsort
SELECT DISTINCT col0 + + 9 * col2 FROM tab1 cor0
----
489
577
944

onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT ALL + col0 DIV tab0.col2 + col2 FROM tab0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-3990
SELECT ALL + col0 / tab0.col2 + col2 FROM tab0
----
33
36
83

query I rowsort
SELECT DISTINCT col2 + + 57 AS col2 FROM tab2 cor0
----
83
84
95

query I rowsort
SELECT ALL col0 * - 29 * - col2 - + col2 * 39 FROM tab1 AS cor0
----
103569
218976
2592

query I rowsort
SELECT ALL col0 * 43 * col2 AS col0 FROM tab1 AS cor0
----
156864
330240
6966

onlyif mysql # use DIV operator for integer division
query I rowsort label-3994
SELECT DISTINCT + cor0.col1 * col2 - col0 DIV col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT + cor0.col1 * col2 - col0 / col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - ( 98 ) + col2 AS col1 FROM tab2
----
-60
-71
-72

query I rowsort
SELECT col2 * + 1 + + col1 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT - tab1.col1 + - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0f6ec6b87929e67cae93b9c64afb5c9c

query I rowsort
SELECT DISTINCT 41 + - tab0.col2 AS col2 FROM tab0, tab2 AS cor0
----
-41
40
8

query I rowsort
SELECT ALL - 22 * tab2.col2 FROM tab2
----
-572
-594
-836

query I rowsort
SELECT + ( + 89 ) + col1 FROM tab0 AS cor0
----
175
180
186

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col2 + col0 AS col0 FROM tab2 cor0
----
1612
725
844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4002
SELECT + - cor0.col0 * + col2 - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4002
SELECT + - cor0.col0 * + col2 - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col1 + col0 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL - + 60 + cor0.col1 * cor0.col2 + 2 FROM tab2 cor0
----
1476
588
779

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab0 cor0
----
-110
-132
-180

query I rowsort
SELECT DISTINCT 41 * - col1 + - col0 FROM tab1 AS cor0
----
-1069
-474
-613

query I rowsort
SELECT DISTINCT 40 - - col0 FROM tab0 AS cor0
----
129
64
75

query I rowsort
SELECT ALL + 19 * cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to bb00ad656ecb1f86e668d1fef0b986f3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 26 col0 FROM tab1 AS cor0
----
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4010
SELECT ALL + col2 + + col1 * CAST( + col0 AS SIGNED ) * + col2 FROM tab2 cor0
----
119678
51072
5886

skipif mysql # not compatible
query I rowsort label-4010
SELECT ALL + col2 + + col1 * CAST ( + col0 AS INTEGER ) * + col2 FROM tab2 cor0
----
119678
51072
5886

query I rowsort
SELECT - 96 + col1 FROM tab2 AS cor0
----
-37
-65
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col0 * 83 col1 FROM tab1 AS cor0
----
-223
-5302
-6627

query I rowsort
SELECT DISTINCT - cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col1 + - col0 - - cor0.col0 * col1 FROM tab2 AS cor0
----
1247
179
4465

onlyif mysql # use DIV operator for integer division
query I rowsort label-4015
SELECT - - col1 + - col1 DIV col1 - - col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-4015
SELECT - - col1 + - col1 / col1 - - col2 FROM tab1 AS cor0
----
108
66
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT + col1 + col1 - - col2 DIV col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-4016
SELECT + col1 + col1 - - col2 / col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT ( + col0 ) + col1 * - col2 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - col2 + + tab0.col1 * col1 + col2 * col0 AS col2 FROM tab0
----
15497
8155
9443

onlyif mysql # use DIV operator for integer division
query I rowsort label-4019
SELECT DISTINCT - col2 * + col0 DIV col0 + col1 FROM tab1
----
-28
-47
-83

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT - col2 * + col0 / col0 + col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col2 + col2 + tab1.col1 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT tab2.col2 * - col1 + col0 FROM tab2
----
-1456
-567
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + + col2 col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT cor0.col1 * + cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col2 * col1 + - tab2.col2 FROM tab2
----
-1560
-684
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4025
SELECT DISTINCT - col1 + - col0 + col1 * col0 DIV col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - col1 + - col0 + col1 * col0 / col0 FROM tab0
----
-24
-35
-89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4026
SELECT CAST( col0 AS SIGNED ) * + tab1.col1 * + col2 - col0 * col1 * + col0 col0 FROM tab1
----
-4480
16640
3978

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4026
SELECT CAST ( col0 AS INTEGER ) * + tab1.col1 * + col2 - col0 * col1 * + col0 col0 FROM tab1
----
-4480
16640
3978

query I rowsort
SELECT ALL - + col0 + + cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT + 58 + col1 + - col2 AS col1 FROM tab2 cor0
----
37
62
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT DISTINCT - CAST( - col0 AS SIGNED ) FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-4029
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) FROM tab2
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT + CAST( NULL AS SIGNED ) + + 19 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4030
SELECT + CAST ( NULL AS INTEGER ) + + 19 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) * + tab1.col0 + - col0 AS col2 FROM tab1
----
-12
-4160
-6480

query I rowsort
SELECT ALL - 39 FROM tab1, tab0 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab1
----
93
93
93

query I rowsort
SELECT ALL - - col0 + - cor0.col2 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT - + col1 * + col2 + + col1 * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * - cor0.col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT ALL + 81 AS col2 FROM tab2 AS cor0
----
81
81
81

query I rowsort
SELECT + col0 * + col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT + 61 * - col1 FROM tab0 AS cor0
----
-5246
-5551
-5917

onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL + cor0.col0 * col1 + + col2 * col2 + col1 DIV col1 AS col2 FROM tab1 AS cor0
----
10257
2995
3890

skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + cor0.col0 * col1 + + col2 * col2 + col1 / col1 AS col2 FROM tab1 AS cor0
----
10257
2995
3890

query I rowsort
SELECT ALL + - 12 + col2 * col1 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
-244104
-679143
-9456

query I rowsort
SELECT DISTINCT + ( + col2 ) - + col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 + + col0 * col1 AS col2 FROM tab1
----
576
75
960

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4045
SELECT DISTINCT + col1 DIV col0 + col1 FROM tab0
----
89
92
99

skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + col1 / col0 + col1 FROM tab0
----
89
92
99

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL BETWEEN - col1 * col2 AND NULL
----

query I rowsort
SELECT ALL col0 * tab1.col0 + - col1 FROM tab1
----
-17
4086
6387

query I rowsort
SELECT col0 + + col2 * col0 AS col2 FROM tab0
----
70
7387
816

query I rowsort
SELECT col0 * + col2 + - col2 * col0 + + col0 * - col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 FROM tab1
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col1 * - tab0.col0 AS col1 FROM tab0
----
-2064
-3395
-8099

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL IN ( col1 + col2 )
----

query I rowsort
SELECT - tab1.col1 + col0 * - col1 AS col0 FROM tab1
----
-104
-1053
-650

onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT + - col0 * col2 DIV col1 FROM tab0 AS cor0
----
-80
-9
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT + - col0 * col2 / col1 FROM tab0 AS cor0
----
-80
-9
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT DISTINCT col2 DIV col0 AS col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT col2 / col0 AS col2 FROM tab2 AS cor0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 * cor0.col0 + col0 col2 FROM tab0 AS cor0
----
-1155
-528
-7743

query I rowsort
SELECT - col0 + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4062
SELECT - CAST( NULL AS SIGNED ) * - 41 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4062
SELECT - CAST ( NULL AS INTEGER ) * - 41 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) - cor0.col2 * col2 AS col2 FROM tab0 AS cor0
----
1749
738
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 + - 78 + - cor0.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7e98491d5e968d15cebbbdad84622ab0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4065
SELECT col1 / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT col1 / CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + cor0.col0 + col1 * cor0.col2 - + col1 FROM tab2 AS cor0
----
1553
708
813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4067
SELECT - + CAST( + 26 AS SIGNED ) + + col1 + col0 FROM tab1 cor0
----
3
48
67

skipif mysql # not compatible
query I rowsort label-4067
SELECT - + CAST ( + 26 AS INTEGER ) + + col1 + col0 FROM tab1 cor0
----
3
48
67

query I rowsort
SELECT DISTINCT col2 * + 13 FROM tab2 cor0
----
338
351
494

query I rowsort
SELECT DISTINCT + 24 * - 62 AS col1 FROM tab1 AS cor0
----
-1488

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( - col0 AS REAL ) AS col0 FROM tab0
----
-178
-48
-70

query I rowsort
SELECT - 97 + - 68 FROM tab1, tab0 AS cor0
----
9 values hashing to baa67214220030200ab184c287372933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + 79 col0 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT DISTINCT - 72 + col2 * col2 + col1 * + col0 FROM tab0 AS cor0
----
14751
3081
3324

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT col1 DIV 83 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4074
SELECT col1 / 83 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL + 89 * - col0 FROM tab0 AS cor0
----
-2136
-3115
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 59 ) * - col1 + col1 col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT + col1 + + 66 FROM tab1 AS cor0
----
76
79
92

query I rowsort
SELECT 69 * + 98 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a0ef7092c012e3576cf5a8bfd6c06122

query I rowsort
SELECT + tab0.col2 + + col0 * + col1 - + tab0.col0 FROM tab0
----
2073
3361
8092

query I rowsort
SELECT ALL col0 - + 20 FROM tab1
----
-17
44
60

query I rowsort
SELECT ALL + col1 + col0 * col2 - col2 AS col0 FROM tab1
----
134
3601
7597

query I rowsort
SELECT + cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL + 87 * - col2 AS col2 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT - ( cor0.col0 ) * + cor0.col2 + 99 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4d446e11355d14200cfa90ef757d91de

query I rowsort
SELECT + 55 * col1 + col0 * + ( - 44 ) + col1 FROM tab0
----
1180
3760
3892

query I rowsort
SELECT ( col0 ) * - col1 * - col1 + + tab0.col0 FROM tab0
----
177528
329350
737098

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4087
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT - 59 * cor0.col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 597842132be07aad9b860842845284d2

query I rowsort
SELECT + + 50 FROM tab2 cor0
----
50
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4090
SELECT 95 DIV + col2 + 42 * col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
39
59
96

skipif mysql # not compatible
query I rowsort label-4090
SELECT 95 / + col2 + 42 * col2 / + col0 AS col0 FROM tab0 AS cor0
----
39
59
96

query I rowsort
SELECT tab2.col0 + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8

query I rowsort
SELECT 2 + - col1 AS col1 FROM tab2
----
-15
-29
-57

query I rowsort
SELECT - col0 + - 30 * ( col0 ) FROM tab1 AS cor0
----
-1984
-2480
-93

query I rowsort
SELECT + - col1 * cor0.col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT col1 + 49 AS col2 FROM tab0 AS cor0
----
135
140
146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4096
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4096
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * col1 * + cor0.col1 + col0 FROM tab0 AS cor0
----
636080
753660
912708

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4098
SELECT ALL col0 + + cor0.col1 * col0 * - col2 + CAST( 10 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-36406
-4199
-99750

skipif mysql # not compatible
query I rowsort label-4098
SELECT ALL col0 + + cor0.col1 * col0 * - col2 + CAST ( 10 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-36406
-4199
-99750

query I rowsort
SELECT + col0 + 36 AS col2 FROM tab0 AS cor0
----
125
60
71

query I rowsort
SELECT DISTINCT col1 + + ( 12 + col0 * - col1 ) AS col0 FROM tab2 AS cor0
----
-1314
-174
-4531

onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT ALL - + col2 DIV - col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - + col2 / - col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 * ( + ( cor0.col2 ) ) FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT col0 - - ( 53 ) FROM tab1 cor0
----
117
133
56

query I rowsort
SELECT col0 * col2 * col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - + cor0.col1 * + ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col2 - - 93 FROM tab2 AS cor0
----
119
120
131

query I rowsort
SELECT DISTINCT + col0 - - col1 * - 26 AS col2 FROM tab0 AS cor0
----
-2212
-2277
-2487

query I rowsort
SELECT - - cor0.col2 * - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - + cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT 95 * - col1 + - 77 FROM tab2
----
-1692
-3022
-5682

query I rowsort
SELECT + col1 * + col0 + ( + col2 ) + col2 * - ( + col1 ) AS col0 FROM tab1
----
-112
-1272
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * cor0.col2 * col1 + 68 * + col1 col0 FROM tab2 AS cor0
----
35394
46469
85314

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4113
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + cor0.col1 * cor0.col1 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + cor0.col1 * cor0.col1 AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * 56 col0 FROM tab1 AS cor0
----
-3024
-3192
-5376

query I rowsort
SELECT ALL - + col2 + + 39 AS col1 FROM tab0 AS cor0
----
-43
38
6

query I rowsort
SELECT ( - col0 ) + col2 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT DISTINCT cor0.col0 * col2 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT + - 55 FROM tab1 cor0
----
-55

query I rowsort
SELECT ALL ( + col1 ) + col1 * col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - ( - cor0.col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + + 84 AS col0 FROM tab2 AS cor0
----
110
111
122

query I rowsort
SELECT DISTINCT col0 + - ( - 2 ) AS col2 FROM tab2
----
80
81
9

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 93 + cor0.col1 * - tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 991f9492017330803d253570396b7cca

query I rowsort
SELECT col1 * 56 AS col1 FROM tab1 cor0
----
1456
560
728

query I rowsort
SELECT DISTINCT + - col0 + 95 FROM tab2 cor0
----
16
17
88

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col0 AS REAL ) + + col2 * + 13 AS col1 FROM tab1 AS cor0
----
1328
705
805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT 57 * - col2 AS col2 FROM tab0 AS cor0
----
-1881
-4674
-57

query I rowsort
SELECT ALL ( - 34 ) FROM tab0
----
-34
-34
-34

query I rowsort
SELECT + ( 20 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4132
SELECT - col2 DIV + cor0.col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4132
SELECT - col2 / + cor0.col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT - + col1 + + col1 DIV col1 AS col0 FROM tab1 cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4133
SELECT - + col1 + + col1 / col1 AS col0 FROM tab1 cor0
----
-12
-25
-9

query I rowsort
SELECT 69 * + col1 FROM tab0 AS cor0
----
5934
6279
6693

onlyif mysql # use DIV operator for integer division
query I rowsort label-4135
SELECT DISTINCT tab0.col0 + col0 DIV + col2 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT tab0.col0 + col0 / + col2 FROM tab0
----
24
70
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-4136
SELECT DISTINCT + cor0.col2 DIV 81 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT + cor0.col2 / 81 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - cor0.col1 + 8 + col2 FROM tab2 AS cor0
----
-25
29
4

query I rowsort
SELECT ALL + col0 + - 40 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-1365
-3471
-936

query I rowsort
SELECT ALL - col0 * 38 AS col0 FROM tab0 AS cor0
----
-1330
-3382
-912

query I rowsort
SELECT + col1 * + col2 - col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # use DIV operator for integer division
query I rowsort label-4141
SELECT ALL col0 DIV + col0 + + 55 + col0 AS col2 FROM tab0 AS cor0
----
145
80
91

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL col0 / + col0 + + 55 + col0 AS col2 FROM tab0 AS cor0
----
145
80
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4142
SELECT - + col2 + + CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4142
SELECT - + col2 + + CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 - - 84 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7257
7726
8149

query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT tab2.col0 * + col1 * col0 AS col2 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT col1 + + 58 * 3 * + col2 + ( col2 * col1 ) FROM tab0 AS cor0
----
21821
368
8666

query I rowsort
SELECT 23 * col2 AS col0 FROM tab2 AS cor0
----
598
621
874

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * - col2 + - col2 col2 FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT + + 28 FROM tab0 cor0
----
28
28
28

query I rowsort
SELECT + - ( - col0 ) * + cor0.col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - - ( + 74 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
1924
740
962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 17 col2 FROM tab0 AS cor0
----
17
17
17

query I rowsort
SELECT ALL tab2.col1 + + tab2.col1 * - col0 * - col2 FROM tab2
----
119711
51051
5890

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4154
SELECT - col2 * - CAST( NULL AS SIGNED ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4154
SELECT - col2 * - CAST ( NULL AS INTEGER ) - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + 84 * col1 AS col0 FROM tab1 AS cor0
----
1188
2238
897

query I rowsort
SELECT ( + tab0.col2 ) * - 94 FROM tab0
----
-3102
-7708
-94

query I rowsort
SELECT DISTINCT + + col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT 20 * col0 + tab1.col1 * 63 AS col0 FROM tab1
----
1698
1910
2419

query I rowsort
SELECT ALL + tab1.col0 + col0 + col1 * col2 * tab1.col2 FROM tab1
----
119968
32618
75822

query I rowsort
SELECT 45 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT col0 * + col0 + + col0 * - col2 - - 66 * tab2.col2 AS col1 FROM tab2
----
1642
5747
5772

query I rowsort
SELECT ALL + + col0 * 79 + col2 FROM tab2 AS cor0
----
580
6188
6279

query I rowsort
SELECT DISTINCT + cor0.col1 - + 88 FROM tab2 AS cor0
----
-29
-57
-71

query I rowsort
SELECT - - col0 * - col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4165
SELECT - - col2 * + CAST( NULL AS SIGNED ) - + cor0.col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4165
SELECT - - col2 * + CAST ( NULL AS INTEGER ) - + cor0.col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 + 84 AS col1 FROM tab1 AS cor0
----
110
94
97

query I rowsort
SELECT DISTINCT col1 + ( cor0.col2 ) FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT + col2 + + col1 DIV + col0 AS col0 FROM tab0 cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-4168
SELECT + col2 + + col1 / + col0 AS col0 FROM tab0 cor0
----
3
36
83

query I rowsort
SELECT DISTINCT + col0 * ( 15 ) AS col2 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT cor0.col1 + + col0 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT - 8 * - ( + col0 ) * - tab2.col2 + 37 FROM tab2
----
-1475
-16187
-23979

query I rowsort
SELECT - col0 * + ( - col1 ) * + ( col1 ) + - col2 * + 65 FROM tab0 AS cor0
----
175359
329250
731679

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4174
SELECT - - CAST( col2 AS SIGNED ) + + cor0.col0 FROM tab1 cor0
----
121
176
57

skipif mysql # not compatible
query I rowsort label-4174
SELECT - - CAST ( col2 AS INTEGER ) + + cor0.col0 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL col2 * 24 AS col0 FROM tab0
----
1968
24
792

query I rowsort
SELECT ALL - + col0 * - col2 - + col1 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL - col2 * col2 + - 76 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-16512
-7020
-7581

query I rowsort
SELECT ALL - col2 + col0 + col1 AS col0 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT DISTINCT - 73 * - col1 - col2 * + 68 AS col2 FROM tab1 AS cor0
----
-1774
-3146
-5579

query I rowsort
SELECT col1 + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT 74 * col2 * col2 FROM tab1 AS cor0
----
215784
240426
681984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col0 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT + - cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col2 + + col2 + col1 * - ( + col1 ) AS col1 FROM tab0 cor0
----
-7330
-8117
-9407

query I rowsort
SELECT + + ( - col2 ) * ( + col1 ) + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT + 22 * + col2 + col1 AS col0 FROM tab0 AS cor0
----
119
1895
812

onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT ALL col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col1 + col1 * + 46 AS col1 FROM tab2 AS cor0
----
1395
2655
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - + col0 - - cor0.col2 FROM tab1 cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - - 51 * 84 + cor0.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a18bc906f3226bb9fac1c0d869c989b8

query I rowsort
SELECT ALL - 51 * - 71 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6547ee847cbef6475fb667bf9411e5ca

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT ALL + ( col0 ) + + col1 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-576
-75
-960

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + ( col0 ) + + col1 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT - col1 DIV - 89 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4196
SELECT - col1 / - 89 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 + cor0.col2 * - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
11020
25974
90532

query I rowsort
SELECT + 73 * + col2 + - col2 FROM tab0 AS cor0
----
2376
5904
72

query I rowsort
SELECT ALL - 89 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1445
557
748

query I rowsort
SELECT DISTINCT + 11 * col1 * col1 AS col2 FROM tab1 cor0
----
1100
1859
7436

query I rowsort
SELECT + ( col1 ) * - col2 + - 1 AS col2 FROM tab2 cor0
----
-1535
-647
-838

query I rowsort
SELECT + col1 * col1 + - col0 * + col0 FROM tab2
----
-2603
-5952
912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + col2 col0 FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col2 ) col2 FROM tab2
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT + 89 DIV + col0 - + col2 AS col0 FROM tab1
----
-25
-56
-95

skipif mysql # not compatible
query I rowsort label-4205
SELECT + 89 / + col0 - + col2 AS col0 FROM tab1
----
-25
-56
-95

query I rowsort
SELECT col0 * 65 FROM tab1
----
195
4160
5200

query I rowsort
SELECT 7 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb

query I rowsort
SELECT ALL + ( 38 + tab1.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5111694fae19213d38c768d8b6f956d9

query I rowsort
SELECT DISTINCT - col1 * - 16 AS col0 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT - col0 * ( + 52 ) + col0 AS col1 FROM tab1 AS cor0
----
-153
-3264
-4080

query I rowsort
SELECT + col2 * - 98 FROM tab1
----
-5292
-5586
-9408

query I rowsort
SELECT ALL 11 - 81 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT DISTINCT - 73 + col2 * + col0 * - ( ( col1 ) ) AS col0 FROM tab0 AS cor0
----
-3468
-664191
-68185

query I rowsort
SELECT DISTINCT - cor0.col2 * - 58 * - cor0.col0 + + 67 + + ( col1 + + 34 ) * col0 FROM tab2 AS cor0
----
-10440
-110303
-170020

query I rowsort
SELECT ALL - + col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT + 85 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - col1 * - col0 * 52 FROM tab0
----
107328
176540
421148

onlyif mysql # use DIV operator for integer division
query I rowsort label-4219
SELECT col1 DIV - col0 + 58 + 10 DIV + col0 AS col2 FROM tab1
----
53
58
58

skipif mysql # not compatible
query I rowsort label-4219
SELECT col1 / - col0 + 58 + 10 / + col0 AS col2 FROM tab1
----
53
58
58

query I rowsort
SELECT ALL ( - tab0.col1 ) * col0 FROM tab0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4221
SELECT DISTINCT - col2 DIV - col0 FROM tab0 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT - col2 / - col0 FROM tab0 cor0
----
0
1

query I rowsort
SELECT ALL + col0 + + col1 * - 71 FROM tab1 AS cor0
----
-1843
-646
-843

onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT DISTINCT + 28 DIV + col2 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT + 28 / + col2 AS col0 FROM tab1 cor0
----
0

query I rowsort
SELECT + + col0 * + col1 + + cor0.col1 - 0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + 57 AS col1 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT + 55 + col2 + - 91 * col0 AS col2 FROM tab0 AS cor0
----
-2096
-3129
-7962

query I rowsort
SELECT + - col0 + 9 AS col2 FROM tab1 AS cor0
----
-55
-71
6

query I rowsort
SELECT DISTINCT + - col2 + 19 FROM tab1 cor0
----
-35
-38
-77

query I rowsort
SELECT ALL col1 - - cor0.col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - - cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT - col0 + ( + col2 ) FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 75 + col2 + col2 AS col0 FROM tab1
----
183
189
267

query I rowsort
SELECT DISTINCT ( col1 ) + + ( 62 + col2 ) AS col1 FROM tab2
----
117
120
147

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT + - col2 + CAST( - ( cor0.col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-164
-2
-66

skipif mysql # not compatible
query I rowsort label-4234
SELECT + - col2 + CAST ( - ( cor0.col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-164
-2
-66

query I rowsort
SELECT - cor0.col1 * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT col0 * col1 + col0 * ( - col0 ) AS col0 FROM tab1
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - 32 + + tab2.col2 AS col1 FROM tab2
----
-5
-6
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4238
SELECT col1 + CAST( col2 AS SIGNED ) * col1 FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-4238
SELECT col1 + CAST ( col2 AS INTEGER ) * col1 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT - col1 * cor0.col2 + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab1, tab2 cor0
----
7
78
79

query I rowsort
SELECT 91 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT + col2 + col0 DIV + 18 FROM tab2 cor0
----
27
30
42

skipif mysql # not compatible
query I rowsort label-4242
SELECT + col2 + col0 / + 18 FROM tab2 cor0
----
27
30
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4243
SELECT cor0.col0 DIV + 65 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4243
SELECT cor0.col0 / + 65 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT ALL + col1 * 80 FROM tab0 AS cor0
----
6880
7280
7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4245
SELECT CAST( + col2 AS SIGNED ) * + cor0.col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-4245
SELECT CAST ( + col2 AS INTEGER ) * + cor0.col1 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT - - 1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * 29 FROM tab0 cor0
----
1015
2581
696

query I rowsort
SELECT + col1 + - 55 AS col1 FROM tab0 AS cor0
----
31
36
42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4249
SELECT - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4249
SELECT - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4250
SELECT ALL - tab2.col1 DIV + col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL - tab2.col1 / + col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + cor0.col0 * - col1 * col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + - cor0.col0 col2 FROM tab0 AS cor0
----
-25
-36
-90

query I rowsort
SELECT + + col1 + - cor0.col0 * + 11 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
-33
-704
-880

query I rowsort
SELECT - 20 * col1 AS col0 FROM tab2 cor0
----
-1180
-340
-620

query I rowsort
SELECT ( + 27 ) AS col0 FROM tab2
----
27
27
27

query I rowsort
SELECT + col1 + - col1 * + col1 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT + ( + ( col2 ) ) + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - ( col2 + + tab0.col2 ) * col1 FROM tab0
----
-14924
-194
-5676

query I rowsort
SELECT DISTINCT - tab0.col2 AS col0 FROM tab0, tab1 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT ( + col0 ) + + 15 * - col1 FROM tab1 cor0
----
-115
-387
-86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT - 73 * - col0 - - CAST( + 65 AS SIGNED ) col0 FROM tab0 AS cor0
----
1817
2620
6562

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4261
SELECT - 73 * - col0 - - CAST ( + 65 AS INTEGER ) col0 FROM tab0 AS cor0
----
1817
2620
6562

query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 FROM tab0 cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4263
SELECT + cor0.col1 * + col0 * - 34 + - col0 DIV + col0 AS col2 FROM tab2 cor0
----
-156469
-45663
-7379

skipif mysql # not compatible
query I rowsort label-4263
SELECT + cor0.col1 * + col0 * - 34 + - col0 / + col0 AS col2 FROM tab2 cor0
----
-156469
-45663
-7379

onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT ( - col1 ) DIV + col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4264
SELECT ( - col1 ) / + col1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT + ( - 27 ) DIV - col1 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4265
SELECT + ( - 27 ) / - col1 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT DISTINCT ( + 91 ) * col2 FROM tab1 cor0
----
4914
5187
8736

query I rowsort
SELECT DISTINCT + ( + col0 ) * - cor0.col0 + + 87 * 50 AS col2 FROM tab2 AS cor0
----
-1734
-1891
4301

onlyif mysql # use DIV operator for integer division
query I rowsort label-4268
SELECT DISTINCT 82 + + cor0.col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
84
87
89

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT 82 + + cor0.col2 / + col1 AS col2 FROM tab1 AS cor0
----
84
87
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT - col2 + ( + col0 ) DIV + 44 AS col0 FROM tab2 AS cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-4269
SELECT - col2 + ( + col0 ) / + 44 AS col0 FROM tab2 AS cor0
----
-25
-27
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - 48 col1 FROM tab0 AS cor0
----
-1152
-1680
-4272

onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT ALL 65 + + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-4271
SELECT ALL 65 + + col2 / + col2 AS col1 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT ALL + 19 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

onlyif mysql # use DIV operator for integer division
query I rowsort label-4273
SELECT - ( + 19 ) * col1 DIV - 41 - + col2 AS col0 FROM tab2
----
-13
-31
1

skipif mysql # not compatible
query I rowsort label-4273
SELECT - ( + 19 ) * col1 / - 41 - + col2 AS col0 FROM tab2
----
-13
-31
1

query I rowsort
SELECT 69 * 69 AS col1 FROM tab0 AS cor0
----
4761
4761
4761

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT ALL 24 * col2 AS col1 FROM tab1
----
1296
1368
2304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 + - col0 col2 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT DISTINCT - col0 DIV tab0.col2 + col1 * + tab0.col1 + col0 AS col1 FROM tab0
----
7420
8369
9409

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - col0 / tab0.col2 + col1 * + tab0.col1 + col0 AS col1 FROM tab0
----
7420
8369
9409

query I rowsort
SELECT col1 - - 20 FROM tab2
----
37
51
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT + + col0 DIV + col1 + - col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif mysql # not compatible
query I rowsort label-4280
SELECT + + col0 / + col1 + - col0 FROM tab2 AS cor0
----
-7
-75
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4282
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * ( 81 ) AS col2 FROM tab2 cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT col2 + col0 - + 84 AS col2 FROM tab1 AS cor0
----
-27
37
92

query I rowsort
SELECT DISTINCT col2 * - col1 - ( col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 53 col2 FROM tab2 AS cor0
----
-6
22
36

query I rowsort
SELECT ALL col2 + col0 + - col1 * col0 FROM tab0
----
-2007
-3359
-7928

query I rowsort
SELECT - + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col2 * col1 + - col0 + col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT + 97 AS col2 FROM tab0 cor0
----
97
97
97

query I rowsort
SELECT DISTINCT + + col1 + 17 FROM tab0 AS cor0
----
103
108
114

query I rowsort
SELECT + - 14 + - 26 AS col1 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + col2 * + col1 + cor0.col1 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor1.col1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT - - 93 AS col1 FROM tab0 AS cor0
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT ALL - ( col0 ) * col2 DIV + col1 FROM tab1 AS cor0
----
-364
-590
-6

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL - ( col0 ) * col2 / + col1 FROM tab1 AS cor0
----
-364
-590
-6

query I rowsort
SELECT - 47 * 64 FROM tab0 AS cor0
----
-3008
-3008
-3008

onlyif mysql # use DIV operator for integer division
query I rowsort label-4298
SELECT ALL - ( + ( col0 ) ) * col0 DIV - col1 + + col1 * - cor0.col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-2040
-50
-77

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - ( + ( col0 ) ) * col0 / - col1 + + col1 * - cor0.col2 + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-2040
-50
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 88 + + 36 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 994279bc121ca89b790ad34ec9af8ec1

query I rowsort
SELECT ( cor0.col1 ) + - ( col1 ) AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4301
SELECT DISTINCT - 94 * col2 DIV - 32 + - col0 AS col0 FROM tab0
----
-33
151
72

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT - 94 * col2 / - 32 + - col0 AS col0 FROM tab0
----
-33
151
72

query I rowsort
SELECT + + 95 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

query I rowsort
SELECT ( col2 ) * - col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT + - col2 * - cor0.col1 + + ( - col1 ) * - col0 + - col0 FROM tab0 cor0
----
15472
3457
4878

query I rowsort
SELECT DISTINCT col2 + + col1 * - col2 FROM tab0
----
-2805
-7380
-96

query I rowsort
SELECT - - cor0.col2 - + cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 14 FROM tab1 cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 * + col2 * - CAST ( - col1 * col0 AS REAL ) col2 FROM tab2 AS cor0
----
-181629
-7059468
-867578

query I rowsort
SELECT - + col0 - + col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - col2 * col0 * - col2 + + col2 FROM tab0 AS cor0
----
26169
36
598518

query I rowsort
SELECT - 96 * cor0.col1 - + ( + col0 + col2 ) AS col2 FROM tab0 cor0
----
-8313
-8907
-9348

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT ALL - + col0 * + CAST( - ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - + col0 * + CAST ( - ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT col0 * 10 * - col0 AS col0 FROM tab2 AS cor0
----
-490
-60840
-62410

query I rowsort
SELECT DISTINCT - - col1 * - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + cor0.col1 + - ( + col2 * - col1 ) - col1 * col1 FROM tab0 AS cor0
----
-4472
-728
-9215

query I rowsort
SELECT - - col2 * + 29 + + col2 AS col2 FROM tab2 AS cor0
----
1140
780
810

query I rowsort
SELECT DISTINCT + col1 * + cor0.col0 + + 60 AS col1 FROM tab1 AS cor0
----
1100
138
700

query I rowsort
SELECT + col2 * + col1 * ( + col2 ) AS col2 FROM tab0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4319
SELECT ALL col1 + - col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL col1 + - col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * col0 * - col2 + col0 AS col2 FROM tab2
----
-119574
-50955
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - tab1.col0 col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( + col1 ) * tab2.col2 + - ( + col2 ) FROM tab2
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 - + col2 col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL ( col0 * + col0 ) - - tab2.col0 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL - tab1.col2 * - col1 + col0 AS col1 FROM tab1
----
1328
1407
634

query I rowsort
SELECT + col2 * 84 + - tab1.col1 * - col0 AS col2 FROM tab1
----
4614
5428
9104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT ALL CAST( col0 AS SIGNED ) * + tab1.col0 * ( col1 ) + col0 AS col0 FROM tab1
----
237
41024
83280

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL CAST ( col0 AS INTEGER ) * + tab1.col0 * ( col1 ) + col0 AS col0 FROM tab1
----
237
41024
83280

query I rowsort
SELECT ALL + ( col0 + + ( 41 ) ) * col0 FROM tab2
----
336
9282
9480

query I rowsort
SELECT - - 88 AS col2 FROM tab2 AS cor0
----
88
88
88

query I rowsort
SELECT DISTINCT tab0.col0 * - col1 + col2 FROM tab0
----
-2031
-3394
-8017

onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT col1 DIV ( + 29 ) FROM tab0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-4331
SELECT col1 / ( + 29 ) FROM tab0
----
2
3
3

query I rowsort
SELECT ALL col1 - + col1 * col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT 15 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT + - cor0.col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT ALL + 20 * 29 FROM tab0, tab2 cor0
----
9 values hashing to c3d8a4b8db9f858d31441a75bc73adf3

query I rowsort
SELECT - col0 + tab1.col2 * - 91 AS col2 FROM tab1
----
-4917
-5251
-8816

query I rowsort
SELECT ALL - - col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL cor0.col0 + + 97 FROM tab1 AS cor0
----
100
161
177

query I rowsort
SELECT ALL - col1 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
10982
25947
90506

query I rowsort
SELECT col0 - - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 65 + col0 * col1 * 51 AS col0 FROM tab0 AS cor0
----
105329
173210
413114

query I rowsort
SELECT DISTINCT - 3 * col1 + + col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT ALL + + col1 * + col0 - col0 * 94 AS col0 FROM tab1 cor0
----
-204
-5376
-6480

query I rowsort
SELECT + 48 + 77 FROM tab2 AS cor0
----
125
125
125

query I rowsort
SELECT DISTINCT - + 36 + - col2 * - col2 FROM tab2 AS cor0
----
1408
640
693

query I rowsort
SELECT ALL + - col1 * 43 FROM tab2 AS cor0
----
-1333
-2537
-731

query I rowsort
SELECT - 85 + - 58 * + col2 * - col1 AS col1 FROM tab0 cor0
----
164519
432711
5541

onlyif mysql # use DIV operator for integer division
query I rowsort label-4349
SELECT ALL - + cor0.col0 DIV col1 col2 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL - + cor0.col0 / col1 col2 FROM tab1 AS cor0
----
-6
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4350
SELECT DISTINCT + - 42 + + 20 DIV - col2 AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4350
SELECT DISTINCT + - 42 + + 20 / - col2 AS col0 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT DISTINCT 94 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2158
3489
8193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 25 + col2 col1 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT + + col0 * col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT - - col1 * + col0 + cor0.col2 * ( + col0 ) FROM tab1 AS cor0
----
240
4288
8720

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4355
SELECT ALL - CAST( NULL AS SIGNED ) / + col1 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL - CAST ( NULL AS INTEGER ) / + col1 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 51 * col2 AS col1 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT 28 * col0 FROM tab1 AS cor0
----
1792
2240
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 64 ) col0 FROM tab1
----
-64
-64
-64

query I rowsort
SELECT + ( - tab1.col0 ) * + col1 * - 32 AS col0 FROM tab1
----
20480
2496
33280

query I rowsort
SELECT + cor0.col0 + + 45 AS col2 FROM tab2 AS cor0
----
123
124
52

query I rowsort
SELECT cor0.col0 + 64 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to ab7e09f788cf8f8e6c3db69c02661a32

query I rowsort
SELECT + ( + col0 ) * - col1 - 79 AS col1 FROM tab0 AS cor0
----
-2143
-3474
-8178

onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT - cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4363
SELECT - cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + 96 * - col1 FROM tab1 AS cor0
----
-1248
-2496
-960

query I rowsort
SELECT 36 + - col0 * 83 FROM tab1 AS cor0
----
-213
-5276
-6604

onlyif mysql # use DIV operator for integer division
query I rowsort label-4366
SELECT col2 DIV - col2 + col2 AS col2 FROM tab1 AS cor0
----
53
56
95

skipif mysql # not compatible
query I rowsort label-4366
SELECT col2 / - col2 + col2 AS col2 FROM tab1 AS cor0
----
53
56
95

query I rowsort
SELECT + col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4368
SELECT + col2 * + col2 - + CAST( 50 AS SIGNED ) * + col1 * - ( 5 ) FROM tab0 cor0
----
22589
24251
29474

skipif mysql # not compatible
query I rowsort label-4368
SELECT + col2 * + col2 - + CAST ( 50 AS INTEGER ) * + col1 * - ( 5 ) FROM tab0 cor0
----
22589
24251
29474

query I rowsort
SELECT DISTINCT + - 42 AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT + tab1.col1 + tab1.col0 * + col1 AS col1 FROM tab1
----
104
1053
650

query I rowsort
SELECT ( - col1 ) * col1 FROM tab0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4372
SELECT ALL CAST( col2 AS SIGNED ) * - col2 + + tab2.col0 FROM tab2
----
-1365
-598
-722

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL CAST ( col2 AS INTEGER ) * - col2 + + tab2.col0 FROM tab2
----
-1365
-598
-722

onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT cor0.col1 + cor0.col2 DIV col2 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-4373
SELECT cor0.col1 + cor0.col2 / col2 AS col2 FROM tab0 AS cor0
----
87
92
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4374
SELECT col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4374
SELECT col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT ALL col1 * col2 * - 99 FROM tab0 AS cor0
----
-280962
-738738
-9603

query I rowsort
SELECT col1 + col2 * + 91 FROM tab0 AS cor0
----
188
3089
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-4378
SELECT DISTINCT col2 * 87 DIV 16 AS col0 FROM tab2 AS cor0
----
141
146
206

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT col2 * 87 / 16 AS col0 FROM tab2 AS cor0
----
141
146
206

onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT - + col2 DIV ( - col2 ) FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4379
SELECT - + col2 / ( - col2 ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + cor0.col2 * + 71 AS col0 FROM tab2 AS cor0
----
1846
1917
2698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4381
SELECT + - CAST( + col2 AS SIGNED ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-4381
SELECT + - CAST ( + col2 AS INTEGER ) * col2 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - - 14 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 37 col0 FROM tab1
----
133
91
94

query I rowsort
SELECT - 57 + ( + tab1.col2 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c1d8c77b0e6bc9ad17ff454238300856

query I rowsort
SELECT col1 + 40 FROM tab1
----
50
53
66

query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
53

query I rowsort
SELECT - ( 94 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - col2 - - col2 * col0 AS col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT col2 + cor0.col2 * - col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT + col2 + - ( - col2 ) FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT + - cor0.col1 * - cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT DISTINCT col1 * + 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540

query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 + + col2 FROM tab2 AS cor0
----
-6032
-6165
5

query I rowsort
SELECT ALL cor0.col1 * col1 * cor0.col1 FROM tab2 AS cor0
----
205379
29791
4913

query I rowsort
SELECT ALL - col2 + - col0 * + col0 FROM tab0 AS cor0
----
-1226
-609
-8003

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 + col0 * col2 FROM tab1 AS cor0
----
213
3641
7696

query I rowsort
SELECT - - ( + 19 ) + col2 AS col1 FROM tab1 AS cor0
----
115
73
76

query I rowsort
SELECT DISTINCT col2 + 17 AS col2 FROM tab1 AS cor0
----
113
71
74

query I rowsort
SELECT ALL - cor0.col1 + 55 AS col0 FROM tab2 cor0
----
-4
24
38

query I rowsort
SELECT + + 12 * cor0.col0 AS col1 FROM tab1 cor0
----
36
768
960

onlyif mysql # use DIV operator for integer division
query I rowsort label-4401
SELECT ALL - col0 + - col0 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-4401
SELECT ALL - col0 + - col0 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + ( + col0 ) col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + col1 + 45 AS col1 FROM tab2 AS cor0
----
104
62
76

query I rowsort
SELECT DISTINCT + 18 + - ( col2 ) FROM tab1 AS cor0
----
-36
-39
-78

query I rowsort
SELECT DISTINCT - col1 + + col0 + - tab2.col2 * + col0 FROM tab2
----
-2009
-213
-2940

query I rowsort
SELECT DISTINCT col2 + 80 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
51257
6294
83296

query I rowsort
SELECT ALL - col1 + + 8 * col0 AS col1 FROM tab1 AS cor0
----
-2
502
627

query I rowsort
SELECT 59 AS col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL 35 + 8 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT - - col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - col1 * + col0 + 89 FROM tab2 AS cor0
----
-1254
-128
-4513

query I rowsort
SELECT DISTINCT 89 + col2 * - col0 FROM tab1 AS cor0
----
-3559
-73
-7591

onlyif mysql # use DIV operator for integer division
query I rowsort label-4413
SELECT ALL 98 DIV + col0 AS col2 FROM tab2 AS cor0
----
1
1
14

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL 98 / + col0 AS col2 FROM tab2 AS cor0
----
1
1
14

query I rowsort
SELECT + col0 + + col2 * - col2 - col2 AS col2 FROM tab1 AS cor0
----
-2967
-3242
-9232

query I rowsort
SELECT ALL - ( col2 * col1 ) AS col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + + 98 AS col0 FROM tab1 AS cor0
----
98
98
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT + col2 DIV cor0.col1 + + col2 - cor0.col2 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4418
SELECT + col2 / cor0.col1 + + col2 - cor0.col2 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL ( cor0.col0 ) * 57 FROM tab0 AS cor0
----
1368
1995
5073

query I rowsort
SELECT DISTINCT col1 + - col2 * 95 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
3519
693492
75412

query I rowsort
SELECT 68 * col1 FROM tab0
----
5848
6188
6596

onlyif mysql # use DIV operator for integer division
query I rowsort label-4422
SELECT - + col1 DIV col0 + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-3
-64
-65

skipif mysql # not compatible
query I rowsort label-4422
SELECT - + col1 / col0 + - col1 + col0 AS col0 FROM tab0 AS cor0
----
-3
-64
-65

query I rowsort
SELECT DISTINCT + + col1 * 71 + + col1 * col0 FROM tab0 AS cor0
----
10282
14560
8170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4424
SELECT - + col0 * - CAST( + col2 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-4424
SELECT - + col0 * - CAST ( + col2 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
158
1969
2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4425
SELECT ALL + col0 - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4425
SELECT ALL + col0 - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + tab2.col2 - col0 * - col2 FROM tab2
----
2113
247
3057

query I rowsort
SELECT + col1 * - ( + 63 ) - + col0 FROM tab0 AS cor0
----
-5442
-5822
-6146

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4428
SELECT ALL - col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-4428
SELECT ALL - col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4429
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 25 * col2 col0 FROM tab2 AS cor0
----
4725
50700
75050

query I rowsort
SELECT + col1 + + col0 * col1 + - col0 FROM tab1
----
101
586
973

query I rowsort
SELECT ALL col1 * col1 + + col2 * + col2 * + col2 FROM tab2
----
20644
21057
55161

query I rowsort
SELECT ALL col0 * col1 - ( - col0 ) * col2 AS col0 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT cor0.col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col1 * - col2 - + col2 FROM tab2
----
-1560
-684
-864

query I rowsort
SELECT ALL + 61 - + col1 * + col2 FROM tab0
----
-2777
-36
-7401

query I rowsort
SELECT DISTINCT - col2 * 94 + tab1.col2 + + col2 AS col0 FROM tab1
----
-4968
-5244
-8832

query I rowsort
SELECT ALL 8 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT DISTINCT - col2 DIV 52 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - col2 / 52 FROM tab1
----
-1

query I rowsort
SELECT col0 * 86 + col2 * + col2 + col2 AS col1 FROM tab0
----
14460
3012
3186

query I rowsort
SELECT DISTINCT - cor0.col1 + 73 * + col2 FROM tab2 AS cor0
----
1839
1940
2757

query I rowsort
SELECT ALL + + col1 + 1 * col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT col1 - 85 FROM tab0 AS cor0
----
1
12
6

query I rowsort
SELECT ALL + col1 * + col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-4446
SELECT DISTINCT + cor0.col1 DIV ( - col2 ) FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + cor0.col1 / ( - col2 ) FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + col2 + col1 * cor0.col1 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT DISTINCT - - col0 * ( + col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT ALL - col0 + + 5 * col0 AS col2 FROM tab0 cor0
----
140
356
96

query I rowsort
SELECT tab2.col1 * col1 + col0 FROM tab2
----
3559
368
968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT ALL col2 DIV - 17 AS col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL col2 / - 17 AS col0 FROM tab2
----
-1
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4452
SELECT DISTINCT + 59 DIV cor0.col0 FROM tab1 AS cor0
----
0
19

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + 59 / cor0.col0 FROM tab1 AS cor0
----
0
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 85 ) + - col1 col2 FROM tab1
----
-111
-95
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT DISTINCT + col1 DIV col1 + - ( 67 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + col1 / col1 + - ( 67 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + 61 + - col1 + + 77 AS col1 FROM tab2 AS cor0
----
107
121
79

query I rowsort
SELECT - col0 - + col2 * - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT 94 + col1 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT - col0 * col1 * col1 + + 18 FROM tab0 AS cor0
----
-177486
-329297
-736991

query I rowsort
SELECT ALL - col0 + + col1 + + cor0.col1 AS col2 FROM tab0 cor0
----
148
159
93

query I rowsort
SELECT DISTINCT + + col2 * col1 + + col0 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4461
SELECT DISTINCT - ( + col0 ) / CAST( NULL AS SIGNED ) + + 83 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT - ( + col0 ) / CAST ( NULL AS INTEGER ) + + 83 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 39 * col2 FROM tab2
----
1014
1053
1482

query I rowsort
SELECT DISTINCT col0 + col0 + - 90 FROM tab0
----
-20
-42
88

query I rowsort
SELECT DISTINCT - - col2 - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT - - 9 + col0 FROM tab2 AS cor0
----
16
87
88

query I rowsort
SELECT - 31 * col0 AS col0 FROM tab2 AS cor0
----
-217
-2418
-2449

query I rowsort
SELECT ALL + 64 * + col1 + - col2 FROM tab2 AS cor0
----
1050
1957
3750

query I rowsort
SELECT ALL col2 + - col2 + + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT 7 + col0 AS col1 FROM tab1 AS cor0
----
10
71
87

query I rowsort
SELECT ALL - + col1 + - 65 + + col1 AS col0 FROM tab1 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - col1 + 89 AS col1 FROM tab0 AS cor0
----
-2
-8
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col1 FROM tab2 AS cor0
----
72

query I rowsort
SELECT col1 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT col2 * + tab0.col0 * col2 AS col0 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4475
SELECT ALL - col2 * ( col2 ) - - CAST( col1 AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
1749
738
96

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - col2 * ( col2 ) - - CAST ( col1 AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT - - col2 * - col1 + - col0 + + ( cor0.col1 * + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-436
117
1869

query I rowsort
SELECT + + col0 - col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT + + col0 + + col0 * col1 - + ( + 49 ) AS col2 FROM tab2 AS cor0
----
1373
175
4631

query I rowsort
SELECT + 46 - + col2 * col2 FROM tab1 cor0
----
-2870
-3203
-9170

query I rowsort
SELECT - - 49 + - col2 + + col2 AS col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT + 79 * cor0.col2 + + 3 FROM tab2 cor0
----
2057
2136
3005

query I rowsort
SELECT ALL 71 + col1 AS col1 FROM tab1
----
81
84
97

query I rowsort
SELECT + 2 + + 6 AS col1 FROM tab2
----
8
8
8

query I rowsort
SELECT ALL col0 * - 48 * col1 AS col2 FROM tab1
----
-30720
-3744
-49920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4485
SELECT ALL + CAST( col1 * - col1 AS SIGNED ) + - col2 AS col0 FROM tab1
----
-157
-265
-730

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL + CAST ( col1 * - col1 AS INTEGER ) + - col2 AS col0 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT ALL - col1 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT DISTINCT + + col0 * + 74 * + col0 FROM tab0 AS cor0
----
42624
586154
90650

query I rowsort
SELECT - col2 + - tab1.col0 * 73 AS col1 FROM tab1
----
-273
-4729
-5936

query I rowsort
SELECT ALL 23 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT ALL col1 * - ( - col2 ) AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT col1 DIV + 99 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4491
SELECT col1 / + 99 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4492
SELECT - - col0 + 54 DIV cor0.col1 AS col1 FROM tab1 cor0
----
5
69
84

skipif mysql # not compatible
query I rowsort label-4492
SELECT - - col0 + 54 / cor0.col1 AS col1 FROM tab1 cor0
----
5
69
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756

query I rowsort
SELECT ALL - col1 * + 19 FROM tab0
----
-1634
-1729
-1843

query I rowsort
SELECT ALL - 92 * col1 FROM tab2
----
-1564
-2852
-5428

query I rowsort
SELECT cor0.col1 * + ( - cor0.col2 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 315ab91f9844de122b0c28cd16e982e4

query I rowsort
SELECT + 44 AS col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b

query I rowsort
SELECT tab1.col0 * + tab1.col0 AS col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT - + 91 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab

query I rowsort
SELECT - + 85 * - col0 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT col2 + + col0 * + col0 * - col2 FROM tab2 AS cor0
----
-1296
-158158
-237120

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4503
SELECT - col1 + - CAST( - col1 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-1593
-663
-868

skipif mysql # not compatible
query I rowsort label-4503
SELECT - col1 + - CAST ( - col1 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + + col0 * 42 * 79 + - col2 FROM tab2 AS cor0
----
23199
258778
262084

query I rowsort
SELECT 83 + + col0 * col2 AS col0 FROM tab0
----
118
7381
875

onlyif mysql # use DIV operator for integer division
query I rowsort label-4506
SELECT - col2 DIV col0 + - col1 - - 60 * - col1 AS col0 FROM tab1
----
-1604
-610
-794

skipif mysql # not compatible
query I rowsort label-4506
SELECT - col2 / col0 + - col1 - - 60 * - col1 AS col0 FROM tab1
----
-1604
-610
-794

query I rowsort
SELECT DISTINCT + col2 * - ( + col1 ) * - 97 + + col2 AS col0 FROM tab0
----
275319
723896
9410

query I rowsort
SELECT DISTINCT 30 - 39 AS col0 FROM tab1, tab2, tab0 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + tab2.col2 col2 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL - 10 * - cor0.col1 * + col0 + - cor0.col1 FROM tab2 AS cor0
----
13413
2139
45961

query I rowsort
SELECT 14 + + col1 FROM tab2 cor0
----
31
45
73

query I rowsort
SELECT ALL - cor0.col2 * col2 + - 44 FROM tab1 AS cor0
----
-2960
-3293
-9260

query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 * - cor0.col1 + col2 FROM tab1 cor0
----
-568
14
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4514
SELECT + CAST( NULL AS DECIMAL ) * + 78 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4514
SELECT + CAST ( NULL AS REAL ) * + 78 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - - 55 + + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1303
1459
625

query I rowsort
SELECT DISTINCT - col0 + col0 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - 47 * col1 - + ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1040
-1859
-2626

query I rowsort
SELECT ALL - + col0 + + col0 * col2 + + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT + + col0 * col0 + 35 FROM tab1 AS cor0
----
4131
44
6435

query I rowsort
SELECT - col2 * + col1 + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + - 23 * - ( - col2 ) col1 FROM tab2 cor0
----
108
570
78

query I rowsort
SELECT DISTINCT - 61 + col1 FROM tab1 AS cor0
----
-35
-48
-51

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 - + ( + col0 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT + col2 + col1 * 28 FROM tab2 AS cor0
----
1678
514
895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + ( - ( + col2 ) ) col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT - - col1 + - col1 * - col0 * - col0 FROM tab2 AS cor0
----
-106080
-1488
-358897

query I rowsort
SELECT - 25 FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a

onlyif mysql # use DIV operator for integer division
query I rowsort label-4529
SELECT + cor0.col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4529
SELECT + cor0.col2 / + col2 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + col1 + + col2 * - 12 FROM tab1 AS cor0
----
-1139
-622
-674

query I rowsort
SELECT DISTINCT - col1 - + col2 * - col2 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT - cor0.col1 + + cor0.col1 FROM tab0, tab1 cor0
----
0

query I rowsort
SELECT ALL - col1 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180

query I rowsort
SELECT ALL col0 * cor0.col0 + col2 * 34 FROM tab2 AS cor0
----
6968
7533
967

query I rowsort
SELECT ALL + col2 - 28 AS col0 FROM tab1 cor0
----
26
29
68

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab1 AS cor3
----
3645 values hashing to 2c9bc625661696fa1cf187c4d0f703a1

query I rowsort
SELECT DISTINCT tab1.col2 * + 87 FROM tab1
----
4698
4959
8352

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab0 cor3
----
3645 values hashing to 5acb69cde71208fe580e10b8b669428e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4539
SELECT tab0.col1 * - ( col0 + + col0 ) * + CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-1474018
-355008
-658630

skipif mysql # not compatible
query I rowsort label-4539
SELECT tab0.col1 * - ( col0 + + col0 ) * + CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-1474018
-355008
-658630

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 * - 13 AS col2 FROM tab0 AS cor0
----
1157
312
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 col2 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4543
SELECT + CAST( NULL AS SIGNED ) * col1 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-4543
SELECT + CAST ( NULL AS INTEGER ) * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 32 * 31 AS col2 FROM tab2 AS cor0
----
-992
-992
-992

query I rowsort
SELECT ALL + + col0 * - 31 * - col0 AS col0 FROM tab1 AS cor0
----
126976
198400
279

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 * - col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT ALL ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + col0 * + col1 AS col0 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT + 63 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
5418
5733
6111

query I rowsort
SELECT DISTINCT + - cor0.col0 * + ( cor0.col0 ) + 71 AS col1 FROM tab1 AS cor0
----
-4025
-6329
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4551
SELECT CAST( NULL AS SIGNED ) + col0 * + tab2.col0 * 10 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT CAST ( NULL AS INTEGER ) + col0 * + tab2.col0 * 10 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
86
91
97

query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT ALL + col0 + - cor0.col2 + col0 FROM tab1 AS cor0
----
-48
64
71

query I rowsort
SELECT DISTINCT + col1 + 16 AS col2 FROM tab0 AS cor0
----
102
107
113

query I rowsort
SELECT + col1 * 42 AS col0 FROM tab2 AS cor0
----
1302
2478
714

query I rowsort
SELECT ALL + - col0 * + col2 * col2 + + col1 * col1 AS col2 FROM tab2 AS cor0
----
-113787
-4142
-49247

onlyif mysql # use DIV operator for integer division
query I rowsort label-4558
SELECT ALL + col2 * col2 + col1 DIV + col1 AS col0 FROM tab1
----
2917
3250
9217

skipif mysql # not compatible
query I rowsort label-4558
SELECT ALL + col2 * col2 + col1 / + col1 AS col0 FROM tab1
----
2917
3250
9217

onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT ( col2 ) DIV CAST( - ( + col2 ) AS SIGNED ) + + col2 * ( col2 ) FROM tab1
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT ( col2 ) / CAST ( - ( + col2 ) AS INTEGER ) + + col2 * ( col2 ) FROM tab1
----
2915
3248
9215

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # use DIV operator for integer division
query I rowsort label-4562
SELECT ALL col0 DIV CAST( + col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT ALL col0 / CAST ( + col1 AS INTEGER ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - col2 * - ( col2 + - col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + + col1 * + 90 FROM tab2 AS cor0
----
1530
2790
5310

query I rowsort
SELECT DISTINCT - + col2 * ( col0 ) + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT col1 * ( 77 ) FROM tab1 AS cor0
----
1001
2002
770

onlyif mysql # use DIV operator for integer division
query I rowsort label-4567
SELECT DISTINCT cor0.col0 DIV 93 + + 25 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4567
SELECT DISTINCT cor0.col0 / 93 + + 25 FROM tab2 AS cor0
----
25

query I rowsort
SELECT DISTINCT 39 + - 71 AS col1 FROM tab1, tab0 cor0
----
-32

query I rowsort
SELECT ALL - cor0.col0 + 46 FROM tab0 cor0
----
-43
11
22

query I rowsort
SELECT ALL + 12 AS col1 FROM tab0 cor0
----
12
12
12

query I rowsort
SELECT + 19 + + col0 * 25 FROM tab1 AS cor0
----
1619
2019
94

query I rowsort
SELECT + col0 * - ( - col0 ) - col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT ALL + col2 + - 74 FROM tab1 AS cor0
----
-17
-20
22

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT col1 * CAST( NULL AS SIGNED ) - + 21 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4574
SELECT col1 * CAST ( NULL AS INTEGER ) - + 21 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
51

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4576
SELECT ALL - CAST( + col1 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - CAST ( + col1 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4577
SELECT ALL - + ( col2 ) DIV - col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - + ( col2 ) / - col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT + tab0.col0 * - ( + 11 ) FROM tab0
----
-264
-385
-979

query I rowsort
SELECT DISTINCT - cor0.col0 + + cor0.col1 * col0 FROM tab0 cor0
----
2040
3360
8010

query I rowsort
SELECT 52 + 19 * + col2 AS col0 FROM tab1 cor0
----
1078
1135
1876

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4581
SELECT CAST( NULL AS SIGNED ) / col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( NULL AS INTEGER ) / col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * + col0 * - col1 AS col1 FROM tab0 cor0
----
-3394
-664036
-68079

query I rowsort
SELECT + - 55 * col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

query I rowsort
SELECT - + 92 AS col1 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT col1 + - col1 * col0 AS col1 FROM tab2 cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4586
SELECT ALL + col0 DIV 47 AS col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + col0 / 47 AS col2 FROM tab1
----
0
1
1

query I rowsort
SELECT 54 - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to cb09f70ba90e3704bc28921a14547356

query I rowsort
SELECT DISTINCT - ( + col0 ) + ( 59 ) FROM tab1 cor0
----
-21
-5
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-4589
SELECT - ( - col0 ) DIV - 52 AS col0 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4589
SELECT - ( - col0 ) / - 52 AS col0 FROM tab2 cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + 42 FROM tab1 AS cor0
----
1082
120
682

query I rowsort
SELECT 11 * tab1.col2 AS col0 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to e4998bccd57278a893c23a724cfe43fc

query I rowsort
SELECT + - tab2.col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75

query I rowsort
SELECT ( col1 * + ( tab0.col2 ) ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ( 19 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT tab0.col0 * - 99 FROM tab0
----
-2376
-3465
-8811

onlyif mysql # use DIV operator for integer division
query I rowsort label-4598
SELECT - 67 DIV + 67 col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4598
SELECT - 67 / + 67 col0 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + ( col0 ) + col1 + + ( - col2 ) FROM tab2 AS cor0
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT col0 DIV 96 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4600
SELECT col0 / 96 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT ALL 14 DIV tab2.col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL 14 / tab2.col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - 73 * col1 FROM tab0
----
-6278
-6643
-7081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) - - col0 col0 FROM tab1 cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4604
SELECT - CAST( - cor0.col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4604
SELECT - CAST ( - cor0.col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT 23 * + cor0.col2 + - col0 * 79 AS col1 FROM tab0 AS cor0
----
-1137
-2742
-5145

query I rowsort
SELECT ALL + - col2 + 5 FROM tab1 AS cor0
----
-49
-52
-91

query I rowsort
SELECT ALL 17 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4608
SELECT ALL + col1 * + CAST( NULL AS SIGNED ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL + col1 * + CAST ( NULL AS INTEGER ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - 39 - - 67 AS col2 FROM tab0 AS cor0
----
-5
-54
27

query I rowsort
SELECT - tab0.col2 - + 61 AS col0 FROM tab0
----
-143
-62
-94

query I rowsort
SELECT DISTINCT tab0.col0 * + 94 + - tab0.col0 FROM tab0
----
2232
3255
8277

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4612
SELECT - - col2 - - CAST( + col2 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-4612
SELECT - - col2 - - CAST ( + col2 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + cor0.col2 * 45 FROM tab2 AS cor0
----
1170
1215
1710

query I rowsort
SELECT ALL cor0.col2 + - col0 * + col1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT col0 * + col1 + 68 * + col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
279
4928
6400

query I rowsort
SELECT ALL - col2 + col0 + col1 * + col1 AS col1 FROM tab0 AS cor0
----
7387
8288
9443

query I rowsort
SELECT DISTINCT + col1 + - 85 FROM tab2
----
-26
-54
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 32 + col2 col1 FROM tab2
----
1254
858
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4619
SELECT CAST( 21 AS SIGNED ) AS col0 FROM tab0
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4619
SELECT CAST ( 21 AS INTEGER ) AS col0 FROM tab0
----
21
21
21

query I rowsort
SELECT DISTINCT - 70 + + cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
-11
-39
-53

query I rowsort
SELECT ( - col2 ) * col1 AS col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - col0 + col2 * - 54 FROM tab2 AS cor0
----
-1465
-1482
-2131

query I rowsort
SELECT ALL - col1 * - 70 AS col0 FROM tab1
----
1820
700
910

query I rowsort
SELECT ALL ( + tab0.col1 ) * col1 AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT ALL - 88 + col2 FROM tab0
----
-55
-6
-87

query I rowsort
SELECT ALL - cor0.col2 + cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to 1c0f12b2ac8c8b522b92205460500f94

query I rowsort
SELECT ALL + 0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col2 * + 36 + + col1 FROM tab2
----
1003
1385
995

query I rowsort
SELECT 34 * 17 FROM tab0
----
578
578
578

query I rowsort
SELECT DISTINCT col0 + + 80 AS col0 FROM tab2
----
158
159
87

query I rowsort
SELECT + col2 - col1 * - col2 * - ( + 84 ) FROM tab1
----
-104736
-117882
-47823

query I rowsort
SELECT + ( tab0.col1 ) * col1 + col1 FROM tab0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT col1 + 91 AS col2 FROM tab2
----
108
122
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT 36 DIV col0 FROM tab1 cor0
----
0
0
12

skipif mysql # not compatible
query I rowsort label-4634
SELECT 36 / col0 FROM tab1 cor0
----
0
0
12

query I rowsort
SELECT 28 * + col2 + col1 FROM tab0
----
1010
125
2387

query I rowsort
SELECT + 93 - tab1.col2 FROM tab1
----
-3
36
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-4637
SELECT DISTINCT col2 DIV + col0 col1 FROM tab0 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT col2 / + col0 col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + cor0.col2 * - cor0.col0 * col1 + 48 * - col0 FROM tab1 cor0
----
-103680
-39552
-4356

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT + - ( col0 ) + + 34 DIV + col1 FROM tab1 cor0
----
-2
-61
-78

skipif mysql # not compatible
query I rowsort label-4639
SELECT + - ( col0 ) + + 34 / + col1 FROM tab1 cor0
----
-2
-61
-78

query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-4641
SELECT ALL + + col1 DIV + col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL + + col1 / + col1 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 82 * cor0.col1 * + ( 51 * + col0 ) FROM tab1 AS cor0
----
2676480
326196
4349280

query I rowsort
SELECT DISTINCT + 46 * col0 + 59 AS col1 FROM tab0 AS cor0
----
1163
1669
4153

query I rowsort
SELECT - cor0.col0 * 38 FROM tab2, tab0 cor0
----
9 values hashing to c3091de57d953fb36f88bd4f42a32935

query I rowsort
SELECT ALL - cor0.col2 * + col2 * ( 9 ) FROM tab2 AS cor0
----
-12996
-6084
-6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) * - 36 col2 FROM tab1 AS cor0
----
-108
-2304
-2880

query I rowsort
SELECT ALL - col0 + + col2 + col0 AS col1 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT ALL - col2 + + 59 AS col2 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT ALL - - col1 * - 67 FROM tab2 AS cor0
----
-1139
-2077
-3953

query I rowsort
SELECT DISTINCT col0 * 46 + + 60 + + col2 * col0 FROM tab2 AS cor0
----
5676
571
6696

onlyif mysql # use DIV operator for integer division
query I rowsort label-4651
SELECT ALL - col2 DIV col0 + ( + col0 ) AS col0 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL - col2 / col0 + ( + col0 ) AS col0 FROM tab0 cor0
----
23
35
89

query I rowsort
SELECT DISTINCT - col0 + 70 AS col2 FROM tab2 AS cor0
----
-8
-9
63

query I rowsort
SELECT + col2 + cor0.col0 * 34 AS col1 FROM tab0 AS cor0
----
1191
3108
849

query I rowsort
SELECT ALL + col2 * cor0.col0 + col2 AS col1 FROM tab2 cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-4655
SELECT DISTINCT + + col0 + col0 + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-4655
SELECT DISTINCT + + col0 + col0 + col2 / - col2 AS col1 FROM tab0 AS cor0
----
177
47
69

query I rowsort
SELECT ALL col0 + - ( col2 ) - + col2 FROM tab0 AS cor0
----
-42
-75
33

query I rowsort
SELECT DISTINCT - col1 + col1 * 5 AS col1 FROM tab0 AS cor0
----
344
364
388

query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + - col0 + - ( col1 * col1 ) FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - + ( col1 ) + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( + cor0.col1 * 56 ) - col2 col1 FROM tab2 AS cor0
----
1740
3337
931

query I rowsort
SELECT col1 + - ( + col1 ) AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( col0 AS REAL ) + - col1 * + ( + col2 ) AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + ( 81 ) FROM tab2 AS cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - col1 * - cor0.col0 + + col0 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT - ( 27 ) - - col1 AS col0 FROM tab1 AS cor0
----
-1
-14
-17

onlyif mysql # use DIV operator for integer division
query I rowsort label-4667
SELECT + col2 DIV 65 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT + col2 / 65 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + cor0.col2 * + 44 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4669
SELECT DISTINCT CAST( 3 AS SIGNED ) * col2 col0 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT CAST ( 3 AS INTEGER ) * col2 col0 FROM tab0 AS cor0
----
246
3
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 + + col2 col2 FROM tab1 cor0
----
106
122
77

query I rowsort
SELECT ALL + 4 + col2 AS col1 FROM tab1 AS cor0
----
100
58
61

query I rowsort
SELECT 50 + col0 AS col2 FROM tab1 AS cor0
----
114
130
53

query I rowsort
SELECT - 32 + 46 - col2 FROM tab1 cor0
----
-40
-43
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT - cor0.col0 DIV col0 + cor0.col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-4674
SELECT - cor0.col0 / col0 + cor0.col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - tab2.col2 + tab2.col0 * tab2.col1 * 40 FROM tab2
----
184054
53682
8653

query I rowsort
SELECT DISTINCT + 18 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
18

query I rowsort
SELECT DISTINCT cor0.col1 + + col2 * 37 * + 31 AS col0 FROM tab2 AS cor0
----
29881
31000
43603

query I rowsort
SELECT ALL - 45 + - col1 + col2 AS col0 FROM tab2
----
-24
-49
-78

query I rowsort
SELECT 64 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT 27 + col2 AS col0 FROM tab1 AS cor0
----
123
81
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-4681
SELECT tab2.col0 DIV tab2.col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to ee52f9b4c9d252c357ebca3161ec6918

skipif mysql # not compatible
query I rowsort label-4681
SELECT tab2.col0 / tab2.col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to ee52f9b4c9d252c357ebca3161ec6918

query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT + - ( + col0 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4683
SELECT + - ( + col0 ) / + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - cor0.col1 col1 FROM tab1 cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - + col2 + col0 AS col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL + 32 AS col0 FROM tab2
----
32
32
32

query I rowsort
SELECT + 99 * + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3e0bf582ca6a0ef0effffb10e51803c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 + - col2 col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL 95 - col2 FROM tab0 AS cor0
----
13
62
94

query I rowsort
SELECT DISTINCT - 34 * + col1 AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578

onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT DISTINCT 22 DIV - col0 + 20 + + 30 * - col2 FROM tab2 AS cor0
----
-1120
-760
-793

skipif mysql # not compatible
query I rowsort label-4691
SELECT DISTINCT 22 / - col0 + 20 + + 30 * - col2 FROM tab2 AS cor0
----
-1120
-760
-793

onlyif mysql # use DIV operator for integer division
query I rowsort label-4692
SELECT ALL - col1 + col2 * 68 DIV col2 AS col0 FROM tab1 AS cor0
----
42
55
58

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - col1 + col2 * 68 / col2 AS col0 FROM tab1 AS cor0
----
42
55
58

query I rowsort
SELECT + - 86 * - col0 FROM tab1 AS cor0
----
258
5504
6880

query I rowsort
SELECT ALL cor0.col2 * - col0 - - col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT ALL - cor0.col1 * - col2 - - 48 AS col1 FROM tab1 AS cor0
----
1296
1452
618

query I rowsort
SELECT + cor0.col1 + + col1 * - 88 AS col1 FROM tab0 AS cor0
----
-7482
-7917
-8439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 45 ) col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - ( col1 ) col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
17
31
59

query I rowsort
SELECT DISTINCT ( - 73 ) AS col0 FROM tab1, tab2 AS cor0
----
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + ( - ( col1 ) ) + col2 col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4702
SELECT cor0.col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT cor0.col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + ( + tab0.col1 ) * - col2 - col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT col2 * - 88 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
16639
178542
264255

query I rowsort
SELECT col1 + + col1 * cor0.col2 FROM tab0 cor0
----
194
2924
7553

query I rowsort
SELECT - col1 - 25 AS col2 FROM tab1 AS cor0
----
-35
-38
-51

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col1 AS REAL ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4708
SELECT DISTINCT CAST( col0 AS SIGNED ) + col1 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col1 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4709
SELECT ALL + col2 * ( col2 * - ( + col1 ) ) + - col1 DIV - cor0.col1 col0 FROM tab0 AS cor0
----
-611883
-93653
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + col2 * ( col2 * - ( + col1 ) ) + - col1 / - cor0.col1 col0 FROM tab0 AS cor0
----
-611883
-93653
-96

query I rowsort
SELECT col1 + 25 * col1 FROM tab2 AS cor0
----
1534
442
806

query I rowsort
SELECT - col2 * + 10 AS col2 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT col2 * - col2 + + col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT + 45 * col1 AS col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT ALL + col1 * + col2 + - col0 * 65 AS col0 FROM tab1 AS cor0
----
-3590
-3952
1209

query I rowsort
SELECT DISTINCT - 62 FROM tab0, tab1 cor0, tab1 AS cor1
----
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT + ( + col0 ) DIV tab0.col2 col0 FROM tab0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4716
SELECT + ( + col0 ) / tab0.col2 col0 FROM tab0
----
0
1
35

query I rowsort
SELECT - 70 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT DISTINCT - + col1 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-4719
SELECT ALL - - col1 DIV + 86 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4719
SELECT ALL - - col1 / + 86 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4720
SELECT ALL col1 * - CAST( NULL AS DECIMAL ) + + cor0.col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL col1 * - CAST ( NULL AS REAL ) + + cor0.col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col2 + + col1 * ( + col2 ) - - col0 AS col2 FROM tab2
----
1638
763
871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - tab0.col2 col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 * 14 AS col0 FROM tab0
----
113386
28896
47530

query I rowsort
SELECT ALL + 79 + cor0.col2 * 26 AS col1 FROM tab1 AS cor0
----
1483
1561
2575

query I rowsort
SELECT ALL cor0.col2 + + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - - col0 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + - col1 * + ( 34 ) AS col0 FROM tab2 AS cor0
----
-1054
-2006
-578

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4728
SELECT col2 * CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif mysql # not compatible
query I rowsort label-4728
SELECT col2 * CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT DISTINCT - col1 * - CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT DISTINCT - col1 * - CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + cor0.col2 * 63 AS col0 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT DISTINCT - + col0 + 85 FROM tab1 AS cor0
----
21
5
82

query I rowsort
SELECT ALL cor0.col1 - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT ALL cor0.col2 - ( - ( - col2 ) * + ( col1 ) ) FROM tab1 cor0
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4734
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) / + ( + col0 * col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) / + ( + col0 * col1 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * - 60 + ( col2 * ( col0 ) ) FROM tab0 AS cor0
----
12638
2135
2232

query I rowsort
SELECT + 86 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4

onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT ALL + 16 * col0 DIV col2 AS col0 FROM tab0
----
11
17
560

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + 16 * col0 / col2 AS col0 FROM tab0
----
11
17
560

query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT + tab1.col2 + + cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
9 values hashing to 4a01ecc2037eb425b02feee67266c705

query I rowsort
SELECT ALL 93 * col2 FROM tab1
----
5022
5301
8928

query I rowsort
SELECT DISTINCT + 29 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
29

query I rowsort
SELECT + tab1.col2 * - tab1.col2 + - col0 AS col0 FROM tab1
----
-2919
-3313
-9296

query I rowsort
SELECT DISTINCT - col1 + - col1 * - col2 FROM tab1
----
1235
1378
560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT + col0 DIV col2 + + col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-4744
SELECT + col0 / col2 + + col0 FROM tab0
----
24
70
90

query I rowsort
SELECT tab1.col0 * col1 + - col0 * col0 + - col1 AS col2 FROM tab1
----
-3466
-5373
43

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT ALL col1 DIV + col1 + + col2 * col0 * col0 + + col1 FROM tab1
----
233483
513
614414

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL col1 / + col1 + + col2 * col0 * col0 + + col1 FROM tab1
----
233483
513
614414

query I rowsort
SELECT - col0 * col0 * + col2 AS col1 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT ALL + col2 + col1 + - col0 AS col0 FROM tab2
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4749
SELECT + col2 + col0 * tab1.col1 + col2 DIV + col0 AS col1 FROM tab1
----
1137
150
697

skipif mysql # not compatible
query I rowsort label-4749
SELECT + col2 + col0 * tab1.col1 + col2 / + col0 AS col1 FROM tab1
----
1137
150
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col2 FROM tab2 WHERE + col0 + - col0 IN ( col1 / - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 + col0 col1 FROM tab0
----
133
143
262

query I rowsort
SELECT col1 + col1 * + col2 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 * + tab2.col2 * + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( tab2.col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab0.col0 col0 FROM tab0 WHERE ( NULL ) NOT IN ( col2 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 - + tab0.col0 col2 FROM tab0
----
2814
62
7373

query I rowsort
SELECT DISTINCT - col2 * - col1 * - col1 FROM tab0
----
-244068
-679042
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 * col0 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + tab0.col1 * col1 + col1 FROM tab0 WHERE NOT col1 IN ( tab0.col1 )
----

query I rowsort
SELECT + tab2.col2 * col2 + - col0 - col1 FROM tab2
----
1348
539
691

query I rowsort
SELECT DISTINCT col2 + - 83 AS col2 FROM tab2
----
-45
-56
-57

query I rowsort
SELECT DISTINCT - col2 + 76 * col1 * - col2 AS col0 FROM tab0
----
-215721
-567194
-7373

query I rowsort
SELECT - 12 + - col1 AS col2 FROM tab2
----
-29
-43
-71

query I rowsort
SELECT - col0 * col0 + - 28 AS col2 FROM tab0 cor0
----
-1253
-604
-7949

query I rowsort
SELECT DISTINCT + ( + 70 ) + + col2 AS col2 FROM tab1
----
124
127
166

query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886

query I rowsort
SELECT ALL 80 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4767
SELECT ALL CAST( ( - col2 ) AS SIGNED ) + ( ( tab2.col2 ) ) * tab2.col2 FROM tab2
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) + ( ( tab2.col2 ) ) * tab2.col2 FROM tab2
----
1406
650
702

query I rowsort
SELECT - col2 + + col2 + + ( ( + col0 ) ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - 59 * col2 + + ( 19 + - col2 ) FROM tab0 AS cor0
----
-1961
-41
-4901

query I rowsort
SELECT + col2 * + col0 + - ( 21 ) * col0 FROM tab1 AS cor0
----
2304
6000
99

query I rowsort
SELECT DISTINCT + 13 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
-183
-376
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4772
SELECT ALL - col1 * - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL - col1 * - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL col0 + + ( + col2 ) FROM tab2
----
104
117
34

query I rowsort
SELECT ALL col2 * - 29 * col1 FROM tab2 AS cor0
----
-18734
-24273
-44486

query I rowsort
SELECT col2 * - col1 * col0 FROM tab1 cor0
----
-36480
-4212
-99840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col0 + + col2 * - col2 col0 FROM tab2 AS cor0
----
-2704
-4446
-918

query I rowsort
SELECT DISTINCT - - col1 + 51 * 55 AS col1 FROM tab0 AS cor0
----
2891
2896
2902

query I rowsort
SELECT - col0 * - col2 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT + - col2 + 99 * + 24 FROM tab2 AS cor0
----
2338
2349
2350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + - 0 * - col1 col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT + ( col1 ) - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( - cor0.col2 ) * - col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 * col2 + col0 * - 92 AS col1 FROM tab0 AS cor0
----
-3123
-726
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 - col1 col0 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT ALL col2 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + ( - 30 ) col0 FROM tab0
----
119
54
65

query I rowsort
SELECT + 63 + cor0.col1 FROM tab0 AS cor0
----
149
154
160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + cor0.col1 col2 FROM tab1 cor0
----
20
26
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col0 col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT DISTINCT col2 + 77 + + col1 FROM tab1
----
144
157
186

query I rowsort
SELECT DISTINCT + 82 + - col2 + col1 AS col0 FROM tab0
----
135
178
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT - col0 * col1 DIV col0 AS col2 FROM tab2
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-4792
SELECT - col0 * col1 / col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT 95 * + col2 AS col2 FROM tab0
----
3135
7790
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT + ( + ( - col0 ) ) + col2 DIV tab1.col0 + + tab1.col2 FROM tab1
----
-7
17
69

skipif mysql # not compatible
query I rowsort label-4794
SELECT + ( + ( - col0 ) ) + col2 / tab1.col0 + + tab1.col2 FROM tab1
----
-7
17
69

query I rowsort
SELECT 40 + + col1 FROM tab1
----
50
53
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-4796
SELECT + col1 + col1 DIV - col0 FROM tab1 cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-4796
SELECT + col1 + col1 / - col0 FROM tab1 cor0
----
10
13
18

query I rowsort
SELECT + 86 + col2 AS col1 FROM tab0 AS cor0
----
119
168
87

query I rowsort
SELECT col2 + - ( + col0 ) AS col0 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT + - col1 * col1 + + col0 - + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-35
-672
-88

skipif mysql # not compatible
query I rowsort label-4799
SELECT + - col1 * col1 + + col0 - + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-35
-672
-88

query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT ALL + ( col0 + col2 ) DIV col1 col2 FROM tab1
----
12
13
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4801
SELECT ALL + ( col0 + col2 ) / col1 col2 FROM tab1
----
12
13
2

query I rowsort
SELECT DISTINCT ( 26 ) FROM tab2
----
26

query I rowsort
SELECT + col1 * 28 FROM tab0
----
2408
2548
2716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 + col0 ) * + col0 col0 FROM tab0
----
-16020
-2640
-4620

query I rowsort
SELECT 37 - cor0.col2 AS col2 FROM tab0 cor0
----
-45
36
4

query I rowsort
SELECT - col0 * - col0 - - col1 * + cor0.col1 FROM tab2 AS cor0
----
1010
6530
9565

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4807
SELECT ALL - CAST( + cor0.col0 AS SIGNED ) + + cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL - CAST ( + cor0.col0 AS INTEGER ) + + cor0.col0 * + col2 col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT ( - cor0.col1 ) + col0 * col2 AS col2 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT CAST( + 71 AS SIGNED ) - col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-3324
-664047
-68041

skipif mysql # not compatible
query I rowsort label-4809
SELECT CAST ( + 71 AS INTEGER ) - col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-3324
-664047
-68041

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
-86
-91
-97

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE col1 * - col1 NOT BETWEEN col0 * col0 * - col2 + col1 AND ( - col1 * col1 )
----

query I rowsort
SELECT + - cor0.col1 * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( col1 * col1 + + col0 ) NOT BETWEEN ( col0 ) AND - cor0.col1 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) <= ( - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT + col1 + col0 + - col1 DIV + col1 FROM tab1
----
28
73
92

skipif mysql # not compatible
query I rowsort label-4815
SELECT + col1 + col0 + - col1 / + col1 FROM tab1
----
28
73
92

query I rowsort
SELECT + col2 + col1 * + col1 AS col0 FROM tab0 WHERE NOT ( col0 * + col2 + + col2 + tab0.col2 * col1 ) NOT BETWEEN col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 col0 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT + col0 + col1 + col0 * tab1.col2 AS col2 FROM tab1
----
191
3722
7773

query I rowsort
SELECT - col1 * - col0 + + col1 FROM tab2
----
1360
248
4661

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col0 + + tab2.col1 FROM tab2
----
1671
742
875

query I rowsort
SELECT col0 * - col2 * col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT col2 - col2 * col2 FROM tab0 AS cor0
----
-1056
-6642
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE ( col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-4826
SELECT - col1 + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

skipif mysql # not compatible
query I rowsort label-4826
SELECT - col1 + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-12
-25
-9

query I rowsort
SELECT - col0 * col0 * cor0.col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

query I rowsort
SELECT DISTINCT - - col1 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + tab1.col2 * + col0 + 49 FROM tab1
----
211
3697
7729

onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT DISTINCT + col1 DIV - 79 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4830
SELECT DISTINCT + col1 / - 79 + - col1 AS col2 FROM tab0 AS cor0
----
-87
-92
-98

query I rowsort
SELECT - col2 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + 72 FROM tab0 AS cor0
----
105
154
73

query I rowsort
SELECT ALL - col0 + + 73 - - 51 FROM tab2 AS cor0
----
117
45
46

query I rowsort
SELECT ALL - - col1 + - col0 + 47 FROM tab0 AS cor0
----
109
109
49

query I rowsort
SELECT cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + col1 + 49 * - cor0.col1 * col0 + col0 * + col1 AS col2 FROM tab2 AS cor0
----
-10385
-220837
-64447

query I rowsort
SELECT - col2 + - 14 AS col1 FROM tab1 AS cor0
----
-110
-68
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4838
SELECT DISTINCT - col0 * ( - col2 ) DIV col1 FROM tab0 AS cor0
----
0
80
9

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - col0 * ( - col2 ) / col1 FROM tab0 AS cor0
----
0
80
9

query I rowsort
SELECT DISTINCT - 57 * 33 FROM tab1 AS cor0
----
-1881

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT 53 * - col2 + col2 FROM tab1 AS cor0
----
-2808
-2964
-4992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4842
SELECT - col1 / col2 - + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4842
SELECT - col1 / col2 - + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 20 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-442
-533
-681

query I rowsort
SELECT - ( + col2 ) * 66 FROM tab2 AS cor0
----
-1716
-1782
-2508

query I rowsort
SELECT + - ( - col0 ) * - ( col2 * - col2 ) AS col2 FROM tab0 AS cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + + col1 * col0 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT + col1 * col0 - - col0 AS col2 FROM tab0 cor0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT cor0.col0 - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 47 AS col2 FROM tab1 AS cor0
----
47
47
47

query I rowsort
SELECT ALL + - col1 * + col0 + 76 + col2 FROM tab1 AS cor0
----
-507
-868
52

query I rowsort
SELECT ALL col1 * 88 AS col1 FROM tab0 AS cor0
----
7568
8008
8536

query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col1 * 83 - + col2 FROM tab2 AS cor0
----
1373
2546
4871

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) AS col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT + col2 * 6 FROM tab0 AS cor0
----
198
492
6

query I rowsort
SELECT + col2 + 70 AS col0 FROM tab2 AS cor0
----
108
96
97

query I rowsort
SELECT col2 + col0 * - col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
-673
-7125
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-4859
SELECT DISTINCT col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT col1 / - cor0.col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT ALL 3 * tab1.col0 + - ( + tab1.col1 ) * col2 FROM tab1
----
-1008
-1395
-378

query I rowsort
SELECT ALL tab0.col2 * col1 - + col2 FROM tab0
----
2805
7380
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT ALL + tab0.col1 - col1 DIV - 43 FROM tab0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-4862
SELECT ALL + tab0.col1 - col1 / - 43 FROM tab0
----
88
93
99

query I rowsort
SELECT ALL col2 + + ( + col0 ) - col2 * 11 FROM tab0 AS cor0
----
-306
-731
25

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT ALL cor0.col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL cor0.col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + cor0.col2 * + 58 AS col0 FROM tab2 AS cor0
----
-1508
-1566
-2204

query I rowsort
SELECT - cor0.col2 + + 77 * - 63 FROM tab0 AS cor0
----
-4852
-4884
-4933

query I rowsort
SELECT cor1.col0 AS col1 FROM tab2, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT - col2 - + ( - col2 ) AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * - col1 + + col2 * - col2 AS col1 FROM tab1
----
-10256
-2994
-3889

query I rowsort
SELECT DISTINCT + col0 + col2 * - col0 AS col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT + ( + 6 ) AS col2 FROM tab1 AS cor0
----
6
6
6

query I rowsort
SELECT col0 * - 42 AS col2 FROM tab2
----
-294
-3276
-3318

query I rowsort
SELECT col2 * ( + 98 ) AS col2 FROM tab2
----
2548
2646
3724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT tab0.col2 / + CAST( NULL AS DECIMAL ) + - 37 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT tab0.col2 / + CAST ( NULL AS REAL ) + - 37 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - 70 + - col2 AS col0 FROM tab2 AS cor0
----
-108
-96
-97

query I rowsort
SELECT DISTINCT + 69 * + col0 * 97 FROM tab0 AS cor0
----
160632
234255
595677

onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT ALL + ( + tab0.col1 ) DIV - col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4878
SELECT ALL + ( + tab0.col1 ) / - col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - 48 + - col1 AS col2 FROM tab2
----
-107
-65
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - + col0 + + cor0.col0 * 89 FROM tab1 AS cor0
----
264
5632
7040

query I rowsort
SELECT DISTINCT 0 + - col1 * - ( - 49 ) AS col2 FROM tab2 AS cor0
----
-1519
-2891
-833

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 40 * + col1 + col2 col0 FROM tab1 AS cor0
----
-343
-424
-986

query I rowsort
SELECT - - 24 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT ALL + + col1 + col2 * 13 AS col1 FROM tab2 AS cor0
----
382
397
511

query I rowsort
SELECT ALL + 35 AS col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT 1 * + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT - col1 - - cor0.col0 * col2 FROM tab0 cor0
----
-62
706
7207

query I rowsort
SELECT + cor2.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4891
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 31 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
147
2041
2576

query I rowsort
SELECT cor0.col0 * + col1 + col1 * 4 FROM tab0 AS cor0
----
2408
3783
8463

query I rowsort
SELECT - - col2 * + col2 * - 21 - - col1 * col2 FROM tab0 AS cor0
----
-133742
-20031
76

query I rowsort
SELECT col0 * col0 + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT - ( col0 ) * ( + col1 ) + - col2 AS col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT - 14 * - col0 * col2 + + col1 AS col2 FROM tab0
----
102263
11174
587

onlyif mysql # use DIV operator for integer division
query I rowsort label-4898
SELECT ( col0 + - col2 ) DIV col1 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT ( col0 + - col2 ) / col1 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + col0 * 82 FROM tab0
----
1968
2870
7298

query I rowsort
SELECT cor0.col2 + cor0.col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT DISTINCT - - cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
2
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4902
SELECT + - col2 * col1 * col1 + ( col2 ) DIV col2 AS col1 FROM tab1 AS cor0
----
-16223
-36503
-5699

skipif mysql # not compatible
query I rowsort label-4902
SELECT + - col2 * col1 * col1 + ( col2 ) / col2 AS col1 FROM tab1 AS cor0
----
-16223
-36503
-5699

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT + col0 DIV cor0.col1 + - col2 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-4903
SELECT + col0 / cor0.col1 + - col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + 14 * + col0 AS col1 FROM tab1 cor0
----
1120
42
896

query I rowsort
SELECT ALL + - col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4906
SELECT col1 * CAST( - 71 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-6106
-6461
-6887

skipif mysql # not compatible
query I rowsort label-4906
SELECT col1 * CAST ( - 71 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-6106
-6461
-6887

query I rowsort
SELECT DISTINCT + col1 * + tab1.col0 * 41 AS col0 FROM tab1
----
26240
3198
42640

query I rowsort
SELECT - + col1 * 97 AS col1 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT col0 + - 39 * - col1 AS col1 FROM tab2
----
1216
2379
742

query I rowsort
SELECT + ( col1 ) * - col2 * - col0 FROM tab2 cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + col1 col0 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT - + ( col0 ) * + cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + 71 * col1 * col1 FROM tab1 AS cor0
----
11999
47996
7100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - ( col2 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT - - 43 AS col0 FROM tab1 cor0
----
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT DISTINCT - - CAST( + col0 AS SIGNED ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - - CAST ( + col0 AS INTEGER ) * col0 col1 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col1 * CAST ( - 89 AS REAL ) FROM tab2
----
-1513
-2759
-5251

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - 64 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 100c625e45715c20368551989514ba64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * col0 col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT + + 40 + col1 * - cor0.col0 AS col0 FROM tab0 cor0
----
-2024
-3355
-8059

onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT + ( + 21 ) DIV col1 FROM tab1 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4922
SELECT + ( + 21 ) / col1 FROM tab1 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT ( - 45 ) FROM tab0
----
-45

query I rowsort
SELECT + ( - 16 ) * - tab2.col1 + + 55 AS col0 FROM tab2
----
327
551
999

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4925
SELECT col1 * col0 * + CAST( - 5 AS SIGNED ) AS col0 FROM tab1
----
-3200
-390
-5200

skipif mysql # not compatible
query I rowsort label-4925
SELECT col1 * col0 * + CAST ( - 5 AS INTEGER ) AS col0 FROM tab1
----
-3200
-390
-5200

query I rowsort
SELECT ALL + cor0.col1 * col2 + - col0 AS col2 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT ALL 27 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT + ( col0 ) * tab1.col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT col2 * - col0 * + col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT ( 3 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4932
SELECT col1 - + col1 DIV + col1 col2 FROM tab1
----
12
25
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4932
SELECT col1 - + col1 / + col1 col2 FROM tab1
----
12
25
9

query I rowsort
SELECT - col1 * ( col1 * cor0.col0 ) FROM tab2 AS cor0
----
-22831
-271518
-6727

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c

query I rowsort
SELECT - cor1.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT col1 - tab1.col0 AS col0 FROM tab1
----
-54
-67
23

query I rowsort
SELECT DISTINCT + 13 FROM tab0, tab1 AS cor0
----
13

query I rowsort
SELECT ALL 82 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

query I rowsort
SELECT + + 49 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT - cor0.col2 * cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 760e91273f37834612f88abef6e165f8

skipif mysql # not compatible
query I rowsort
SELECT + col2 * - col0 + + CAST ( + col2 AS REAL ) AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT + tab0.col0 + - col2 * tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT + 97 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 AS col2 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT col2 + col0 + 57 AS col0 FROM tab0
----
114
228
93

query I rowsort
SELECT DISTINCT - col1 * col0 * col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT col0 * col0 + col0 AS col1 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT - col2 + - cor0.col2 * - col1 FROM tab1 cor0
----
1152
1350
513

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + col2 col1 FROM tab2 cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col1 col2 FROM tab1 AS cor0
----
-330
-429
-858

onlyif mysql # use DIV operator for integer division
query I rowsort label-4951
SELECT ALL 97 * + col2 + 81 DIV ( + col1 * + col2 ) AS col1 FROM tab0 AS cor0
----
3201
7954
97

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL 97 * + col2 + 81 / ( + col1 * + col2 ) AS col1 FROM tab0 AS cor0
----
3201
7954
97

query I rowsort
SELECT DISTINCT 47 * - cor0.col1 FROM tab2, tab2 AS cor0
----
-1457
-2773
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * ( col0 ) - col0 col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT ALL - col1 * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT DISTINCT col0 * - col1 - 13 AS col2 FROM tab2 AS cor0
----
-1356
-230
-4615

query I rowsort
SELECT col2 * ( col0 + + col0 ) FROM tab1 AS cor0
----
15360
324
7296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
2

query I rowsort
SELECT ALL 84 * cor0.col0 AS col1 FROM tab2 AS cor0
----
588
6552
6636

query I rowsort
SELECT + 92 * col1 - + cor0.col2 FROM tab0 cor0
----
7879
8290
8923

query I rowsort
SELECT ALL + + col2 + - 61 FROM tab0 AS cor0
----
-28
-60
21

query I rowsort
SELECT + col2 + 92 AS col0 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT col0 + - col2 * - col0 FROM tab1 AS cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4964
SELECT ALL - - ( 81 ) DIV - col0 FROM tab1 cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-4964
SELECT ALL - - ( 81 ) / - col0 FROM tab1 cor0
----
-1
-1
-27

query I rowsort
SELECT - col1 - + 58 AS col0 FROM tab0 AS cor0
----
-144
-149
-155

query I rowsort
SELECT col0 + 42 * col1 AS col1 FROM tab0 AS cor0
----
3636
3911
4109

onlyif mysql # use DIV operator for integer division
query I rowsort label-4967
SELECT ALL + - cor0.col2 DIV + col1 col1 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4967
SELECT ALL + - cor0.col2 / + col1 col1 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - - col1 * + 69 + col2 - col2 * - col0 FROM tab0 AS cor0
----
13659
6729
6759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 * - col2 col1 FROM tab1 AS cor0
----
-2862
-3192
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-4970
SELECT DISTINCT col2 + + col1 DIV + col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-4970
SELECT DISTINCT col2 + + col1 / + col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT + + 72 * 54 AS col0 FROM tab0 AS cor0
----
3888
3888
3888

onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT ALL - col0 DIV col1 + + col2 AS col2 FROM tab2 cor0
----
25
27
34

skipif mysql # not compatible
query I rowsort label-4972
SELECT ALL - col0 / col1 + + col2 AS col2 FROM tab2 cor0
----
25
27
34

query I rowsort
SELECT - ( col2 ) * col1 + col1 * + col0 AS col2 FROM tab0 cor0
----
-774
3298
637

query I rowsort
SELECT DISTINCT - - 99 * - 77 FROM tab0 AS cor0
----
-7623

query I rowsort
SELECT ALL + 63 * - col0 * - col1 + 40 * ( col0 ) FROM tab0 AS cor0
----
130992
215285
513797

query I rowsort
SELECT ALL col1 + cor0.col1 * col1 AS col0 FROM tab1 cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 * - col1 col1 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - col2 + - ( col1 ) * + col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 * 74 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c7cab9fb73a4f411b221f0df1002b29

query I rowsort
SELECT ALL - + col2 * col1 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT DISTINCT + 88 - - col0 FROM tab1 AS cor0
----
152
168
91

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT ALL CAST( NULL AS DECIMAL ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL CAST ( NULL AS REAL ) + - col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 60 * col2 FROM tab0 cor0
----
1980
4920
60

query I rowsort
SELECT DISTINCT - 34 * + 71 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1685
-1738
-970

query I rowsort
SELECT ALL - 15 FROM tab1, tab1 cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query I rowsort
SELECT DISTINCT - ( 50 ) * + col2 AS col0 FROM tab0
----
-1650
-4100
-50

query I rowsort
SELECT + 88 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177

query I rowsort
SELECT DISTINCT ( - 38 ) - - cor0.col0 * cor0.col2 AS col2 FROM tab2 cor0
----
151
1990
2964

query I rowsort
SELECT + - 51 * col1 - + 76 * + col2 AS col0 FROM tab0 AS cor0
----
-10873
-5023
-6894

onlyif mysql # use DIV operator for integer division
query I rowsort label-4990
SELECT col1 + - col0 DIV - ( 30 ) FROM tab2 AS cor0
----
19
31
61

skipif mysql # not compatible
query I rowsort label-4990
SELECT col1 + - col0 / - ( 30 ) FROM tab2 AS cor0
----
19
31
61

query I rowsort
SELECT - cor0.col1 * col2 - + col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT col0 * col1 - ( col0 + col1 ) * - 83 AS col1 FROM tab1 AS cor0
----
2485
6782
8759

onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT - col2 DIV col2 + - col1 AS col2 FROM tab1
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-4993
SELECT - col2 / col2 + - col1 AS col2 FROM tab1
----
-11
-14
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT DISTINCT - col0 + + col2 DIV 20 FROM tab2 AS cor0
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT - col0 + + col2 / 20 FROM tab2 AS cor0
----
-6
-77
-78

query I rowsort
SELECT ALL + - col2 * - 60 FROM tab2 AS cor0
----
1560
1620
2280

query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col2 + - 34 AS col0 FROM tab1 AS cor0
----
128
3614
7646

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4997
SELECT col1 * CAST( 24 + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1705
4897
697

skipif mysql # not compatible
query I rowsort label-4997
SELECT col1 * CAST ( 24 + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1705
4897
697

query I rowsort
SELECT + col0 * - col2 + + 89 FROM tab2 cor0
----
-100
-1939
-2913

query I rowsort
SELECT ALL - cor0.col2 * - ( - col1 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT - col2 + 10 DIV 58 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5000
SELECT - col2 + 10 / 58 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - col0 * - 37 FROM tab1 AS cor0
----
-111
-2368
-2960

query I rowsort
SELECT DISTINCT - ( col2 ) + - col1 + col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT DISTINCT + 68 + col2 DIV col1 AS col1 FROM tab2
----
68
70

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT + 68 + col2 / col1 AS col1 FROM tab2
----
68
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-5004
SELECT - 47 DIV col0 + col2 FROM tab1
----
39
57
96

skipif mysql # not compatible
query I rowsort label-5004
SELECT - 47 / col0 + col2 FROM tab1
----
39
57
96

query I rowsort
SELECT ( + col0 ) * 63 FROM tab1
----
189
4032
5040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5006
SELECT ( - col2 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT ( - col2 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT + col2 DIV + col2 + - col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-5008
SELECT + col2 / + col2 + - col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab1, tab0 AS cor0
----
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT + + 60 DIV col0 FROM tab1 AS cor0
----
0
0
20

skipif mysql # not compatible
query I rowsort label-5010
SELECT + + 60 / col0 FROM tab1 AS cor0
----
0
0
20

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2, tab2
----
13122 values hashing to e51f5b126dab5e1ba60e8e2ae2792c1f

query I rowsort
SELECT ALL - col0 * - 15 FROM tab2
----
105
1170
1185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * col0 * col2 col0 FROM tab1 AS cor0
----
233472
486
614400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5014
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + ( 77 ) * - col1 FROM tab0 AS cor0
----
-6589
-6925
-7468

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5016
SELECT DISTINCT - col2 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - col2 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 84 col1 FROM tab1
----
-12
27
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT col0 * CAST( NULL AS SIGNED ) + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5018
SELECT col0 * CAST ( NULL AS INTEGER ) + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + cor0.col1 + + col1 * + col1 AS col0 FROM tab0 AS cor0
----
4558
819
9312

query I rowsort
SELECT + col1 + - col2 - - cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1322
221
4635

onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT + col2 * 75 DIV tab2.col0 AS col0 FROM tab2
----
25
289
36

skipif mysql # not compatible
query I rowsort label-5021
SELECT + col2 * 75 / tab2.col0 AS col0 FROM tab2
----
25
289
36

query I rowsort
SELECT + - col0 * + 26 + - 76 AS col1 FROM tab1 AS cor0
----
-154
-1740
-2156

query I rowsort
SELECT + col0 * + 22 AS col0 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT DISTINCT 36 - + cor0.col0 FROM tab1, tab2 AS cor0
----
-42
-43
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT DISTINCT + 89 + 44 DIV + col2 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + 89 + 44 / + col2 FROM tab1 AS cor0
----
89

query I rowsort
SELECT ALL + ( + col2 ) * + col2 + 83 AS col0 FROM tab0 AS cor0
----
1172
6807
84

query I rowsort
SELECT + + 38 * - col0 AS col1 FROM tab2 AS cor0
----
-266
-2964
-3002

query I rowsort
SELECT ALL - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL col0 - - col1 * - col2 FROM tab2 cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5030
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + + col2 col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + + col2 col1 FROM tab1 AS cor0
----
108
114
192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5031
SELECT + CAST( 22 AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
102
25
86

skipif mysql # not compatible
query I rowsort label-5031
SELECT + CAST ( 22 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
102
25
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5032
SELECT + col1 * + 38 + - col1 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT + col1 * + 38 + - col1 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT - - cor0.col1 DIV cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-5033
SELECT - - cor0.col1 / cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT - ( - 77 ) * col1 + + col2 FROM tab1 AS cor0
----
1097
2056
827

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + 75 col0 FROM tab0 AS cor0
----
169
169
169

query I rowsort
SELECT + ( col2 ) * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 48 + - col2 FROM tab1 AS cor0
----
-48
-6
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * - cor0.col0 col0 FROM tab2 cor0
----
1343
217
4602

query I rowsort
SELECT + col0 + + 24 * col2 AS col1 FROM tab1
----
1299
1432
2384

query I rowsort
SELECT col1 * - col0 + 45 FROM tab0 AS cor0
----
-2019
-3350
-8054

query I rowsort
SELECT + col2 * col2 + - 68 AS col1 FROM tab2 AS cor0
----
1376
608
661

query I rowsort
SELECT + col2 * + col0 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + 33 + - col2 * col2 * col2 FROM tab1 AS cor0
----
-157431
-185160
-884703

query I rowsort
SELECT 54 * - col0 FROM tab2 AS cor0
----
-378
-4212
-4266

query I rowsort
SELECT ALL col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT + 33 * - col0 * - ( + col1 ) FROM tab2 AS cor0
----
151866
44319
7161

query I rowsort
SELECT - ( col0 ) * ( + col2 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL 51 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1197
-1353
-519

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 DISTINCT + col0 - + 44 FROM tab2 AS cor0
----
-37
34
35

query I rowsort
SELECT + col1 * col1 * + 77 AS col2 FROM tab1 cor0
----
13013
52052
7700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 58 col2 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT + 91 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT DISTINCT + col1 * - 69 + - col0 FROM tab0 AS cor0
----
-5958
-6368
-6728

query I rowsort
SELECT ALL - + 44 * + col2 AS col0 FROM tab1 AS cor0
----
-2376
-2508
-4224

query I rowsort
SELECT ALL + - col0 + 36 * - col1 AS col1 FROM tab2 AS cor0
----
-1123
-2202
-691

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5057
SELECT col0 * - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5057
SELECT col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor1.col2 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
2838
7462
97

query I rowsort
SELECT ALL - 86 * - tab1.col0 FROM tab1
----
258
5504
6880

query I rowsort
SELECT - + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT - ( + col2 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5061
SELECT - ( + col2 ) / col1 AS col0 FROM tab1 AS cor0
----
-2
-5
-7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT + ( ( cor0.col1 ) ) * CAST( NULL AS DECIMAL ) + col2 * + col2 + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT + ( ( cor0.col1 ) ) * CAST ( NULL AS REAL ) + col2 * + col2 + 52 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 69 * col0 FROM tab2
----
490
5460
5530

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5064
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5064
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * tab1.col1 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT CAST( NULL AS SIGNED ) + cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 30 + ( - col1 ) + - 13 FROM tab2
----
-14
-42
0

query I rowsort
SELECT - 14 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5068
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 87 / + col2 + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5068
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 87 / + col2 + col0 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5069
SELECT - col0 + - col2 DIV col2 AS col0 FROM tab1
----
-4
-65
-81

skipif mysql # not compatible
query I rowsort label-5069
SELECT - col0 + - col2 / col2 AS col0 FROM tab1
----
-4
-65
-81

query I rowsort
SELECT - col2 + - col2 + col1 * col1 FROM tab2 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> col1
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + col1 NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 * + col2 <> NULL
----

query I rowsort
SELECT col0 + col2 * - col1 AS col2 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT DISTINCT col2 DIV + col1 col2 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT col2 / + col1 col2 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT - col1 * col1 DIV - col2 FROM tab1
----
1
1
12

skipif mysql # not compatible
query I rowsort label-5076
SELECT - col1 * col1 / - col2 FROM tab1
----
1
1
12

query I rowsort
SELECT - + 45 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT DISTINCT + col2 DIV tab0.col2 + tab0.col2 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5078
SELECT DISTINCT + col2 / tab0.col2 + tab0.col2 AS col2 FROM tab0
----
2
34
83

query III rowsort
SELECT * FROM tab2 WHERE col1 + + col1 NOT IN ( - col0 + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT DISTINCT + col1 - - tab1.col1 * col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT col0 + tab0.col1 * + col0 AS col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - col1 + + col2 < col1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 col2 FROM tab2
----
1444
676
729

query I rowsort
SELECT col2 * col2 + + tab0.col1 * - col0 * tab0.col0 AS col2 FROM tab0 WHERE NOT col1 + - col0 NOT BETWEEN + col0 + + col2 AND ( NULL )
----

query I rowsort
SELECT + col1 * - col2 * tab0.col2 AS col2 FROM tab0
----
-611884
-93654
-97

query I rowsort
SELECT - cor0.col2 + + col2 + + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + tab0.col0 * col2 + + tab0.col0 FROM tab0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5088
SELECT ALL col0 + col1 * + col2 * col2 + col1 * + col0 DIV col0 col2 FROM tab1
----
119901
32564
75845

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL col0 + col1 * + col2 * col2 + col1 * + col0 / col0 col2 FROM tab1
----
119901
32564
75845

query I rowsort
SELECT col0 + + col0 - - col2 AS col0 FROM tab2
----
182
196
41

query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab2
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-5091
SELECT DISTINCT - col1 DIV + col1 + tab0.col1 * col2 col1 FROM tab0
----
2837
7461
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT - col1 / + col1 + tab0.col1 * col2 col1 FROM tab0
----
2837
7461
96

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NULL NOT BETWEEN col0 AND col2
----

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL >= col0
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT NULL <= cor0.col1
----

query I rowsort
SELECT ALL cor0.col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + cor0.col0 )
----

query I rowsort
SELECT - + ( - cor1.col1 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT ALL - - col1 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL - - col1 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5098
SELECT - CAST( 90 + - col2 AS SIGNED ) FROM tab0
----
-57
-8
-89

skipif mysql # not compatible
query I rowsort label-5098
SELECT - CAST ( 90 + - col2 AS INTEGER ) FROM tab0
----
-57
-8
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * - cor0.col2 * col0 col2 FROM tab0 AS cor0
----
-1224
-18975
-649440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5100
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-5100
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT ALL + ( col1 ) + - col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-5102
SELECT DISTINCT col2 DIV 70 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT col2 / 70 FROM tab1
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5103
SELECT - + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5103
SELECT - + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + - ( + ( + cor0.col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT 21 * + col1 * col0 FROM tab0
----
170079
43344
71295

onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT ALL col2 DIV col1 - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL col2 / col1 - col2 AS col2 FROM tab1 AS cor0
----
-52
-52
-89

query I rowsort
SELECT ALL + ( + col2 ) * cor0.col2 - + 76 AS col2 FROM tab0 AS cor0
----
-75
1013
6648

onlyif mysql # use DIV operator for integer division
query I rowsort label-5109
SELECT + - col0 * - cor0.col2 + 55 DIV cor0.col1 FROM tab2 AS cor0
----
190
2028
3005

skipif mysql # not compatible
query I rowsort label-5109
SELECT + - col0 * - cor0.col2 + 55 / cor0.col1 FROM tab2 AS cor0
----
190
2028
3005

query I rowsort
SELECT DISTINCT + 51 * + col0 - 8 AS col0 FROM tab1 AS cor0
----
145
3256
4072

query I rowsort
SELECT col1 * + col0 - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT + - col2 * ( - col0 ) + + col0 FROM tab1 AS cor0
----
165
3712
7760

query I rowsort
SELECT + col0 * ( - 94 ) FROM tab1 AS cor0
----
-282
-6016
-7520

query I rowsort
SELECT - + col1 + cor0.col1 + cor0.col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT ALL cor0.col1 * ( - ( cor0.col2 ) ) + col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + - col1 + 27 FROM tab0 AS cor0
----
-59
-64
-70

query I rowsort
SELECT DISTINCT - col0 - - ( 84 + + col2 ) AS col0 FROM tab1 cor0
----
100
135
77

query I rowsort
SELECT DISTINCT - col2 + + 2 FROM tab1 AS cor0
----
-52
-55
-94

query I rowsort
SELECT + - 67 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99

query I rowsort
SELECT col1 + - ( col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col1 * + col0 + 58 * - col0 AS col1 FROM tab2 cor0
----
-189
-3239
78

query I rowsort
SELECT - col2 * - ( - col2 * col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-157490
-185203
-884749

query I rowsort
SELECT col2 * col1 * 14 FROM tab0
----
104468
1358
39732

query I rowsort
SELECT + 0 * col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - 89 * 83 FROM tab0 AS cor0
----
7387
7387
7387

query I rowsort
SELECT 37 * cor0.col0 FROM tab0 AS cor0
----
1295
3293
888

query I rowsort
SELECT 35 FROM tab1, tab2 cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT + - col2 * 12 * - cor0.col2 FROM tab0 AS cor0
----
12
13068
80688

query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * - col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col0 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 - - col0 * tab2.col0 AS col0 FROM tab2
----
18
6025
6224

query I rowsort
SELECT - ( - 48 ) FROM tab1
----
48
48
48

query I rowsort
SELECT + + 17 * col0 AS col2 FROM tab0 AS cor0
----
1513
408
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT ALL + col2 * + col1 * col2 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - 39 FROM tab2, tab2 AS cor0
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + 12 * - tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 55c6a5f430711733abf4c53f3b59707d

query I rowsort
SELECT - 59 - - 63 AS col1 FROM tab2
----
4
4
4

query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5141
SELECT DISTINCT + col0 DIV + tab0.col1 + + 2 * 24 * - col2 AS col1 FROM tab0
----
-1584
-3936
-48

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + col0 / + tab0.col1 + + 2 * 24 * - col2 AS col1 FROM tab0
----
-1584
-3936
-48

query I rowsort
SELECT - cor0.col2 + 89 FROM tab2 AS cor0
----
51
62
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5144
SELECT + + col1 * col1 DIV col0 + - cor0.col1 FROM tab0 AS cor0
----
171
2
222

skipif mysql # not compatible
query I rowsort label-5144
SELECT + + col1 * col1 / col0 + - cor0.col1 FROM tab0 AS cor0
----
171
2
222

query I rowsort
SELECT - tab2.col0 * - col2 AS col2 FROM tab2
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 66 * col2 col2 FROM tab0 AS cor0
----
2145
5330
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + + col0 * col1 + + 64 AS col1 FROM tab1 AS cor0
----
1104
142
704

query I rowsort
SELECT - cor0.col1 * - 3 FROM tab0 AS cor0
----
258
273
291

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT - col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5150
SELECT - col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col2 + col2 + - col2 AS col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-5152
SELECT tab1.col1 DIV + col2 + - tab1.col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5152
SELECT tab1.col1 / + col2 + - tab1.col2 FROM tab1
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT - tab0.col0 DIV col2 + + col0 AS col2 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-5153
SELECT - tab0.col0 / col2 + + col0 AS col2 FROM tab0
----
0
24
88

query I rowsort
SELECT col1 + + col1 - col2 AS col1 FROM tab1
----
-2
-37
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 - + col0 * col0 * col2 col0 FROM tab0
----
-1322
-19094
-649613

query I rowsort
SELECT ALL - col2 + - tab1.col2 * - tab1.col2 + - col1 * col0 AS col2 FROM tab1
----
2552
2784
8080

onlyif mysql # use DIV operator for integer division
query I rowsort label-5157
SELECT DISTINCT + tab0.col0 DIV col0 + + col1 AS col1 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + tab0.col0 / col0 + + col1 AS col1 FROM tab0
----
87
92
98

query I rowsort
SELECT ALL tab1.col2 + col1 AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT col0 * col2 + - col1 * + col0 AS col2 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT - + col0 * col1 + col1 + col0 FROM tab1 AS cor0
----
-49
-566
-947

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN + col0 + + col1 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col2 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT col1 * + col2 * cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT ALL + col2 DIV col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1
-59
-73

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + col2 / col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1
-59
-73

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL + - col0 * + col0 + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT ALL col1 * - col1 + cor0.col0 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ( + col0 ) + - col1 AS col0 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT + 71 * col2 + col1 FROM tab0 AS cor0
----
168
2429
5913

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + col0 col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 29 + + col0 col1 FROM tab1 AS cor0
----
109
32
93

query I rowsort
SELECT + + 20 * col0 AS col0 FROM tab0 cor0
----
1780
480
700

onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT DISTINCT - + col2 + cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - + col2 + cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

query I rowsort
SELECT ALL + - col1 * + col0 * col0 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT ALL - col0 - col2 * col1 * col2 AS col1 FROM tab2 AS cor0
----
-22606
-24627
-39962

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 + - col0 * - col0 col1 FROM tab1 AS cor0
----
32
4119
6423

query I rowsort
SELECT DISTINCT + col0 * - col1 + col2 + - ( col0 ) AS col0 FROM tab2 cor0
----
-1384
-197
-4654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 75 * - col2 - col1 col2 FROM tab0 AS cor0
----
-22
2389
6059

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * 20 * + ( + col1 + - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
151697
213779
5351

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5183
SELECT ( + cor0.col0 ) * CAST( col0 * col2 + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
21072
4620
657621

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5183
SELECT ( + cor0.col0 ) * CAST ( col0 * col2 + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
21072
4620
657621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + 49 * col0 + - col0 * cor0.col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3019
1679
351

query I rowsort
SELECT ALL - col1 * - col1 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT + cor0.col2 - + col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT - 87 * - col0 FROM tab0 AS cor0
----
2088
3045
7743

query I rowsort
SELECT ALL + col2 + col1 + - col0 * 36 AS col1 FROM tab0 AS cor0
----
-1162
-3031
-745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - col0 * col0 col1 FROM tab1 AS cor0
----
-4032
-6
-6320

query I rowsort
SELECT DISTINCT + col0 + - 72 FROM tab2 AS cor0
----
-65
6
7

query I rowsort
SELECT DISTINCT - - col2 + - col1 + 36 AS col1 FROM tab1 AS cor0
----
119
64
83

query I rowsort
SELECT ALL + cor0.col2 * - ( - cor0.col0 ) - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-5194
SELECT DISTINCT + cor0.col1 DIV col0 FROM tab2 AS cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-5194
SELECT DISTINCT + cor0.col1 / col0 FROM tab2 AS cor0
----
0
4

query I rowsort
SELECT ALL - + cor0.col0 * + 69 FROM tab2 AS cor0
----
-483
-5382
-5451

query I rowsort
SELECT - cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT ( + col1 ) * col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT ALL - 74 * 46 * col2 AS col0 FROM tab0 AS cor0
----
-112332
-279128
-3404

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT ALL + + 62 + col2 FROM tab0 AS cor0
----
144
63
95

query I rowsort
SELECT DISTINCT + col1 + - 6 * col2 FROM tab0
----
-112
-401
91

query I rowsort
SELECT DISTINCT col0 + 13 FROM tab1
----
16
77
93

query I rowsort
SELECT 56 + col1 * col2 FROM tab0
----
153
2894
7518

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5205
SELECT ALL - cor0.col0 + cor0.col1 * - CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
-132
-2862
-7551

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL - cor0.col0 + cor0.col1 * - CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT 92 DIV col0 - - col1 AS col0 FROM tab2
----
18
44
60

skipif mysql # not compatible
query I rowsort label-5206
SELECT 92 / col0 - - col1 AS col0 FROM tab2
----
18
44
60

query I rowsort
SELECT DISTINCT + tab0.col0 * - col1 + + tab0.col2 * + col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT 67 * col0 AS col0 FROM tab1
----
201
4288
5360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + - col1 * + col2 col2 FROM tab1
----
-1188
-1344
-510

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col1 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT col1 * - col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5211
SELECT col1 * - col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 3 ) + col0 + - col2 * col1 AS col2 FROM tab2
----
-1453
-564
-827

onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT ALL 58 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL 58 / - tab0.col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 21 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT + 96 * col2 AS col2 FROM tab1 AS cor0
----
5184
5472
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col1 * 78 col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a236b70a905996e346a48af540ce3691

query I rowsort
SELECT - tab1.col2 * + tab1.col2 * - col1 FROM tab1
----
119808
32490
75816

query I rowsort
SELECT - 65 * col1 FROM tab1 AS cor0
----
-1690
-650
-845

onlyif mysql # use DIV operator for integer division
query I rowsort label-5219
SELECT + col1 * 56 DIV - tab1.col2 FROM tab1
----
-26
-7
-9

skipif mysql # not compatible
query I rowsort label-5219
SELECT + col1 * 56 / - tab1.col2 FROM tab1
----
-26
-7
-9

query I rowsort
SELECT ALL tab1.col2 + + tab1.col2 * col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL col2 + + ( col0 ) FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5222
SELECT ALL col1 * 99 + tab0.col2 DIV col0 AS col2 FROM tab0
----
8515
9009
9603

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL col1 * 99 + tab0.col2 / col0 AS col2 FROM tab0
----
8515
9009
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * cor0.col1 * + 86 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 73b0653792190f8caa96444347b8b748

query I rowsort
SELECT DISTINCT col2 + + ( 97 * + col2 ) AS col1 FROM tab2 AS cor0
----
2548
2646
3724

query I rowsort
SELECT ALL + 74 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL col0 + - ( - 10 ) FROM tab0
----
34
45
99

query I rowsort
SELECT + cor0.col1 * col1 + col1 * + 7 AS col1 FROM tab1 AS cor0
----
170
260
858

query I rowsort
SELECT ALL - col1 + + 23 AS col2 FROM tab0 cor0
----
-63
-68
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT DISTINCT ( col1 ) + cor0.col0 DIV - 83 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5230
SELECT DISTINCT ( col1 ) + cor0.col0 / - 83 FROM tab1 AS cor0
----
10
13
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5231
SELECT DISTINCT - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col2 + - 39 AS col1 FROM tab2 AS cor0
----
-1
-12
-13

query I rowsort
SELECT ALL + col2 * 54 FROM tab1 AS cor0
----
2916
3078
5184

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col2 FROM tab2 AS cor0
----
1406
650
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-5235
SELECT tab1.col2 DIV col0 col0 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5235
SELECT tab1.col2 / col0 col0 FROM tab1
----
0
1
18

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5236
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col0 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col0 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * - ( col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT 71 - col2 FROM tab0 cor0
----
-11
38
70

query I rowsort
SELECT ( - col2 ) * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT - ( - ( - col2 ) ) DIV - ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5240
SELECT - ( - ( - col2 ) ) / - ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT ALL - - ( col1 ) * + col2 + + col1 * - col0 FROM tab2 AS cor0
----
-3068
-697
620

query I rowsort
SELECT + 62 + col2 FROM tab1 AS cor0
----
116
119
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * col1 col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT col1 * 65 + - 1 * col2 AS col1 FROM tab2 AS cor0
----
1067
1988
3809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col1 FROM tab2, tab1 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT - + col2 * 3 AS col0 FROM tab0 AS cor0
----
-246
-3
-99

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * cor0.col2 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 44bc5334d6e7adab2bd9631469888c1e

query I rowsort
SELECT DISTINCT col1 * - 99 AS col2 FROM tab0 cor0
----
-8514
-9009
-9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5250
SELECT - + ( col2 ) * + col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5250
SELECT - + ( col2 ) * + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 68 * + col1 AS col0 FROM tab0 AS cor0
----
-5848
-6188
-6596

query I rowsort
SELECT + cor0.col2 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL ( ( - col0 ) ) + col1 * col1 AS col1 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT col0 * ( - col2 ) FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + 77 * + cor1.col0 * cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
9 values hashing to c13fed87fe6e6b785b63850e890f84e0

query I rowsort
SELECT 87 + col0 FROM tab1
----
151
167
90

query I rowsort
SELECT ( ( + col1 ) * + 62 ) AS col0 FROM tab1
----
1612
620
806

query I rowsort
SELECT 58 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT ALL col0 * tab2.col1 * col2 AS col2 FROM tab2
----
119652
51034
5859

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5260
SELECT ALL - CAST( NULL AS DECIMAL ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL - CAST ( NULL AS REAL ) * + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 36 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT - col1 * + col1 + + col0 - - 3 * - col0 FROM tab2 AS cor0
----
-3637
-447
-975

query I rowsort
SELECT - 47 * col2 FROM tab2 cor0
----
-1222
-1269
-1786

query I rowsort
SELECT + col2 * + col1 + col1 * col2 * + col2 + 12 AS col1 FROM tab2 AS cor0
----
23448
25206
41430

query I rowsort
SELECT 26 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37

query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col0 FROM tab2, tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5267
SELECT DISTINCT CAST( 40 AS SIGNED ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT CAST ( 40 AS INTEGER ) AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-5268
SELECT ( col2 ) DIV + 1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5268
SELECT ( col2 ) / + 1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * + col1 * - ( + 62 ) col2 FROM tab0
----
-175956
-462644
-6014

query I rowsort
SELECT ALL - + col0 * - col1 * col0 + - col1 FROM tab2 AS cor0
----
106080
1488
358897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + ( col2 ) * col0 col1 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL cor0.col0 + - col2 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - col2 + - cor0.col1 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT ALL col0 * 1 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - 33 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query I rowsort
SELECT DISTINCT col2 + tab0.col2 - + col1 * col1 FROM tab0
----
-7330
-8117
-9407

query I rowsort
SELECT DISTINCT - col1 * - 71 FROM tab1 cor0
----
1846
710
923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5278
SELECT DISTINCT + cor0.col2 + + CAST( col1 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + cor0.col2 + + CAST ( col1 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT - + col2 + + col0 + - col1 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT + + col2 + + 74 - + cor0.col1 FROM tab1 AS cor0
----
102
121
157

query I rowsort
SELECT + col1 + ( + 0 ) + + col2 AS col1 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT + col0 * 16 + col0 FROM tab2 cor0
----
119
1326
1343

query I rowsort
SELECT + col1 + - col0 - - col0 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - col1 * 88 AS col2 FROM tab2 AS cor0
----
-1496
-2728
-5192

query I rowsort
SELECT tab0.col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - 94 * 6 + - col0 FROM tab2 AS cor0
----
-571
-642
-643

query I rowsort
SELECT + - ( - col2 ) * col0 + - ( col2 ) FROM tab0 AS cor0
----
34
7216
759

onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT - + col2 DIV col0 AS col1 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5288
SELECT - + col2 / col0 AS col1 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 19 + col1 * col2 AS col2 FROM tab0 AS cor0
----
2819
7443
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL + col1 * col1 + + 99 AS col2 FROM tab1 AS cor0
----
199
268
775

query I rowsort
SELECT DISTINCT - tab1.col1 + col0 * ( col1 ) AS col2 FROM tab1
----
1027
52
630

query I rowsort
SELECT + - 50 * col0 + col0 + col1 FROM tab0 AS cor0
----
-1090
-1618
-4270

query I rowsort
SELECT + tab2.col0 * + col0 AS col1 FROM tab2
----
49
6084
6241

query I rowsort
SELECT ALL + col1 * ( tab2.col1 + tab2.col2 ) FROM tab2
----
1798
5015
935

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT DISTINCT col1 DIV ( + col1 + tab2.col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT col1 / ( + col1 + tab2.col1 ) FROM tab2
----
0

query I rowsort
SELECT - col1 * ( 91 + col2 ) FROM tab0
----
-10664
-15743
-8924

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0, tab2 cor0
----
40

query I rowsort
SELECT DISTINCT 39 * - tab2.col0 AS col1 FROM tab2
----
-273
-3042
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - col1 * + col1 + col1 + ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-7277
-8108
-9311

query I rowsort
SELECT ( col1 ) * col2 + + col1 + - ( + cor0.col0 ) * ( col0 * col2 ) FROM tab2 cor0
----
-156591
-236495
-455

query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col1 AS REAL ) * - cor0.col1 col2 FROM tab2 cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT + col0 * col0 * + col0 FROM tab0 cor0
----
13824
42875
704969

query I rowsort
SELECT + cor0.col1 * 85 FROM tab0 AS cor0
----
7310
7735
8245

query I rowsort
SELECT DISTINCT col0 * col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT - + col0 * ( - col2 ) FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - col0 * + col0 + + col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT DISTINCT 30 + - col1 AS col2 FROM tab0
----
-56
-61
-67

query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + col1 - col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT - - col1 * col0 - 76 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-120
-1898
52

query I rowsort
SELECT DISTINCT - ( + col2 ) + 37 * col2 AS col1 FROM tab2 cor0
----
1368
936
972

query I rowsort
SELECT ALL cor0.col2 * col0 + + 84 * - 13 * + col1 AS col1 FROM tab2 AS cor0
----
-15562
-33663
-62400

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT DISTINCT + 76 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
2
76

skipif mysql # not compatible
query I rowsort label-5316
SELECT DISTINCT + 76 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
2
76

query I rowsort
SELECT + + col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL - + col2 * ( - ( col1 ) + col2 ) FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT DISTINCT + - cor0.col0 * 6 AS col1 FROM tab2 AS cor0
----
-42
-468
-474

query I rowsort
SELECT + - col1 + - 2 * - col1 * - col2 FROM tab0 AS cor0
----
-15015
-291
-5762

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 98 col2 FROM tab2 AS cor0
----
124
125
136

query I rowsort
SELECT - cor0.col2 + 45 * col2 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT DISTINCT col1 * - col1 - - tab0.col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT + 68 * col0 * col2 FROM tab0
----
2380
496264
53856

onlyif mysql # use DIV operator for integer division
query I rowsort label-5326
SELECT col0 * col0 DIV col1 AS col2 FROM tab2 cor0
----
1
103
367

skipif mysql # not compatible
query I rowsort label-5326
SELECT col0 * col0 / col1 AS col2 FROM tab2 cor0
----
1
103
367

query I rowsort
SELECT + + col0 + + 74 + + col2 AS col1 FROM tab1 AS cor0
----
131
195
250

query I rowsort
SELECT DISTINCT + ( col2 * - ( - tab2.col0 ) ) + col0 - tab2.col2 FROM tab2
----
169
2080
3043

onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT - col0 * - 50 + col1 DIV cor0.col0 + col1 FROM tab0 AS cor0
----
1289
1849
4542

skipif mysql # not compatible
query I rowsort label-5329
SELECT - col0 * - 50 + col1 / cor0.col0 + col1 FROM tab0 AS cor0
----
1289
1849
4542

query I rowsort
SELECT - - col0 * col1 + col0 AS col0 FROM tab1 cor0
----
1120
704
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5331
SELECT DISTINCT col2 + CAST( col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-5331
SELECT DISTINCT col2 + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
52
54
76

query I rowsort
SELECT - + col0 * + 54 FROM tab1 AS cor0
----
-162
-3456
-4320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5333
SELECT + col1 DIV - 2 FROM tab1
----
-13
-5
-6

skipif mysql # not compatible
query I rowsort label-5333
SELECT + col1 / - 2 FROM tab1
----
-13
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( + col1 ) + col2 col1 FROM tab1 AS cor0
----
-43
-622
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-5335
SELECT - col1 DIV - col2 + col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5335
SELECT - col1 / - col2 + col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT cor0.col0 - - ( - col1 ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT col2 * - col0 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT - + col2 + - ( - 35 ) FROM tab2 AS cor0
----
-3
8
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5339
SELECT + col2 - + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-5339
SELECT + col2 - + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT + 18 AS col0 FROM tab1, tab1 AS cor0
----
18

query I rowsort
SELECT DISTINCT 25 - tab1.col0 FROM tab1, tab2 AS cor0
----
-39
-55
22

query I rowsort
SELECT ALL - 60 * + col2 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

query I rowsort
SELECT ALL + ( - tab1.col2 ) * col1 AS col2 FROM tab1
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 63 col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2

query I rowsort
SELECT DISTINCT 23 + col2 AS col2 FROM tab1 AS cor0
----
119
77
80

query I rowsort
SELECT - ( 95 ) * col1 AS col1 FROM tab1
----
-1235
-2470
-950

query I rowsort
SELECT + + 97 + 77 - - col1 FROM tab0 AS cor0
----
260
265
271

query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
-1
-33
-82

query I rowsort
SELECT DISTINCT - 28 - - col2 * tab0.col0 AS col0 FROM tab0
----
7
7270
764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab0 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + col0 + col0 * - ( 66 ) FROM tab0 AS cor0
----
-1560
-2275
-5785

query I rowsort
SELECT DISTINCT - 91 * - tab0.col0 + ( - 18 ) FROM tab0
----
2166
3167
8081

onlyif mysql # use DIV operator for integer division
query I rowsort label-5353
SELECT ALL + tab0.col0 DIV col2 + 47 DIV col0 FROM tab0
----
1
1
36

skipif mysql # not compatible
query I rowsort label-5353
SELECT ALL + tab0.col0 / col2 + 47 / col0 FROM tab0
----
1
1
36

query I rowsort
SELECT DISTINCT - 10 * + col0 FROM tab0 AS cor0
----
-240
-350
-890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - col2 + - cor0.col2 * - 52 * col0 - col0 col1 FROM tab0 AS cor0
----
1715
373667
38850

query I rowsort
SELECT DISTINCT - 7 * col2 AS col1 FROM tab1 AS cor0
----
-378
-399
-672

query I rowsort
SELECT ALL ( cor0.col1 ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT col2 * + col0 * - col1 + + col0 FROM tab2
----
-119574
-50955
-5852

query I rowsort
SELECT + col2 + 0 AS col0 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5360
SELECT + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5360
SELECT + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + ( + 62 ) AS col2 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT ( - 62 ) FROM tab1, tab0 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL + + col1 + - col1 * + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1014
-26
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * - 89 col0 FROM tab2 AS cor0
----
-3293

query I rowsort
SELECT + col2 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT ALL - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + ( col2 ) * col1 * 2 FROM tab2
----
1292
1674
3068

query I rowsort
SELECT DISTINCT + 20 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
20

query I rowsort
SELECT ALL + ( - col2 ) * - col1 + ( cor0.col0 * - col2 ) - - col0 AS col1 FROM tab1 AS cor0
----
-3014
-6352
1245

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5371
SELECT + CAST( ( - cor0.col2 ) AS SIGNED ) * - 78 col2 FROM tab0, tab2 cor0
----
9 values hashing to 95d1109847e67be229d50cd76253dc34

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5371
SELECT + CAST ( ( - cor0.col2 ) AS INTEGER ) * - 78 col2 FROM tab0, tab2 cor0
----
9 values hashing to 95d1109847e67be229d50cd76253dc34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT ALL 32 + 67 + + col0 DIV 93 AS col1 FROM tab2 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL 32 + 67 + + col0 / 93 AS col1 FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT + 93 + + ( + col1 ) + - ( + col0 * + col2 ) FROM tab0 AS cor0
----
-613
-7114
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-5374
SELECT ALL + 47 - col0 * cor0.col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
456
47
539

skipif mysql # not compatible
query I rowsort label-5374
SELECT ALL + 47 - col0 * cor0.col0 / - col1 AS col1 FROM tab1 AS cor0
----
456
47
539

query I rowsort
SELECT + 28 * - 56 FROM tab0 AS cor0
----
-1568
-1568
-1568

query I rowsort
SELECT ALL - col0 + 7 FROM tab2 AS cor0
----
-71
-72
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * col1 * + col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT + col1 + - col2 * col0 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT + 62 + - col2 AS col0 FROM tab2 AS cor0
----
24
35
36

query I rowsort
SELECT + col1 * col1 - + col2 AS col0 FROM tab1 cor0
----
43
622
73

query I rowsort
SELECT DISTINCT ( + col1 ) + ( 79 ) FROM tab1 AS cor0
----
105
89
92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5383
SELECT ALL + 73 + + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5383
SELECT ALL + 73 + + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col1 - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1322
-662
-8012

query I rowsort
SELECT DISTINCT col1 * col2 + - ( col2 ) FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT DISTINCT + + 8 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-24
-512
-640

query I rowsort
SELECT 5 * ( - col1 ) + col1 FROM tab1
----
-104
-40
-52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT cor0.col0 DIV 90 col0 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5388
SELECT cor0.col0 / 90 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 + - 61 * + 78 AS col1 FROM tab1 AS cor0
----
-4678
-4694
-4755

query I rowsort
SELECT DISTINCT + col2 + + 71 FROM tab0 AS cor0
----
104
153
72

query I rowsort
SELECT ALL - col2 + cor0.col2 * + 34 AS col2 FROM tab0 AS cor0
----
1089
2706
33

query I rowsort
SELECT + col1 * 64 + 80 FROM tab2 AS cor0
----
1168
2064
3856

query I rowsort
SELECT DISTINCT - + col0 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL 37 + tab2.col1 + - col1 FROM tab2
----
37
37
37

query I rowsort
SELECT DISTINCT - 45 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-45

query I rowsort
SELECT DISTINCT + col1 * - 7 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
-104
570
949

query I rowsort
SELECT + cor0.col1 * col0 + 20 AS col1 FROM tab0 AS cor0
----
2084
3415
8119

query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - 8 * col2 + cor0.col1 AS col1 FROM tab0 cor0
----
-178
-565
89

query I rowsort
SELECT - col0 + col2 - - ( - col2 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT - 61 * - col1 AS col2 FROM tab0 AS cor0
----
5246
5551
5917

query I rowsort
SELECT - - col1 * + col0 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
15561
3492
4902

query I rowsort
SELECT DISTINCT + tab1.col1 * 12 + tab1.col1 FROM tab1
----
130
169
338

query I rowsort
SELECT DISTINCT col1 + ( col2 ) FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + 21 FROM tab2, tab2 AS cor0
----
21

query I rowsort
SELECT ALL 63 + + 2 * - tab2.col1 FROM tab2
----
-55
1
29

skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + + col2 * CAST ( col2 AS REAL ) + col1 FROM tab1
----
2888
3202
9133

query I rowsort
SELECT - col1 * col2 * + col2 AS col2 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-5411
SELECT + + cor0.col1 DIV - cor0.col1 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1039
639
77

skipif mysql # not compatible
query I rowsort label-5411
SELECT + + cor0.col1 / - cor0.col1 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1039
639
77

query I rowsort
SELECT ALL + - 96 * + col0 AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT - col0 + - tab2.col1 + 64 * + 28 FROM tab2
----
1655
1696
1754

query I rowsort
SELECT - col0 - - 71 * tab1.col0 AS col0 FROM tab1
----
210
4480
5600

query I rowsort
SELECT DISTINCT + col1 * + tab1.col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT + - col1 * - 78 AS col1 FROM tab2 cor0
----
1326
2418
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 81 + col0 * - col2 col1 FROM tab1 AS cor0
----
-1200
1536
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5418
SELECT DISTINCT + - cor0.col1 * CAST( col0 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif mysql # not compatible
query I rowsort label-5418
SELECT DISTINCT + - cor0.col1 * CAST ( col0 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

onlyif mysql # use DIV operator for integer division
query I rowsort label-5419
SELECT + tab1.col0 DIV + col1 + 95 * col2 FROM tab1
----
5130
5421
9126

skipif mysql # not compatible
query I rowsort label-5419
SELECT + tab1.col0 / + col1 + 95 * col2 FROM tab1
----
5130
5421
9126

query I rowsort
SELECT ALL + 5 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL col1 * ( col0 ) + 54 AS col0 FROM tab2 AS cor0
----
1397
271
4656

query I rowsort
SELECT DISTINCT - + col1 + 32 FROM tab2 AS cor0
----
-27
1
15

query I rowsort
SELECT + - 8 - + col1 * + col2 FROM tab2 AS cor0
----
-1542
-654
-845

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT CAST( - col0 AS SIGNED ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

skipif mysql # not compatible
query I rowsort label-5424
SELECT CAST ( - col0 AS INTEGER ) + - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL 85 * + col2 + + tab1.col2 + + col0 FROM tab1
----
4647
4966
8336

query I rowsort
SELECT DISTINCT 52 + col2 FROM tab0
----
134
53
85

query I rowsort
SELECT ALL + 92 FROM tab1, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 + col1 col2 FROM tab1
----
29
3
77

query I rowsort
SELECT DISTINCT ( col2 * col0 ) + 68 * - col1 + col1 FROM tab1
----
-1580
2978
6809

query I rowsort
SELECT + col0 + + 6 AS col2 FROM tab1
----
70
86
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 16 ) col1 FROM tab2 AS cor0
----
-16

query I rowsort
SELECT ALL - + 50 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-5434
SELECT + + col2 DIV + 90 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5434
SELECT + + col2 / + 90 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5435
SELECT DISTINCT - col2 DIV col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - col2 / col1 FROM tab0 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT + + col2 DIV - 50 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5436
SELECT + + col2 / - 50 AS col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 2 * + 42 col0 FROM tab1 AS cor0
----
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5438
SELECT ALL + + CAST( + ( + col1 ) AS SIGNED ) + col0 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + + CAST ( + ( + col1 ) AS INTEGER ) + col0 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col0 * 46 FROM tab2 AS cor0
----
322
3588
3634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 80 col2 FROM tab1 AS cor0
----
-23
-26
16

query I rowsort
SELECT ALL - cor0.col2 + + 13 FROM tab1 AS cor0
----
-41
-44
-83

query I rowsort
SELECT DISTINCT cor0.col0 + col0 * col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT ALL col0 + col1 + + col2 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5444
SELECT DISTINCT - cor0.col0 * + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT - cor0.col0 * + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 29 + col0 AS col1 FROM tab1 AS cor0
----
-26
35
51

query I rowsort
SELECT + + cor0.col1 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * + col0 * 84 FROM tab0 AS cor0
----
173376
285180
680316

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + 78 col0 FROM tab0 AS cor0
----
6708
7098
7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5450
SELECT + - col2 * - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5450
SELECT + - col2 * - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5451
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT col1 + col0 * + cor0.col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2, tab2 AS cor0
----
95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5454
SELECT DISTINCT + col0 + - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + col0 + - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col1 * - 41 + + cor0.col2 FROM tab1 AS cor0
----
-1012
-353
-437

query I rowsort
SELECT + col1 + ( - col0 ) FROM tab1
----
-54
-67
23

query I rowsort
SELECT 52 FROM tab1 cor0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 37 * col0 * cor0.col2 col2 FROM tab2 AS cor0
----
111036
6966
75010

query I rowsort
SELECT + 45 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + cor0.col0 col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL - cor0.col1 + - 24 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 08bae1c3d127d967041b8088dd7fa425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - tab1.col1 + col2 col1 FROM tab1
----
111
163
31

query I rowsort
SELECT - col0 + - 98 FROM tab0
----
-122
-133
-187

query I rowsort
SELECT 42 * cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e7a91cd463a69ac57990acb41bbfc730

query I rowsort
SELECT + col0 + col0 - + col2 FROM tab0
----
15
69
96

query I rowsort
SELECT + 5 * + 91 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b4222bac6bea0322e29295b9d4f5b998

query I rowsort
SELECT - col2 * 84 AS col1 FROM tab0
----
-2772
-6888
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-5468
SELECT DISTINCT ( + 93 ) DIV col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT ( + 93 ) / col0 FROM tab0
----
1
2
3

query I rowsort
SELECT - ( + cor0.col2 ) + col0 * cor0.col0 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # use DIV operator for integer division
query I rowsort label-5470
SELECT ALL col2 DIV col1 + 18 DIV col2 col0 FROM tab1 cor0
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL col2 / col1 + 18 / col2 col0 FROM tab1 cor0
----
2
5
7

query I rowsort
SELECT - - col2 * col0 + 29 + col2 FROM tab2 AS cor0
----
2083
245
3069

query I rowsort
SELECT 45 + col0 AS col0 FROM tab2
----
123
124
52

query I rowsort
SELECT col2 * tab0.col0 * col2 - - 34 * col2 FROM tab0
----
27258
601224
69

query I rowsort
SELECT DISTINCT 61 + col1 AS col0 FROM tab1
----
71
74
87

query I rowsort
SELECT col0 * col2 * col2 AS col0 FROM tab1
----
207936
737280
8748

query I rowsort
SELECT DISTINCT 74 * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1743
-2589
-6504

query I rowsort
SELECT ALL - ( - col0 ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL - col0 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5479
SELECT DISTINCT - col0 + + CAST( NULL AS DECIMAL ) * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5479
SELECT DISTINCT - col0 + + CAST ( NULL AS REAL ) * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col1 * + col0 + - col2 + + cor0.col1 * ( - col2 ) FROM tab2 AS cor0
----
-647
3042
659

query I rowsort
SELECT ALL + col1 * col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL + col0 + ( + col1 ) * col1 + col0 AS col2 FROM tab0 AS cor0
----
7444
8459
9479

query I rowsort
SELECT ALL + cor0.col2 * 81 + 82 FROM tab2 AS cor0
----
2188
2269
3160

query I rowsort
SELECT DISTINCT + - col2 - + ( + cor0.col1 * + col0 ) FROM tab2 cor0
----
-1381
-244
-4628

query I rowsort
SELECT DISTINCT + 57 + 23 * col0 AS col2 FROM tab1 AS cor0
----
126
1529
1897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 19 + col1 + col1 * + col0 col1 FROM tab0 AS cor0
----
2131
3473
8171

query I rowsort
SELECT + 34 * 31 - col1 AS col0 FROM tab0 AS cor0
----
957
963
968

query I rowsort
SELECT + ( col2 ) - - col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT ALL 31 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
127
85
88

query I rowsort
SELECT DISTINCT - col1 + + 7 * - col1 FROM tab1 AS cor0
----
-104
-208
-80

query I rowsort
SELECT - col1 * + col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT - 97 * 85 - col1 FROM tab1 AS cor0
----
-8255
-8258
-8271

query I rowsort
SELECT ALL - 3 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5494
SELECT DISTINCT + cor0.col0 * 3 + + col1 * CAST( NULL AS DECIMAL ) - + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + cor0.col0 * 3 + + col1 * CAST ( NULL AS REAL ) - + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 - + 74 FROM tab2 AS cor0
----
-36
-47
-48

query I rowsort
SELECT - + cor0.col2 - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - 46 + - cor0.col2 FROM tab1 AS cor0
----
-100
-103
-142

query I rowsort
SELECT cor0.col1 * col2 + - col1 * - 80 FROM tab1 AS cor0
----
1370
2288
3484

query I rowsort
SELECT ALL - col2 * col2 + col2 * col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 42 col2 FROM tab0 cor0
----
-42

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT ALL - col2 * - col0 + - CAST( col0 AS SIGNED ) col1 FROM tab0 cor0
----
0
7209
768

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - col2 * - col0 + - CAST ( col0 AS INTEGER ) col1 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - 90 + - col2 FROM tab1 AS cor0
----
-144
-147
-186

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5503
SELECT ALL CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 93 ) * - col1 + + col0 + col1 AS col2 FROM tab0 AS cor0
----
-7888
-8283
-8889

onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT ALL - 97 DIV + cor0.col0 + col0 * + 54 FROM tab2 cor0
----
365
4211
4265

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL - 97 / + cor0.col0 + col0 * + 54 FROM tab2 cor0
----
365
4211
4265

onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT ALL 30 - + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
27
30
30

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL 30 - + col2 / col0 AS col2 FROM tab2 AS cor0
----
27
30
30

query I rowsort
SELECT - 21 + - col2 AS col2 FROM tab2 AS cor0
----
-47
-48
-59

query I rowsort
SELECT DISTINCT 75 * col1 FROM tab2 cor0
----
1275
2325
4425

query I rowsort
SELECT - cor0.col2 + - 43 * - cor0.col1 FROM tab2 AS cor0
----
1306
2511
693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + col2 + col1 * + col2 col1 FROM tab2 AS cor0
----
2187
2546
2834

onlyif mysql # use DIV operator for integer division
query I rowsort label-5511
SELECT + 3 * + col1 + + ( + col1 ) DIV col1 FROM tab1 AS cor0
----
31
40
79

skipif mysql # not compatible
query I rowsort label-5511
SELECT + 3 * + col1 + + ( + col1 ) / col1 FROM tab1 AS cor0
----
31
40
79

query I rowsort
SELECT + col0 + - col0 * + 64 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT - + col1 * cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT - + col2 + cor0.col1 * col2 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT + + col0 * + col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5516
SELECT ALL 19 DIV cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2b4c8c20c78e4e58cc11572c136389ec

skipif mysql # not compatible
query I rowsort label-5516
SELECT ALL 19 / cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 2b4c8c20c78e4e58cc11572c136389ec

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT ALL col1 DIV 24 + - col2 FROM tab0
----
-30
-79
3

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL col1 / 24 + - col2 FROM tab0
----
-30
-79
3

query I rowsort
SELECT ALL + + col0 * 97 AS col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT col1 * ( 0 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * - ( col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5522
SELECT DISTINCT + col2 + col1 DIV - col2 FROM tab0 AS cor0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + col2 + col1 / - col2 FROM tab0 AS cor0
----
-96
31
81

query I rowsort
SELECT ALL col0 * col2 + 46 AS col1 FROM tab2 AS cor0
----
2074
235
3048

query I rowsort
SELECT col0 * + 65 FROM tab1 AS cor0
----
195
4160
5200

query I rowsort
SELECT tab1.col2 - col0 AS col0 FROM tab1
----
-7
16
51

query I rowsort
SELECT ALL col0 * col1 + + col0 AS col2 FROM tab1
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT + col1 DIV col0 + 36 * - 98 AS col2 FROM tab1
----
-3520
-3528
-3528

skipif mysql # not compatible
query I rowsort label-5527
SELECT + col1 / col0 + 36 * - 98 AS col2 FROM tab1
----
-3520
-3528
-3528

query I rowsort
SELECT col2 + 58 AS col0 FROM tab2
----
84
85
96

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 cor1, tab0, tab0 AS cor2
----
3645 values hashing to 04ab51615fd2c7e492de6a59e98226e1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5530
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) + 85 - - col0 col2 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) + 85 - - col0 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT ALL + col1 + - CAST( 87 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-61
-74
-77

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL + col1 + - CAST ( 87 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-61
-74
-77

query I rowsort
SELECT ALL col1 + col1 * cor0.col0 * - col0 + ( col0 ) AS col0 FROM tab1 AS cor0
----
-205
-40886
-83107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT + - ( + col2 ) + col1 * - col0 AS col2 FROM tab1 cor0
----
-1136
-132
-697

query I rowsort
SELECT DISTINCT + tab0.col2 * col0 * + col2 FROM tab0
----
26136
35
598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5536
SELECT + - CAST( NULL AS SIGNED ) + cor0.col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT + - CAST ( NULL AS INTEGER ) + cor0.col1 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 10 AS col1 FROM tab1 AS cor0
----
100
130
260

query I rowsort
SELECT - + 93 * + cor0.col1 FROM tab0 AS cor0
----
-7998
-8463
-9021

query I rowsort
SELECT DISTINCT col1 * - ( col1 ) * + col1 FROM tab2
----
-205379
-29791
-4913

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5540
SELECT DISTINCT col0 * CAST( + col0 AS SIGNED ) FROM tab0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-5540
SELECT DISTINCT col0 * CAST ( + col0 AS INTEGER ) FROM tab0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5541
SELECT + CAST( - ( col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-5541
SELECT + CAST ( - ( col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT + col1 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col0 + - col2 + col1 FROM tab0
----
-80
29
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT - col0 + col0 DIV ( - col2 + - col1 ) FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5544
SELECT - col0 + col0 / ( - col2 + - col1 ) FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + 64 - col1 AS col2 FROM tab1 AS cor0
----
38
51
54

query I rowsort
SELECT DISTINCT + - 31 + col0 AS col0 FROM tab2 cor0
----
-24
47
48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5547
SELECT DISTINCT - + col1 + col0 * - CAST( 42 AS SIGNED ) FROM tab2 AS cor0
----
-325
-3335

skipif mysql # not compatible
query I rowsort label-5547
SELECT DISTINCT - + col1 + col0 * - CAST ( 42 AS INTEGER ) FROM tab2 AS cor0
----
-325
-3335

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 cor1, tab2, tab2 cor2
----
3645 values hashing to db428ec66bce13149e3129b417b0fe94

query I rowsort
SELECT + cor0.col0 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5550
SELECT ALL + tab1.col0 DIV - 3 FROM tab1
----
-1
-21
-26

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + tab1.col0 / - 3 FROM tab1
----
-1
-21
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 76 * - 1 col1 FROM tab1 AS cor0
----
-19
-22
20

query I rowsort
SELECT cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + ( + cor0.col0 ) + + col2 col0 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT - col0 * - col1 + + 56 FROM tab0 AS cor0
----
2120
3451
8155

query I rowsort
SELECT + - 22 * - col1 FROM tab1 AS cor0
----
220
286
572

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-5557
SELECT ALL - 41 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - 41 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4

query I rowsort
SELECT ALL + col1 * - col2 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * col0 + - CAST ( col0 + - col1 AS REAL ) col2 FROM tab2 AS cor0
----
6065
6179
73

query I rowsort
SELECT DISTINCT - ( col2 * col1 ) AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT 91 + + col0 AS col1 FROM tab0 AS cor0
----
115
126
180

query I rowsort
SELECT ALL - col0 * + col1 + 87 AS col1 FROM tab0 AS cor0
----
-1977
-3308
-8012

query I rowsort
SELECT - + ( - col1 ) + + col2 * - 11 AS col2 FROM tab1 AS cor0
----
-1043
-568
-617

query I rowsort
SELECT DISTINCT + cor0.col0 - - col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - - col2 * - 77 FROM tab0 cor0
----
-2541
-6314
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT ALL - col0 DIV - col0 + col2 FROM tab2 AS cor0
----
27
28
39

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - col0 / - col0 + col2 FROM tab2 AS cor0
----
27
28
39

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5567
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) + cor0.col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5567
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) + cor0.col1 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( 5 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL - col0 * 20 + col0 * col1 + col2 * col0 AS col0 FROM tab2
----
266
2765
5070

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT + 80 + col1 * - tab2.col0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5570
SELECT + 80 + col1 * - tab2.col0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5571
SELECT + - CAST( - col1 AS SIGNED ) * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

skipif mysql # not compatible
query I rowsort label-5571
SELECT + - CAST ( - col1 AS INTEGER ) * col1 + col0 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col0 - 59 AS col2 FROM tab1
----
-56
21
5

query I rowsort
SELECT 55 * - col0 FROM tab2
----
-385
-4290
-4345

query I rowsort
SELECT - col0 + - col0 * - ( - col1 ) FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - ( + col2 ) * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT - 55 + - 8 + col1 * ( - 62 ) FROM tab0
----
-5395
-5705
-6077

query I rowsort
SELECT 54 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT DISTINCT - col2 + col0 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
-1136
-132
-697

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT + col1 + + col1 DIV + 38 AS col0 FROM tab0 cor0
----
88
93
99

skipif mysql # not compatible
query I rowsort label-5579
SELECT + col1 + + col1 / + 38 AS col0 FROM tab0 cor0
----
88
93
99

query I rowsort
SELECT + col0 + - col1 * tab1.col2 AS col2 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT - 15 * 31 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 4df3d1ea0ee8feac2911f08a67fbd645

query I rowsort
SELECT DISTINCT + - col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - 15 * col1 AS col0 FROM tab1 AS cor0
----
-150
-195
-390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 + - col0 col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + col1 + + col1 * + 76 FROM tab1
----
1001
2002
770

query I rowsort
SELECT tab1.col2 - 86 * tab1.col1 AS col2 FROM tab1
----
-1022
-2182
-803

onlyif mysql # use DIV operator for integer division
query I rowsort label-5587
SELECT + + cor0.col1 * col0 DIV + ( col1 * 49 ) FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5587
SELECT + + cor0.col1 * col0 / + ( col1 * 49 ) FROM tab1 cor0
----
0
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5588
SELECT ALL + - col1 * - CAST( - col0 * col2 AS SIGNED ) FROM tab0 cor0
----
-3395
-664118
-68112

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL + - col1 * - CAST ( - col0 * col2 AS INTEGER ) FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT + col0 * col0 + + col1 + - col0 AS col2 FROM tab0 AS cor0
----
1287
638
7923

query I rowsort
SELECT DISTINCT + cor0.col0 * + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 * + col2 col0 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL col1 * - col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT ALL - + cor0.col0 + + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 * col0 + col0 + 52 * 35 AS col0 FROM tab1 AS cor0
----
1901
2524
2940

query I rowsort
SELECT + col1 + 67 FROM tab0 AS cor0
----
153
158
164

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5596
SELECT - CAST( 64 AS SIGNED ) FROM tab0 AS cor0
----
-64
-64
-64

skipif mysql # not compatible
query I rowsort label-5596
SELECT - CAST ( 64 AS INTEGER ) FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT ALL col0 + col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-5598
SELECT col1 DIV 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT col1 / 61 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + col0 - col0 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL col2 * ( + 49 ) AS col2 FROM tab0
----
1617
4018
49

query I rowsort
SELECT + 98 - - col0 AS col0 FROM tab0 AS cor0
----
122
133
187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + 15 * + col2 col1 FROM tab2 AS cor0
----
436
449
587

onlyif mysql # use DIV operator for integer division
query I rowsort label-5603
SELECT DISTINCT + col0 + - cor0.col0 DIV + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
53
66

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT + col0 + - cor0.col0 / + col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-24
53
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT - 84 DIV col0 FROM tab0 AS cor0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-5604
SELECT - 84 / col0 FROM tab0 AS cor0
----
-2
-3
0

query I rowsort
SELECT - - col1 + + 46 AS col1 FROM tab0 AS cor0
----
132
137
143

query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + + col2 * - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT ALL + + col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5608
SELECT ALL + + col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT DISTINCT - + 54 * - col1 + CAST( - col1 + col0 AS SIGNED ) DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
1404
545
707

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT - + 54 * - col1 + CAST ( - col1 + col0 AS INTEGER ) / + cor0.col1 AS col2 FROM tab1 AS cor0
----
1404
545
707

query I rowsort
SELECT ALL + 62 * + col0 FROM tab0
----
1488
2170
5518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col1 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col0 * 36 * col2 FROM tab0 AS cor0
----
1260
262728
28512

query I rowsort
SELECT DISTINCT + - cor0.col1 * + col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + - col1 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT ALL + col2 + + col0 * - 50 AS col1 FROM tab2 AS cor0
----
-323
-3874
-3912

query I rowsort
SELECT ALL col2 + + ( + col1 ) + col0 * ( + 74 * + col2 + - ( - col1 ) ) AS col0 FROM tab1 cor0
----
12146
270659
569469

query I rowsort
SELECT 12 + + col1 AS col1 FROM tab2
----
29
43
71

query I rowsort
SELECT + 33 + 6 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + 96 * - 51 + col0 AS col2 FROM tab0 AS cor0
----
-4807
-4861
-4872

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT DISTINCT 18 DIV + 26 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT 18 / + 26 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 83 + + col1 AS col1 FROM tab2 AS cor0
----
-24
-52
-66

query I rowsort
SELECT ALL + - ( + 50 ) + - col1 AS col0 FROM tab1 AS cor0
----
-60
-63
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5623
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5623
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT - + 3 * + cor0.col0 + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
-191
-239
-8

skipif mysql # not compatible
query I rowsort label-5624
SELECT - + 3 * + cor0.col0 + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
-191
-239
-8

query I rowsort
SELECT col2 * + 47 + - col0 FROM tab2 AS cor0
----
1144
1262
1707

query I rowsort
SELECT - cor0.col1 * - col2 + col0 * + 68 FROM tab2 AS cor0
----
1313
6018
6838

query I rowsort
SELECT DISTINCT + col0 * 15 + col2 FROM tab1 AS cor0
----
1017
1296
99

query I rowsort
SELECT + ( - col2 ) + col0 * + ( - col1 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - - col2 * + 96 + col0 AS col1 FROM tab1 AS cor0
----
5187
5536
9296

query I rowsort
SELECT DISTINCT - 5 AS col1 FROM tab2 cor0
----
-5

query I rowsort
SELECT + ( col0 ) + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT ALL 77 * col0 * col2 + - col0 * + col1 FROM tab2 AS cor0
----
14336
151554
229811

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT DISTINCT - 49 + - cor0.col0 * col0 * - col2 FROM tab1 AS cor0
----
233423
437
614351

query I rowsort
SELECT DISTINCT + 49 - col2 FROM tab1 AS cor0
----
-47
-5
-8

query I rowsort
SELECT DISTINCT 13 + + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-11
32
75

query I rowsort
SELECT - col0 + + 68 AS col1 FROM tab1 AS cor0
----
-12
4
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
17
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT + - col0 DIV - col1 + - 78 AS col1 FROM tab1 AS cor0
----
-72
-72
-78

skipif mysql # not compatible
query I rowsort label-5639
SELECT + - col0 / - col1 + - 78 AS col1 FROM tab1 AS cor0
----
-72
-72
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5640
SELECT DISTINCT + 29 DIV + col1 + - col2 col2 FROM tab1 AS cor0
----
-53
-55
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT + 29 / + col1 + - col2 col2 FROM tab1 AS cor0
----
-53
-55
-94

query I rowsort
SELECT col2 * + tab0.col2 * + col2 AS col0 FROM tab0
----
1
35937
551368

query I rowsort
SELECT + 32 + + col0 FROM tab1 AS cor0
----
112
35
96

query I rowsort
SELECT + 0 * col1 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 51 * col2 AS col0 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT - col2 * col2 + ( 54 ) * + cor0.col1 FROM tab1 AS cor0
----
-1512
-2709
-8514

query I rowsort
SELECT ( - 92 ) * - col0 AS col2 FROM tab1
----
276
5888
7360

query I rowsort
SELECT - + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT 85 + + cor0.col2 * 83 AS col1 FROM tab1 AS cor0
----
4567
4816
8053

onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT ( - col0 ) + tab0.col2 DIV col2 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-5649
SELECT ( - col0 ) + tab0.col2 / col2 AS col0 FROM tab0
----
-23
-34
-88

query I rowsort
SELECT ALL + + col2 + 66 AS col1 FROM tab2 cor0
----
104
92
93

query I rowsort
SELECT ALL + - ( 19 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + + col2 * tab1.col0 col2 FROM tab1
----
216
3705
7776

query I rowsort
SELECT + col0 * + 39 AS col2 FROM tab0
----
1365
3471
936

query I rowsort
SELECT + cor0.col2 * 59 FROM tab1 AS cor0
----
3186
3363
5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-5655
SELECT + ( 76 ) DIV - cor0.col0 - cor0.col0 col2 FROM tab0 AS cor0
----
-27
-37
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5655
SELECT + ( 76 ) / - cor0.col0 - cor0.col0 col2 FROM tab0 AS cor0
----
-27
-37
-89

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 cor2, tab2 AS cor3
----
3645 values hashing to fcae6e4467f798ac88c869b8e38c6b23

query I rowsort
SELECT ALL - 11 FROM tab2, tab2 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # use DIV operator for integer division
query I rowsort label-5658
SELECT ALL + col1 DIV ( col1 * + col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + col1 / ( col1 * + col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + + col1 * col1 FROM tab2
----
306
3540
992

query I rowsort
SELECT DISTINCT + col2 * + 82 + - tab2.col0 AS col0 FROM tab2
----
2054
2207
3037

query I rowsort
SELECT col1 * - col1 * col2 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5662
SELECT - col1 DIV + 14 col1 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5662
SELECT - col1 / + 14 col1 FROM tab1
----
-1
0
0

query I rowsort
SELECT col0 * 16 FROM tab0
----
1424
384
560

query I rowsort
SELECT + ( + 92 ) + + col1 - - 66 * + 62 FROM tab2 AS cor0
----
4201
4215
4243

query I rowsort
SELECT ALL + col2 + - col1 - - col2 * 29 AS col1 FROM tab1 AS cor0
----
1594
1700
2867

query I rowsort
SELECT - col2 + - 12 AS col1 FROM tab0
----
-13
-45
-94

query I rowsort
SELECT - col0 + col0 * - 23 * + col1 FROM tab0 AS cor0
----
-186366
-47496
-78120

query I rowsort
SELECT - col1 * + ( 95 ) AS col1 FROM tab2 AS cor0
----
-1615
-2945
-5605

query I rowsort
SELECT + col1 * - ( - col1 ) + - col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT cor0.col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5670
SELECT cor0.col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - ( col0 ) * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL 57 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT DISTINCT - col0 DIV + 32 col2 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5673
SELECT DISTINCT - col0 / + 32 col2 FROM tab0
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 30 * - col1 col2 FROM tab2
----
-19380
-25110
-46020

query I rowsort
SELECT - - col0 * - col0 - col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT - 29 * - col2 + tab2.col2 AS col2 FROM tab2
----
1140
780
810

query I rowsort
SELECT DISTINCT cor0.col2 - 25 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
29
32
71

query I rowsort
SELECT - col1 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - ( - col2 ) * + col1 AS col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT 22 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT ALL col1 + ( + ( + col2 ) ) DIV + ( + col2 ) AS col1 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL col1 + ( + ( + col2 ) ) / + ( + col2 ) AS col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT DISTINCT + cor0.col2 * 38 AS col0 FROM tab1 AS cor0
----
2052
2166
3648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT DISTINCT - cor0.col2 + + CAST( NULL AS SIGNED ) * 36 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5683
SELECT DISTINCT - cor0.col2 + + CAST ( NULL AS INTEGER ) * 36 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - col1 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 col0 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT ALL - col1 * + ( - col0 ) + - col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT ALL col1 * ( - col1 ) FROM tab1 AS cor0
----
-100
-169
-676

onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT + col2 - + col1 DIV + 2 FROM tab2 AS cor0
----
-3
12
30

skipif mysql # not compatible
query I rowsort label-5688
SELECT + col2 - + col1 / + 2 FROM tab2 AS cor0
----
-3
12
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5689
SELECT ALL - cor0.col1 * CAST( + ( col1 ) AS SIGNED ) + + col1 * - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1326
-190
-325

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL - cor0.col1 * CAST ( + ( col1 ) AS INTEGER ) + + col1 * - col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1326
-190
-325

query I rowsort
SELECT ALL + col2 * - col0 - col1 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT ALL col0 * col2 - ( col2 ) AS col0 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL - col2 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT - + col1 - + 31 AS col2 FROM tab0 AS cor0
----
-117
-122
-128

query I rowsort
SELECT ALL - col0 * ( 63 ) FROM tab0 AS cor0
----
-1512
-2205
-5607

query I rowsort
SELECT - col1 - 58 FROM tab0 AS cor0
----
-144
-149
-155

onlyif mysql # use DIV operator for integer division
query I rowsort label-5696
SELECT - 88 DIV - 50 + - cor0.col1 * - 86 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a4f28aadae71ad3d6c51386e44179ebd

skipif mysql # not compatible
query I rowsort label-5696
SELECT - 88 / - 50 + - cor0.col1 * - 86 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a4f28aadae71ad3d6c51386e44179ebd

query I rowsort
SELECT ALL - col0 * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + col1 - + ( - col1 ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL - ( col1 * - 28 ) FROM tab0
----
2408
2548
2716

query I rowsort
SELECT ALL col1 * 23 + col1 AS col1 FROM tab2
----
1416
408
744

query I rowsort
SELECT ALL col0 * col2 * 42 + col0 AS col2 FROM tab2
----
126163
7945
85254

query I rowsort
SELECT ALL - + col1 - - col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT - col1 * ( - col2 ) + col2 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
164
2046
62

skipif mysql # not compatible
query I rowsort label-5703
SELECT - col1 * ( - col2 ) + col2 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
164
2046
62

query I rowsort
SELECT DISTINCT + col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT col1 - ( ( - col0 ) + + col2 ) FROM tab0 AS cor0
----
131
77
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * cor0.col1 + col1 col2 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT + col2 + 1 + - 10 FROM tab0
----
-8
24
73

query I rowsort
SELECT - col2 + - ( + col0 ) AS col1 FROM tab0
----
-171
-36
-57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5709
SELECT tab2.col0 * col1 * col2 + CAST( NULL AS SIGNED ) * ( col2 ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5709
SELECT tab2.col0 * col1 * col2 + CAST ( NULL AS INTEGER ) * ( col2 ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 85 - + 73 FROM tab2
----
-158
-158
-158

query I rowsort
SELECT col2 + - 57 * tab0.col0 AS col2 FROM tab0
----
-1335
-1994
-4991

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 62 ) col1 FROM tab1
----
62
62
62

query I rowsort
SELECT ALL + - col2 * - cor0.col0 + + col0 FROM tab1 AS cor0
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * + col2 col0 FROM tab2 cor0
----
1523
736
754

query I rowsort
SELECT ALL tab1.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT + ( col2 * col1 ) AS col0 FROM tab2
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * col0 col1 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * - 42 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT DISTINCT + col2 * col1 + + ( - col2 ) FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT - 77 + col1 * col0 FROM tab1 AS cor0
----
1
563
963

query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - 5 * + col2 AS col0 FROM tab0 AS cor0
----
-165
-410
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col2 ) * 87 col0 FROM tab1 cor0
----
-4698
-4959
-8352

query I rowsort
SELECT ALL - col2 + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT - col0 * 70 AS col0 FROM tab2 cor0
----
-490
-5460
-5530

query I rowsort
SELECT - - 57 + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
1400
274
4659

query I rowsort
SELECT ALL - col0 * ( - 32 ) FROM tab2
----
224
2496
2528

query I rowsort
SELECT ALL col2 + + col0 + + col2 * col0 AS col1 FROM tab1
----
219
3769
7856

query I rowsort
SELECT DISTINCT 83 AS col2 FROM tab2 AS cor0
----
83

query I rowsort
SELECT ALL - col2 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

query I rowsort
SELECT + + ( col2 ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + col1 * col2 ) + 89 + col2 AS col2 FROM tab2
----
1649
773
953

query I rowsort
SELECT + 5 + + col0 FROM tab0
----
29
40
94

query I rowsort
SELECT 64 + - col0 + ( + col1 ) * - col0 * 0 AS col2 FROM tab1
----
-16
0
61

query I rowsort
SELECT ALL 51 * - tab2.col0 + col1 * col0 AS col0 FROM tab2
----
-140
-2686
624

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT ALL col0 + - col2 + + CAST( NULL AS SIGNED ) * - col2 * col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL col0 + - col2 + + CAST ( NULL AS INTEGER ) * - col2 * col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT DISTINCT - ( cor0.col2 ) DIV 60 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - ( cor0.col2 ) / 60 FROM tab0 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5738
SELECT cor0.col1 / - cor0.col1 + CAST( NULL AS SIGNED ) + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5738
SELECT cor0.col1 / - cor0.col1 + CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 65 + cor0.col1 * + col2 * col0 FROM tab0 AS cor0
----
3330
664053
68047

query I rowsort
SELECT col2 * - col2 + - col0 + + ( - tab1.col1 ) FROM tab1
----
-2945
-3323
-9309

query I rowsort
SELECT + + col2 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT + col2 + 48 AS col0 FROM tab1 AS cor0
----
102
105
144

skipif mysql # not compatible
query I rowsort
SELECT cor0.col1 + + CAST ( + col0 AS REAL ) / - col0 - + ( + col0 ) FROM tab1 AS cor0
----
-55
-68
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-5744
SELECT DISTINCT + col2 * ( col0 ) DIV - col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-5744
SELECT DISTINCT + col2 * ( col0 ) / - col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col0 * - ( + cor0.col0 * + col1 ) - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col2 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 19 * cor0.col0 + col2 FROM tab0 AS cor0
----
153963
39249
64506

query I rowsort
SELECT + + cor0.col0 + ( col2 ) FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-5749
SELECT + col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5749
SELECT + col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col1 * - 33 FROM tab1 cor0
----
330
429
858

query I rowsort
SELECT + + col0 + cor0.col2 + - col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT - - col1 * + 22 + + cor0.col1 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT col2 * col2 - + col2 * col0 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT DISTINCT + ( 81 ) AS col0 FROM tab0, tab2 AS cor0
----
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-5755
SELECT col2 DIV + 9 col0 FROM tab0
----
0
3
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5755
SELECT col2 / + 9 col0 FROM tab0
----
0
3
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT ALL CAST( NULL AS DECIMAL ) + - 3 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL CAST ( NULL AS REAL ) + - 3 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col2 - - col2 * + 66 FROM tab0
----
2211
5494
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 + - 4 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to f418dba0734058377851f62431d42d8e

query I rowsort
SELECT + col0 + + ( - col0 ) - - col1 * + 26 * - col2 AS col0 FROM tab2 AS cor0
----
-16796
-21762
-39884

query I rowsort
SELECT - col1 * 23 + cor0.col2 * col0 - col0 AS col0 FROM tab0 cor0
----
-1210
-2231
5116

query I rowsort
SELECT + col0 * ( + cor0.col0 ) - col1 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + col0 + + 9 * + col0 FROM tab1 AS cor0
----
30
640
800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT + 18 DIV + 83 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5763
SELECT + 18 / + 83 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 + 37 * + col1 AS col2 FROM tab1 AS cor0
----
380
494
988

query I rowsort
SELECT DISTINCT ( + col0 ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - - ( + 66 ) * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-5676
-6006
-6402

query I rowsort
SELECT ALL + + 21 * 34 FROM tab0 cor0
----
714
714
714

query I rowsort
SELECT ALL - - 48 AS col1 FROM tab0 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT + 47 FROM tab2, tab1 AS cor0
----
47

query I rowsort
SELECT tab2.col1 * - 16 * - col0 FROM tab2
----
21488
3472
73632

onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT 49 DIV 31 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5771
SELECT 49 / 31 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 * col0 col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT - ( ( col1 ) ) FROM tab1
----
-10
-13
-26

query I rowsort
SELECT DISTINCT - col0 * - ( col0 ) FROM tab0
----
1225
576
7921

query I rowsort
SELECT - 0 * + ( + col2 + - ( col0 ) * + col1 ) AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + + col1 - - col2 * - col1 col1 FROM tab1
----
-1150
-1293
-475

onlyif mysql # use DIV operator for integer division
query I rowsort label-5777
SELECT ( 97 ) DIV col1 AS col2 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-5777
SELECT ( 97 ) / col1 AS col2 FROM tab1
----
3
7
9

query I rowsort
SELECT DISTINCT - tab1.col1 - + 2 * col1 FROM tab1
----
-30
-39
-78

query I rowsort
SELECT - col0 + col2 * - 94 + col2 FROM tab0
----
-128
-3093
-7715

query I rowsort
SELECT + col0 * + col1 + - ( col0 ) + + tab1.col2 FROM tab1
----
1056
129
633

query I rowsort
SELECT + 20 * + col2 * + col2 FROM tab2
----
13520
14580
28880

query I rowsort
SELECT DISTINCT - col2 * + col0 * 24 + col0 * - col0 AS col2 FROM tab1
----
-190720
-3897
-91648

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT + 3 * - col2 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5783
SELECT + 3 * - col2 - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( col2 ) * 30 FROM tab1 AS cor0
----
-1620
-1710
-2880

query I rowsort
SELECT - + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT + - col2 * col1 + + cor0.col2 * col0 * col2 FROM tab2 AS cor0
----
113430
4266
51194

query I rowsort
SELECT + - ( - col2 ) + col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT - - col1 + col0 - col1 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL - 80 FROM tab2 cor0
----
-80
-80
-80

query I rowsort
SELECT - 37 * col2 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1972
-2099
-3539

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
3
64
80

query I rowsort
SELECT ALL - 72 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT - - col1 DIV ( 32 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5793
SELECT - - col1 / ( 32 ) FROM tab1 AS cor0
----
0
0
0

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 624c4b72c6f348b0f702418bfe39bd29

query I rowsort
SELECT ALL - 58 FROM tab2, tab1 AS cor0
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL - 53 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5797
SELECT ALL + CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26

query I rowsort
SELECT - + 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT DISTINCT - 16 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
19
73
8

query I rowsort
SELECT ALL + col0 + + 75 * col2 FROM tab1 AS cor0
----
4053
4339
7280

query I rowsort
SELECT DISTINCT - 54 FROM tab1 cor0
----
-54

query I rowsort
SELECT + - 21 * col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT DISTINCT + - 91 AS col1 FROM tab2 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab1 cor0
----
-3
-64
-80

query I rowsort
SELECT - - 37 AS col0 FROM tab0 AS cor0
----
37
37
37

query I rowsort
SELECT ALL + ( - 58 ) + col2 * - 73 FROM tab1 AS cor0
----
-4000
-4219
-7066

query I rowsort
SELECT ALL - cor0.col0 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT DISTINCT + 84 + 89 FROM tab0 AS cor0
----
173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

query I rowsort
SELECT + - cor0.col1 * - 76 FROM tab2 AS cor0
----
1292
2356
4484

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - col0 * col0 + + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5814
SELECT ALL CAST( NULL AS SIGNED ) + col2 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + 6 + + cor0.col0 + col1 * + col2 FROM tab1 AS cor0
----
1731
1904
976

query I rowsort
SELECT DISTINCT - col2 - - 9 FROM tab2 AS cor0
----
-17
-18
-29

query I rowsort
SELECT - + cor0.col1 * 39 FROM tab0 cor0
----
-3354
-3549
-3783

query I rowsort
SELECT DISTINCT + - 88 + + col1 AS col1 FROM tab0 AS cor0
----
-2
3
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5819
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + col0 * - ( - col0 ) * col0 FROM tab1 cor0
----
-27
262087
511904

onlyif mysql # use DIV operator for integer division
query I rowsort label-5821
SELECT ALL cor0.col1 + - col0 + col1 DIV - col1 FROM tab1 cor0
----
-55
-68
22

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL cor0.col1 + - col0 + col1 / - col1 FROM tab1 cor0
----
-55
-68
22

query I rowsort
SELECT ALL - - 52 AS col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL + + col1 * - col2 + + ( cor0.col0 ) FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + col1 * ( + 27 + - col2 ) * - col1 FROM tab0 AS cor0
----
-244634
44376
455455

query I rowsort
SELECT ALL + cor0.col2 * col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - col0 * - 70 AS col2 FROM tab0 AS cor0
----
1680
2450
6230

query I rowsort
SELECT cor0.col2 + - 61 AS col2 FROM tab0 AS cor0
----
-28
-60
21

query I rowsort
SELECT + 9 - col0 AS col0 FROM tab1
----
-55
-71
6

query I rowsort
SELECT ALL - ( + col1 * - col2 ) + 83 FROM tab2
----
1617
729
920

onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT DISTINCT + col2 * col1 + col1 DIV + ( col2 ) AS col0 FROM tab1
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT + col2 * col1 + col1 / + ( col2 ) AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - - cor0.col2 * 21 + + col2 FROM tab2 cor0
----
572
594
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT ALL + col0 * 78 + cor0.col0 DIV - col1 FROM tab1 AS cor0
----
234
4986
6234

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL + col0 * 78 + cor0.col0 / - col1 FROM tab1 AS cor0
----
234
4986
6234

query I rowsort
SELECT ALL - col2 * - col1 + - col0 FROM tab2
----
1456
567
830

query I rowsort
SELECT ALL tab0.col0 * + col2 + + col2 FROM tab0
----
36
7380
825

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0, tab2 cor1
----
972 values hashing to 89714dd446b7a97f8787d5744bdbf323

query I rowsort
SELECT - col0 * + col1 + 74 FROM tab0
----
-1990
-3321
-8025

query I rowsort
SELECT DISTINCT col2 * 68 AS col2 FROM tab1
----
3672
3876
6528

query I rowsort
SELECT col0 * - col0 - + col0 AS col0 FROM tab2 AS cor0
----
-56
-6162
-6320

query I rowsort
SELECT ALL col1 + col2 - + col0 FROM tab1 AS cor0
----
29
3
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-5840
SELECT cor0.col0 * + cor0.col0 * col1 + - col2 DIV cor0.col2 FROM tab0 AS cor0
----
118824
49535
720810

skipif mysql # not compatible
query I rowsort label-5840
SELECT cor0.col0 * + cor0.col0 * col1 + - col2 / cor0.col2 FROM tab0 AS cor0
----
118824
49535
720810

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( NULL ) >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5842
SELECT DISTINCT tab0.col0 * col0 + col2 DIV - col0 FROM tab0
----
1225
575
7921

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT tab0.col0 * col0 + col2 / - col0 FROM tab0
----
1225
575
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-5843
SELECT + col2 * + col2 * + cor0.col0 - col0 DIV - col1 AS col1 FROM tab0 AS cor0
----
26136
35
598436

skipif mysql # not compatible
query I rowsort label-5843
SELECT + col2 * + col2 * + cor0.col0 - col0 / - col1 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT col1 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT - col1 / col2 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT col2 * + col2 * - col2 + - col1 DIV + col1 FROM tab1
----
-157465
-185194
-884737

skipif mysql # not compatible
query I rowsort label-5846
SELECT col2 * + col2 * - col2 + - col1 / + col1 FROM tab1
----
-157465
-185194
-884737

onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT ALL col1 * col2 DIV col0 + tab2.col0 AS col1 FROM tab2
----
126
87
97

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL col1 * col2 / col0 + tab2.col0 AS col1 FROM tab2
----
126
87
97

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 + col2 ) > NULL
----

query I rowsort
SELECT DISTINCT col0 * - tab1.col0 + - tab1.col1 FROM tab1
----
-35
-4106
-6413

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 WHERE NOT + col2 / + col2 + col0 * col2 * col2 <> ( col1 + col1 )
----

query I rowsort
SELECT tab0.col2 AS col1 FROM tab0 WHERE NOT + col0 + + col1 BETWEEN + col0 * + col0 * + tab0.col2 + col1 * col1 AND ( col1 * + col1 )
----
1
33
82

query I rowsort
SELECT ALL - col0 * col0 + - col1 AS col0 FROM tab0
----
-1322
-662
-8012

query I rowsort
SELECT ALL col1 + - col2 * col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * tab0.col0 * - col2 + col2 AS col0 FROM tab0
----
1226
19041
649604

onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT col1 * col1 * tab0.col2 + col0 DIV col2 AS col1 FROM tab0
----
244068
679043
9444

skipif mysql # not compatible
query I rowsort label-5855
SELECT col1 * col1 * tab0.col2 + col0 / col2 AS col1 FROM tab0
----
244068
679043
9444

query I rowsort
SELECT ALL col2 * + col0 * + col0 + + col1 * col2 FROM tab0
----
1322
21846
656984

query I rowsort
SELECT DISTINCT col1 * + col2 FROM tab1 WHERE + col0 <= NULL
----

query I rowsort
SELECT col2 * col0 - + col2 * col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * - tab0.col1 FROM tab0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 - tab1.col0 * col0 * col0 col0 FROM tab1
----
-261574
-510752
1377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + - col2 * col0 col2 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab0, tab0 cor0
----
1
33
82

query I rowsort
SELECT - tab2.col1 * col2 + - col0 FROM tab2
----
-1612
-725
-844

query I rowsort
SELECT ALL - col0 + col0 * col2 FROM tab0
----
0
7209
768

query I rowsort
SELECT - tab1.col2 * col1 * - col0 FROM tab1
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT DISTINCT + col1 + col0 DIV col1 col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT + col1 + col0 / col1 col2 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5868
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5868
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT + 26 DIV - 28 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-5869
SELECT + 26 / - 28 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT DISTINCT + 95 DIV tab1.col1 FROM tab1
----
3
7
9

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + 95 / tab1.col1 FROM tab1
----
3
7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT + - col2 + + col2 DIV + col2 FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT + - col2 + + col2 / + col2 FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT + + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5873
SELECT + - cor0.col2 * - CAST( 77 AS SIGNED ) FROM tab1 AS cor0
----
4158
4389
7392

skipif mysql # not compatible
query I rowsort label-5873
SELECT + - cor0.col2 * - CAST ( 77 AS INTEGER ) FROM tab1 AS cor0
----
4158
4389
7392

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 70af829b2ea63fd8a25dddddb851fcd5

query I rowsort
SELECT + - cor0.col0 - col0 * + cor0.col0 FROM tab1 AS cor0
----
-12
-4160
-6480

query I rowsort
SELECT col1 + 47 - col1 AS col1 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-5877
SELECT col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col1 * - ( 32 ) * - col2 AS col2 FROM tab0
----
238784
3104
90816

query I rowsort
SELECT col0 + + col0 * col1 - - col2 AS col1 FROM tab1
----
1216
135
761

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5880
SELECT - + col1 * CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676

skipif mysql # not compatible
query I rowsort label-5880
SELECT - + col1 * CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + col2 * + 71 FROM tab2 AS cor0
----
1846
1917
2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT + cor0.col0 * col1 + - col0 DIV col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-5882
SELECT + cor0.col0 * col1 + - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 62 - col1 col1 FROM tab0 AS cor0
----
1402
2073
5427

query I rowsort
SELECT col0 * tab1.col2 * - col2 + + col0 AS col1 FROM tab1
----
-207872
-737200
-8745

query I rowsort
SELECT + col0 - - col0 * - col2 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( col0 ) < NULL
----

query I rowsort
SELECT tab0.col2 * - tab0.col0 AS col0 FROM tab0
----
-35
-7298
-792

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col2 * col2 = col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + tab0.col2 * - tab0.col2 + tab0.col1 col0 FROM tab0
----
-35851
-551277
96

query I rowsort
SELECT col0 + col0 * col2 AS col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT ALL col1 - - col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT BETWEEN ( col2 + + col1 * col1 ) AND col1 / - col2
----

query I rowsort
SELECT - col1 + col0 * col0 + col1 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + tab0.col0 * - col2 * tab0.col1 AS col2 FROM tab0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT - 33 DIV 19 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-5895
SELECT - 33 / 19 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT + col1 FROM tab1 WHERE ( + col2 ) < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = + col0 / - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) NOT IN ( - col2 + - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT tab2.col1 * col1 NOT IN ( col0 * - tab2.col0 - - col2 )
----

query I rowsort
SELECT col0 * - ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT DISTINCT + - col2 + - col0 DIV 13 AS col2 FROM tab2 AS cor0
----
-27
-32
-44

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT + - col2 + - col0 / 13 AS col2 FROM tab2 AS cor0
----
-27
-32
-44

query I rowsort
SELECT ALL - + cor0.col0 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT cor0.col1 + - 19 * 51 FROM tab1 AS cor0
----
-943
-956
-959

onlyif mysql # use DIV operator for integer division
query I rowsort label-5904
SELECT ALL col1 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL col1 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + ( 24 ) col2 FROM tab1 AS cor0
----
1296
1368
2304

query I rowsort
SELECT + col0 + col1 * - col2 AS col0 FROM tab1
----
-1168
-1401
-506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT ALL - + col0 + - col0 DIV + col1 FROM tab2 AS cor0
----
-7
-79
-83

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL - + col0 + - col0 / + col1 FROM tab2 AS cor0
----
-7
-79
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5909
SELECT DISTINCT + tab2.col2 DIV col0 AS col2 FROM tab2
----
0
3

skipif mysql # not compatible
query I rowsort label-5909
SELECT DISTINCT + tab2.col2 / col0 AS col2 FROM tab2
----
0
3

onlyif mysql # use DIV operator for integer division
query I rowsort label-5910
SELECT - - col2 + col0 DIV 3 FROM tab1 cor0
----
122
55
78

skipif mysql # not compatible
query I rowsort label-5910
SELECT - - col2 + col0 / 3 FROM tab1 cor0
----
122
55
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT + col1 + col1 * + CAST( col1 AS SIGNED ) + - col0 DIV col2 FROM tab0 AS cor0
----
7482
8371
9471

skipif mysql # not compatible
query I rowsort label-5911
SELECT + col1 + col1 * + CAST ( col1 AS INTEGER ) + - col0 / col2 FROM tab0 AS cor0
----
7482
8371
9471

query I rowsort
SELECT ALL + 11 * - col1 FROM tab2 AS cor0
----
-187
-341
-649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 * - col0 col2 FROM tab1 AS cor0
----
-186
-3968
-4960

query I rowsort
SELECT DISTINCT ( - 52 ) * col0 * ( col2 ) + col0 * col1 AS col2 FROM tab2
----
-100854
-154761
-9611

query I rowsort
SELECT 69 + + cor0.col1 AS col0 FROM tab0 cor0
----
155
160
166

query I rowsort
SELECT DISTINCT + col2 + col1 * + 8 FROM tab1 AS cor0
----
137
200
262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT 20 + + col2 * + col1 FROM tab0
----
117
2858
7482

query I rowsort
SELECT - - col0 + + cor0.col1 * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - - col0 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT col1 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT ALL 90 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1444
-556
-747

query I rowsort
SELECT ALL - 8 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
-649
-683
-87

query I rowsort
SELECT - + 29 + 1 * col2 FROM tab0 AS cor0
----
-28
4
53

query I rowsort
SELECT ALL - + cor0.col2 * + 97 + - col2 * col2 FROM tab0 AS cor0
----
-14678
-4290
-98

query I rowsort
SELECT DISTINCT 69 + col2 * + tab0.col1 FROM tab0
----
166
2907
7531

query I rowsort
SELECT - col2 * ( col2 ) AS col0 FROM tab0
----
-1
-1089
-6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5928
SELECT ALL + 25 DIV col0 + + col1 DIV - col2 FROM tab0
----
-1
-1
-97

skipif mysql # not compatible
query I rowsort label-5928
SELECT ALL + 25 / col0 + + col1 / - col2 FROM tab0
----
-1
-1
-97

query I rowsort
SELECT + ( col1 ) - - col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT - ( - 49 ) * cor0.col1 - + col2 AS col0 FROM tab1 AS cor0
----
1220
433
541

query I rowsort
SELECT ALL ( col1 ) * + col0 - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL col1 * col1 + cor0.col0 * cor0.col0 AS col0 FROM tab2 cor0
----
1010
6530
9565

onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT ALL - cor0.col0 * col0 + - col0 DIV + col1 AS col2 FROM tab1 cor0
----
-4102
-6406
-9

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL - cor0.col0 * col0 + - col0 / + col1 AS col2 FROM tab1 cor0
----
-4102
-6406
-9

query I rowsort
SELECT - col2 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL - + col0 * - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - col2 + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT DISTINCT 10 + col2 + col1 * col1 FROM tab0 AS cor0
----
7439
8373
9420

onlyif mysql # use DIV operator for integer division
query I rowsort label-5939
SELECT ALL - ( - col0 ) DIV - cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-5939
SELECT ALL - ( - col0 ) / - cor0.col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT + + col1 * - col1 + col2 AS col0 FROM tab0 cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + ( - col1 ) * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT ALL + ( col1 ) + col1 * - col0 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - 94 + - col2 + - col0 FROM tab1 AS cor0
----
-151
-215
-270

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab1 cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * col2 * + col0 col2 FROM tab0 AS cor0
----
1128
18922
649431

query I rowsort
SELECT - col2 * - col0 + cor0.col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT + col2 * - col2 + col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT + - ( + col1 ) + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62

query I rowsort
SELECT ALL - col1 + 0 * - col0 AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL + 52 + + ( + col1 ) * - col0 * col1 FROM tab0
----
-177452
-329263
-736957

query I rowsort
SELECT ALL - 87 + + col1 * - tab2.col1 AS col0 FROM tab2
----
-1048
-3568
-376

onlyif mysql # use DIV operator for integer division
query I rowsort label-5952
SELECT ALL col2 DIV tab0.col2 + + col0 + col2 FROM tab0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL col2 / tab0.col2 + + col0 + col2 FROM tab0
----
172
37
58

query I rowsort
SELECT ALL + col1 * 28 FROM tab2
----
1652
476
868

query I rowsort
SELECT DISTINCT 15 * + col1 FROM tab1 AS cor0
----
150
195
390

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT - 15 DIV 43 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT - 15 / 43 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 29 FROM tab2, tab1 AS cor0
----
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT DISTINCT col0 + col1 * + col2 + + col0 DIV col1 FROM tab2 cor0
----
1613
729
844

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT col0 + col1 * + col2 + + col0 / col1 FROM tab2 cor0
----
1613
729
844

query I rowsort
SELECT DISTINCT - + 23 + col2 + + col1 FROM tab1 AS cor0
----
44
57
86

query I rowsort
SELECT - - col2 + col2 - - cor0.col1 * + 11 FROM tab0 AS cor0
----
1012
1069
1165

query I rowsort
SELECT - cor0.col1 * + col1 + col0 - col2 FROM tab2 cor0
----
-248
-3429
-981

query I rowsort
SELECT 36 * + cor0.col1 + 13 * + col2 FROM tab2 cor0
----
1106
1467
2462

query I rowsort
SELECT ALL col0 * col1 + + col1 * - col1 * col2 FROM tab0 cor0
----
-242004
-6014
-670943

query I rowsort
SELECT DISTINCT + 26 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
26

query I rowsort
SELECT DISTINCT + col2 + - col0 * 76 FROM tab0 AS cor0
----
-1791
-2659
-6682

query I rowsort
SELECT 31 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336

query I rowsort
SELECT - col2 + 63 * 0 AS col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT + + col2 * col1 + - col2 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT col0 + + ( - cor0.col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * ( + 92 + col0 * col1 ) AS col0 FROM tab0
----
185416
338239
745381

query I rowsort
SELECT DISTINCT + 49 + + tab0.col2 FROM tab0, tab2 AS cor0
----
131
50
82

query I rowsort
SELECT ( tab1.col1 ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5972
SELECT - CAST( 40 AS SIGNED ) FROM tab0 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-5972
SELECT - CAST ( 40 AS INTEGER ) FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + 65 * col0 * col0 FROM tab2 AS cor0
----
3185
395460
405665

query I rowsort
SELECT ALL + 8 AS col1 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5976
SELECT ALL - CAST( + ( col1 ) AS SIGNED ) col1 FROM tab0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5976
SELECT ALL - CAST ( + ( col1 ) AS INTEGER ) col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT 53 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 63949b5362442f48bd29195397a57dad

query I rowsort
SELECT DISTINCT 2 * - 12 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 AS REAL ) AS col1 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT + 55 AS col2 FROM tab2, tab0, tab2 AS cor0
----
55

query I rowsort
SELECT DISTINCT + 77 * - col1 FROM tab2
----
-1309
-2387
-4543

query I rowsort
SELECT + + col0 + ( col1 + col1 ) * col2 FROM tab1 AS cor0
----
1204
2576
2811

query I rowsort
SELECT col1 * - col0 + + col1 FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT + col0 * + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL col1 * 16 AS col2 FROM tab2 AS cor0
----
272
496
944

query I rowsort
SELECT DISTINCT + 4 * col2 AS col0 FROM tab1
----
216
228
384

query I rowsort
SELECT + tab0.col0 * - tab0.col2 * + ( col0 ) FROM tab0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-5988
SELECT + - col2 DIV ( - col0 ) + - col0 col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5988
SELECT + - col2 / ( - col0 ) + - col0 col0 FROM tab2 AS cor0
----
-4
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( - ( col2 ) ) col0 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT - col1 DIV 61 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-5990
SELECT - col1 / 61 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT - col0 + + 14 * col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT col2 + 31 * + col1 FROM tab0 AS cor0
----
2699
2903
3008

query I rowsort
SELECT - col0 * 76 + col0 * + col0 * + 52 AS col2 FROM tab2 AS cor0
----
2016
310440
318528

query I rowsort
SELECT - ( col0 * col0 ) FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT + col0 * + col1 + - 8 FROM tab1
----
1032
632
70

query I rowsort
SELECT ALL + - col2 + - col0 * col0 FROM tab1 cor0
----
-4153
-63
-6496

query I rowsort
SELECT DISTINCT + 80 + col2 AS col2 FROM tab1 AS cor0
----
134
137
176

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-5999
SELECT ALL - + col0 DIV CAST( + 84 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL - + col0 / CAST ( + 84 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 + - 50 AS col2 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT DISTINCT col0 + 82 * col0 FROM tab1 AS cor0
----
249
5312
6640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6002
SELECT DISTINCT - col1 + CAST( ( - col0 ) AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort label-6002
SELECT DISTINCT - col1 + CAST ( ( - col0 ) AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT - + tab0.col2 FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

query I rowsort
SELECT DISTINCT 61 * - col1 FROM tab2
----
-1037
-1891
-3599

query I rowsort
SELECT DISTINCT + + col0 * 96 + col1 * - col1 AS col2 FROM tab1 AS cor0
----
-388
6044
7511

query I rowsort
SELECT ALL + - col1 * + 62 FROM tab1 AS cor0
----
-1612
-620
-806

query I rowsort
SELECT DISTINCT - 82 + 21 * + col0 * col2 + + 65 FROM tab2 AS cor0
----
3952
42571
63025

onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT ALL 92 DIV - 86 - - col2 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6008
SELECT ALL 92 / - 86 - - col2 / col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - 15 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-1319
-50
-519

query I rowsort
SELECT DISTINCT - + 53 * - 43 FROM tab2 AS cor0
----
2279

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6011
SELECT + CAST( - 41 AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0
----
-40
-8
41

skipif mysql # not compatible
query I rowsort label-6011
SELECT + CAST ( - 41 AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0
----
-40
-8
41

query I rowsort
SELECT + col0 * ( - col2 * col2 ) + col1 FROM tab1 AS cor0
----
-207926
-737267
-8722

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL - + cor0.col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) - - col2 / + 50 FROM tab1 AS cor0
----
-53
-56
-95

query I rowsort
SELECT DISTINCT - - col1 * - ( + col0 * col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT + + 2 * - cor0.col1 FROM tab1 cor0
----
-20
-26
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * 65 col0 FROM tab0
----
-5265
-5265
-5265

query I rowsort
SELECT ( 12 ) * + col2 * + col2 FROM tab1
----
110592
34992
38988

query I rowsort
SELECT + - col1 - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - 19 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
1602
432
630

query I rowsort
SELECT - + col1 * col1 + 67 * + col2 + col0 FROM tab2 cor0
----
-1661
2336
855

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT ALL + col1 / cor0.col2 - 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-6023
SELECT ALL + col1 / cor0.col2 - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( cor0.col1 ) + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + 38 * + col2 + + col0 FROM tab0 AS cor0
----
1278
3205
73

query I rowsort
SELECT + ( + col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT ALL col1 * col0 + 19 AS col1 FROM tab2 AS cor0
----
1362
236
4621

query I rowsort
SELECT ALL - ( col1 * tab0.col0 ) + - col1 + col1 AS col1 FROM tab0
----
-2064
-3395
-8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab2.col0 * col0 + + col2 col0 FROM tab2
----
370
474578
493077

query I rowsort
SELECT ALL - 48 FROM tab1, tab1 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query I rowsort
SELECT ALL col2 * tab0.col1 + col1 FROM tab0
----
194
2924
7553

query I rowsort
SELECT ALL + - 18 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - 79 * - col0 + col2 * col2 AS col2 FROM tab1 AS cor0
----
15536
3153
8305

query I rowsort
SELECT ALL col0 + - col0 * + 53 FROM tab1 AS cor0
----
-156
-3328
-4160

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 cor0
----
73

query I rowsort
SELECT ALL - col1 * + col0 - - ( - col1 * - col1 ) AS col0 FROM tab0 AS cor0
----
182
5332
6014

query I rowsort
SELECT DISTINCT - + cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT ALL col2 + ( - 8 ) AS col0 FROM tab1 cor0
----
46
49
88

query I rowsort
SELECT col1 + + ( - col0 ) FROM tab0
----
2
62
62

query I rowsort
SELECT 43 * + 97 AS col0 FROM tab0
----
4171
4171
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6041
SELECT CAST( - col0 AS SIGNED ) * + col2 - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

skipif mysql # not compatible
query I rowsort label-6041
SELECT CAST ( - col0 AS INTEGER ) * + col2 - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825

query I rowsort
SELECT - 75 + + 65 + - col0 * 95 AS col1 FROM tab2 cor0
----
-675
-7420
-7515

query I rowsort
SELECT + 28 FROM tab0, tab2, tab0 AS cor0, tab0 AS cor1
----
81 values hashing to 423726553d33e100432ebde49ddd31b5

query I rowsort
SELECT col2 + + col2 + col0 AS col1 FROM tab0 AS cor0
----
253
37
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT ALL - CAST( + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL - CAST ( + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - col2 * + 94 AS col1 FROM tab2 AS cor0
----
-2444
-2538
-3572

onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT + col0 DIV col2 AS col2 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-6047
SELECT + col0 / col2 AS col2 FROM tab0 cor0
----
0
1
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - ( cor0.col0 ) col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT + 36 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c

query I rowsort
SELECT + col1 * - 77 FROM tab1
----
-1001
-2002
-770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 30 + 93 col2 FROM tab0 AS cor0
----
123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6052
SELECT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 98 AS col2 FROM tab1, tab0, tab0 cor0
----
98

query I rowsort
SELECT col1 * col0 + col0 AS col1 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT ALL - + ( - 43 ) + col2 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT ( col1 ) - - col1 AS col2 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col1 + - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT DISTINCT + col2 * - 8 * - col2 FROM tab0 AS cor0
----
53792
8
8712

query I rowsort
SELECT ALL + 88 - ( col2 ) FROM tab1 AS cor0
----
-8
31
34

query I rowsort
SELECT + 27 * col2 + col0 FROM tab0 AS cor0
----
2303
62
915

onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT DISTINCT + 84 DIV col2 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT + 84 / col2 FROM tab1 cor0
----
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6062
SELECT DISTINCT + col2 * col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + col2 * col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col1 + + cor0.col1 + col2 AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + ( - col1 ) AS col2 FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT ALL - 88 + + col0 FROM tab2 AS cor0
----
-10
-81
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 71 * col0 + col0 col2 FROM tab2 AS cor0
----
504
5616
5688

query I rowsort
SELECT ALL + 41 + col0 * - tab2.col0 + ( col1 ) * col1 FROM tab2
----
-2562
-5911
953

query I rowsort
SELECT - col0 * + col1 + col2 + + 83 AS col1 FROM tab0
----
-1948
-3311
-7934

query I rowsort
SELECT + col1 - + tab2.col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col0 + col0 * col1 AS col2 FROM tab2 cor0
----
1422
224
4680

query I rowsort
SELECT + col0 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
-45
4039
6304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6072
SELECT DISTINCT - cor0.col0 + - CAST( NULL AS SIGNED ) / col2 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - cor0.col0 + - CAST ( NULL AS INTEGER ) / col2 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT DISTINCT + col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6073
SELECT DISTINCT + col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + col2 + 30 AS col1 FROM tab1 AS cor0
----
192
3678
7710

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT DISTINCT + col0 + + ( col0 ) DIV col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT + col0 + + ( col0 ) / col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col0 * - col2 + - 29 FROM tab1 cor0
----
-191
-3677
-7709

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6077
SELECT - + col1 * CAST( NULL AS SIGNED ) + + cor0.col2 * + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6077
SELECT - + col1 * CAST ( NULL AS INTEGER ) + + cor0.col2 * + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * col0 col0 FROM tab1
----
150
3200
4000

query I rowsort
SELECT + + ( + cor0.col0 ) * col0 * + col0 - + 7 FROM tab0 cor0
----
13817
42868
704962

query I rowsort
SELECT - - col2 * - 43 + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-1066
-1181
-1593

query I rowsort
SELECT + + cor0.col0 - ( cor0.col1 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT + + 78 * ( col1 ) FROM tab0 AS cor0
----
6708
7098
7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 - - col1 * col1 col0 FROM tab2 AS cor0
----
1010
6530
9565

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0, tab2 AS cor0
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * + col0 col1 FROM tab2
----
-49
-6084
-6241

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 FROM tab0, tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + + 1 * + col1 + - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL tab1.col1 * ( - col0 ) + - col2 * + ( col1 ) FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT + tab1.col2 * + tab1.col2 FROM tab1
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6091
SELECT ALL + col1 * CAST( + col1 AS SIGNED ) * - col0 + + 56 + - col1 * - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL + col1 * CAST ( + col1 AS INTEGER ) * - col0 + + 56 + - col1 * - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + ( - 81 ) FROM tab2 AS cor0
----
-107
-108
-119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 - - 25 * col1 col2 FROM tab1 AS cor0
----
1573
2054
820

query I rowsort
SELECT - 67 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query I rowsort
SELECT DISTINCT - col2 * col2 + + tab2.col1 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT col0 * 0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + 0 * - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( + 41 ) * col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT ALL + + col1 * 60 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT + 50 * - 37 FROM tab1 AS cor0
----
-1850
-1850
-1850

query I rowsort
SELECT - 27 * 55 AS col1 FROM tab0 AS cor0
----
-1485
-1485
-1485

query I rowsort
SELECT DISTINCT ( - col1 ) * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col0 + - 57 FROM tab1 AS cor0
----
-54
23
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 86 * - col1 + col2 FROM tab0 AS cor0
----
7429
7908
8343

query I rowsort
SELECT DISTINCT + cor0.col2 * 44 AS col2 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT ALL - col1 * ( - tab1.col1 * + col0 ) FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - 81 + col0 * col1 FROM tab0 AS cor0
----
1983
3314
8018

onlyif mysql # use DIV operator for integer division
query I rowsort label-6109
SELECT DISTINCT + cor0.col1 DIV - col0 + + col0 * - 10 FROM tab2 AS cor0
----
-74
-780
-790

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + cor0.col1 / - col0 + + col0 * - 10 FROM tab2 AS cor0
----
-74
-780
-790

query I rowsort
SELECT ALL + 19 * 56 AS col0 FROM tab0 AS cor0
----
1064
1064
1064

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6111
SELECT + CAST( NULL AS DECIMAL ) + - col1 * - col0 / - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6111
SELECT + CAST ( NULL AS REAL ) + - col1 * - col0 / - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * + col0 + - cor0.col0 * col1 * + col1 AS col1 FROM tab1 AS cor0
----
-1866
-2752
-5840

query I rowsort
SELECT + ( col1 ) * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT col1 + col2 + + 6 * 35 AS col1 FROM tab2
----
265
268
295

query I rowsort
SELECT cor0.col1 * col0 + - 2 FROM tab1 AS cor0
----
1038
638
76

query I rowsort
SELECT - 13 + col0 FROM tab1 AS cor0
----
-10
51
67

query I rowsort
SELECT DISTINCT + 92 * + col2 + + 45 * 46 + col2 * col0 FROM tab2 AS cor0
----
4743
6490
8568

query I rowsort
SELECT + col1 + col2 * + 4 AS col0 FROM tab0 AS cor0
----
101
218
419

query I rowsort
SELECT ALL - - col0 + - 38 * 67 FROM tab2 AS cor0
----
-2467
-2468
-2539

query I rowsort
SELECT DISTINCT col0 * + 42 + col1 AS col0 FROM tab0 AS cor0
----
1094
1567
3829

query I rowsort
SELECT DISTINCT cor0.col1 * 46 AS col0 FROM tab1 AS cor0
----
1196
460
598

query I rowsort
SELECT ALL + col2 + + col0 * - ( col0 ) AS col0 FROM tab1 cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - cor0.col0 * 39 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT ALL col0 * + ( col1 ) + + cor0.col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL 75 * - col0 AS col0 FROM tab2
----
-525
-5850
-5925

query I rowsort
SELECT 31 - - col0 AS col1 FROM tab2
----
109
110
38

query I rowsort
SELECT col0 * - 36 AS col1 FROM tab0 AS cor0
----
-1260
-3204
-864

query I rowsort
SELECT ALL cor0.col2 * + col0 - col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL + cor0.col2 + col1 FROM tab0 cor0
----
119
173
98

query I rowsort
SELECT - col0 + ( 59 ) * - col1 FROM tab2 AS cor0
----
-1082
-1836
-3559

query I rowsort
SELECT + col2 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT ALL + col1 * - ( - col1 ) AS col0 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT - - cor0.col1 - + cor0.col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - cor0.col1 * - 98 - col2 FROM tab0 AS cor0
----
8395
8836
9505

onlyif mysql # use DIV operator for integer division
query I rowsort label-6135
SELECT + cor0.col1 + - col1 * - cor0.col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-6135
SELECT + cor0.col1 + - col1 * - cor0.col1 / + col1 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT DISTINCT + col0 + - col0 * col2 DIV + col1 FROM tab0 AS cor0
----
15
35
9

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT + col0 + - col0 * col2 / + col1 FROM tab0 AS cor0
----
15
35
9

query I rowsort
SELECT - col2 * - cor0.col1 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT - col1 * 59 - - 47 * + col2 * - cor0.col2 FROM tab1 AS cor0
----
-138586
-153293
-433919

query I rowsort
SELECT + ( col1 * - 71 ) - + 53 FROM tab2
----
-1260
-2254
-4242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + 36 * 78 col1 FROM tab2 AS cor0
----
-2749
-2777
-2791

query I rowsort
SELECT DISTINCT - col0 * 32 FROM tab0 AS cor0
----
-1120
-2848
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 54 col2 FROM tab2 cor0
----
-1404
-1458
-2052

query I rowsort
SELECT ALL + col0 * - 43 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT col2 * ( - tab1.col0 ) AS col0 FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT ALL + col2 + + 29 AS col0 FROM tab0
----
111
30
62

query I rowsort
SELECT ( cor0.col1 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT DISTINCT + col0 DIV col2 + col0 col0 FROM tab0
----
24
70
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT + col0 / col2 + col0 col0 FROM tab0
----
24
70
90

query I rowsort
SELECT DISTINCT - 22 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1958
-528
-770

query I rowsort
SELECT - 92 + col1 FROM tab1
----
-66
-79
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL 7 * - col0 * ( 63 ) AS col2 FROM tab0
----
-10584
-15435
-39249

onlyif mysql # use DIV operator for integer division
query I rowsort label-6153
SELECT ALL - + col0 + - col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL - + col0 + - col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
-132
-26
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6154
SELECT DISTINCT cor0.col1 + col0 - col0 DIV ( + col2 ) FROM tab0 AS cor0
----
110
179
97

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT cor0.col1 + col0 - col0 / ( + col2 ) FROM tab0 AS cor0
----
110
179
97

query I rowsort
SELECT ALL - col2 * col2 * + col2 + + ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-33873
-543269
3394

query I rowsort
SELECT cor0.col1 * col2 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
14186
3927
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6157
SELECT - - col1 DIV + cor0.col2 + + col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-6157
SELECT - - col1 / + cor0.col2 + + col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT - tab0.col1 * - tab0.col1 FROM tab0
----
7396
8281
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col1 * - tab2.col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + tab1.col0 - col2 AS col1 FROM tab1 WHERE NOT col0 / col0 IN ( - col0 )
----
-16
-51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT tab1.col2 * col2 + col1 DIV col0 + + col0 FROM tab1 WHERE NOT col1 * col0 < col2 + col0
----
2927
3313
9296

skipif mysql # not compatible
query I rowsort label-6162
SELECT tab1.col2 * col2 + col1 / col0 + + col0 FROM tab1 WHERE NOT col1 * col0 < col2 + col0
----
2927
3313
9296

query I rowsort
SELECT - col1 * + col0 * col2 AS col2 FROM tab2
----
-119652
-51034
-5859

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col1 FROM tab1
----
35
4106
6413

query I rowsort
SELECT + 48 * col0 FROM tab2
----
336
3744
3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT + col0 DIV col2 + col1 * col0 + tab1.col2 AS col2 FROM tab1
----
1136
132
698

skipif mysql # not compatible
query I rowsort label-6167
SELECT + col0 / col2 + col1 * col0 + tab1.col2 AS col2 FROM tab1
----
1136
132
698

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT ALL + col2 DIV col1 + col0 AS col2 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL + col2 / col1 + col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - col1 * col1 * - col2 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT - col2 * + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT ALL tab2.col2 + + tab2.col0 * col2 * - col2 - + col2 AS col0 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + col2 * col1 FROM tab1 WHERE col2 - - col2 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT col2 * col2 - - col2 * tab1.col2 DIV col2 AS col1 FROM tab1
----
2970
3306
9312

skipif mysql # not compatible
query I rowsort label-6174
SELECT col2 * col2 - - col2 * tab1.col2 / col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + col0 + col0 * - col1 * - col1 + col2 AS col0 FROM tab0
----
177561
329351
737180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 - - col0 col2 FROM tab1
----
3
64
80

query I rowsort
SELECT - col2 * col2 * + col1 AS col2 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 / - col1 + col1 - - col1 )
----

query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + + 14 AS col0 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL col1 + - cor0.col2 AS col0 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - col1 * col2 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT + 37 + - 99 FROM tab0, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT + 84 * cor0.col2 * 6 + col1 - - col1 AS col1 FROM tab1 AS cor0
----
27268
28748
48410

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 * col0 * col2 ) BETWEEN + col2 AND ( NULL )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT DISTINCT - col2 + - tab2.col0 * col2 AS col1 FROM tab2
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - cor0.col2 * col2 - col0 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col2 + tab2.col1 * col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT DISTINCT + col2 * - tab2.col0 AS col0 FROM tab2
----
-189
-2028
-3002

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( col0 * + col1 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( tab2.col0 )
----

query I rowsort
SELECT ALL - col1 / col2 + col0 * col0 + col0 FROM tab1 WHERE - col0 * col2 < NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 + - tab1.col2 FROM tab1
----
108
3591
7584

query I rowsort
SELECT cor0.col2 * + col1 - 78 * - col2 AS col1 FROM tab1 cor0
----
5016
5616
8736

query I rowsort
SELECT ALL - col2 - + col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + 2 AS col2 FROM tab1 AS cor0
----
-167
-674
-98

query I rowsort
SELECT - - col1 - col0 AS col2 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT DISTINCT - 9 + + col0 AS col0 FROM tab1 AS cor0
----
-6
55
71

query I rowsort
SELECT ALL - ( - 62 ) * + col1 AS col0 FROM tab0
----
5332
5642
6014

query I rowsort
SELECT DISTINCT ( - cor0.col0 * - 73 ) FROM tab2, tab1 AS cor0
----
219
4672
5840

query I rowsort
SELECT DISTINCT 2 * col2 + + ( col2 + col0 * - col0 ) AS col2 FROM tab0
----
-1222
-477
-7675

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6204
SELECT ALL 38 + col0 * CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL 38 + col0 * CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( + tab1.col2 ) AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT ALL + ( col2 ) * 98 + - col0 AS col0 FROM tab0 AS cor0
----
3210
63
7947

onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT + cor0.col1 DIV col0 - + col1 AS col1 FROM tab0 AS cor0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-6207
SELECT + cor0.col1 / col0 - + col1 AS col1 FROM tab0 AS cor0
----
-83
-90
-95

query I rowsort
SELECT ALL - 96 + - tab0.col1 FROM tab0
----
-182
-187
-193

query I rowsort
SELECT + col2 * + col2 + + col1 FROM tab1
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT ALL 98 DIV col2 + ( 31 ) DIV col1 AS col1 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6210
SELECT ALL 98 / col2 + ( 31 ) / col1 AS col1 FROM tab1
----
2
3
4

query I rowsort
SELECT ALL 70 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT col2 * + col0 * + col0 + + col0 * 65 * + col2 AS col1 FROM tab0
----
1123892
3500
70488

onlyif mysql # use DIV operator for integer division
query I rowsort label-6213
SELECT ALL 65 + 92 DIV + col1 FROM tab0 AS cor0
----
65
66
66

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL 65 + 92 / + col1 FROM tab0 AS cor0
----
65
66
66

query I rowsort
SELECT DISTINCT - 46 * 93 * col2 - ( col0 ) FROM tab2 AS cor0
----
-111306
-115513
-162643

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + + tab0.col0 col1 FROM tab0
----
132
2862
7551

query I rowsort
SELECT col1 + tab0.col2 * - 72 FROM tab0
----
-2290
-5813
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - 97 col0 FROM tab2
----
104
175
176

query I rowsort
SELECT - col2 * 49 * - col0 AS col2 FROM tab2
----
147098
9261
99372

query I rowsort
SELECT + 57 * ( col2 ) + col1 FROM tab1 cor0
----
3104
3259
5485

query I rowsort
SELECT + - 55 * 57 AS col0 FROM tab0 AS cor0
----
-3135
-3135
-3135

query I rowsort
SELECT - 84 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1428
2604
4956

query I rowsort
SELECT DISTINCT - - ( cor0.col1 ) + + col1 * col1 FROM tab1 cor0
----
110
182
702

query I rowsort
SELECT - 26 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2038
3369
8073

query I rowsort
SELECT ALL - cor0.col0 + + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-121
-176
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 + col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
133
6168
6325

query I rowsort
SELECT DISTINCT + - 92 + cor0.col0 * + col1 AS col2 FROM tab0 AS cor0
----
1972
3303
8007

query I rowsort
SELECT - col0 * col1 * - col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT + 54 * + col1 AS col2 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT 54 * col1 AS col0 FROM tab0 cor0
----
4644
4914
5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-6230
SELECT DISTINCT - 11 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - 11 / col1 AS col2 FROM tab1 AS cor0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6231
SELECT + CAST( 59 AS SIGNED ) FROM tab2
----
59
59
59

skipif mysql # not compatible
query I rowsort label-6231
SELECT + CAST ( 59 AS INTEGER ) FROM tab2
----
59
59
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6232
SELECT DISTINCT - col2 DIV + 18 AS col0 FROM tab1
----
-3
-5

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - col2 / + 18 AS col0 FROM tab1
----
-3
-5

query I rowsort
SELECT DISTINCT - - 26 AS col2 FROM tab2 cor0
----
26

query I rowsort
SELECT - - col1 * + cor0.col1 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL 46 + + 17 * col1 FROM tab0 AS cor0
----
1508
1593
1695

onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT ALL 31 * 16 DIV - col0 FROM tab0
----
-14
-20
-5

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL 31 * 16 / - col0 FROM tab0
----
-14
-20
-5

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT - - 39 * col0 FROM tab2 AS cor0
----
273
3042
3081

query I rowsort
SELECT 53 * col1 AS col2 FROM tab2 AS cor0
----
1643
3127
901

query I rowsort
SELECT ALL + ( col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT 35 AS col1 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT DISTINCT - col2 * col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724

query I rowsort
SELECT - 33 * + col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT col2 * 18 + tab0.col0 FROM tab0
----
1565
53
618

onlyif mysql # use DIV operator for integer division
query I rowsort label-6245
SELECT col1 + + tab1.col0 DIV col1 AS col1 FROM tab1
----
16
19
26

skipif mysql # not compatible
query I rowsort label-6245
SELECT col1 + + tab1.col0 / col1 AS col1 FROM tab1
----
16
19
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6246
SELECT 42 + + cor0.col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
38
42
42

skipif mysql # not compatible
query I rowsort label-6246
SELECT 42 + + cor0.col1 / - col0 AS col2 FROM tab2 AS cor0
----
38
42
42

query I rowsort
SELECT ALL - col1 + + 8 FROM tab2 AS cor0
----
-23
-51
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6248
SELECT DISTINCT col0 DIV + col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT col0 / + col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
-24
-35
-89

query I rowsort
SELECT ALL - col0 * - 94 * 13 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
108676
29295
42769

query I rowsort
SELECT DISTINCT + - col2 * ( - cor0.col2 ) + - cor0.col2 + col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + + col2 + - ( + col0 ) + + col1 AS col1 FROM tab2 cor0
----
-24
51
7

query I rowsort
SELECT + - cor0.col1 * 49 AS col0 FROM tab0 AS cor0
----
-4214
-4459
-4753

onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT DISTINCT + - col2 DIV 71 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
88

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + - col2 / 71 + + col0 AS col1 FROM tab0 AS cor0
----
24
35
88

query I rowsort
SELECT ALL - col1 + + 47 + - col2 * col0 FROM tab2 AS cor0
----
-173
-2040
-2972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 - col0 col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL + col2 + - col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-100
-139
-193

query I rowsort
SELECT col0 + + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL col0 + - cor0.col1 AS col0 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + - cor0.col1 * + col2 * - cor0.col2 AS col0 FROM tab1 cor0
----
119808
32490
75816

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4

query I rowsort
SELECT DISTINCT - col0 * + 16 + + col2 FROM tab1 AS cor0
----
-1184
-967
6

query I rowsort
SELECT + col0 + col2 * - col1 FROM tab1 cor0
----
-1168
-1401
-506

query I rowsort
SELECT + - col0 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6265
SELECT CAST( NULL AS SIGNED ) + 62 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6265
SELECT CAST ( NULL AS INTEGER ) + 62 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6266
SELECT + col1 DIV + col1 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6266
SELECT + col1 / + col1 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT col0 - - col2 * + col2 FROM tab1 cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6268
SELECT + cor0.col0 * CAST( + col2 AS SIGNED ) * - col1 + CAST( - col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388

skipif mysql # not compatible
query I rowsort label-6268
SELECT + cor0.col0 * CAST ( + col2 AS INTEGER ) * - col1 + CAST ( - col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388

query I rowsort
SELECT - + col0 - - ( col2 ) * col2 FROM tab1 cor0
----
2913
3185
9136

onlyif mysql # use DIV operator for integer division
query I rowsort label-6270
SELECT 16 + - 35 DIV + col0 AS col2 FROM tab1 cor0
----
16
16
5

skipif mysql # not compatible
query I rowsort label-6270
SELECT 16 + - 35 / + col0 AS col2 FROM tab1 cor0
----
16
16
5

query I rowsort
SELECT 18 + col1 + + col1 FROM tab2 cor0
----
136
52
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6272
SELECT + 33 + col0 * - CAST( 63 AS SIGNED ) FROM tab2 AS cor0
----
-408
-4881
-4944

skipif mysql # not compatible
query I rowsort label-6272
SELECT + 33 + col0 * - CAST ( 63 AS INTEGER ) FROM tab2 AS cor0
----
-408
-4881
-4944

query I rowsort
SELECT + - 72 * + col1 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT ALL 28 * tab1.col2 * col1 + col2 AS col1 FROM tab1
----
16017
35040
39366

query I rowsort
SELECT ALL + col0 + - col1 * col2 * - ( col0 ) AS col2 FROM tab0
----
3430
664207
68136

query I rowsort
SELECT + col0 * + ( ( col0 ) ) - col1 * 89 * - col1 FROM tab1 AS cor0
----
12996
21441
60173

onlyif mysql # use DIV operator for integer division
query I rowsort label-6277
SELECT ALL col1 + + col2 * 58 DIV - col0 AS col1 FROM tab0
----
38
7
96

skipif mysql # not compatible
query I rowsort label-6277
SELECT ALL col1 + + col2 * 58 / - col0 AS col1 FROM tab0
----
38
7
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6278
SELECT ALL - col2 DIV col0 + 44 AS col0 FROM tab0
----
43
44
44

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - col2 / col0 + 44 AS col0 FROM tab0
----
43
44
44

query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL - col0 * + col0 + col1 * col1 FROM tab1 AS cor0
----
-3996
-6231
667

query I rowsort
SELECT 89 + - col1 FROM tab0 AS cor0
----
-2
-8
3

query I rowsort
SELECT ALL + - 7 * - col1 + col2 * + 76 FROM tab2 AS cor0
----
2269
2389
3007

query I rowsort
SELECT ALL - col0 * - 58 FROM tab0 AS cor0
----
1392
2030
5162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 - - ( col0 * - col2 ) FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT + col1 * + 46 AS col2 FROM tab0 AS cor0
----
3956
4186
4462

query I rowsort
SELECT - + 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT col1 * 78 - + 14 AS col0 FROM tab0
----
6694
7084
7552

query I rowsort
SELECT DISTINCT - ( 59 ) AS col1 FROM tab2, tab0 AS cor0
----
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6290
SELECT + CAST( + col0 * col1 AS SIGNED ) FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-6290
SELECT + CAST ( + col0 * col1 AS INTEGER ) FROM tab2
----
1343
217
4602

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab1 cor0, tab1 AS cor1
----
972 values hashing to 0be13143d898cc667fe1a2dd93b34703

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - + 47 + col1 AS col0 FROM tab2 AS cor0
----
-16
-30
12

query I rowsort
SELECT ALL + 22 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e

query I rowsort
SELECT - 67 * col2 AS col1 FROM tab2 cor0
----
-1742
-1809
-2546

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT ALL + col2 + - cor0.col0 DIV + 49 FROM tab1 AS cor0
----
54
56
95

skipif mysql # not compatible
query I rowsort label-6296
SELECT ALL + col2 + - cor0.col0 / + 49 FROM tab1 AS cor0
----
54
56
95

query I rowsort
SELECT DISTINCT 72 + + col0 FROM tab0 AS cor0
----
107
161
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT + col0 / - cor0.col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT + col1 * 54 AS col2 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT ALL - ( col0 ) - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col2 + col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6302
SELECT - CAST( NULL AS SIGNED ) * col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6302
SELECT - CAST ( NULL AS INTEGER ) * col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col1 * 13 + - cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
130
169
338

query I rowsort
SELECT - + col1 * + col0 * cor0.col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + col0 - - col1 * col2 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT 34 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to 6cda47a564e8ee9e9e7915815a3a7769

query I rowsort
SELECT DISTINCT ( cor0.col0 ) + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT - + ( + col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT col2 + ( + col2 ) FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT - 98 * + col0 * 78 FROM tab2 AS cor0
----
-53508
-596232
-603876

query I rowsort
SELECT + 6 + + col1 FROM tab1 AS cor0
----
16
19
32

skipif mysql # not compatible
query I rowsort
SELECT + 91 + - col2 - + CAST ( col2 * - col0 AS REAL ) AS col1 FROM tab1 AS cor0
----
199
3682
7675

query I rowsort
SELECT + - col0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506

query I rowsort
SELECT ALL - + col0 + col0 * col2 * col0 AS col1 FROM tab0 cor0
----
1190
18984
649433

query I rowsort
SELECT + 74 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT - tab1.col0 + tab1.col2 * + col0 AS col2 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - ( tab1.col1 ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - + col0 * + 65 AS col1 FROM tab1 cor0
----
-195
-4160
-5200

query I rowsort
SELECT ALL + - cor0.col0 - col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL col2 + + ( + col1 + - col0 ) FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT + col0 * + 67 FROM tab0 AS cor0
----
1608
2345
5963

query I rowsort
SELECT ALL - - col2 + ( - col2 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT + - col2 + - 57 * + 98 AS col1 FROM tab1 cor0
----
-5640
-5643
-5682

query I rowsort
SELECT DISTINCT - + col1 + 8 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT ALL + col0 * + 83 - cor0.col1 FROM tab0 AS cor0
----
1906
2808
7296

query I rowsort
SELECT DISTINCT col2 * 37 * + cor0.col0 FROM tab0 cor0
----
1295
270026
29304

query I rowsort
SELECT DISTINCT - col2 * cor0.col0 + - col2 * + col0 FROM tab0 cor0
----
-14596
-1584
-70

query I rowsort
SELECT ALL - + col1 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 20 + + col1 AS col0 FROM tab1
----
-10
-7
6

query I rowsort
SELECT + tab0.col2 + col1 - col0 FROM tab0
----
63
84
95

query I rowsort
SELECT - col1 * tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL - col1 * + 38 AS col1 FROM tab0 AS cor0
----
-3268
-3458
-3686

query I rowsort
SELECT - + col0 + + 62 * cor0.col2 AS col1 FROM tab2 cor0
----
1534
1667
2277

onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT ALL cor0.col2 DIV - col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6335
SELECT ALL cor0.col2 / - col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * 7 * - col1 AS col2 FROM tab2 AS cor0
----
-10738
-4522
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 10 * col0 col0 FROM tab2
----
63
702
711

query I rowsort
SELECT DISTINCT - col0 * 82 AS col1 FROM tab0
----
-1968
-2870
-7298

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6339
SELECT + - CAST( NULL AS DECIMAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT + - CAST ( NULL AS REAL ) + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL tab2.col1 + col2 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT - col1 * + ( col2 + - col1 ) FROM tab2
----
-357
124
1947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 + + col2 ) col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT + ( - 91 ) FROM tab0 cor0
----
-91

query I rowsort
SELECT DISTINCT + 28 * - 83 FROM tab0 AS cor0
----
-2324

query I rowsort
SELECT ALL 19 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1558
19
627

query I rowsort
SELECT + 69 + + col2 AS col0 FROM tab2 cor0
----
107
95
96

query I rowsort
SELECT ALL + col1 * col0 * col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL - - col1 * 65 FROM tab0 AS cor0
----
5590
5915
6305

query I rowsort
SELECT + 0 * col1 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col2 + 51 * col1 FROM tab1 AS cor0
----
1272
453
567

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT DISTINCT col1 * col1 + col2 + - 47 DIV + col2 FROM tab0
----
7428
8363
9363

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT col1 * col1 + col2 + - 47 / + col2 FROM tab0
----
7428
8363
9363

onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT DISTINCT + 35 DIV 80 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT + 35 / 80 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
0

query I rowsort
SELECT DISTINCT col0 * col1 + - col1 * - ( col1 ) + + col0 FROM tab1
----
1289
757
804

onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT + 85 + col0 DIV ( col0 ) + col0 AS col0 FROM tab1
----
150
166
89

skipif mysql # not compatible
query I rowsort label-6354
SELECT + 85 + col0 / ( col0 ) + col0 AS col0 FROM tab1
----
150
166
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-6355
SELECT DISTINCT cor0.col0 + + col1 DIV col1 + + col0 FROM tab2 AS cor0
----
15
157
159

skipif mysql # not compatible
query I rowsort label-6355
SELECT DISTINCT cor0.col0 + + col1 / col1 + + col0 FROM tab2 AS cor0
----
15
157
159

query I rowsort
SELECT - 0 + + col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT + col2 * - col0 - + col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6358
SELECT - col1 + cor0.col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT - col1 + cor0.col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6359
SELECT - + col0 * col1 * - CAST( NULL AS SIGNED ) + col2 * cor0.col1 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6359
SELECT - + col0 * col1 * - CAST ( NULL AS INTEGER ) + col2 * cor0.col1 - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + + col0 * + col1 FROM tab0 cor0
----
2031
3394
8017

query I rowsort
SELECT DISTINCT - 27 * col2 + 72 * col0 AS col1 FROM tab2 AS cor0
----
-225
4662
4914

query I rowsort
SELECT 11 + - col2 FROM tab2 AS cor0
----
-15
-16
-27

query I rowsort
SELECT ALL + cor0.col0 * 44 AS col1 FROM tab2 AS cor0
----
308
3432
3476

onlyif mysql # use DIV operator for integer division
query I rowsort label-6364
SELECT - + col1 DIV 98 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6364
SELECT - + col1 / 98 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * ( + col1 * - col1 ) FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - + col2 + col1 * + cor0.col0 AS col1 FROM tab2 cor0
----
1305
190
4576

query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * col1 AS col2 FROM tab0 cor0
----
2871
7544
98

query I rowsort
SELECT - + col2 + 65 * cor0.col0 AS col0 FROM tab2 AS cor0
----
428
5044
5097

query I rowsort
SELECT cor0.col0 + 36 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 67d581e2a26212bafa36a5b3a22acdff

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab0, tab0 cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * col1 + + col1 * col2 col1 FROM tab1 AS cor0
----
1014
1053
420

query I rowsort
SELECT DISTINCT col2 * tab1.col0 AS col1 FROM tab1
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6373
SELECT ALL 99 DIV 3 AS col1 FROM tab0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL 99 / 3 AS col1 FROM tab0
----
33
33
33

query I rowsort
SELECT + + col1 + col0 * 14 * + 9 FROM tab1 AS cor0
----
10093
404
8074

query I rowsort
SELECT - col1 * + col0 - col0 * + 81 FROM tab0 AS cor0
----
-15308
-4008
-6230

query I rowsort
SELECT DISTINCT + ( tab2.col1 ) - + tab2.col2 AS col2 FROM tab2
----
-21
33
4

query I rowsort
SELECT col1 * cor0.col1 AS col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - col0 * cor0.col0 * - 16 FROM tab0 AS cor0
----
126736
19600
9216

query I rowsort
SELECT - 91 + col2 * + col1 FROM tab0 AS cor0
----
2747
6
7371

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT + 44 DIV col0 + col0 AS col2 FROM tab1 AS cor0
----
17
64
80

skipif mysql # not compatible
query I rowsort label-6380
SELECT + 44 / col0 + col0 AS col2 FROM tab1 AS cor0
----
17
64
80

query I rowsort
SELECT ALL col0 + + col1 + - col1 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT - cor0.col1 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-2087
-220
-3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6383
SELECT + - CAST( NULL AS SIGNED ) * ( col2 * - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT + - CAST ( NULL AS INTEGER ) * ( col2 * - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT 73 * + tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
1898
1971
2774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT + 17 * - col2 FROM tab2 AS cor0
----
-442
-459
-646

query I rowsort
SELECT ALL ( col1 ) + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6389
SELECT - - CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6389
SELECT - - CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - col1 * col2 * ( 25 * col2 ) FROM tab2 AS cor0
----
-565002
-613738
-997126

query I rowsort
SELECT DISTINCT - 38 * + 79 FROM tab1 AS cor0
----
-3002

query I rowsort
SELECT ALL + 94 * - 53 + - col1 FROM tab1 AS cor0
----
-4992
-4995
-5008

query I rowsort
SELECT DISTINCT - 16 * + 94 + - col1 FROM tab2 AS cor0
----
-1521
-1535
-1563

query I rowsort
SELECT ALL - col1 + 58 FROM tab1 AS cor0
----
32
45
48

query I rowsort
SELECT ALL + col2 * cor0.col1 - col0 * + cor0.col0 * - ( + col1 + - col1 ) FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * + 81 * + col1 AS col2 FROM tab1 AS cor0
----
51840
6318
84240

query I rowsort
SELECT ALL + col1 * + tab1.col0 AS col0 FROM tab1
----
1040
640
78

query I rowsort
SELECT DISTINCT - tab1.col2 * - tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 + + col2 col0 FROM tab0
----
36
7380
825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6400
SELECT ALL + col1 * CAST( 10 * col1 AS SIGNED ) AS col1 FROM tab1
----
1000
1690
6760

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL + col1 * CAST ( 10 * col1 AS INTEGER ) AS col1 FROM tab1
----
1000
1690
6760

query I rowsort
SELECT - + col0 * 76 + col1 AS col2 FROM tab2 AS cor0
----
-501
-5869
-5987

query I rowsort
SELECT - 59 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT - col2 * col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT - col2 * col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 17 * col0 * + col1 FROM tab1 AS cor0
----
10880
1326
17680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6405
SELECT DISTINCT - ( - col0 ) * - ( - 83 ) + col1 DIV + CAST( 2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2035
2953
7432

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT - ( - col0 ) * - ( - 83 ) + col1 / + CAST ( 2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2035
2953
7432

query I rowsort
SELECT - - cor0.col1 * - col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + + col2 * + col0 + - 55 AS col1 FROM tab0 cor0
----
-20
7243
737

query I rowsort
SELECT DISTINCT cor0.col1 + - ( + col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL 46 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT col1 * + ( col1 + col1 ) AS col0 FROM tab1 AS cor0
----
1352
200
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT col0 + - cor0.col1 DIV 8 AS col1 FROM tab0 AS cor0
----
14
23
78

skipif mysql # not compatible
query I rowsort label-6412
SELECT col0 + - cor0.col1 / 8 AS col1 FROM tab0 AS cor0
----
14
23
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 * 31 col2 FROM tab0 AS cor0
----
-105245
-251069
-63984

query I rowsort
SELECT - col2 * ( col2 + + col2 ) FROM tab1 AS cor0
----
-18432
-5832
-6498

query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6416
SELECT + col2 + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-6416
SELECT + col2 + col2 / - cor0.col2 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT DISTINCT + 4 + - 17 * + col2 AS col2 FROM tab2 AS cor0
----
-438
-455
-642

query I rowsort
SELECT ALL 87 + - tab2.col1 FROM tab2
----
28
56
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6419
SELECT DISTINCT - col0 DIV + col2 + col2 + - ( tab0.col0 + col1 ) AS col0 FROM tab0
----
-166
-77
-99

skipif mysql # not compatible
query I rowsort label-6419
SELECT DISTINCT - col0 / + col2 + col2 + - ( tab0.col0 + col1 ) AS col0 FROM tab0
----
-166
-77
-99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6420
SELECT ALL + - ( - col2 ) + cor0.col2 DIV - 64 col0 FROM tab2 AS cor0
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL + - ( - col2 ) + cor0.col2 / - 64 col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL + 80 * col0 * col2 - - 76 FROM tab2 AS cor0
----
15196
162316
240236

onlyif mysql # use DIV operator for integer division
query I rowsort label-6422
SELECT DISTINCT - - 67 + - col2 DIV - col2 FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT - - 67 + - col2 / - col2 FROM tab0 AS cor0
----
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6423
SELECT CAST( NULL AS SIGNED ) * col0 * col2 - 38 * - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT CAST ( NULL AS INTEGER ) * col0 * col2 - 38 * - 46 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + 55 * col1 FROM tab2 AS cor0
----
1736
3304
952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT + 80 DIV + col0 FROM tab2 AS cor0
----
1
1
11

skipif mysql # not compatible
query I rowsort label-6425
SELECT + 80 / + col0 FROM tab2 AS cor0
----
1
1
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT ALL + ( col2 ) DIV + 70 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + ( col2 ) / + 70 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( + col1 ) * col2 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT + + 89 * + col2 FROM tab0 cor0
----
2937
7298
89

query I rowsort
SELECT - - col0 + cor0.col0 + - col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 * - ( col1 * cor0.col2 ) FROM tab0 AS cor0
----
-611802
-93621
-96

query I rowsort
SELECT DISTINCT + col1 * - col1 * - 52 AS col1 FROM tab0 AS cor0
----
384592
430612
489268

query I rowsort
SELECT ALL - + 4 * + 22 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32

query I rowsort
SELECT DISTINCT - 24 + - 69 AS col2 FROM tab1
----
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT ALL col1 * col2 + col0 DIV col1 + tab2.col2 * col0 AS col0 FROM tab2
----
1026
3563
3652

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL col1 * col2 + col0 / col1 + tab2.col2 * col0 AS col0 FROM tab2
----
1026
3563
3652

query I rowsort
SELECT ALL col2 * col1 + tab0.col0 FROM tab0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT col0 * - col1 + - 31 DIV - 29 FROM tab2 AS cor0
----
-1342
-216
-4601

skipif mysql # not compatible
query I rowsort label-6436
SELECT col0 * - col1 + - 31 / - 29 FROM tab2 AS cor0
----
-1342
-216
-4601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT ALL - CAST( NULL AS SIGNED ) + - 74 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - CAST ( NULL AS INTEGER ) + - 74 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - col0 ) - ( col0 * col0 ) AS col1 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT + - 80 + cor0.col2 FROM tab2 cor0
----
-42
-53
-54

query I rowsort
SELECT 92 + + col0 FROM tab2
----
170
171
99

query I rowsort
SELECT ALL + 47 * col1 AS col1 FROM tab2
----
1457
2773
799

query I rowsort
SELECT 71 + col1 FROM tab0
----
157
162
168

query I rowsort
SELECT + - 34 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

query I rowsort
SELECT + col2 * col2 + - ( col2 ) FROM tab2
----
1406
650
702

query I rowsort
SELECT DISTINCT 95 * col0 + + col1 FROM tab0 AS cor0
----
2366
3422
8546

query I rowsort
SELECT - 73 * 56 AS col0 FROM tab0 AS cor0
----
-4088
-4088
-4088

query I rowsort
SELECT + 13 + col0 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT tab1.col2 AS col0 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL + col2 * + 96 - col1 AS col1 FROM tab0 AS cor0
----
-1
3082
7781

query I rowsort
SELECT DISTINCT 71 * col0 AS col1 FROM tab1 AS cor0
----
213
4544
5680

query I rowsort
SELECT - - ( col2 ) * + col2 - col1 FROM tab2 AS cor0
----
1427
617
698

query I rowsort
SELECT ALL + col0 * 46 + + col0 FROM tab1 AS cor0
----
141
3008
3760

query I rowsort
SELECT DISTINCT - col1 - col0 * - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - col2 * col0 - - ( col2 ) AS col2 FROM tab2 cor0
----
-162
-2002
-2964

query I rowsort
SELECT DISTINCT + col2 + ( - 51 ) FROM tab0 AS cor0
----
-18
-50
31

query I rowsort
SELECT ALL + 84 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT - - col2 + 85 AS col2 FROM tab2 AS cor0
----
111
112
123

query I rowsort
SELECT - col1 + 8 FROM tab1 AS cor0
----
-18
-2
-5

query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab2 cor0
----
24
35
89

query I rowsort
SELECT ALL + col1 * col0 * + 13 FROM tab0
----
105287
26832
44135

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 89 AS REAL ) FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6462
SELECT CAST( NULL AS SIGNED ) + 69 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6462
SELECT CAST ( NULL AS INTEGER ) + 69 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + cor0.col0 + ( cor0.col2 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT - - col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT - cor0.col2 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT ( - col2 ) * tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL 92 * col0 AS col1 FROM tab1
----
276
5888
7360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0, tab2 cor1
----
243 values hashing to 9abcb2f48b3a009aa8d65d82a30c843f

query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-6470
SELECT DISTINCT 8 + + 66 DIV + col2 AS col2 FROM tab1 AS cor0
----
8
9

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT 8 + + 66 / + col2 AS col2 FROM tab1 AS cor0
----
8
9

query I rowsort
SELECT - col2 * - 79 + + col1 * + 44 FROM tab2 AS cor0
----
3497
3750
4650

query I rowsort
SELECT ALL - ( - col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * col1 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) * col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT + - col1 DIV col0 FROM tab0 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6475
SELECT + - col1 / col0 FROM tab0 cor0
----
-1
-2
-3

query I rowsort
SELECT + + col1 * - col0 + + 33 FROM tab1 AS cor0
----
-1007
-45
-607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT CAST( NULL AS SIGNED ) + - 53 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6477
SELECT CAST ( NULL AS INTEGER ) + - 53 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * + col1 * col1 col0 FROM tab2 AS cor0
----
16184
194936
53816

query I rowsort
SELECT 48 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1296
1452
618

query I rowsort
SELECT DISTINCT 63 + col1 * - 69 + col0 AS col0 FROM tab2
----
-1031
-2069
-3930

query I rowsort
SELECT 20 + + col0 FROM tab2 AS cor0
----
27
98
99

query I rowsort
SELECT + col1 * - col1 * + 2 + - col0 * cor0.col0 FROM tab2 AS cor0
----
-13046
-1971
-6819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * - col0 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT - - 15 * col2 AS col0 FROM tab0 AS cor0
----
1230
15
495

query I rowsort
SELECT - col2 * - col0 * + cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
114155
5110
52806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6486
SELECT - col1 * CAST( - col2 * col2 AS SIGNED ) FROM tab1 AS cor0
----
119808
32490
75816

skipif mysql # not compatible
query I rowsort label-6486
SELECT - col1 * CAST ( - col2 * col2 AS INTEGER ) FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT ALL + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT 0 * - cor0.col0 FROM tab2, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col2 AS col1 FROM tab0, tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL col1 * col0 + - col0 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 * + 73 col1 FROM tab0 AS cor0
----
-1666
-2458
-6406

query I rowsort
SELECT - - 13 * - 56 + - col2 FROM tab2 AS cor0
----
-754
-755
-766

query I rowsort
SELECT 25 AS col2 FROM tab1 cor0
----
25
25
25

query I rowsort
SELECT DISTINCT + - 77 - col2 * - col0 AS col2 FROM tab1 AS cor0
----
3571
7603
85

query I rowsort
SELECT - cor0.col2 * col0 + - col2 FROM tab2 AS cor0
----
-2054
-216
-3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT ALL col2 DIV - 37 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL col2 / - 37 AS col2 FROM tab0
----
-2
0
0

query I rowsort
SELECT + - cor0.col2 - + col1 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT 84 * col0 + col0 AS col0 FROM tab2 AS cor0
----
595
6630
6715

onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT + - col2 * - col0 + col2 + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
215
3704
7775

skipif mysql # not compatible
query I rowsort label-6499
SELECT + - col2 * - col0 + col2 + col2 / - col2 AS col1 FROM tab1 AS cor0
----
215
3704
7775

query I rowsort
SELECT ALL - col2 + col1 * ( - cor0.col1 ) FROM tab2 cor0
----
-327
-3507
-988

query I rowsort
SELECT + cor0.col1 + col0 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6502
SELECT ALL + col0 DIV + col0 + + ( + col1 + col1 ) FROM tab1 AS cor0
----
21
27
53

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL + col0 / + col0 + + ( + col1 + col1 ) FROM tab1 AS cor0
----
21
27
53

query I rowsort
SELECT DISTINCT + col2 - 75 * - col1 AS col2 FROM tab1
----
1071
2004
807

onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT ALL + col2 + col1 DIV col0 AS col0 FROM tab0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL + col2 + col1 / col0 AS col0 FROM tab0
----
3
36
83

query I rowsort
SELECT DISTINCT - tab2.col1 * 25 * col0 + - tab2.col0 * 60 * tab2.col1 FROM tab2
----
-114155
-18445
-391170

query I rowsort
SELECT DISTINCT - 27 + 95 FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6507
SELECT ALL - ( 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-6507
SELECT ALL - ( col2 ) / col2 col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + + col0 * - cor0.col0 AS col2 FROM tab0 cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL col1 * 10 + - col2 FROM tab1
----
206
34
43

query I rowsort
SELECT DISTINCT - col2 * col0 + 32 FROM tab1
----
-130
-3616
-7648

query I rowsort
SELECT col1 + - col2 * + tab2.col2 * ( col1 * col1 + 7 ) FROM tab2
----
-2357829
-427407
-705641

query I rowsort
SELECT DISTINCT - 6 - col2 AS col0 FROM tab1 AS cor0
----
-102
-60
-63

query I rowsort
SELECT ALL col2 + + cor0.col2 * cor0.col2 * ( col2 ) AS col0 FROM tab1 cor0
----
157518
185250
884832

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab0
----
16

query I rowsort
SELECT - col0 + - 10 * + col2 AS col2 FROM tab1
----
-1040
-543
-634

onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT + col2 DIV - 27 + col2 FROM tab0
----
1
32
79

skipif mysql # not compatible
query I rowsort label-6516
SELECT + col2 / - 27 + col2 FROM tab0
----
1
32
79

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * + cor0.col1 col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 25 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450

query I rowsort
SELECT col2 + + col2 + col2 FROM tab2
----
114
78
81

query I rowsort
SELECT - col1 + - tab2.col1 + - col1 AS col2 FROM tab2
----
-177
-51
-93

query I rowsort
SELECT col0 + + tab1.col2 - col0 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - + col1 + col1 + cor0.col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL - cor0.col2 + col2 * + col2 AS col0 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - + col1 + 47 FROM tab0 AS cor0
----
-39
-44
-50

query I rowsort
SELECT DISTINCT + col0 + col2 * + 55 * col1 AS col0 FROM tab1 AS cor0
----
31414
68720
77223

query I rowsort
SELECT ALL - cor0.col2 + 97 FROM tab0 AS cor0
----
15
64
96

query I rowsort
SELECT + col2 * - 92 AS col2 FROM tab0 AS cor0
----
-3036
-7544
-92

query I rowsort
SELECT DISTINCT - col1 + - 46 FROM tab1 AS cor0
----
-56
-59
-72

query I rowsort
SELECT ALL + + col0 * + 42 - col0 AS col0 FROM tab0 AS cor0
----
1435
3649
984

query I rowsort
SELECT DISTINCT - col0 + 72 AS col2 FROM tab1 AS cor0
----
-8
69
8

query I rowsort
SELECT + + cor0.col1 + + 21 - + cor0.col1 FROM tab0 AS cor0
----
21
21
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT DISTINCT - cor0.col1 DIV 40 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6533
SELECT DISTINCT - cor0.col1 / 40 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + cor0.col0 * - col1 + - ( - col1 ) + + col0 FROM tab0 cor0
----
-1954
-3263
-7919

query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * - col2 AS col2 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT - tab2.col0 * col2 * + col0 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT + tab2.col2 * tab2.col1 FROM tab2
----
1534
646
837

query I rowsort
SELECT - col2 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6539
SELECT - col0 * + CAST( NULL AS SIGNED ) + + col1 / col1 + + cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT - col0 * + CAST ( NULL AS INTEGER ) + + col1 / col1 + + cor0.col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col2 * - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 * ( + col2 * + col2 ) AS col2 FROM tab0 AS cor0
----
-2247696
-3395
-54457676

onlyif mysql # use DIV operator for integer division
query I rowsort label-6542
SELECT DISTINCT - tab0.col2 DIV + CAST( 28 * col1 AS SIGNED ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT - tab0.col2 / + CAST ( 28 * col1 AS INTEGER ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - col1 * + 53 FROM tab0
----
-4558
-4823
-5141

onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT - col1 DIV ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6545
SELECT - col1 / ( + col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL col2 * - 68 FROM tab2 AS cor0
----
-1768
-1836
-2584

onlyif mysql # use DIV operator for integer division
query I rowsort label-6547
SELECT DISTINCT + + col2 + col0 + col0 DIV + col1 FROM tab2 cor0
----
105
121
34

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + + col2 + col0 + col0 / + col1 FROM tab2 cor0
----
105
121
34

query I rowsort
SELECT DISTINCT - col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + - col1 + + ( 45 ) * + col2 AS col1 FROM tab1 AS cor0
----
2404
2555
4307

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT - + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-6550
SELECT - + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT - col2 + cor0.col0 - - col2 AS col2 FROM tab0 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 + - col1 * col2 col1 FROM tab1 AS cor0
----
-1151
-1307
-473

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT + CAST( NULL AS SIGNED ) * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT + CAST ( NULL AS INTEGER ) * - cor0.col0 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6555
SELECT - tab1.col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6555
SELECT - tab1.col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + col0 + - ( col1 ) * col1 FROM tab0
----
-15579
-8188
-9444

query I rowsort
SELECT ALL col2 + 25 * col2 AS col2 FROM tab0
----
2132
26
858

onlyif mysql # use DIV operator for integer division
query I rowsort label-6558
SELECT ALL - col2 * + col1 + col1 DIV col1 + + ( + tab0.col0 * + col1 + + col2 ) FROM tab0
----
-740
3300
720

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - col2 * + col1 + col1 / col1 + + ( + tab0.col0 * + col1 + + col2 ) FROM tab0
----
-740
3300
720

query I rowsort
SELECT ALL col2 * col1 * + col1 + col1 FROM tab0
----
244154
679133
9506

query I rowsort
SELECT ALL - col0 + col2 * + ( 4 ) FROM tab2 cor0
----
101
26
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT ALL col1 DIV cor0.col1 + - ( cor0.col1 ) * - col2 FROM tab1 AS cor0
----
1249
1405
571

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL col1 / cor0.col1 + - ( cor0.col1 ) * - col2 FROM tab1 AS cor0
----
1249
1405
571

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT DISTINCT - - col2 DIV - col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - - col2 / - col1 + + col0 AS col0 FROM tab2 AS cor0
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 65 * cor0.col0 + - ( + col2 ) * + col0 col1 FROM tab1 AS cor0
----
-12880
-357
-7808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 col1 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-6565
SELECT ALL - 22 * col1 + tab0.col2 DIV col2 AS col2 FROM tab0
----
-1891
-2001
-2133

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL - 22 * col1 + tab0.col2 / col2 AS col2 FROM tab0
----
-1891
-2001
-2133

onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT DISTINCT - col2 DIV col1 + + ( + col1 + - col2 ) * + col0 col0 FROM tab1 AS cor0
----
-3013
-6647
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6566
SELECT DISTINCT - col2 / col1 + + ( + col1 + - col2 ) * + col0 col0 FROM tab1 AS cor0
----
-3013
-6647
-86

query I rowsort
SELECT ALL + col0 + + col1 * - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT - 2 * - col2 * + 7 AS col1 FROM tab0 AS cor0
----
1148
14
462

query I rowsort
SELECT col2 + col2 + 75 * + col1 FROM tab0
----
6516
6989
7277

query I rowsort
SELECT + ( col1 ) + 42 AS col2 FROM tab0 AS cor0
----
128
133
139

query I rowsort
SELECT + + cor0.col0 * + col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - col2 + - ( col2 ) FROM tab1 cor0
----
-108
-114
-192

query I rowsort
SELECT + - col0 * 15 + + 1 + col2 AS col2 FROM tab0 AS cor0
----
-1252
-326
-523

query I rowsort
SELECT DISTINCT col1 * + ( + col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT + - col1 * 99 FROM tab1 AS cor0
----
-1287
-2574
-990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6576
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6577
SELECT + cor0.col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6577
SELECT + cor0.col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + 56 * - 41 AS col2 FROM tab0 AS cor0
----
-2320
-2331
-2385

query I rowsort
SELECT ALL - 70 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f

query I rowsort
SELECT + cor0.col1 * + col1 + + col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT + col0 + + col1 * + col0 AS col0 FROM tab1 cor0
----
1120
704
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * - 30 + + col2 col0 FROM tab2 cor0
----
-1312
-1323
-1324

onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT + + CAST( + 33 AS SIGNED ) * cor0.col0 + + 75 DIV - cor0.col1 FROM tab0 AS cor0
----
1155
2937
792

skipif mysql # not compatible
query I rowsort label-6583
SELECT + + CAST ( + 33 AS INTEGER ) * cor0.col0 + + 75 / - cor0.col1 FROM tab0 AS cor0
----
1155
2937
792

query I rowsort
SELECT - col2 * ( col0 ) * col1 + ( + col1 ) FROM tab1 cor0
----
-36470
-4186
-99827

query I rowsort
SELECT - 95 - - col0 FROM tab0 cor0
----
-6
-60
-71

query I rowsort
SELECT ALL - col0 * + 40 + ( col2 ) FROM tab2
----
-253
-3094
-3122

onlyif mysql # use DIV operator for integer division
query I rowsort label-6587
SELECT ALL col0 * col2 DIV 78 + + col0 AS col2 FROM tab2
----
104
117
9

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL col0 * col2 / 78 + + col0 AS col2 FROM tab2
----
104
117
9

query I rowsort
SELECT - 93 FROM tab0, tab1 AS cor0
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT ( - 68 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + + ( - 55 ) FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ( - col0 ) * - tab1.col0 AS col2 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6592
SELECT DISTINCT + CAST( + 44 AS SIGNED ) DIV tab1.col0 FROM tab1
----
0
14

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT + CAST ( + 44 AS INTEGER ) / tab1.col0 FROM tab1
----
0
14

query I rowsort
SELECT - 5 * col2 + - col2 FROM tab0 AS cor0
----
-198
-492
-6

query I rowsort
SELECT + cor0.col1 - + col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT 60 + col0 - - col2 AS col1 FROM tab2
----
164
177
94

query I rowsort
SELECT ALL + ( col1 + - col0 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT ALL + 1 * + col1 + - 33 FROM tab1 AS cor0
----
-20
-23
-7

query I rowsort
SELECT 31 - cor0.col0 * ( col0 * col0 ) AS col1 FROM tab0 AS cor0
----
-13793
-42844
-704938

query I rowsort
SELECT DISTINCT 99 * + col0 + 37 * - ( col1 ) FROM tab2 AS cor0
----
-454
5539
7192

query I rowsort
SELECT + - col2 - cor0.col2 * 41 AS col2 FROM tab1 cor0
----
-2268
-2394
-4032

query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + 75 + - col0 FROM tab0 AS cor0
----
-7312
-741
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + col1 col0 FROM tab2 AS cor0
----
13
27
55

query I rowsort
SELECT ALL - col0 - - col2 AS col1 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6604
SELECT ( col2 ) + + col2 DIV + tab2.col1 + + tab2.col2 * col0 FROM tab2
----
2054
216
3042

skipif mysql # not compatible
query I rowsort label-6604
SELECT ( col2 ) + + col2 / + tab2.col1 + + tab2.col2 * col0 FROM tab2
----
2054
216
3042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col2 FROM tab1
----
-27

query I rowsort
SELECT DISTINCT 34 - col2 * + col2 * + col1 AS col2 FROM tab2
----
-22565
-24514
-39850

query I rowsort
SELECT + 29 * 93 - - col2 AS col1 FROM tab1
----
2751
2754
2793

query I rowsort
SELECT + ( + ( col2 ) ) * + col2 + + 84 * - col1 - col1 FROM tab0
----
-1011
-6221
-8244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 * col1 - col2 col1 FROM tab0
----
-4849
-5178
-5433

query I rowsort
SELECT + ( 97 ) FROM tab1
----
97
97
97

query I rowsort
SELECT col2 + tab0.col0 + 32 AS col2 FROM tab0
----
203
68
89

query I rowsort
SELECT DISTINCT - 88 + - 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-149

query I rowsort
SELECT DISTINCT + col0 + col2 * 80 FROM tab1 AS cor0
----
4323
4624
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6614
SELECT ALL + 71 * col2 DIV cor0.col2 + col1 AS col0 FROM tab0 cor0
----
157
162
168

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL + 71 * col2 / cor0.col2 + col1 AS col0 FROM tab0 cor0
----
157
162
168

query I rowsort
SELECT DISTINCT - 10 + + col0 AS col2 FROM tab2 AS cor0
----
-3
68
69

query I rowsort
SELECT ALL - 8 * col1 FROM tab2 AS cor0
----
-136
-248
-472

query I rowsort
SELECT col0 + col1 + - 88 AS col1 FROM tab2 AS cor0
----
-50
49
8

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab1 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 - - col1 col1 FROM tab2 AS cor0
----
14
28
56

query I rowsort
SELECT col0 + + col0 * col1 AS col2 FROM tab0 cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-6621
SELECT col0 DIV 60 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6621
SELECT col0 / 60 AS col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT col0 * - 38 AS col1 FROM tab0 cor0
----
-1330
-3382
-912

query I rowsort
SELECT DISTINCT - cor0.col2 - 43 FROM tab2 AS cor0
----
-69
-70
-81

query I rowsort
SELECT + 44 * 96 FROM tab1 AS cor0
----
4224
4224
4224

onlyif mysql # use DIV operator for integer division
query I rowsort label-6625
SELECT DISTINCT tab0.col0 DIV col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT tab0.col0 / col1 AS col0 FROM tab0
----
0

query I rowsort
SELECT cor0.col0 + - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to c22e7a33a1d8d55a5f7224b3cf03e3bc

query I rowsort
SELECT + + 41 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1575
687
878

query I rowsort
SELECT DISTINCT - + 14 + col2 * + col1 FROM tab1 cor0
----
1234
1390
556

query I rowsort
SELECT - col0 + + 72 * - col2 AS col2 FROM tab1 AS cor0
----
-3891
-4168
-6992

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT ALL + + col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT ALL + + col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6631
SELECT - cor0.col0 DIV 53 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6631
SELECT - cor0.col0 / 53 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT + col0 * 4 + col1 FROM tab2 AS cor0
----
333
371
59

query I rowsort
SELECT col1 + - col0 * col0 * col0 AS col1 FROM tab1 AS cor0
----
-1
-262134
-511987

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6634
SELECT ALL + - col2 * + CAST( - 9 AS SIGNED ) col2 FROM tab1 AS cor0
----
486
513
864

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6634
SELECT ALL + - col2 * + CAST ( - 9 AS INTEGER ) col2 FROM tab1 AS cor0
----
486
513
864

query I rowsort
SELECT col2 + ( + ( col0 ) ) * 52 FROM tab1 AS cor0
----
210
3385
4256

query I rowsort
SELECT tab2.col2 * - tab2.col0 + - col0 * + col1 FROM tab2
----
-406
-4345
-6630

query I rowsort
SELECT tab2.col2 - - tab2.col0 AS col0 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT + tab2.col0 + - col2 DIV + col1 AS col2 FROM tab2
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6638
SELECT + tab2.col0 + - col2 / + col1 AS col2 FROM tab2
----
7
77
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6639
SELECT DISTINCT col0 + col0 DIV 47 col2 FROM tab1 cor0
----
3
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT col0 + col0 / 47 col2 FROM tab1 cor0
----
3
65
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 52 * - col0 - col1 col1 FROM tab2 cor0
----
-105515
-156121
-9859

query I rowsort
SELECT + + col2 * 87 * col1 AS col1 FROM tab2 AS cor0
----
133458
56202
72819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT DISTINCT col0 + CAST( 67 AS SIGNED ) + - col0 AS col0 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT col0 + CAST ( 67 AS INTEGER ) + - col0 AS col0 FROM tab2
----
67

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( - col1 * + col0 )
----

query I rowsort
SELECT ALL + col2 * + col1 - + col0 FROM tab2
----
1456
567
830

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 BETWEEN NULL AND col0 * - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL col2 * - col2 * - cor0.col2 FROM tab2 AS cor0
----
17576
19683
54872

query I rowsort
SELECT DISTINCT + 65 * col2 + col1 * col1 * col2 + 67 * col1 AS col2 FROM tab2 AS cor0
----
14591
29779
96149

query I rowsort
SELECT ALL cor0.col1 * + cor0.col2 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7623ebe74018211e6a4da91fc8c37d6d

onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT ALL - + col0 + - col1 * col2 + - 71 DIV col2 FROM tab0 AS cor0
----
-203
-2864
-7551

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL - + col0 + - col1 * col2 + - 71 / col2 FROM tab0 AS cor0
----
-203
-2864
-7551

query I rowsort
SELECT ALL col0 + tab0.col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab0 WHERE NOT NULL NOT IN ( + col0 + col0 )
----

query I rowsort
SELECT DISTINCT col0 * col2 - col1 AS col2 FROM tab1
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT tab0.col2 + tab0.col1 DIV - col2 FROM tab0
----
-96
31
81

skipif mysql # not compatible
query I rowsort label-6653
SELECT tab0.col2 + tab0.col1 / - col2 FROM tab0
----
-96
31
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col2 * + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( + col0 )
----

query I rowsort
SELECT ( + col2 ) + 99 AS col0 FROM tab1
----
153
156
195

query I rowsort
SELECT + 48 * + col0 AS col1 FROM tab0 AS cor0
----
1152
1680
4272

query I rowsort
SELECT DISTINCT 62 FROM tab1, tab1 AS cor0, tab1 cor1
----
62

query I rowsort
SELECT DISTINCT 13 + + col0 AS col1 FROM tab2 AS cor0
----
20
91
92

query I rowsort
SELECT DISTINCT + ( ( cor1.col2 ) ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - col2 * - cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + - col1 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL 7 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + tab0.col0 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + ( cor0.col0 ) AS col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT + + cor0.col0 * + col0 * + col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT ( col2 * col0 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6669
SELECT ( col2 * col0 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * - ( - col2 ) col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - 48 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

query I rowsort
SELECT - col1 * + 85 FROM tab2
----
-1445
-2635
-5015

onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT - col2 DIV + ( - col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6673
SELECT - col2 / + ( - col1 ) FROM tab1 AS cor0
----
2
5
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6674
SELECT ALL ( - col2 ) + + col0 * CAST( 97 AS SIGNED ) col1 FROM tab0 AS cor0
----
2295
3394
8551

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL ( - col2 ) + + col0 * CAST ( 97 AS INTEGER ) col1 FROM tab0 AS cor0
----
2295
3394
8551

query I rowsort
SELECT DISTINCT - + ( 21 ) + + col1 * cor0.col0 FROM tab0 AS cor0
----
2043
3374
8078

query I rowsort
SELECT + - ( col2 ) * - col0 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL - 48 * + col0 FROM tab0 AS cor0
----
-1152
-1680
-4272

query I rowsort
SELECT - + 3 * col1 AS col2 FROM tab2 AS cor0
----
-177
-51
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT ALL col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - col1 col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + - ( col0 ) * col0 FROM tab1 AS cor0
----
-4096
-6400
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col0 FROM tab0, tab1 cor0
----
3
64
80

query I rowsort
SELECT - cor0.col1 * - cor0.col2 + + 30 FROM tab1 AS cor0
----
1278
1434
600

query I rowsort
SELECT ALL 99 + col0 + col0 FROM tab1
----
105
227
259

query I rowsort
SELECT DISTINCT col2 * 76 AS col1 FROM tab0
----
2508
6232
76

query I rowsort
SELECT DISTINCT + col2 * - col0 - - col1 AS col2 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT col1 + + 92 - - cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1036
-398
-7738

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 + cor0.col2 col2 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT + 9 + col0 * col0 * col2 FROM tab0 AS cor0
----
1234
19017
649531

query I rowsort
SELECT 10 * cor0.col0 FROM tab1 AS cor0
----
30
640
800

query I rowsort
SELECT DISTINCT - - 78 AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort
SELECT ALL - - CAST ( + col0 AS REAL ) * col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT 75 + ( col0 ) AS col2 FROM tab0 AS cor0
----
110
164
99

query I rowsort
SELECT DISTINCT + + ( col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT - ( col2 ) * - ( cor0.col0 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT + - 64 * col0 AS col0 FROM tab0 cor0
----
-1536
-2240
-5696

query I rowsort
SELECT + 99 + col1 * + col0 FROM tab2 AS cor0
----
1442
316
4701

query I rowsort
SELECT + + 64 FROM tab1 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT ALL + col2 DIV + 65 + col2 + - col1 * 80 FROM tab2 AS cor0
----
-1322
-2453
-4694

skipif mysql # not compatible
query I rowsort label-6700
SELECT ALL + col2 / + 65 + col2 + - col1 * 80 FROM tab2 AS cor0
----
-1322
-2453
-4694

query I rowsort
SELECT ALL col1 * - col1 + - col0 FROM tab1 AS cor0
----
-164
-249
-679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( 77 ) col1 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT ALL + col0 * cor0.col2 + + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
105
7476
840

query I rowsort
SELECT ALL + + col1 * + col1 + col2 * col2 * cor0.col0 FROM tab2 cor0
----
114365
56209
6064

query I rowsort
SELECT DISTINCT + col1 * 2 AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT ALL 1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - + col1 col2 FROM tab2
----
1427
617
698

query I rowsort
SELECT ALL col0 - + 32 FROM tab2
----
-25
46
47

query I rowsort
SELECT ( + cor1.col1 ) AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT DISTINCT cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT DISTINCT + 37 * col0 + + CAST( NULL AS DECIMAL ) + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT + 37 * col0 + + CAST ( NULL AS REAL ) + cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * col0 + + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6713
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col0 + col2 FROM tab2
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-6713
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col0 + col2 FROM tab2
----
-24
51
7

query I rowsort
SELECT + col1 * col1 + 95 * col0 FROM tab2
----
10891
1626
7794

query I rowsort
SELECT 37 - tab1.col0 FROM tab1
----
-27
-43
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT + col0 DIV col0 + - 7 AS col1 FROM tab0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-6716
SELECT + col0 / col0 + - 7 AS col1 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT - col2 - col0 * 17 AS col2 FROM tab1
----
-105
-1145
-1456

query I rowsort
SELECT + 66 * - col0 AS col2 FROM tab2 AS cor0
----
-462
-5148
-5214

query I rowsort
SELECT - 6 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT + - 27 + - col1 * col2 FROM tab1 AS cor0
----
-1275
-1431
-597

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6721
SELECT CAST( NULL AS SIGNED ) * 84 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6721
SELECT CAST ( NULL AS INTEGER ) * 84 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - cor0.col2 * + cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

query I rowsort
SELECT DISTINCT 53 * + col1 AS col0 FROM tab1
----
1378
530
689

onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT - ( + 13 ) DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6724
SELECT - ( + 13 ) / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - ( 36 ) + col2 FROM tab2 AS cor0
----
-10
-9
2

query I rowsort
SELECT ALL - + col2 + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - 52 * - 35 FROM tab0 AS cor0
----
1820

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6728
SELECT + - CAST( ( col0 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-6728
SELECT + - CAST ( ( col0 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col0 + - 47 * - col1 FROM tab2 AS cor0
----
1464
2851
878

query I rowsort
SELECT DISTINCT - - ( + 80 ) * + col1 AS col2 FROM tab1 cor0
----
1040
2080
800

query I rowsort
SELECT - col0 * 3 AS col2 FROM tab0 AS cor0
----
-105
-267
-72

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6732
SELECT DISTINCT + - CAST( + 22 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + - CAST ( + 22 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + - ( col0 ) * col0 * col0 + + col0 FROM tab0 AS cor0
----
-13800
-42840
-704880

query I rowsort
SELECT DISTINCT col1 * 90 FROM tab1 AS cor0
----
1170
2340
900

onlyif mysql # use DIV operator for integer division
query I rowsort label-6735
SELECT + col0 DIV 17 AS col0 FROM tab0 cor0
----
1
2
5

skipif mysql # not compatible
query I rowsort label-6735
SELECT + col0 / 17 AS col0 FROM tab0 cor0
----
1
2
5

query I rowsort
SELECT ALL - 0 * + 58 + col0 * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL + - 44 + 48 * - col0 AS col2 FROM tab0 AS cor0
----
-1196
-1724
-4316

query I rowsort
SELECT ALL + 51 * 76 AS col0 FROM tab2
----
3876
3876
3876

skipif mysql # not compatible
query I rowsort
SELECT ( col1 * col1 + + CAST ( col1 AS REAL ) ) FROM tab2
----
306
3540
992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6740
SELECT - col2 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-34
-82

skipif mysql # not compatible
query I rowsort label-6740
SELECT - col2 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-34
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6741
SELECT DISTINCT - + cor0.col2 * CAST( - 64 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3456
3648
6144

skipif mysql # not compatible
query I rowsort label-6741
SELECT DISTINCT - + cor0.col2 * CAST ( - 64 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3456
3648
6144

query I rowsort
SELECT ALL ( + col2 ) * + col1 + 87 * col2 FROM tab2
----
3186
3796
3952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT DISTINCT + col2 DIV + cor0.col2 + 57 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2122
3453
8157

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + col2 / + cor0.col2 + 57 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2122
3453
8157

query I rowsort
SELECT DISTINCT col1 * 24 AS col0 FROM tab0
----
2064
2184
2328

onlyif mysql # use DIV operator for integer division
query I rowsort label-6745
SELECT col1 DIV 62 col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6745
SELECT col1 / 62 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT tab2.col1 * - tab2.col2 + - col1 FROM tab2
----
-1593
-663
-868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT - 68 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-68

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT CAST( - col0 AS SIGNED ) + cor0.col2 DIV col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-6749
SELECT CAST ( - col0 AS INTEGER ) + cor0.col2 / col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT - 6 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 * + tab1.col2 col2 FROM tab1, tab2 cor0
----
9 values hashing to e44e317ca74aea33458af6a8c21a9ddb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + col0 col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - col0 * col1 + col2 * col0 + 45 * col2 AS col1 FROM tab0 AS cor0
----
-3315
213
2889

query I rowsort
SELECT ( cor0.col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT cor1.col0 + 8 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 079d7e32b10a7c0ef6bdbef8aae2a63d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col0 ) * - col1 * + col2 col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

query I rowsort
SELECT - 24 AS col1 FROM tab0 cor0
----
-24
-24
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-6758
SELECT DISTINCT - + col1 DIV - 55 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6758
SELECT DISTINCT - + col1 / - 55 AS col2 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT ALL 80 + col0 AS col0 FROM tab1
----
144
160
83

query I rowsort
SELECT col1 * + 2 + 46 - col2 AS col0 FROM tab1 AS cor0
----
-24
44
9

query I rowsort
SELECT - col2 + - col2 + - 2 AS col2 FROM tab1
----
-110
-116
-194

query I rowsort
SELECT DISTINCT - 80 + col1 AS col2 FROM tab1 AS cor0
----
-54
-67
-70

query I rowsort
SELECT - 54 - - col0 AS col2 FROM tab0 AS cor0
----
-19
-30
35

query I rowsort
SELECT + col0 * + col1 + - 2 - col0 FROM tab1 AS cor0
----
574
73
958

query I rowsort
SELECT ALL col0 + - col1 + - col2 * + tab0.col0 AS col2 FROM tab0
----
-7300
-854
-97

query I rowsort
SELECT DISTINCT - col2 + col2 + col0 * 55 FROM tab0
----
1320
1925
4895

onlyif mysql # use DIV operator for integer division
query I rowsort label-6767
SELECT + 49 * col0 DIV + col1 FROM tab0
----
13
17
47

skipif mysql # not compatible
query I rowsort label-6767
SELECT + 49 * col0 / + col1 FROM tab0
----
13
17
47

query I rowsort
SELECT + - col1 + + 25 FROM tab1 AS cor0
----
-1
12
15

query I rowsort
SELECT ALL + col1 * cor0.col0 * + 40 + col1 FROM tab2 AS cor0
----
184139
53737
8711

query I rowsort
SELECT - col2 + 38 * col2 AS col0 FROM tab1 AS cor0
----
1998
2109
3552

query I rowsort
SELECT + cor0.col0 * - col0 + 11 FROM tab2 AS cor0
----
-38
-6073
-6230

query I rowsort
SELECT ALL cor0.col1 + + col2 * + col0 AS col2 FROM tab1 cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col2 * ( + col0 ) * col0 + + col1 AS col2 FROM tab2 AS cor0
----
1354
158243
237175

query I rowsort
SELECT DISTINCT + col1 * col2 - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT - - col1 - + col0 * - cor0.col0 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - col1 * 27 + - col1 * col2 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-10008
-2751
-5184

query I rowsort
SELECT + col0 * + 28 AS col0 FROM tab2 AS cor0
----
196
2184
2212

query I rowsort
SELECT + + cor0.col0 * col0 + + col0 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + - cor0.col1 * 1 + + 18 * col2 * 41 AS col0 FROM tab1 AS cor0
----
39826
42056
70835

query I rowsort
SELECT ALL - 6 * cor0.col2 * col2 FROM tab0 AS cor0
----
-40344
-6
-6534

query I rowsort
SELECT DISTINCT + 54 FROM tab2, tab2 cor0, tab2 AS cor1
----
54

query I rowsort
SELECT ALL + + col2 * col1 + + ( + cor0.col0 ) - col2 FROM tab0 cor0
----
131
2829
7469

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT ( col2 ) DIV col0 + - col2 FROM tab0
----
-1
-32
-82

skipif mysql # not compatible
query I rowsort label-6784
SELECT ( col2 ) / col0 + - col2 FROM tab0
----
-1
-32
-82

query I rowsort
SELECT DISTINCT col2 * - col0 - + col0 AS col2 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT - col1 * col0 - + 99 FROM tab2
----
-1442
-316
-4701

onlyif mysql # use DIV operator for integer division
query I rowsort label-6787
SELECT 99 DIV col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6787
SELECT 99 / col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT 55 * tab0.col1 + - 58 + + col0 * tab0.col1 FROM tab0
----
13046
6736
8672

onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT DISTINCT + 88 - col0 DIV col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6789
SELECT DISTINCT + 88 - col0 / col0 FROM tab2
----
87

query I rowsort
SELECT + + col1 - + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6791
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 93 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 93 FROM tab0, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col2 FROM tab1, tab2 AS cor0
----
61

query I rowsort
SELECT - + col0 * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL col1 + - ( col2 ) FROM tab2
----
-21
33
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( - col2 ) col1 FROM tab2
----
-20
41
52

query I rowsort
SELECT + + cor0.col1 + - cor0.col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT - col2 * 10 AS col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT - - col1 * - 73 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) * - col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT ALL - col0 + + 41 FROM tab2 AS cor0
----
-37
-38
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT - - col1 * - 34 AS col0 FROM tab1 AS cor0
----
-340
-442
-884

query I rowsort
SELECT - 85 + + 20 AS col0 FROM tab2 cor0
----
-65
-65
-65

onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT - col0 + - col0 DIV col2 FROM tab1
----
-3
-65
-80

skipif mysql # not compatible
query I rowsort label-6805
SELECT - col0 + - col0 / col2 FROM tab1
----
-3
-65
-80

query I rowsort
SELECT + 60 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162

query I rowsort
SELECT tab2.col1 * col1 - + col0 AS col2 FROM tab2
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT - 89 DIV col0 + col1 FROM tab0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-6808
SELECT - 89 / col0 + col1 FROM tab0
----
83
90
95

query I rowsort
SELECT ALL col0 + - ( - cor0.col0 ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT ( + 50 ) * col0 AS col2 FROM tab1 AS cor0
----
150
3200
4000

query I rowsort
SELECT + 83 * + ( col1 ) FROM tab2 AS cor0
----
1411
2573
4897

query I rowsort
SELECT DISTINCT - 52 * 19 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-988

query I rowsort
SELECT DISTINCT + col0 + - col0 * 54 FROM tab1 AS cor0
----
-159
-3392
-4240

query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 - - col2 AS col0 FROM tab2 AS cor0
----
327
3507
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * + cor0.col0 col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 60 * + cor0.col2 * 35 + col0 FROM tab2 AS cor0
----
54678
56707
79879

query I rowsort
SELECT ALL 27 * col2 FROM tab1 AS cor0
----
1458
1539
2592

query I rowsort
SELECT DISTINCT - + 80 * + col1 FROM tab1 AS cor0
----
-1040
-2080
-800

onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT ALL - cor0.col1 DIV + col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL - cor0.col1 / + col1 FROM tab2 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - 30 + + col1 FROM tab2 AS cor0
----
-13
1
29

query I rowsort
SELECT DISTINCT - - col0 * - col1 - - ( - col1 ) * - col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT ALL - ( col0 + col0 ) * + col2 AS col1 FROM tab1
----
-15360
-324
-7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT tab1.col2 / + col2 - - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6823
SELECT tab1.col2 / + col2 - - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 + + col2 * + 66 AS col1 FROM tab2 AS cor0
----
1657
1723
2449

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col2 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT DISTINCT + col0 DIV 70 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + col0 / 70 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + cor0.col1 + 91 * 30 * col2 AS col1 FROM tab0 AS cor0
----
223951
2827
90176

query I rowsort
SELECT DISTINCT - col0 + + col2 * 45 FROM tab0 cor0
----
10
1461
3601

query I rowsort
SELECT + col1 * - col2 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-6830
SELECT - col0 DIV + 33 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT - col0 / + 33 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + col1 + - col2 * 60 FROM tab0 cor0
----
-1894
-4829
37

query I rowsort
SELECT 37 * col2 FROM tab0
----
1221
3034
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col0 FROM tab1
----
9

query I rowsort
SELECT ALL ( - col1 + - 0 * col2 ) FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT col0 DIV tab0.col0 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6835
SELECT col0 / tab0.col0 AS col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL - col1 * 2 DIV + 41 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - col1 * 2 / + 41 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL col1 * 59 AS col0 FROM tab0 AS cor0
----
5074
5369
5723

query I rowsort
SELECT ALL - 50 + col1 AS col1 FROM tab1 AS cor0
----
-24
-37
-40

query I rowsort
SELECT - ( col0 ) * cor0.col0 * col0 FROM tab0 cor0
----
-13824
-42875
-704969

query I rowsort
SELECT - col2 + col2 + tab2.col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - tab0.col1 + + ( 65 ) + - col1 AS col2 FROM tab0
----
-107
-117
-129

query I rowsort
SELECT DISTINCT col0 + - col2 * - col2 + + col1 FROM tab2
----
1540
767
813

query I rowsort
SELECT - col1 + ( + 97 + + col1 ) AS col2 FROM tab2
----
97
97
97

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0, tab1, tab1 AS cor0
----
79

query I rowsort
SELECT tab2.col2 + col1 * + col2 AS col0 FROM tab2
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT - col0 DIV + tab2.col1 + + col1 FROM tab2
----
13
31
58

skipif mysql # not compatible
query I rowsort label-6846
SELECT - col0 / + tab2.col1 + + col1 FROM tab2
----
13
31
58

query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT ALL - + col2 * 93 AS col0 FROM tab0 AS cor0
----
-3069
-7626
-93

query I rowsort
SELECT DISTINCT - col1 * 95 + col1 + col1 FROM tab0 cor0
----
-7998
-8463
-9021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT - + cor0.col1 + 15 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT ALL - - col1 * - 25 FROM tab2 AS cor0
----
-1475
-425
-775

query I rowsort
SELECT DISTINCT + col2 + ( 23 ) FROM tab2 AS cor0
----
49
50
61

query I rowsort
SELECT + + col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT col0 + - col1 * + 53 AS col1 FROM tab1 AS cor0
----
-1375
-466
-609

onlyif mysql # use DIV operator for integer division
query I rowsort label-6856
SELECT col2 + + col2 + - col0 DIV 31 FROM tab2
----
50
54
74

skipif mysql # not compatible
query I rowsort label-6856
SELECT col2 + + col2 + - col0 / 31 FROM tab2
----
50
54
74

query I rowsort
SELECT - col1 * col2 * - tab0.col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT 99 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + col2 col2 FROM tab1
----
-108
-3591
-7584

query I rowsort
SELECT ALL - 42 + 15 * col1 + + col1 * col2 FROM tab2
----
1260
2377
859

query I rowsort
SELECT ALL + col2 + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT + - 67 * + 40 AS col0 FROM tab1 AS cor0
----
-2680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + cor0.col0 col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT DISTINCT - 34 * + col2 AS col1 FROM tab2 AS cor0
----
-1292
-884
-918

query I rowsort
SELECT ALL ( 48 ) + col1 AS col0 FROM tab1 cor0
----
58
61
74

query I rowsort
SELECT cor0.col0 * - col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + 38 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
-1210
-1366
-532

onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT ALL + col2 DIV + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL + col2 / + col2 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 + col1 * 66 FROM tab0 cor0
----
5762
6097
6499

query I rowsort
SELECT + - ( + cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT ( col1 ) * col2 + + 7 FROM tab0
----
104
2845
7469

onlyif mysql # use DIV operator for integer division
query I rowsort label-6872
SELECT - col1 DIV - col2 + + ( - ( col2 ) ) FROM tab0 AS cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-6872
SELECT - col1 / - col2 + + ( - ( col2 ) ) FROM tab0 AS cor0
----
-31
-81
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * 66 col1 FROM tab1 AS cor0
----
3590
3772
6349

query I rowsort
SELECT - - col0 * col1 + - ( col0 + col0 ) * col2 FROM tab1 AS cor0
----
-14320
-246
-6656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + cor0.col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * col0 + - ( - col0 ) - col1 FROM tab0 AS cor0
----
1163
514
7919

query I rowsort
SELECT + + cor0.col2 * - cor0.col1 * col2 + col2 FROM tab1 AS cor0
----
-119712
-32433
-75762

query I rowsort
SELECT + - col2 + 91 * col2 FROM tab0 AS cor0
----
2970
7380
90

query I rowsort
SELECT - col1 * 9 AS col0 FROM tab2 AS cor0
----
-153
-279
-531

query I rowsort
SELECT ALL - ( 68 ) * - cor1.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 98a23bbd72a4904034c49a3cb1e03c89

query I rowsort
SELECT + 79 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

query I rowsort
SELECT ALL - cor0.col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT 40 * - cor0.col0 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT ALL + 83 + + col0 + col1 FROM tab1
----
112
157
176

query I rowsort
SELECT ALL 53 FROM tab2, tab0 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT - 20 AS col0 FROM tab2, tab1 AS cor0
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 col0 FROM tab1
----
-37
-37
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 + 14 col2 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT DISTINCT col1 + col1 DIV + col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-6889
SELECT DISTINCT col1 + col1 / + col0 FROM tab2 AS cor0
----
17
35
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 + + col1 col1 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT - col0 * col1 - + col0 AS col2 FROM tab2
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6892
SELECT - col1 + col1 DIV + col0 AS col1 FROM tab0
----
-83
-90
-95

skipif mysql # not compatible
query I rowsort label-6892
SELECT - col1 + col1 / + col0 AS col1 FROM tab0
----
-83
-90
-95

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6893
SELECT CAST( NULL AS SIGNED ) * + tab2.col0 + - tab2.col1 * col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6893
SELECT CAST ( NULL AS INTEGER ) * + tab2.col0 + - tab2.col1 * col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 69 + - cor0.col1 * col0 * - col0 AS col0 FROM tab0 AS cor0
----
118894
49605
720880

query I rowsort
SELECT ALL - + col2 + cor0.col0 + - col1 FROM tab1 AS cor0
----
-29
-3
-77

query I rowsort
SELECT DISTINCT ( 31 ) * - col0 AS col0 FROM tab1
----
-1984
-2480
-93

query I rowsort
SELECT DISTINCT - 65 * - 32 * - col0 AS col1 FROM tab1
----
-133120
-166400
-6240

query I rowsort
SELECT + 83 * - 37 * col0 FROM tab1
----
-196544
-245680
-9213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT - - ( + col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT cor0.col0 + col1 * cor0.col0 FROM tab2 AS cor0
----
1422
224
4680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col2 FROM tab2 cor0
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT 39 * - col1 + - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-3354
-3550
-3818

skipif mysql # not compatible
query I rowsort label-6903
SELECT 39 * - col1 + - col0 / col2 AS col0 FROM tab0 AS cor0
----
-3354
-3550
-3818

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col1 * - col1 + col0 col1 FROM tab2
----
3585
406
995

query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT * FROM tab0 WHERE NULL < ( + col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6907
SELECT DISTINCT col0 + col0 + col2 DIV col2 AS col2 FROM tab0
----
179
49
71

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT col0 + col0 + col2 / col2 AS col2 FROM tab0
----
179
49
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT + col0 DIV + tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6908
SELECT + col0 / + tab0.col1 col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / tab1.col2 col1 FROM tab1 WHERE NULL NOT IN ( - col1 * col0 + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 * + col0 + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + col1 ) IN ( col0 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + col2 - col1 * col0 col1 FROM tab2 AS cor0
----
-1267
-163
-4550

query I rowsort
SELECT DISTINCT - col2 * + col0 * - col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT - tab1.col1 + - tab1.col2 AS col1 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT ALL + col1 * col2 * col0 AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT tab1.col2 + + col0 * col1 FROM tab1
----
1136
132
697

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 + col1 * col2 * col2 ) NOT IN ( col0 )
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT - col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 IN ( - tab0.col0 + - col1 )
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL NOT IN ( col2 + col0 )
----

query I rowsort
SELECT - col2 * col2 + + tab0.col0 FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT - col1 * col2 + + tab0.col2 FROM tab0
----
-2805
-7380
-96

query III rowsort
SELECT * FROM tab2 WHERE + tab2.col0 <> col0
----

query I rowsort
SELECT col1 + + col0 + - col2 FROM tab1
----
-25
-3
17

query I rowsort
SELECT DISTINCT + tab2.col1 - tab2.col2 * - col0 FROM tab2
----
2087
220
3019

onlyif mysql # use DIV operator for integer division
query I rowsort label-6926
SELECT DISTINCT - - col2 * col1 DIV + cor0.col0 FROM tab1 AS cor0
----
15
468
8

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT - - col2 * col1 / + cor0.col0 FROM tab1 AS cor0
----
15
468
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT ALL col0 DIV col1 AS col2 FROM tab1 cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL col0 / col1 AS col2 FROM tab1 cor0
----
0
6
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 * + col1 * - cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL + col0 - col0 * col2 AS col1 FROM tab0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT + - 91 DIV - col0 + + col2 FROM tab0 AS cor0
----
3
36
83

skipif mysql # not compatible
query I rowsort label-6931
SELECT + - 91 / - col0 + + col2 FROM tab0 AS cor0
----
3
36
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT + 3 * ( + col0 ) + + col0 DIV - 47 FROM tab2 AS cor0
----
21
233
236

skipif mysql # not compatible
query I rowsort label-6932
SELECT + 3 * ( + col0 ) + + col0 / - 47 FROM tab2 AS cor0
----
21
233
236

query I rowsort
SELECT + ( col2 ) * + col2 + + ( - col1 + col1 ) AS col1 FROM tab0 AS cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-6934
SELECT DISTINCT + 18 DIV + 99 + + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT + 18 / + 99 + + col0 + + col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL col2 * cor0.col0 - - col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT DISTINCT + + cor0.col2 + 44 FROM tab0 cor0
----
126
45
77

query I rowsort
SELECT ALL + ( - 17 ) FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + 20 + + 1 AS col2 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT - 58 * + col0 + - col0 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT - + ( - 48 ) * - col2 + col0 FROM tab2 AS cor0
----
-1170
-1289
-1745

query I rowsort
SELECT col2 * + 49 + - col1 * col0 + + ( + col0 + col0 ) AS col1 FROM tab2 AS cor0
----
-3172
1120
677

onlyif mysql # use DIV operator for integer division
query I rowsort label-6942
SELECT ALL - col2 DIV - tab0.col2 + 6 DIV + col2 FROM tab0
----
1
1
7

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL - col2 / - tab0.col2 + 6 / + col2 FROM tab0
----
1
1
7

query I rowsort
SELECT ALL - col2 + col0 * - col0 AS col1 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT col0 * 82 * - col0 FROM tab1
----
-335872
-524800
-738

query I rowsort
SELECT ALL col1 * 43 + 8 FROM tab2
----
1341
2545
739

onlyif mysql # use DIV operator for integer division
query I rowsort label-6946
SELECT DISTINCT col1 + - col1 DIV - col1 FROM tab2
----
18
32
60

skipif mysql # not compatible
query I rowsort label-6946
SELECT DISTINCT col1 + - col1 / - col1 FROM tab2
----
18
32
60

query I rowsort
SELECT 90 + 17 FROM tab1
----
107
107
107

query I rowsort
SELECT + + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - ( + 97 ) AS col1 FROM tab1 cor0
----
-97
-97
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6950
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - ( - cor0.col2 ) * col2 * 95 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - ( - cor0.col2 ) * col2 * 95 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 21 * + 96 + + col0 AS col1 FROM tab0 AS cor0
----
-1927
-1981
-1992

onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT DISTINCT - col2 + col2 - - col1 DIV 68 AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT - col2 + col2 - - col1 / 68 AS col2 FROM tab0 cor0
----
1

query I rowsort
SELECT ALL + - 1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - 65 + + col0 * col1 * col2 FROM tab1 AS cor0
----
36415
4147
99775

query I rowsort
SELECT DISTINCT + 56 * + col1 + col2 FROM tab2 cor0
----
1763
3330
990

query I rowsort
SELECT - tab2.col0 * 80 AS col0 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT col0 - col2 * col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6958
SELECT ALL - cor0.col0 DIV cor0.col0 - 97 FROM tab0 cor0
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - cor0.col0 / cor0.col0 - 97 FROM tab0 cor0
----
-98
-98
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT ALL + col2 DIV col0 + col0 * col1 AS col1 FROM tab2
----
1343
220
4602

skipif mysql # not compatible
query I rowsort label-6959
SELECT ALL + col2 / col0 + col0 * col1 AS col1 FROM tab2
----
1343
220
4602

query I rowsort
SELECT ALL tab2.col2 + + 82 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 08c9b460c80aa61a29cf9ec862304c1b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6961
SELECT DISTINCT - col2 - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT DISTINCT - col2 - + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * 78 + - cor0.col1 FROM tab2 AS cor0
----
1309
2387
4543

query I rowsort
SELECT ALL - + col1 * + ( + col0 ) + cor0.col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT - col1 + + ( - col0 ) * - col0 AS col2 FROM tab2 AS cor0
----
18
6025
6224

query I rowsort
SELECT + - col2 + 40 FROM tab2 cor0
----
13
14
2

query I rowsort
SELECT ALL - - col0 - 0 * col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * - col2 + col1 FROM tab1
----
-2890
-3239
-9203

query I rowsort
SELECT col1 * - col1 * 50 FROM tab1
----
-33800
-5000
-8450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT - col0 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL col2 * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840

query I rowsort
SELECT - 33 - - col2 * - col1 FROM tab2 cor0
----
-1567
-679
-870

query I rowsort
SELECT - 34 + 84 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT - + 56 AS col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT DISTINCT + col2 + - col1 * - col0 AS col1 FROM tab1 cor0
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-6977
SELECT 94 * col1 + - ( - col0 ) DIV + col0 AS col1 FROM tab1
----
1223
2445
941

skipif mysql # not compatible
query I rowsort label-6977
SELECT 94 * col1 + - ( - col0 ) / + col0 AS col1 FROM tab1
----
1223
2445
941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * ( 40 ) col0 FROM tab0
----
1344
3369
75

query I rowsort
SELECT ALL + ( - tab0.col0 ) AS col0 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT ( - col0 ) * col2 + tab0.col0 * col2 + - col2 AS col2 FROM tab0
----
-1
-33
-82

query I rowsort
SELECT - ( - col0 ) + - col1 AS col0 FR