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 FROM tab0 AS cor0
----
-2
-62
-62

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

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

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

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

query I rowsort
SELECT - cor0.col1 * + col0 + 29 AS col2 FROM tab0 AS cor0
----
-2035
-3366
-8070

query I rowsort
SELECT 81 + col1 * col0 FROM tab2 AS cor0
----
1424
298
4683

query I rowsort
SELECT col0 * col1 + + 54 FROM tab2 AS cor0
----
1397
271
4656

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6991
SELECT ALL col1 * - CAST( 68 AS SIGNED ) + - cor0.col2 + 50 * + col0 AS col0 FROM tab2 AS cor0
----
-138
-1785
2756

skipif mysql # not compatible
query I rowsort label-6991
SELECT ALL col1 * - CAST ( 68 AS INTEGER ) + - cor0.col2 + 50 * + col0 AS col0 FROM tab2 AS cor0
----
-138
-1785
2756

query I rowsort
SELECT DISTINCT - cor0.col0 * 19 FROM tab2 AS cor0
----
-133
-1482
-1501

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

query I rowsort
SELECT ALL + 71 * + 25 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d8328f0795e4af8e954492eeba12946

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

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

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

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

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

query I rowsort
SELECT col2 - + 31 FROM tab1 AS cor0
----
23
26
65

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

skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL - col0 * col0 / + col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT - 0 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT - tab1.col0 DIV 16 AS col2 FROM tab1
----
-4
-5
0

skipif mysql # not compatible
query I rowsort label-7005
SELECT - tab1.col0 / 16 AS col2 FROM tab1
----
-4
-5
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + - cor0.col0 col2 FROM tab0 AS cor0
----
-14
-25
-79

query I rowsort
SELECT DISTINCT + - 40 * col0 FROM tab2 AS cor0
----
-280
-3120
-3160

query I rowsort
SELECT + - col1 * col1 + - 71 + - 74 FROM tab2 AS cor0
----
-1106
-3626
-434

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 + col0 AS REAL ) FROM tab0
----
171
36
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 47 * + col2 - 53 col1 FROM tab2
----
-1197
-1315
-1760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT col0 + - 9 * col1 DIV col0 AS col0 FROM tab2
----
-32
72
78

skipif mysql # not compatible
query I rowsort label-7013
SELECT col0 + - 9 * col1 / col0 AS col0 FROM tab2
----
-32
72
78

query I rowsort
SELECT ALL - 57 FROM tab2, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

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

query I rowsort
SELECT DISTINCT - 68 * col0 AS col1 FROM tab0 cor0
----
-1632
-2380
-6052

query I rowsort
SELECT ALL - col0 * col2 + + ( + 25 ) AS col1 FROM tab1 AS cor0
----
-137
-3623
-7655

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

query I rowsort
SELECT DISTINCT cor0.col1 + 45 FROM tab1, tab1 cor0
----
55
58
71

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * col0 col0 FROM tab1 AS cor0
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT DISTINCT + col2 + col1 DIV CAST( + col2 + cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82

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

query I rowsort
SELECT ALL ( col1 ) - - col2 AS col0 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT + ( col1 ) - + col1 * tab0.col0 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL col0 * col0 + 44 FROM tab0
----
1269
620
7965

query I rowsort
SELECT + - 6 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8be8910507908e6353d02a545b748252

query I rowsort
SELECT ALL + 33 + col0 * tab1.col0 + 84 AS col1 FROM tab1
----
126
4213
6517

query I rowsort
SELECT ALL col1 * + tab1.col1 * 92 + - tab1.col0 FROM tab1
----
15468
62189
9136

query I rowsort
SELECT - 48 * col0 + - col0 AS col2 FROM tab1
----
-147
-3136
-3920

query I rowsort
SELECT - col0 * col1 * + cor0.col2 + col0 FROM tab0 AS cor0
----
-3360
-664029
-68088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + col1 col1 FROM tab2
----
104
118
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 + + col1 col0 FROM tab2 cor0
----
115
73
87

query I rowsort
SELECT ALL col0 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1190
-552
-7832

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

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

query I rowsort
SELECT ALL - col2 * cor0.col1 + 84 FROM tab1 AS cor0
----
-1164
-1320
-486

query I rowsort
SELECT ALL cor0.col0 * - 11 FROM tab0, tab0 AS cor0
----
9 values hashing to 7e6a7a1a3143bce92b52201144e30b12

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

query I rowsort
SELECT ALL + - 55 + + cor0.col1 * + col1 FROM tab1 AS cor0
----
114
45
621

query I rowsort
SELECT ALL + + col2 + 92 - + col0 AS col1 FROM tab1 AS cor0
----
108
143
85

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7041
SELECT col2 DIV 2 + + col0 AS col1 FROM tab1
----
128
30
92

skipif mysql # not compatible
query I rowsort label-7041
SELECT col2 / 2 + + col0 AS col1 FROM tab1
----
128
30
92

query I rowsort
SELECT col2 * 54 * + col2 + - col2 AS col1 FROM tab2
----
36478
39339
77938

query I rowsort
SELECT ALL + - 77 + + col1 AS col1 FROM tab0 cor0
----
14
20
9

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

query I rowsort
SELECT ALL - + 67 * + col1 * col0 + + 93 AS col2 FROM tab0 AS cor0
----
-138195
-227372
-542540

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

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

query I rowsort
SELECT 95 + 25 AS col1 FROM tab1 AS cor0
----
120
120
120

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

query I rowsort
SELECT + 76 * ( + cor0.col2 ) + 63 FROM tab0 AS cor0
----
139
2571
6295

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

query I rowsort
SELECT ALL - col2 - + col1 * col2 * ( - col2 * col1 ) AS col1 FROM tab0 AS cor0
----
55681362
8054211
9408

query I rowsort
SELECT DISTINCT 42 + - ( cor0.col1 ) + + 59 * + col2 AS col0 FROM tab1 AS cor0
----
3202
3395
5693

query I rowsort
SELECT DISTINCT - + col0 * - 53 + + col1 FROM tab0 cor0
----
1358
1952
4808

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

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

query I rowsort
SELECT DISTINCT - 3 * - cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
260
275
48

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

query I rowsort
SELECT + + col1 - + 37 * + 8 FROM tab0 AS cor0
----
-199
-205
-210

query I rowsort
SELECT col2 + col0 * + 98 - + cor0.col2 FROM tab2 AS cor0
----
686
7644
7742

onlyif mysql # use DIV operator for integer division
query I rowsort label-7061
SELECT tab1.col0 * col0 DIV - ( col0 ) AS col2 FROM tab1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7061
SELECT tab1.col0 * col0 / - ( col0 ) AS col2 FROM tab1
----
-3
-64
-80

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

query I rowsort
SELECT DISTINCT col0 * 10 AS col1 FROM tab2 AS cor0
----
70
780
790

query I rowsort
SELECT - - 63 * + col0 FROM tab2 AS cor0
----
441
4914
4977

query I rowsort
SELECT - 53 - - cor0.col2 FROM tab2 AS cor0
----
-15
-26
-27

query I rowsort
SELECT - + 65 - ( col0 ) FROM tab0 AS cor0
----
-100
-154
-89

query I rowsort
SELECT - col1 + - col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-111
-85
-93

query I rowsort
SELECT ( - 67 ) * + col1 + 72 * - col0 FROM tab0 AS cor0
----
-12505
-7490
-9019

query I rowsort
SELECT col0 * - 29 * - col1 + - col2 FROM tab2 AS cor0
----
133432
38909
6266

query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT ALL + col1 * ( + col2 ) DIV + tab1.col0 + col0 + col0 * col2 DIV + col0 FROM tab1
----
129
191
525

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + col1 * ( + col2 ) / + tab1.col0 + col0 + col0 * col2 / + col0 FROM tab1
----
129
191
525

query I rowsort
SELECT cor0.col0 * col1 + col2 * - col2 FROM tab2 AS cor0
----
-101
-512
3926

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

query I rowsort
SELECT ALL - - col2 * col2 - ( ( + col1 ) ) * col0 * cor0.col1 FROM tab1 AS cor0
----
-3151
-4304
888

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7076
SELECT DISTINCT col2 DIV - col1 + - ( col2 + + cor0.col1 ) FROM tab2 AS cor0
----
-57
-58
-85

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT col2 / - col1 + - ( col2 + + cor0.col1 ) FROM tab2 AS cor0
----
-57
-58
-85

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) + - ( + col0 ) * - cor0.col0 * + col2 FROM tab0 AS cor0
----
1260
19032
649611

query I rowsort
SELECT + 83 + - col0 FROM tab1 AS cor0
----
19
3
80

query I rowsort
SELECT DISTINCT 69 * tab0.col0 FROM tab0, tab2, tab0 AS cor0
----
1656
2415
6141

onlyif mysql # use DIV operator for integer division
query I rowsort label-7082
SELECT - - col1 * cor0.col1 DIV + 75 FROM tab1 AS cor0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-7082
SELECT - - col1 * cor0.col1 / + 75 FROM tab1 AS cor0
----
1
2
9

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

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

query I rowsort
SELECT + 67 + 70 FROM tab0
----
137
137
137

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

query I rowsort
SELECT ALL 82 * + tab2.col0 FROM tab2
----
574
6396
6478

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

query I rowsort
SELECT DISTINCT cor0.col2 * tab0.col1 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 6b6947fcb54b3e9529d0c75cfb5b2d32

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

query I rowsort
SELECT 56 * - cor0.col2 FROM tab0 AS cor0
----
-1848
-4592
-56

query I rowsort
SELECT + - col2 * - ( - 73 ) FROM tab0 AS cor0
----
-2409
-5986
-73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT - col2 DIV + ( + 83 ) - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-7093
SELECT - col2 / + ( + 83 ) - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59

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

query I rowsort
SELECT ALL - cor1.col1 * - 89 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3b3756a7145c462806168d884978f86c

query I rowsort
SELECT ALL - cor0.col1 * 14 FROM tab2 AS cor0
----
-238
-434
-826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7097
SELECT ALL + CAST( + 38 AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
3268
3458
3686

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL + CAST ( + 38 AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
3268
3458
3686

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

query I rowsort
SELECT - col2 * 85 + col1 FROM tab1 AS cor0
----
-4564
-4835
-8147

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col2 * - 60 col0 FROM tab1
----
3266
3430
5773

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

query I rowsort
SELECT 0 * tab1.col1 - col0 AS col2 FROM tab1
----
-3
-64
-80

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

query I rowsort
SELECT ALL - col2 + 5 FROM tab2 AS cor0
----
-21
-22
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT DISTINCT + col2 + + ( - cor0.col0 ) DIV - col0 AS col0 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + col2 + + ( - cor0.col0 ) / - col0 AS col0 FROM tab0 cor0
----
2
34
83

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

query I rowsort
SELECT DISTINCT + - col1 * 37 + - 37 + col0 FROM tab2 AS cor0
----
-1177
-2142
-587

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

skipif mysql # not compatible
query I rowsort label-7110
SELECT DISTINCT + col1 - col0 / col1 FROM tab2 AS cor0
----
13
31
58

query I rowsort
SELECT col0 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
134
167
269

query I rowsort
SELECT + col1 - + 81 * + col1 * col1 FROM tab0 AS cor0
----
-598990
-670670
-762032

query I rowsort
SELECT - - cor0.col0 * + col1 - + 36 FROM tab2 AS cor0
----
1307
181
4566

query I rowsort
SELECT + - col1 + + cor0.col2 + + col2 FROM tab2 AS cor0
----
-7
23
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 43 col0 FROM tab2
----
121
122
50

query I rowsort
SELECT DISTINCT col2 * 47 + - col2 + + col1 FROM tab2 AS cor0
----
1255
1273
1765

query I rowsort
SELECT ALL col2 * col1 * col2 + col1 AS col1 FROM tab1 AS cor0
----
119821
32500
75842

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7124
SELECT DISTINCT - 7 DIV col0 + cor0.col0 FROM tab1 AS cor0
----
1
64
80

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT - 7 / col0 + cor0.col0 FROM tab1 AS cor0
----
1
64
80

query I rowsort
SELECT DISTINCT + + col1 + + col2 + + col1 FROM tab2 AS cor0
----
144
72
89

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7127
SELECT CAST( 63 AS SIGNED ) * col1 * 85 + + 24 - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
457716
479867
519362

skipif mysql # not compatible
query I rowsort label-7127
SELECT CAST ( 63 AS INTEGER ) * col1 * 85 + + 24 - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
457716
479867
519362

onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT tab1.col1 DIV ( - col0 ) - col2 * col0 AS col2 FROM tab1
----
-170
-3648
-7680

skipif mysql # not compatible
query I rowsort label-7128
SELECT tab1.col1 / ( - col0 ) - col2 * col0 AS col2 FROM tab1
----
-170
-3648
-7680

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL col0 DIV 33 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL col0 / 33 FROM tab0
----
0
1
2

query I rowsort
SELECT - col2 * + col2 + + 54 * + col1 + col1 FROM tab1 AS cor0
----
-1486
-2699
-8501

query I rowsort
SELECT DISTINCT - 67 + col1 FROM tab0 AS cor0
----
19
24
30

query I rowsort
SELECT DISTINCT - - col2 * + col2 + 1 + + 41 FROM tab2 AS cor0
----
1486
718
771

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

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

query I rowsort
SELECT ALL + col2 * + cor0.col2 - 54 * + col2 * - col0 FROM tab1 AS cor0
----
11664
200241
423936

query I rowsort
SELECT ALL + 40 * cor0.col1 + col1 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT ALL ( + col1 ) + col2 * + col2 FROM tab0
----
1175
6815
98

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7141
SELECT ALL + CAST( col1 AS SIGNED ) + + col1 AS col0 FROM tab0
----
172
182
194

skipif mysql # not compatible
query I rowsort label-7141
SELECT ALL + CAST ( col1 AS INTEGER ) + + col1 AS col0 FROM tab0
----
172
182
194

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

query I rowsort
SELECT + 20 * - col1 FROM tab2 cor0
----
-1180
-340
-620

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7144
SELECT ALL col0 * + cor0.col2 + CAST( col1 + col0 AS SIGNED ) * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-7144
SELECT ALL col0 * + cor0.col2 + CAST ( col1 + col0 AS INTEGER ) * - cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

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

query I rowsort
SELECT ALL ( - cor0.col0 ) * - 16 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ea70183c0723e155656c0726ed6276f2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7149
SELECT - col2 * tab0.col0 * col0 + + ( - col1 ) DIV - col0 FROM tab0
----
-1223
-19005
-649521

skipif mysql # not compatible
query I rowsort label-7149
SELECT - col2 * tab0.col0 * col0 + + ( - col1 ) / - col0 FROM tab0
----
-1223
-19005
-649521

query I rowsort
SELECT DISTINCT ( 56 ) AS col2 FROM tab1
----
56

query I rowsort
SELECT ALL - + col0 * + 21 FROM tab2 cor0
----
-147
-1638
-1659

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

query I rowsort
SELECT ALL + - 46 * col0 * col0 FROM tab1 AS cor0
----
-188416
-294400
-414

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7157
SELECT - cor0.col0 * cor0.col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 + 88 AS col2 FROM tab0 cor0
----
1313
664
8009

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

query I rowsort
SELECT - + col1 * + ( 34 ) FROM tab2 cor0
----
-1054
-2006
-578

query I rowsort
SELECT DISTINCT col2 * 97 * - 67 FROM tab0 AS cor0
----
-214467
-532918
-6499

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

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

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

query I rowsort
SELECT DISTINCT col2 * + ( + col2 * col2 ) AS col2 FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT ALL - col1 DIV + ( col2 ) + - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - col1 / + ( col2 ) + - col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT + cor0.col2 DIV + ( col2 * col2 ) + + 86 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7134
-86

skipif mysql # not compatible
query I rowsort label-7167
SELECT + cor0.col2 / + ( col2 * col2 ) + + 86 * - col2 + - col2 AS col0 FROM tab0 AS cor0
----
-2871
-7134
-86

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 - col1 * 66 + + col0 FROM tab2 AS cor0
----
-1043
-2039
-3816

query I rowsort
SELECT ALL + col0 + - 25 * - col2 FROM tab2 cor0
----
1029
682
728

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

query I rowsort
SELECT 65 + col2 * col0 AS col1 FROM tab1 AS cor0
----
227
3713
7745

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 90 * - col2 col2 FROM tab1 AS cor0
----
-4860
-5130
-8640

query I rowsort
SELECT + 31 * 8 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 03fd37f73ac0b56b143129530319f6f6

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT - 48 DIV cor0.col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7177
SELECT - 48 / cor0.col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - + col1 + - cor0.col2 * + cor0.col0 + 66 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
-1904
-4318
-8551

query I rowsort
SELECT - 2 + + 68 FROM tab0 AS cor0
----
66
66
66

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7182
SELECT col1 * 40 + col2 * - CAST( + col1 AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
-180
-390
-741

skipif mysql # not compatible
query I rowsort label-7182
SELECT col1 * 40 + col2 * - CAST ( + col1 AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
-180
-390
-741

query I rowsort
SELECT - 79 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661

query I rowsort
SELECT ALL - col1 * col1 * - ( col0 * - col1 ) FROM tab0 AS cor0
----
-15265344
-31943555
-67067819

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT DISTINCT + 70 DIV - col1 + + col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT + 70 / - col1 + + col2 FROM tab0
----
1
33
82

query I rowsort
SELECT + col0 * 29 + col1 AS col1 FROM tab0 AS cor0
----
1112
2672
782

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

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

query I rowsort
SELECT - col1 * 47 - + col0 FROM tab0 AS cor0
----
-4066
-4366
-4594

query I rowsort
SELECT ALL + col2 * 7 + + 83 FROM tab1 AS cor0
----
461
482
755

onlyif mysql # use DIV operator for integer division
query I rowsort label-7192
SELECT + + col1 DIV - col2 - 66 * col2 AS col1 FROM tab1 AS cor0
----
-3564
-3762
-6336

skipif mysql # not compatible
query I rowsort label-7192
SELECT + + col1 / - col2 - 66 * col2 AS col1 FROM tab1 AS cor0
----
-3564
-3762
-6336

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 15 * col0 + + col0 + + col0 FROM tab2 AS cor0
----
-1014
-1027
-91

query I rowsort
SELECT ALL - 1 * col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59

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

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

query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

skipif mysql # not compatible
query I rowsort label-7203
SELECT col1 + col2 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * + col0 - + col2 col1 FROM tab0
----
2117
3491
8108

onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT - col0 * col2 DIV col0 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7205
SELECT - col0 * col2 / col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT - 15 * - tab2.col1 AS col0 FROM tab2
----
255
465
885

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

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

query I rowsort
SELECT DISTINCT + ( 33 ) * col1 - + col0 AS col0 FROM tab2 AS cor0
----
1016
1869
482

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

query I rowsort
SELECT DISTINCT - 73 + - col1 * col2 * col0 AS col2 FROM tab1 cor0
----
-36553
-4285
-99913

query I rowsort
SELECT DISTINCT + col1 * + 69 * col0 + col2 AS col1 FROM tab1
----
44217
5436
71856

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

query I rowsort
SELECT DISTINCT - ( + 82 + - col0 ) AS col0 FROM tab2
----
-3
-4
-75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7215
SELECT + CAST( + 77 AS SIGNED ) * - tab1.col2 + - col1 * col2 * col0 FROM tab1
----
-107232
-40869
-8370

skipif mysql # not compatible
query I rowsort label-7215
SELECT + CAST ( + 77 AS INTEGER ) * - tab1.col2 + - col1 * col2 * col0 FROM tab1
----
-107232
-40869
-8370

query I rowsort
SELECT + 76 - - 27 AS col2 FROM tab1
----
103
103
103

query I rowsort
SELECT 30 + col2 FROM tab0
----
112
31
63

query I rowsort
SELECT - ( - col2 ) + col1 * col0 FROM tab2
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + 37 * + cor0.col0 col0 FROM tab2 AS cor0
----
266
2964
3002

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

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NULL < ( - col1 )
----

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

query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 + col1 + col2 AS col0 FROM tab1 cor0
----
242
3715
7789

query I rowsort
SELECT DISTINCT - - col0 * + col0 - + col2 AS col1 FROM tab2 AS cor0
----
22
6058
6203

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

query I rowsort
SELECT - col1 AS col1 FROM tab1 cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + - col2 + - col2 )
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-7232
SELECT + col2 + - col2 / - col0 FROM tab0
----
1
34
82

query I rowsort
SELECT ALL - col0 * - col1 + cor0.col1 + + col1 * col1 FROM tab0 AS cor0
----
12901
16471
9546

query I rowsort
SELECT ALL col1 * col0 + + col2 + + col0 FROM tab1 AS cor0
----
1216
135
761

onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT + cor0.col1 DIV + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-7235
SELECT + cor0.col1 / + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7240
SELECT ALL col1 + + tab0.col1 DIV col1 AS col0 FROM tab0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL col1 + + tab0.col1 / col1 AS col0 FROM tab0
----
87
92
98

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7247
SELECT ALL + + col1 - col2 DIV + cor0.col0 AS col1 FROM tab2 AS cor0
----
17
28
59

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + + col1 - col2 / + cor0.col0 AS col1 FROM tab2 AS cor0
----
17
28
59

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

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

query I rowsort
SELECT - col2 - - col1 * - col2 * tab0.col1 FROM tab0
----
-244101
-679124
-9410

query I rowsort
SELECT ALL col0 + + col1 + - col0 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL col2 + col1 + + col0 * + tab1.col0 * col2 FROM tab1
----
233539
566
614509

onlyif mysql # use DIV operator for integer division
query I rowsort label-7253
SELECT tab1.col1 DIV - tab1.col2 + col0 * + col2 AS col2 FROM tab1
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-7253
SELECT tab1.col1 / - tab1.col2 + col0 * + col2 AS col2 FROM tab1
----
162
3648
7680

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

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

query I rowsort
SELECT - col2 * 22 FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT ( + 47 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d

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

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

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

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

query I rowsort
SELECT DISTINCT 66 + + tab2.col0 FROM tab2, tab0 cor0
----
144
145
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT ALL - col0 + + col2 DIV + col2 AS col0 FROM tab0
----
-23
-34
-88

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - col0 + + col2 / + col2 AS col0 FROM tab0
----
-23
-34
-88

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT ALL CAST( - 68 AS SIGNED ) + col0 FROM tab1
----
-4
-65
12

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL CAST ( - 68 AS INTEGER ) + col0 FROM tab1
----
-4
-65
12

query I rowsort
SELECT col0 * - col1 * - col0 + col2 FROM tab1
----
288
41017
83296

query I rowsort
SELECT ALL - 63 * + col0 + col2 FROM tab1
----
-135
-3975
-4944

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

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

query I rowsort
SELECT - 81 * cor0.col1 - col2 AS col1 FROM tab1 AS cor0
----
-1149
-2160
-867

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT + + CAST( + 69 AS SIGNED ) DIV col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1091
2
6724

skipif mysql # not compatible
query I rowsort label-7269
SELECT + + CAST ( + 69 AS INTEGER ) / col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1091
2
6724

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * - col0 + col2 - - ( - col2 * col2 ) FROM tab1 cor0
----
-16800
-3024
-6840

query I rowsort
SELECT - 61 + col2 + col1 FROM tab2 AS cor0
----
-3
-6
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT col2 + - col1 + + col1 * - col1 FROM tab2 cor0
----
-268
-3514
-965

query I rowsort
SELECT ALL col0 + col1 - + col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + - 61 + col1 * - col1 FROM tab1 AS cor0
----
-161
-230
-737

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

query I rowsort
SELECT col2 + 79 AS col2 FROM tab0 AS cor0
----
112
161
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT + - col2 DIV + ( 20 ) + col1 * col0 FROM tab1 AS cor0
----
1036
638
76

skipif mysql # not compatible
query I rowsort label-7282
SELECT + - col2 / + ( 20 ) + col1 * col0 FROM tab1 AS cor0
----
1036
638
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT + col1 DIV ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7283
SELECT + col1 / ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

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

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

query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * 9 FROM tab0 AS cor0
----
-211
-647
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT col1 * 0 + + col0 / col0 col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + + col2 * + col1 * - ( + cor0.col0 ) + col1 * col2 AS col0 FROM tab1 AS cor0
----
-2808
-35910
-98592

query I rowsort
SELECT DISTINCT - col0 + 50 + - col0 AS col1 FROM tab0 AS cor0
----
-128
-20
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT ALL + col2 DIV 13 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL + col2 / 13 FROM tab2 AS cor0
----
2
2
2

query I rowsort
SELECT - + cor0.col0 * - 16 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT + cor0.col1 + 98 AS col2 FROM tab2 AS cor0
----
115
129
157

onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT + col2 DIV 18 FROM tab1 AS cor0
----
3
3
5

skipif mysql # not compatible
query I rowsort label-7293
SELECT + col2 / 18 FROM tab1 AS cor0
----
3
3
5

query I rowsort
SELECT - - col2 * 25 FROM tab1 cor0
----
1350
1425
2400

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

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

query I rowsort
SELECT col1 * 64 * col1 FROM tab2 AS cor0
----
18496
222784
61504

query I rowsort
SELECT + 8 + col2 * col0 AS col0 FROM tab2 AS cor0
----
197
2036
3010

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

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

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

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

query I rowsort
SELECT DISTINCT 17 FROM tab2, tab2 cor0
----
17

query I rowsort
SELECT - 31 * ( + col1 + - col2 ) FROM tab1 AS cor0
----
1457
2573
868

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

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

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

query I rowsort
SELECT + + cor0.col1 * + col0 + - cor0.col0 + - 12 FROM tab1 AS cor0
----
564
63
948

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

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

query I rowsort
SELECT ALL 87 * - col2 FROM tab2 AS cor0
----
-2262
-2349
-3306

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

query I rowsort
SELECT ALL - 42 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 56f86ff01cd96a3511acd46e0e811e27

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

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

query I rowsort
SELECT + - col1 + - col2 * col2 + + col2 AS col0 FROM tab0 AS cor0
----
-1142
-6733
-97

query I rowsort
SELECT + col2 * + col0 + 11 + - col2 FROM tab1 AS cor0
----
119
3602
7595

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

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

query I rowsort
SELECT ALL - col0 * 26 + + col2 * col0 FROM tab0
----
-875
168
4984

query I rowsort
SELECT 66 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT ALL col2 + - ( + tab1.col2 ) + - col0 DIV + 25 AS col1 FROM tab1
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL col2 + - ( + tab1.col2 ) + - col0 / + 25 AS col1 FROM tab1
----
-2
-3
0

query I rowsort
SELECT DISTINCT 78 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 cor2, tab1 AS cor3
----
78

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

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

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

query I rowsort
SELECT + col1 + + 95 + - col2 * + col2 FROM tab1
----
-2795
-3144
-9108

query I rowsort
SELECT + col0 * 50 * 67 FROM tab0
----
117250
298150
80400

query I rowsort
SELECT ALL + 89 + + cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 54add5d7726319a05cafae77aeddf5e8

query I rowsort
SELECT DISTINCT + ( 52 ) FROM tab1
----
52

query I rowsort
SELECT ALL + + 34 AS col1 FROM tab1 AS cor0
----
34
34
34

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

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

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

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

query I rowsort
SELECT col1 + - col1 * col2 + 29 * col1 FROM tab2
----
-136
236
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col1 col0 FROM tab2
----
-118
-34
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col0 - - 98 * 21 * + col0 col0 FROM tab0
----
183333
49449
72066

query I rowsort
SELECT 30 * + col2 * col0 + 50 AS col2 FROM tab2
----
5720
60890
90110

query I rowsort
SELECT col0 - + col2 * 87 AS col1 FROM tab0
----
-2847
-52
-7045

query I rowsort
SELECT DISTINCT + col1 - col0 * - ( + col1 ) * col0 FROM tab1
----
260
40970
83213

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

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

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

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 * ( + col1 * col1 ) + + col0 + col1 FROM tab0 AS cor0
----
-329183
-5857522
-60434558

query I rowsort
SELECT DISTINCT - - col2 + + 47 * + col1 AS col0 FROM tab1 AS cor0
----
1276
527
707

query I rowsort
SELECT ALL col2 + 58 FROM tab1 AS cor0
----
112
115
154

query I rowsort
SELECT DISTINCT col0 + col2 * + 89 FROM tab0 AS cor0
----
124
2961
7387

onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT + col0 DIV 85 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-7343
SELECT + col0 / 85 + - col0 AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT col0 * + 69 + cor0.col1 FROM tab1 AS cor0
----
233
4426
5533

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

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

query I rowsort
SELECT DISTINCT + col0 - 61 AS col2 FROM tab2 cor0
----
-54
17
18

query I rowsort
SELECT ALL - - col1 + 12 FROM tab2 AS cor0
----
29
43
71

query I rowsort
SELECT DISTINCT + 98 - + col2 AS col2 FROM tab2
----
60
71
72

query I rowsort
SELECT ALL + col1 + col0 * col1 + col1 FROM tab1 AS cor0
----
1066
130
660

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

query I rowsort
SELECT - 92 * - col1 - col2 AS col2 FROM tab2 AS cor0
----
1526
2825
5402

query I rowsort
SELECT - 80 * col2 AS col2 FROM tab2 AS cor0
----
-2080
-2160
-3040

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

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

query I rowsort
SELECT - col0 * + tab2.col0 + - col0 FROM tab2
----
-56
-6162
-6320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col2 * col2 * - ( - col0 ) col1 FROM tab0
----
26136
35
598436

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

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

query I rowsort
SELECT 5 * + col2 FROM tab0
----
165
410
5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT + col2 + + col1 DIV col1 AS col2 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-7361
SELECT + col2 + + col1 / col1 AS col2 FROM tab0
----
2
34
83

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7364
SELECT col1 DIV col0 + col2 - col1 * col2 FROM tab2
----
-1508
-608
-806

skipif mysql # not compatible
query I rowsort label-7364
SELECT col1 / col0 + col2 - col1 * col2 FROM tab2
----
-1508
-608
-806

query I rowsort
SELECT DISTINCT col0 * + tab1.col2 FROM tab1 WHERE NULL < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) <= ( col1 * + col2 * col1 + + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT col2 * - col0 DIV tab2.col0 AS col2 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7367
SELECT col2 * - col0 / tab2.col0 AS col2 FROM tab2
----
-26
-27
-38

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7374
SELECT DISTINCT - tab2.col0 / col1 - + col2 AS col0 FROM tab2
----
-27
-42

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7379
SELECT + col0 DIV col2 + - col2 AS col2 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-7379
SELECT + col0 / col2 + - col2 AS col2 FROM tab1
----
-54
-56
-96

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

query I rowsort
SELECT + - col1 - + col0 * 38 FROM tab0 AS cor0
----
-1427
-3473
-998

query I rowsort
SELECT DISTINCT - + col1 + + col2 + - 42 AS col0 FROM tab1 cor0
----
-14
41
5

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7384
SELECT + + 19 + - cor0.col1 * col2 DIV 94 AS col0 FROM tab1 AS cor0
----
13
5
6

skipif mysql # not compatible
query I rowsort label-7384
SELECT + + 19 + - cor0.col1 * col2 / 94 AS col0 FROM tab1 AS cor0
----
13
5
6

query I rowsort
SELECT ALL + 69 * col1 AS col0 FROM tab0 AS cor0
----
5934
6279
6693

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7386
SELECT + CAST( NULL AS DECIMAL ) * - 86 AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7386
SELECT + CAST ( NULL AS REAL ) * - 86 AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

onlyif mysql # use DIV operator for integer division
query I rowsort label-7387
SELECT DISTINCT + tab0.col2 - col0 DIV 72 FROM tab0
----
1
33
81

skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + tab0.col2 - col0 / 72 FROM tab0
----
1
33
81

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

query I rowsort
SELECT - ( cor0.col0 ) * 80 + - 58 AS col2 FROM tab1 AS cor0
----
-298
-5178
-6458

query I rowsort
SELECT 81 + + col2 FROM tab0 AS cor0
----
114
163
82

query I rowsort
SELECT + col0 + - col1 * 52 AS col2 FROM tab1 AS cor0
----
-1349
-456
-596

query I rowsort
SELECT + + 10 - - col1 FROM tab0 AS cor0
----
101
107
96

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

query I rowsort
SELECT - + 98 + - col2 AS col2 FROM tab0 AS cor0
----
-131
-180
-99

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

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

query I rowsort
SELECT ALL - cor0.col2 * 44 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1419
-3526
-43

query I rowsort
SELECT 17 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

query I rowsort
SELECT + col2 + col0 * - col0 * col1 FROM tab1 AS cor0
----
-180
-40903
-83104

query I rowsort
SELECT - - cor0.col2 * 87 AS col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT col2 * + ( 60 ) FROM tab2 AS cor0
----
1560
1620
2280

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

query I rowsort
SELECT ALL 64 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

query I rowsort
SELECT ALL cor0.col1 + + 92 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to d7cd365e38b9a74f70401a02f42185cc

query I rowsort
SELECT 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

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

query I rowsort
SELECT ALL - 90 + - tab0.col2 * - col1 AS col1 FROM tab0
----
2748
7
7372

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

query I rowsort
SELECT - 14 * col2 AS col0 FROM tab1
----
-1344
-756
-798

query I rowsort
SELECT - col2 * - col1 + + col1 * tab0.col2 - + col2 AS col2 FROM tab0
----
14842
193
5643

query I rowsort
SELECT - - cor0.col2 - + col0 * + ( 57 ) FROM tab1 AS cor0
----
-117
-3591
-4464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) + + 33 * - col2 col2 FROM tab0
----
-1003
-2615
64

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 - - col0 * col2 col0 FROM tab2 AS cor0
----
378
4056
6004

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

query I rowsort
SELECT ALL + col0 * + 51 + + 36 * col1 FROM tab2 AS cor0
----
1473
4641
6102

query I rowsort
SELECT ALL + col0 + - ( cor0.col0 ) * - col0 * + 13 FROM tab2 AS cor0
----
644
79170
81212

query I rowsort
SELECT ALL - col1 + + 38 FROM tab1 cor0
----
12
25
28

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

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

query I rowsort
SELECT ALL + cor0.col2 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
108
3591
7584

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

query I rowsort
SELECT DISTINCT - col0 + 45 FROM tab1 AS cor0
----
-19
-35
42

query I rowsort
SELECT DISTINCT - - col1 * - 97 FROM tab2 AS cor0
----
-1649
-3007
-5723

query I rowsort
SELECT ALL + col0 * - 37 + col0 AS col2 FROM tab0 AS cor0
----
-1260
-3204
-864

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

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

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

query I rowsort
SELECT ALL col0 + + 5 * ( col0 ) FROM tab2 AS cor0
----
42
468
474

query I rowsort
SELECT - col1 * - col2 + + 80 AS col0 FROM tab1 AS cor0
----
1328
1484
650

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

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

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

query I rowsort
SELECT + 38 * - col0 FROM tab0 AS cor0
----
-1330
-3382
-912

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

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

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL - CAST ( 61 AS INTEGER ) FROM tab1 cor0
----
-61
-61
-61

query I rowsort
SELECT + 15 * 51 AS col0 FROM tab0 AS cor0
----
765
765
765

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

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

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

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

query I rowsort
SELECT + col0 - 59 * - col0 FROM tab2 AS cor0
----
420
4680
4740

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

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

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

query I rowsort
SELECT - + 39 + cor0.col2 AS col2 FROM tab1 AS cor0
----
15
18
57

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

query I rowsort
SELECT DISTINCT - 39 + col0 AS col2 FROM tab0 AS cor0
----
-15
-4
50

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

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

query I rowsort
SELECT - 55 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-20
7243
737

onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT + - 57 + + cor0.col1 DIV + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-61

skipif mysql # not compatible
query I rowsort label-7449
SELECT + - 57 + + cor0.col1 / + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-61

query I rowsort
SELECT + col2 + col0 + - ( col2 ) * - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-3359
-663947
-68055

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

query I rowsort
SELECT DISTINCT + 26 * col1 * col1 + col1 FROM tab0 cor0
----
192382
215397
244731

query I rowsort
SELECT - 27 + - cor0.col0 FROM tab1 cor0
----
-107
-30
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT DISTINCT - col0 * col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
-12
-6
-87

skipif mysql # not compatible
query I rowsort label-7454
SELECT DISTINCT - col0 * col0 / + col1 AS col0 FROM tab0 AS cor0
----
-12
-6
-87

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

query I rowsort
SELECT ALL 81 * col0 AS col0 FROM tab1 AS cor0
----
243
5184
6480

query I rowsort
SELECT DISTINCT + 44 FROM tab1 cor0
----
44

onlyif mysql # use DIV operator for integer division
query I rowsort label-7458
SELECT + col0 * col0 * col2 + + col0 DIV col2 - ( col2 ) * col2 FROM tab1 AS cor0
----
-2430
230224
605184

skipif mysql # not compatible
query I rowsort label-7458
SELECT + col0 * col0 * col2 + + col0 / col2 - ( col2 ) * col2 FROM tab1 AS cor0
----
-2430
230224
605184

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 32 + - col1 col1 FROM tab0
----
2666
2821
3007

onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT - ( col2 ) + + col1 DIV 97 AS col0 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7461
SELECT - ( col2 ) + + col1 / 97 AS col0 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7462
SELECT - ( col1 ) DIV - ( 87 ) + + col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

skipif mysql # not compatible
query I rowsort label-7462
SELECT - ( col1 ) / - ( 87 ) + + col0 - + col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL + + cor0.col0 * 4 + col0 AS col2 FROM tab2 AS cor0
----
35
390
395

query I rowsort
SELECT ALL - 79 * - 77 FROM tab2, tab0 AS cor0
----
9 values hashing to b139035bf13141e94ede4aa5698fa998

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

skipif mysql # not compatible
query I rowsort label-7465
SELECT col0 * CAST ( + col1 AS INTEGER ) * col2 - col1 FROM tab1
----
36470
4186
99827

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

query I rowsort
SELECT ALL 54 * 89 AS col0 FROM tab2
----
4806
4806
4806

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) AS col1 FROM tab0
----
1
33
82

query I rowsort
SELECT tab2.col2 * cor0.col0 FROM tab2, tab2 cor0
----
9 values hashing to 1fcf8ce9be0db19b3883c362d1041dbe

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

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

query I rowsort
SELECT DISTINCT - 58 * - col0 FROM tab0 AS cor0
----
1392
2030
5162

onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT - - 10 DIV 99 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7473
SELECT - - 10 / 99 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 96 * tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 49fba294aa3c5cff273a0c332a91d3dc

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

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

query I rowsort
SELECT 60 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT 86 DIV 36 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-7478
SELECT 86 / 36 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

query I rowsort
SELECT col1 * 84 * col1 FROM tab1
----
14196
56784
8400

query I rowsort
SELECT col0 + 49 AS col0 FROM tab0
----
138
73
84

query I rowsort
SELECT col1 + 52 AS col1 FROM tab1 AS cor0
----
62
65
78

query I rowsort
SELECT ALL + col2 + col2 * + 19 FROM tab0 cor0
----
1640
20
660

query I rowsort
SELECT - 15 AS col2 FROM tab1, tab0 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5

query I rowsort
SELECT + 33 * cor0.col0 AS col1 FROM tab2 AS cor0
----
231
2574
2607

query I rowsort
SELECT + + cor0.col1 * - 46 FROM tab0 AS cor0
----
-3956
-4186
-4462

query I rowsort
SELECT DISTINCT - 57 * - col0 * + tab0.col0 FROM tab0
----
32832
451497
69825

query I rowsort
SELECT ALL + col0 + 25 FROM tab0 AS cor0
----
114
49
60

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

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

query I rowsort
SELECT DISTINCT - col2 + col0 * col0 * cor0.col2 FROM tab1 cor0
----
233415
432
614304

query I rowsort
SELECT DISTINCT - col1 * - 63 FROM tab1
----
1638
630
819

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

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

query I rowsort
SELECT + col1 - - 68 FROM tab0
----
154
159
165

query I rowsort
SELECT col1 + 94 FROM tab2
----
111
125
153

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

query I rowsort
SELECT col0 - + 18 AS col1 FROM tab2
----
-11
60
61

query I rowsort
SELECT DISTINCT - - col0 + col0 * 13 * + col1 AS col0 FROM tab2 AS cor0
----
17538
2828
59904

query I rowsort
SELECT ALL 78 + cor0.col2 * - ( + col0 ) - - col0 AS col2 FROM tab2 AS cor0
----
-104
-1872
-2845

query I rowsort
SELECT - ( col0 + col0 ) AS col1 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ( - 49 ) + - col1 + + 87 FROM tab2
----
-21
21
7

query I rowsort
SELECT + col1 + 92 FROM tab1
----
102
105
118

query I rowsort
SELECT 15 * 16 FROM tab1
----
240
240
240

query I rowsort
SELECT - ( cor0.col0 ) * cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 778568a0294a40217171bb2f1bbf2149

query I rowsort
SELECT 26 + tab2.col2 * ( col2 ) FROM tab2
----
1470
702
755

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7509
SELECT ALL ( + col0 ) / - col0 - - col1 FROM tab2 AS cor0
----
16
30
58

query I rowsort
SELECT - col1 + + 62 AS col0 FROM tab0 AS cor0
----
-24
-29
-35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 * col2 - col2 col0 FROM tab0 AS cor0
----
2409
5986
73

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

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

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT CAST ( + cor0.col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + 75 + - col1 * - cor0.col0 FROM tab1 cor0
----
1115
153
715

query I rowsort
SELECT DISTINCT - cor0.col0 + 61 * col0 FROM tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT + 52 + col2 AS col1 FROM tab2 cor0
----
78
79
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + 74 ) * + tab1.col2 col2 FROM tab1
----
-215784
-240426
-681984

onlyif mysql # use DIV operator for integer division
query I rowsort label-7519
SELECT tab1.col2 DIV ( col0 * col1 ) + - col2 + 13 FROM tab1
----
-41
-44
-83

skipif mysql # not compatible
query I rowsort label-7519
SELECT tab1.col2 / ( col0 * col1 ) + - col2 + 13 FROM tab1
----
-41
-44
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-7520
SELECT + col2 DIV + 64 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7520
SELECT + col2 / + 64 FROM tab1
----
0
0
1

query I rowsort
SELECT col1 - + col0 * + 32 * col2 AS col2 FROM tab2
----
-6017
-64837
-96047

onlyif mysql # use DIV operator for integer division
query I rowsort label-7522
SELECT col0 DIV 37 FROM tab1
----
0
1
2

skipif mysql # not compatible
query I rowsort label-7522
SELECT col0 / 37 FROM tab1
----
0
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7523
SELECT col2 DIV col0 + - col0 + col1 AS col0 FROM tab2
----
-19
-62
27

skipif mysql # not compatible
query I rowsort label-7523
SELECT col2 / col0 + - col0 + col1 AS col0 FROM tab2
----
-19
-62
27

query I rowsort
SELECT - 0 + 71 * - col0 + ( 42 ) * col2 AS col2 FROM tab2
----
-4013
-4446
637

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

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

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329

onlyif mysql # use DIV operator for integer division
query I rowsort label-7527
SELECT + - col2 * - 8 - - cor0.col2 DIV 4 FROM tab2 AS cor0
----
214
222
313

skipif mysql # not compatible
query I rowsort label-7527
SELECT + - col2 * - 8 - - cor0.col2 / 4 FROM tab2 AS cor0
----
214
222
313

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

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

query I rowsort
SELECT DISTINCT + + ( col2 ) + - col0 * + col0 AS col0 FROM tab2 cor0
----
-22
-6058
-6203

query I rowsort
SELECT - + col0 * - col0 + - col0 * col1 AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170

query I rowsort
SELECT ALL 46 * + col2 AS col1 FROM tab2 AS cor0
----
1196
1242
1748

query I rowsort
SELECT ALL + ( 68 ) + + cor0.col2 * col1 FROM tab0 AS cor0
----
165
2906
7530

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

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

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

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT - col1 / + col1 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 + + col1 AS col2 FROM tab0
----
133
143
262

query I rowsort
SELECT ALL + 2 * + col1 * cor0.col0 FROM tab0 AS cor0
----
16198
4128
6790

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

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

query I rowsort
SELECT ALL 65 + cor0.col1 AS col0 FROM tab1 AS cor0
----
75
78
91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL - col2 + - col1 / col0 col2 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT 33 + - col1 AS col2 FROM tab1
----
20
23
7

query I rowsort
SELECT - + 68 * col2 AS col0 FROM tab1 AS cor0
----
-3672
-3876
-6528

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

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

query I rowsort
SELECT ALL - - col0 * col2 + - col2 * col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 + 81 * ( - col0 ) FROM tab0 AS cor0
----
-2030
-2932
-7300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 51 col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 - - col1 FROM tab0 AS cor0
----
195
205
264

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

skipif mysql # not compatible
query I rowsort label-7548
SELECT CAST ( + 93 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT - ( - 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-7551
SELECT DISTINCT + + cor0.col2 * - CAST( NULL AS SIGNED ) + ( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34

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-7554
SELECT + col0 + CAST( NULL AS SIGNED ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - col1 * 72 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT DISTINCT + col0 + + 22 * + col1 AS col0 FROM tab0 AS cor0
----
1916
2091
2169

query I rowsort
SELECT ALL cor0.col2 - ( 91 * col2 ) AS col2 FROM tab2 AS cor0
----
-2340
-2430
-3420

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

skipif mysql # not compatible
query I rowsort label-7558
SELECT + + col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - cor0.col2 * 11 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-11
-11979
-73964

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

query I rowsort
SELECT - ( col1 ) - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 96 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7564
SELECT ALL + col0 * + col2 + ( - col1 ) + col2 DIV + ( col2 ) col0 FROM tab0 AS cor0
----
-61
707
7208

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + col0 * + col2 + ( - col1 ) + col2 / + ( col2 ) col0 FROM tab0 AS cor0
----
-61
707
7208

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

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

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

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

query I rowsort
SELECT ALL + col1 + 67 * + col2 + - ( 3 ) FROM tab0
----
161
2294
5582

query I rowsort
SELECT col2 + tab1.col1 + + col0 AS col2 FROM tab1
----
131
189
83

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

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

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT - + ( col2 ) DIV 52 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7577
SELECT - + ( col2 ) / 52 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - 92 FROM tab0
----
-125
-174
-93

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

query I rowsort
SELECT + col2 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

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

query I rowsort
SELECT + col1 * + cor0.col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1566
2090
2210

query I rowsort
SELECT col2 * - 44 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2322
-2451
-4128

query I rowsort
SELECT col2 + + col0 * - cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - ( - 92 ) + + col1 AS col1 FROM tab2 AS cor0
----
109
123
151

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

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

query I rowsort
SELECT ALL - 17 * + 18 - + col1 FROM tab0 AS cor0
----
-392
-397
-403

query I rowsort
SELECT ALL 75 * col1 + + col1 * col0 * cor0.col2 AS col2 FROM tab1 cor0
----
100815
37230
6162

query I rowsort
SELECT DISTINCT col1 - 74 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
248
4746
5933

onlyif mysql # use DIV operator for integer division
query I rowsort label-7590
SELECT ALL 69 DIV - 36 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688

skipif mysql # not compatible
query I rowsort label-7590
SELECT ALL 69 / - 36 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to f3aaea07874d9328a91c424c0907a688

query I rowsort
SELECT - col2 * 56 AS col0 FROM tab1
----
-3024
-3192
-5376

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

query I rowsort
SELECT DISTINCT - cor1.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
-1
-33
-82

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

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - CAST ( 2 AS INTEGER ) + + col1 AS col0 FROM tab0
----
84
89
95

query I rowsort
SELECT ALL col0 + + ( - tab0.col1 ) + - col1 * col2 FROM tab0
----
-159
-2900
-7464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * - 38 col0 FROM tab0 AS cor0
----
-1102

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

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

query I rowsort
SELECT col1 + - 55 + - col2 FROM tab0 cor0
----
-2
-46
41

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

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

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

query I rowsort
SELECT DISTINCT + 38 + col1 FROM tab0 AS cor0
----
124
129
135

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

query I rowsort
SELECT ALL + 47 * 21 AS col1 FROM tab2
----
987
987
987

query I rowsort
SELECT + col2 * 88 + 18 AS col0 FROM tab0 AS cor0
----
106
2922
7234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + cor0.col1 col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT + col1 - - 27 * + col0 FROM tab2 cor0
----
2150
2165
220

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT + 36 DIV - col0 FROM tab2
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7610
SELECT + 36 / - col0 FROM tab2
----
-5
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7611
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7612
SELECT ALL tab2.col0 * + CAST( col0 * + col0 AS SIGNED ) AS col1 FROM tab2
----
343
474552
493039

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL tab2.col0 * + CAST ( col0 * + col0 AS INTEGER ) AS col1 FROM tab2
----
343
474552
493039

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col1 * - col1 col2 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT + - col0 + + col1 * - 98 FROM tab0 AS cor0
----
-8452
-9007
-9541

query I rowsort
SELECT - 14 * cor0.col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9dc4c3d27681348c44327a9c80a79b08

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

query I rowsort
SELECT DISTINCT - col2 * - ( col0 + col1 ) FROM tab1
----
1566
4218
8928

query I rowsort
SELECT - 88 FROM tab1, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

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

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

query I rowsort
SELECT DISTINCT col1 + 49 * - col1 FROM tab2 cor0
----
-1488
-2832
-816

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

query I rowsort
SELECT DISTINCT 47 + 79 AS col2 FROM tab2, tab0 AS cor0
----
126

query I rowsort
SELECT DISTINCT col1 + + 85 FROM tab1 AS cor0
----
111
95
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7624
SELECT DISTINCT col0 DIV - 59 + col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7624
SELECT DISTINCT col0 / - 59 + col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6723

query I rowsort
SELECT ALL + + cor0.col1 * 72 - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1870
3069
5782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col2 + 4 col1 FROM tab0 AS cor0
----
1093
5
6728

query I rowsort
SELECT DISTINCT - col2 * - col0 + 94 - + col2 * - col0 AS col1 FROM tab1
----
15454
418
7390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + col0 - + col1 col0 FROM tab2 AS cor0
----
-17
141
97

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7630
SELECT DISTINCT 49 + 2 * col0 DIV 41 FROM tab1 AS cor0
----
49
52

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT 49 + 2 * col0 / 41 FROM tab1 AS cor0
----
49
52

skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( + col2 AS REAL ) * col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT tab2.col1 * col1 + - col1 DIV col1 FROM tab2
----
288
3480
960

skipif mysql # not compatible
query I rowsort label-7632
SELECT tab2.col1 * col1 + - col1 / col1 FROM tab2
----
288
3480
960

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

query I rowsort
SELECT ALL + 56 FROM tab2, tab2 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL - + col2 * + col0 + 43 * ( + col0 + cor0.col0 ) FROM tab0 AS cor0
----
1272
2975
356

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

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

query I rowsort
SELECT ALL + col0 * + col0 + + cor0.col2 + - 28 AS col2 FROM tab0 cor0
----
1198
581
7975

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT - col1 / + col2 col0 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT + col1 + col0 + - ( + 50 ) * cor0.col2 FROM tab0 AS cor0
----
-1540
-3920
82

query I rowsort
SELECT ALL - 60 + col2 FROM tab1 AS cor0
----
-3
-6
36

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

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

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

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT 54 / col0 + + col2 FROM tab1 AS cor0
----
57
72
96

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

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

query I rowsort
SELECT DISTINCT - col2 + + 82 AS col2 FROM tab2
----
44
55
56

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

skipif mysql # not compatible
query I rowsort label-7648
SELECT - CAST ( - 84 AS INTEGER ) FROM tab1
----
84
84
84

query I rowsort
SELECT 77 - tab0.col1 AS col1 FROM tab0
----
-14
-20
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 * cor0.col0 col1 FROM tab0 AS cor0
----
105
267
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab2
----
42
42
42

query I rowsort
SELECT + cor0.col2 * - ( 6 ) FROM tab2 cor0
----
-156
-162
-228

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab0
----
-26

query I rowsort
SELECT ALL cor0.col1 + + 53 FROM tab0 AS cor0
----
139
144
150

query I rowsort
SELECT + col1 * - col1 * - col1 AS col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT ALL col1 * 66 + 56 AS col2 FROM tab1 AS cor0
----
1772
716
914

query I rowsort
SELECT DISTINCT + + cor0.col2 * + 28 FROM tab2 AS cor0
----
1064
728
756

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7659
SELECT + cor0.col0 DIV - 83 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7659
SELECT + cor0.col0 / - 83 FROM tab2 cor0
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - 61 col1 FROM tab0 cor0
----
-28
-60
21

query I rowsort
SELECT col2 * - 15 AS col1 FROM tab1 AS cor0
----
-1440
-810
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * col0 col1 FROM tab1
----
128
160
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 + col2 * ( ( - tab0.col1 ) ) col1 FROM tab0
----
-774
3298
637

query I rowsort
SELECT ALL + - 66 * + col0 + + col0 + 74 FROM tab1 AS cor0
----
-121
-4086
-5126

query I rowsort
SELECT DISTINCT - ( - 13 ) + - cor0.col0 FROM tab0 cor0
----
-11
-22
-76

query I rowsort
SELECT 18 + + col0 AS col2 FROM tab2 cor0
----
25
96
97

query I rowsort
SELECT + col1 - - 32 AS col1 FROM tab0 AS cor0
----
118
123
129

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + - col2 col1 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT 11 * - 4 * + col0 FROM tab2
----
-308
-3432
-3476

query I rowsort
SELECT DISTINCT - cor0.col0 + 75 FROM tab0 cor0
----
-14
40
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7674
SELECT ALL ( + 84 ) DIV - col1 - - col1 * + col0 FROM tab1 AS cor0
----
1034
632
75

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL ( + 84 ) / - col1 - - col1 * + col0 FROM tab1 AS cor0
----
1034
632
75

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

query I rowsort
SELECT ALL - 95 * col0 + col0 FROM tab2 AS cor0
----
-658
-7332
-7426

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 + 95 * - col0 col0 FROM tab2 cor0
----
-6061
-6734
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT + col0 + col1 + col1 DIV tab2.col0 AS col2 FROM tab2
----
137
42
96

skipif mysql # not compatible
query I rowsort label-7679
SELECT + col0 + col1 + col1 / tab2.col0 AS col2 FROM tab2
----
137
42
96

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

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

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

query I rowsort
SELECT - tab2.col0 FROM tab2 WHERE NOT col0 * + col1 / + col1 + + col2 + + col0 <> ( col1 )
----

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE col0 = ( NULL )
----

query I rowsort
SELECT - col0 * + col0 + + col2 * + col0 AS col2 FROM tab2
----
-3239
-4056
140

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

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

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

skipif mysql # not compatible
query I rowsort label-7696
SELECT ALL - - ( col2 ) / ( col1 ) FROM tab2 AS cor0
----
0
0
2

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

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( col1 + col1 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

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

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

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

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

query I rowsort
SELECT DISTINCT - tab2.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
-17
-31
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col0 + col1
----

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

query I rowsort
SELECT col2 * + col2 - col2 AS col2 FROM tab2
----
1406
650
702

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * - col2 + + col2 / col1 ) <= - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

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

query I rowsort
SELECT DISTINCT - 32 * cor0.col2 FROM tab0 AS cor0
----
-1056
-2624
-32

query I rowsort
SELECT - ( + col2 ) + col0 * + 57 AS col1 FROM tab1 AS cor0
----
117
3591
4464

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

query I rowsort
SELECT - col2 + 83 AS col2 FROM tab2 cor0
----
45
56
57

query I rowsort
SELECT ALL - col0 - 96 AS col0 FROM tab0
----
-120
-131
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + tab2.col0 col0 FROM tab2
----
165
166
94

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

query I rowsort
SELECT + col0 * - 24 FROM tab0 AS cor0
----
-2136
-576
-840

query I rowsort
SELECT ALL - - col1 * 97 + - col0 * - col1 FROM tab0 cor0
----
10406
12804
16926

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

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

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

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

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

query I rowsort
SELECT ALL 75 * + col1 AS col1 FROM tab0
----
6450
6825
7275

query I rowsort
SELECT - 94 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
81 values hashing to d4c5b1dbf2cd8753fb5ffe745ca9f5de

query I rowsort
SELECT + + col2 + + col0 * + col0 * + col2 AS col1 FROM tab1 cor0
----
233529
540
614496

query I rowsort
SELECT ALL - col2 * + 8 - + cor0.col0 * col2 FROM tab1 AS cor0
----
-4104
-594
-8448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 87 col1 FROM tab2 AS cor0
----
609
6786
6873

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

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

query I rowsort
SELECT col0 * + col1 * + col2 + - col0 * + ( + col1 + + col1 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2138136
423120
662025

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

skipif mysql # not compatible
query I rowsort label-7734
SELECT + + col1 / ( col1 * col0 ) + - 63 AS col0 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - 32 * + tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
-320
-416
-832

query I rowsort
SELECT col2 - 27 AS col1 FROM tab2 AS cor0
----
-1
0
11

query I rowsort
SELECT DISTINCT + + col1 * - col0 + + col0 * col0 * col0 FROM tab1 cor0
----
-51
261504
510960

query I rowsort
SELECT + ( - col1 ) + - col1 * ( - 24 ) AS col0 FROM tab0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT + tab0.col1 * + 34 FROM tab0
----
2924
3094
3298

query I rowsort
SELECT 25 - + col2 AS col1 FROM tab2
----
-1
-13
-2

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

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

query I rowsort
SELECT - col2 * - col1 + col0 * col1 AS col2 FROM tab0
----
15561
3492
4902

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

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

query I rowsort
SELECT - 66 * 35 AS col0 FROM tab1 AS cor0
----
-2310
-2310
-2310

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

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

query I rowsort
SELECT DISTINCT - 62 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 cor2
----
-62

query I rowsort
SELECT 82 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT + - 91 + - col2 * + col1 FROM tab2 AS cor0
----
-1625
-737
-928

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

query I rowsort
SELECT 28 * col2 AS col1 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT ALL 20 * + col0 FROM tab1 AS cor0
----
1280
1600
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 32 * + 90 * - col1 + + 38 * + col2 + col1 * - col0 col0 FROM tab1 cor0
----
-27274
-34832
-72906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * col0 - 51 col2 FROM tab2 AS cor0
----
292
474501
492988

query I rowsort
SELECT DISTINCT + 46 * - col0 AS col1 FROM tab2 cor0
----
-322
-3588
-3634

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

query I rowsort
SELECT ALL + - col1 * + col2 + ( + ( col2 ) ) FROM tab1 cor0
----
-1152
-1350
-513

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

query I rowsort
SELECT + - 10 * + cor0.col2 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7066
7461
9399

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

query I rowsort
SELECT ALL + col2 + col0 * col1 * + 43 AS col2 FROM tab0 AS cor0
----
145986
348339
88785

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

query I rowsort
SELECT DISTINCT + + 52 * + col1 AS col0 FROM tab2 AS cor0
----
1612
3068
884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + cor0.col2 col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT ALL col0 * - 89 AS col1 FROM tab2 AS cor0
----
-623
-6942
-7031

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 col1 FROM tab2 cor0
----
1343
217
4602

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT DISTINCT col2 * + 9 + + col0 * col0 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
291
651

skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT col2 * + 9 + + col0 * col0 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
291
651

query I rowsort
SELECT cor0.col2 * - 95 * cor0.col2 + + col1 FROM tab1 AS cor0
----
-276994
-308645
-875507

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

query I rowsort
SELECT + col2 - 79 FROM tab0 cor0
----
-46
-78
3

query I rowsort
SELECT + 42 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * - col0 col1 FROM tab1 AS cor0
----
291
6208
7760

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

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

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

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

query I rowsort
SELECT - 57 * col2 + + cor0.col2 AS col2 FROM tab2 cor0
----
-1456
-1512
-2128

query I rowsort
SELECT - - 23 * 87 + - col1 FROM tab0 AS cor0
----
1904
1910
1915

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT + cor0.col2 * + 56 AS col2 FROM tab1 AS cor0
----
3024
3192
5376

query I rowsort
SELECT - cor0.col0 + 31 + - cor0.col1 FROM tab2 AS cor0
----
-106
-65
-7

query I rowsort
SELECT DISTINCT - - 50 * col2 FROM tab2 AS cor0
----
1300
1350
1900

query I rowsort
SELECT 95 + - col2 FROM tab2 cor0
----
57
68
69

query I rowsort
SELECT ALL + col2 + + 75 FROM tab0 AS cor0
----
108
157
76

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

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

query I rowsort
SELECT + - col1 * - col0 + col0 AS col2 FROM tab2 cor0
----
1422
224
4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT DISTINCT col2 * + 63 * - col0 + tab1.col2 DIV + col2 AS col0 FROM tab1
----
-10205
-229823
-483839

skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT col2 * + 63 * - col0 + tab1.col2 / + col2 AS col0 FROM tab1
----
-10205
-229823
-483839

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

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

query I rowsort
SELECT + cor0.col2 + 41 * col2 + col1 FROM tab0 AS cor0
----
139
1472
3535

query I rowsort
SELECT ALL + 26 * col2 + col0 * + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
118851
50394
722943

query I rowsort
SELECT - 94 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT ALL + 31 - + tab1.col2 FROM tab1
----
-23
-26
-65

query I rowsort
SELECT - - ( - 96 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

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

query I rowsort
SELECT - + col2 - 77 FROM tab0 AS cor0
----
-110
-159
-78

query I rowsort
SELECT DISTINCT 2 + cor0.col0 * + cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
2066
3397
8101

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

skipif mysql # not compatible
query I rowsort label-7805
SELECT + CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 * - 65 - col0 * + col0 * col0 AS col2 FROM tab2 AS cor0
----
-2358
-478387
-494144

query I rowsort
SELECT ALL + 58 FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + + col0 * tab2.col0 col1 FROM tab2
----
56
6162
6320

query I rowsort
SELECT ALL col2 + - 39 * col1 FROM tab2
----
-1182
-2275
-625

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 col0 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT col2 DIV + 71 - + cor0.col1 col0 FROM tab1 AS cor0
----
-10
-12
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7812
SELECT col2 / + 71 - + cor0.col1 col0 FROM tab1 AS cor0
----
-10
-12
-26

query I rowsort
SELECT DISTINCT + col2 + 57 * col2 AS col0 FROM tab2 AS cor0
----
1508
1566
2204

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

query I rowsort
SELECT - + 56 * - col1 + + ( - 98 ) FROM tab0 AS cor0
----
4718
4998
5334

onlyif mysql # use DIV operator for integer division
query I rowsort label-7816
SELECT + col2 DIV col0 + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
128
161
24

skipif mysql # not compatible
query I rowsort label-7816
SELECT + col2 / col0 + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
128
161
24

query I rowsort
SELECT ( 88 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT - 96 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-288
-6144
-7680

query I rowsort
SELECT - cor0.col1 * col1 * + col1 + - col1 FROM tab1 AS cor0
----
-1010
-17602
-2210

query I rowsort
SELECT + 15 + + col2 AS col0 FROM tab2 cor0
----
41
42
53

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

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

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

query I rowsort
SELECT + + 96 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

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

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

query I rowsort
SELECT ALL ( - col1 ) * col2 + + 66 + - col1 * + tab0.col0 AS col1 FROM tab0
----
-15495
-3426
-4836

query I rowsort
SELECT ALL + col0 * + col2 + - col1 * + 59 * - 52 + col1 AS col1 FROM tab1
----
34338
47577
79956

query I rowsort
SELECT col2 * - ( - col1 ) + 39 + 41 * col0 FROM tab1
----
1566
3233
4567

query I rowsort
SELECT ALL + 69 + 37 AS col0 FROM tab2 AS cor0
----
106
106
106

query I rowsort
SELECT 91 * - 61 FROM tab0
----
-5551
-5551
-5551

query I rowsort
SELECT ALL tab0.col1 * col2 * - col1 FROM tab0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + ( ( cor1.col0 ) ) FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL + col0 + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 + col1 FROM tab1 AS cor0
----
-1139
-1324
-503

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

query I rowsort
SELECT 89 + col0 * + ( col2 ) + col1 AS col2 FROM tab1
----
277
3747
7782

onlyif mysql # use DIV operator for integer division
query I rowsort label-7838
SELECT ALL + 80 DIV + col1 - - 10 FROM tab0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + 80 / + col1 - - 10 FROM tab0
----
10
10
10

onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT DISTINCT + tab1.col0 * + col2 * ( col0 ) - col0 DIV 82 col2 FROM tab1
----
233472
486
614400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + tab1.col0 * + col2 * ( col0 ) - col0 / 82 col2 FROM tab1
----
233472
486
614400

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

skipif mysql # not compatible
query I rowsort label-7840
SELECT ALL CAST ( NULL AS INTEGER ) * + ( cor1.col0 ) + + tab0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

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

query I rowsort
SELECT + 28 + cor0.col1 - + col0 AS col0 FROM tab1 AS cor0
----
-26
-39
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT + col2 * tab1.col0 DIV - 64 FROM tab1
----
-120
-2
-57

skipif mysql # not compatible
query I rowsort label-7843
SELECT + col2 * tab1.col0 / - 64 FROM tab1
----
-120
-2
-57

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

query I rowsort
SELECT ALL + tab1.col1 * 46 - 24 FROM tab1, tab2, tab1 cor0
----
27 values hashing to 3dc5d009ea7f03e361563bda98f2a649

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col2 AS REAL ) FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - col0 + ( + col1 + + col1 * col2 ) FROM tab2 AS cor0
----
1515
584
861

onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT DISTINCT - 52 * + col0 + + col2 + + col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1215
-1819
-4546

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT - 52 * + col0 + + col2 + + col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
-1215
-1819
-4546

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7850
SELECT ALL - + CAST( + ( col0 ) AS SIGNED ) * cor0.col0 * + 47 + + col2 * - 89 FROM tab1 AS cor0
----
-197585
-309344
-5229

skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL - + CAST ( + ( col0 ) AS INTEGER ) * cor0.col0 * + 47 + + col2 * - 89 FROM tab1 AS cor0
----
-197585
-309344
-5229

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

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + 28 + - col0 / + cor0.col1 FROM tab2 AS cor0
----
24
27
28

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT - - col2 DIV - 90 + - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57

skipif mysql # not compatible
query I rowsort label-7855
SELECT - - col2 / - 90 + - col2 + - col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT col2 * 72 AS col2 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT - col1 * col1 + + col0 * tab0.col1 + col1 AS col2 FROM tab0
----
-5246
-5917
-91

query I rowsort
SELECT DISTINCT - col1 * col2 + col2 * - col1 FROM tab1
----
-1140
-2496
-2808

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + 74 col2 FROM tab1
----
138
154
77

query I rowsort
SELECT tab0.col0 * col1 * - 35 FROM tab0
----
-118825
-283465
-72240

query I rowsort
SELECT ALL + col0 * 18 AS col1 FROM tab1 AS cor0
----
1152
1440
54

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

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

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

query I rowsort
SELECT - col2 + 56 + + tab1.col0 * - col0 AS col2 FROM tab1
----
-4097
-6440
-7

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

query I rowsort
SELECT DISTINCT + col2 * 36 - + col1 FROM tab0
----
-61
1102
2861

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 14 * col0 + 6 + - col2 col1 FROM tab0
----
102096
11061
495

query I rowsort
SELECT ALL + - 5 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

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

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

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

query I rowsort
SELECT ALL - ( + 85 ) * col1 + - 31 FROM tab0 AS cor0
----
-7341
-7766
-8276

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

query I rowsort
SELECT ALL + 47 * cor0.col0 * - 4 + col2 AS col1 FROM tab0 AS cor0
----
-16650
-4479
-6579

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

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

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

skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL + ( + col0 ) * + col0 * - col2 + col2 + + CAST ( col2 + col0 AS INTEGER ) * + 66 FROM tab2 AS cor0
----
-151294
-229398
948

query I rowsort
SELECT DISTINCT + col0 * col1 - + 67 * - ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
-136224
-224070
-534534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 + - col2 col2 FROM tab2 AS cor0
----
-1560
-684
-864

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

query I rowsort
SELECT 80 + + col1 * - 70 FROM tab2 AS cor0
----
-1110
-2090
-4050

query I rowsort
SELECT + col2 - col1 * 40 AS col1 FROM tab1 AS cor0
----
-343
-424
-986

query I rowsort
SELECT DISTINCT 80 * + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
6913
7362
7761

query I rowsort
SELECT ( - 50 ) - - col2 AS col1 FROM tab0
----
-17
-49
32

query I rowsort
SELECT DISTINCT - col2 * + 39 - col0 FROM tab1
----
-2109
-2287
-3824

query I rowsort
SELECT ALL 55 * col2 * ( 50 ) + col0 FROM tab2 cor0
----
104579
71578
74257

query I rowsort
SELECT DISTINCT - - 40 - + col0 * cor0.col0 FROM tab2 AS cor0
----
-6044
-6201
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT - ( - col1 ) DIV 81 + - 40 FROM tab0 cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-7889
SELECT - ( - col1 ) / 81 + - 40 FROM tab0 cor0
----
-39
-39
-39

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

query I rowsort
SELECT - 35 + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-197
-3683
-7715

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 + col1 ) * + tab0.col1 * col1 col0 FROM tab0
----
-1432613
-880124
-922082

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

query I rowsort
SELECT + ( col0 ) - cor0.col2 * 8 FROM tab1 AS cor0
----
-392
-429
-688

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

skipif mysql # not compatible
query I rowsort label-7896
SELECT + col2 - - col0 / - ( col1 ) AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + 36 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-7898
SELECT + 84 * - col0 - cor0.col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
-588
-6551
-6632

skipif mysql # not compatible
query I rowsort label-7898
SELECT + 84 * - col0 - cor0.col0 / - col1 AS col1 FROM tab2 AS cor0
----
-588
-6551
-6632

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

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

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

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

query I rowsort
SELECT ALL cor0.col2 + - 2 FROM tab2 AS cor0
----
24
25
36

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) * - 55 AS col1 FROM tab2 AS cor0
----
35530
46035
84370

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

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

query I rowsort
SELECT DISTINCT - + 61 * - 64 + - col2 * - 5 AS col1 FROM tab2 AS cor0
----
4034
4039
4094

query I rowsort
SELECT ALL - + 86 * col2 AS col2 FROM tab2 cor0
----
-2236
-2322
-3268

query I rowsort
SELECT DISTINCT - 69 * 52 FROM tab1 AS cor0
----
-3588

query I rowsort
SELECT ALL col1 * 58 AS col1 FROM tab1
----
1508
580
754

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

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + CAST ( col2 * + col2 AS INTEGER ) FROM tab0
----
1
1089
6724

query I rowsort
SELECT ALL - - 76 * + 25 FROM tab2 AS cor0
----
1900
1900
1900

onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT + col0 DIV 26 FROM tab2
----
0
3
3

skipif mysql # not compatible
query I rowsort label-7912
SELECT + col0 / 26 FROM tab2
----
0
3
3

query I rowsort
SELECT ALL - - 10 * ( - col0 ) + cor0.col1 FROM tab1 AS cor0
----
-4
-630
-787

query I rowsort
SELECT - ( + col0 ) * cor0.col2 + - 34 * col0 FROM tab2 AS cor0
----
-427
-4680
-5688

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT ALL col0 * col0 DIV col0 AS col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL col0 * col0 / col0 AS col0 FROM tab0
----
24
35
89

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

query I rowsort
SELECT 76 + col1 AS col0 FROM tab1 AS cor0
----
102
86
89

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

query I rowsort
SELECT ALL + ( + 21 ) AS col0 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT + 32 * cor0.col1 + col0 FROM tab1 AS cor0
----
384
496
835

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT + - col1 + + cor0.col0 * col2 DIV + cor0.col2 FROM tab0 AS cor0
----
-2
-62
-62

skipif mysql # not compatible
query I rowsort label-7923
SELECT + - col1 + + cor0.col0 * col2 / + cor0.col2 FROM tab0 AS cor0
----
-2
-62
-62

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

skipif mysql # not compatible
query I rowsort label-7924
SELECT CAST ( col2 AS INTEGER ) * - col0 * + ( - col0 ) + col0 AS col1 FROM tab0 AS cor0
----
1260
19032
649611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 5 col2 FROM tab2 AS cor0
----
-155
-295
-85

query I rowsort
SELECT - col2 + + 82 AS col0 FROM tab1 AS cor0
----
-14
25
28

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

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

query I rowsort
SELECT - + 23 * + col0 AS col1 FROM tab2 AS cor0
----
-161
-1794
-1817

query I rowsort
SELECT cor0.col0 + col0 * col2 * col0 AS col1 FROM tab1 AS cor0
----
233536
489
614480

query I rowsort
SELECT + col2 + col0 * + 57 AS col2 FROM tab0 cor0
----
1401
1996
5155

query I rowsort
SELECT + 24 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 20 col0 FROM tab0 cor0
----
106
111
117

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

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

query I rowsort
SELECT - 27 * - 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

skipif mysql # not compatible
query I rowsort label-7936
SELECT ALL - col0 + + CAST ( - ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * ( - 60 ) - col1 * ( - col2 + + col1 ) FROM tab0 AS cor0
----
-5739
-6538
-9372

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 84 * + ( cor0.col2 + + col1 ) col1 FROM tab2 AS cor0
----
4603
4841
7081

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

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

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

query I rowsort
SELECT - col0 * 49 FROM tab2 AS cor0
----
-343
-3822
-3871

query I rowsort
SELECT DISTINCT - 1 - col2 FROM tab1 AS cor0
----
-55
-58
-97

query I rowsort
SELECT - 51 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
-4386
-4641
-4947

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

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

query I rowsort
SELECT ALL + col2 * cor0.col0 * + cor0.col2 - 25 FROM tab2 AS cor0
----
114051
5078
52703

query I rowsort
SELECT - col1 - 75 AS col2 FROM tab2
----
-106
-134
-92

query I rowsort
SELECT ALL + 64 * - col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208

query I rowsort
SELECT + col2 + - col1 * + 46 FROM tab1 AS cor0
----
-1142
-403
-502

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

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

query I rowsort
SELECT - col0 * col1 * - ( + col2 ) + + col0 AS col2 FROM tab0 cor0
----
3430
664207
68136

query I rowsort
SELECT DISTINCT col2 * - ( - col1 + col0 ) AS col2 FROM tab2
----
-2356
-494
648

query I rowsort
SELECT ALL - ( + col0 ) * col2 + col0 + tab0.col0 AS col2 FROM tab0
----
-7120
-744
35

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

query I rowsort
SELECT DISTINCT 51 * cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT + 35 * + col1 AS col1 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT ALL + 70 * cor0.col0 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-7960
SELECT ALL + + CAST( 20 AS SIGNED ) DIV + col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + + CAST ( 20 AS INTEGER ) / + col1 FROM tab2 AS cor0
----
0
0
1

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

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

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

skipif mysql # not compatible
query I rowsort label-7963
SELECT + - col2 / 37 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT - + ( - col0 ) * - col0 * + col0 FROM tab0 cor0
----
-13824
-42875
-704969

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

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

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

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

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

query I rowsort
SELECT + 15 * - col2 + + col1 * - col0 FROM tab2 AS cor0
----
-1913
-4992
-622

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT ( + tab1.col2 ) DIV col0 + col1 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-7970
SELECT ( + tab1.col2 ) / col0 + col1 AS col2 FROM tab1
----
10
14
44

query I rowsort
SELECT 10 + col1 * - col2 * col0 + + col2 AS col1 FROM tab1
----
-36413
-4148
-99734

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

query I rowsort
SELECT ALL - + 22 * + col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT DISTINCT 71 * - col1 * col2 FROM tab1 AS cor0
----
-40470
-88608
-99684

query I rowsort
SELECT ALL col0 * - 60 + col2 AS col1 FROM tab2
----
-393
-4654
-4702

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

query I rowsort
SELECT ALL + col1 * - ( col1 * col1 ) FROM tab0 cor0
----
-636056
-753571
-912673

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

skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL col2 * - CAST ( ( col1 ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-1235
-1378
-560

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

query I rowsort
SELECT ALL + 55 FROM tab0, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + 22 + - 24 col1 FROM tab0 AS cor0
----
-1982
-552
-794

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 40 col1 FROM tab0 AS cor0
----
-39
-7
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 + - cor0.col0 * - col1 + + col0 col2 FROM tab1 AS cor0
----
1216
135
761

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

query I rowsort
SELECT DISTINCT + col1 * ( + ( - cor0.col1 ) ) * col1 + cor0.col0 FROM tab1 AS cor0
----
-17573
-2117
-936

query I rowsort
SELECT ALL - col1 + ( - col0 ) - col0 * col0 AS col1 FROM tab2 AS cor0
----
-6221
-6337
-87

query I rowsort
SELECT ALL + + col1 + 9 * + col0 + col0 FROM tab0 AS cor0
----
326
447
981

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 48 col1 FROM tab1 AS cor0
----
144
3072
3840

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

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

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

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 + col1 FROM tab1 AS cor0
----
2968
3269
9242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col1 * col2 col1 FROM tab2
----
10982
25947
90506

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-7997
SELECT + - cor0.col0 * col0 + cor0.col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif mysql # not compatible
query I rowsort label-7997
SELECT + - cor0.col0 * col0 + cor0.col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
-48
-6083
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 * cor0.col0 col0 FROM tab1 AS cor0
----
102
2176
2720

query I rowsort
SELECT + cor0.col0 + + col1 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
22910
271596
6734

onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT DISTINCT + col2 DIV cor0.col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT + col2 / cor0.col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
10
78
79

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

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

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

query I rowsort
SELECT + 46 + col2 AS col1 FROM tab2 cor0
----
72
73
84

query I rowsort
SELECT col2 * col2 + - col1 * - col1 AS col0 FROM tab2 AS cor0
----
1690
1733
4157

query I rowsort
SELECT DISTINCT + 62 - col2 FROM tab0 AS cor0
----
-20
29
61

query I rowsort
SELECT ALL + 1 + col0 + + col1 * col1 FROM tab1 AS cor0
----
165
250
680

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

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

query I rowsort
SELECT DISTINCT col2 * col0 + col2 + + col2 FROM tab2 AS cor0
----
2080
243
3078

query I rowsort
SELECT ALL - cor0.col1 * + col2 * + col1 + + col0 - col1 FROM tab2 AS cor0
----
-10920
-25971
-90487

query I rowsort
SELECT ALL 41 * col1 + - col0 FROM tab1 AS cor0
----
1063
346
453

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 * + col0 col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT 32 + 13 AS col2 FROM tab2 cor0
----
45
45
45

query I rowsort
SELECT + 26 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT + 95 + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84e84f80fe6fcf94b2babaf9b20bb783

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

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

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 99 AS REAL ) + - col0 * 52 AS col2 FROM tab1
----
-3229
-4061
-57

query I rowsort
SELECT DISTINCT col2 + + 29 * col1 FROM tab1
----
347
473
808

onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT 39 DIV 28 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

skipif mysql # not compatible
query I rowsort label-8021
SELECT 39 / 28 AS col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

query I rowsort
SELECT + + 59 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
121776
200305
477841

query I rowsort
SELECT + ( + 15 ) + + col1 * - cor0.col0 * - col2 FROM tab2 AS cor0
----
119667
51049
5874

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

query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 * - 50 FROM tab1, tab1 AS cor0
----
-28500
-62400
-70200

query I rowsort
SELECT DISTINCT - - ( + col2 ) + col1 + 27 * col0 FROM tab1 AS cor0
----
161
1795
2269

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

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

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

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

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 col0 + ( + cor0.col2 * cor0.col2 ) - + col1 AS col2 FROM tab1 AS cor0
----
2893
3303
9283

onlyif mysql # use DIV operator for integer division
query I rowsort label-8032
SELECT - col1 + + 10 DIV col0 AS col2 FROM tab1
----
-10
-13
-23

skipif mysql # not compatible
query I rowsort label-8032
SELECT - col1 + + 10 / col0 AS col2 FROM tab1
----
-10
-13
-23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8033
SELECT ALL 61 DIV + 28 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL 61 / + 28 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

query I rowsort
SELECT cor0.col2 + - ( 13 ) FROM tab2 AS cor0
----
13
14
25

query I rowsort
SELECT + 2 FROM tab2, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

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

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

query I rowsort
SELECT 49 * col0 + - col0 FROM tab2 AS cor0
----
336
3744
3792

query I rowsort
SELECT ALL + 99 * + col2 FROM tab1 AS cor0
----
5346
5643
9504

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8043
SELECT ALL 4 + 7 DIV col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL 4 + 7 / col2 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 53 + cor0.col0 col2 FROM tab2 cor0
----
-1300
-1424
-1935

query I rowsort
SELECT DISTINCT + 12 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-234
-317
-377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 + ( - col1 ) col1 FROM tab2 AS cor0
----
-114
-128
-156

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT col0 * 91 + col0 DIV + col0 AS col1 FROM tab2
----
638
7099
7190

skipif mysql # not compatible
query I rowsort label-8048
SELECT col0 * 91 + col0 / + col0 AS col1 FROM tab2
----
638
7099
7190

query I rowsort
SELECT - col0 * 94 AS col1 FROM tab1
----
-282
-6016
-7520

onlyif mysql # use DIV operator for integer division
query I rowsort label-8050
SELECT - col1 DIV - 96 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT - col1 / - 96 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - ( - ( col2 ) ) - - col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT - ( 12 ) FROM tab0, tab2 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

query I rowsort
SELECT DISTINCT - col2 * - col1 + 85 AS col2 FROM tab0 AS cor0
----
182
2923
7547

query I rowsort
SELECT DISTINCT - cor0.col0 + 1 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT - col2 + + 62 FROM tab0 AS cor0
----
-20
29
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 26 + + col0 col0 FROM tab0 AS cor0
----
-2212
-2277
-2487

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

query I rowsort
SELECT col1 * + 60 AS col0 FROM tab0 cor0
----
5160
5460
5820

query I rowsort
SELECT ALL - col0 * col0 * 18 AS col2 FROM tab2 AS cor0
----
-109512
-112338
-882

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

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

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

query I rowsort
SELECT ALL 10 * cor0.col0 + + col2 FROM tab0 AS cor0
----
273
351
972

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

query I rowsort
SELECT DISTINCT - 69 + - cor0.col1 * - col2 FROM tab0 AS cor0
----
2769
28
7393

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8067
SELECT + 50 DIV col0 FROM tab2 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-8067
SELECT + 50 / col0 FROM tab2 AS cor0
----
0
0
7

query I rowsort
SELECT DISTINCT + + 47 + col0 FROM tab0 AS cor0
----
136
71
82

query I rowsort
SELECT col2 * - col0 + ( col2 * + col2 ) FROM tab1
----
-399
1536
2754

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

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

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

query I rowsort
SELECT - cor0.col1 * 12 FROM tab2 AS cor0
----
-204
-372
-708

query I rowsort
SELECT 54 * - col1 AS col0 FROM tab1
----
-1404
-540
-702

query I rowsort
SELECT DISTINCT col2 * 38 FROM tab0
----
1254
3116
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-8075
SELECT ALL - tab1.col1 DIV - col0 AS col2 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - tab1.col1 / - col0 AS col2 FROM tab1
----
0
0
8

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8077
SELECT - + 96 + - col1 + CAST( 84 AS SIGNED ) AS col2 FROM tab0 cor0
----
-103
-109
-98

skipif mysql # not compatible
query I rowsort label-8077
SELECT - + 96 + - col1 + CAST ( 84 AS INTEGER ) AS col2 FROM tab0 cor0
----
-103
-109
-98

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

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

query I rowsort
SELECT ALL - 39 * - col0 + - col0 FROM tab0 AS cor0
----
1330
3382
912

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

query I rowsort
SELECT DISTINCT - - ( - 35 ) + col0 FROM tab1 AS cor0
----
-32
29
45

query I rowsort
SELECT + 52 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-34
-39
-45

onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT + col2 DIV 85 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8084
SELECT + col2 / 85 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + 34 * + col1 FROM tab2 AS cor0
----
1054
2006
578

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

query I rowsort
SELECT - col1 * + col1 + + 77 FROM tab1 cor0
----
-23
-599
-92

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

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

query I rowsort
SELECT 94 * - col2 * - col2 + 10 * + col1 * 30 FROM tab2 AS cor0
----
140836
77826
81244

onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT ALL tab0.col0 * tab0.col2 + col2 DIV + col1 FROM tab0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL tab0.col0 * tab0.col2 + col2 / + col1 FROM tab0
----
35
7298
792

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

query I rowsort
SELECT 48 FROM tab2, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to df6d12001a34fdcf5cfb2ca3a4a22108

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT ALL cor1.col0 - CAST( NULL AS DECIMAL ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL cor1.col0 - CAST ( NULL AS REAL ) FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT + 35 + - col2 FROM tab0
----
-47
2
34

query I rowsort
SELECT ALL + 66 * - col2 + col1 AS col1 FROM tab0
----
-2092
-5321
31

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

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

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col0 AS REAL ) + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6

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

query I rowsort
SELECT DISTINCT + col1 + col0 * col0 + col0 * col1 FROM tab2 AS cor0
----
10745
297
7601

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

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

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

query I rowsort
SELECT - + col1 * + 36 FROM tab2 AS cor0
----
-1116
-2124
-612

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

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

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

query I rowsort
SELECT ALL ( + col2 ) * + 7 + + 24 FROM tab1 AS cor0
----
402
423
696

query I rowsort
SELECT DISTINCT 36 * + col1 FROM tab2 AS cor0
----
1116
2124
612

query I rowsort
SELECT DISTINCT + col2 * - col1 * + col2 + cor0.col1 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT - 99 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 501094e80bab5e6e81bd79b84ea81e69

query I rowsort
SELECT 73 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 col1 FROM tab2 AS cor0
----
118
34
62

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT col2 * col0 DIV - 29 AS col2 FROM tab0
----
-1
-251
-27

skipif mysql # not compatible
query I rowsort label-8117
SELECT col2 * col0 / - 29 AS col2 FROM tab0
----
-1
-251
-27

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

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

query I rowsort
SELECT ALL - - ( - col2 ) + - col1 * - cor0.col2 * - col1 FROM tab1 AS cor0
----
-16320
-36558
-5757

query I rowsort
SELECT tab2.col1 + + col0 * + tab2.col0 FROM tab2
----
6143
6258
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT col0 * col2 DIV + tab2.col1 AS col1 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-8121
SELECT col0 * col2 / + tab2.col1 AS col1 FROM tab2
----
176
34
6

query I rowsort
SELECT ALL col0 - 90 FROM tab0
----
-1
-55
-66

query I rowsort
SELECT ALL + 24 + 35 FROM tab0 AS cor0
----
59
59
59

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 50 * - col2 FROM tab1 AS cor0
----
-2697
-2786
-4720

query I rowsort
SELECT DISTINCT col0 * + 4 + col1 - col0 * ( col2 * col0 + - ( - tab0.col1 ) ) AS col1 FROM tab0
----
-20890
-4383
-657174

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT + col1 DIV + col1 + tab2.col1 + col0 AS col0 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-8131
SELECT + col1 / + col1 + tab2.col1 + col0 AS col0 FROM tab2
----
138
39
97

query I rowsort
SELECT - 77 * - 56 + + col0 + col0 FROM tab0
----
4360
4382
4490

query I rowsort
SELECT + 44 * col0 + - col2 * col0 AS col2 FROM tab2
----
119
1404
474

query I rowsort
SELECT DISTINCT col0 * + 81 + tab1.col1 + - 73 FROM tab1
----
196
5121
6420

query I rowsort
SELECT 58 + cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
2086
247
3060

query I rowsort
SELECT - - 27 + cor0.col0 * - col0 AS col0 FROM tab0 cor0
----
-1198
-549
-7894

query I rowsort
SELECT ALL - 21 * + col2 AS col0 FROM tab2 AS cor0
----
-546
-567
-798

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

query I rowsort
SELECT DISTINCT - 37 + col1 * - col0 * - 55 AS col0 FROM tab2 AS cor0
----
11898
253073
73828

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - col1 * + 90 FROM tab1 AS cor0
----
-1074
-2286
-843

query I rowsort
SELECT col0 * col2 * col0 + col1 AS col1 FROM tab2
----
1354
158243
237175

query I rowsort
SELECT - + col1 * 27 + + col0 - + col0 AS col1 FROM tab2 AS cor0
----
-1593
-459
-837

query I rowsort
SELECT ALL + col2 * col1 - 65 FROM tab2 AS cor0
----
1469
581
772

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

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

query I rowsort
SELECT ALL + col2 + - ( 90 ) FROM tab1 AS cor0
----
-33
-36
6

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8152
SELECT ALL - ( cor0.col1 ) DIV + col2 + + CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-35
-83
-98

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - ( cor0.col1 ) / + col2 + + CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-35
-83
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + 15 + cor0.col0 col2 FROM tab0 AS cor0
----
-421
-475
-486

query I rowsort
SELECT DISTINCT + + 95 * + 2 AS col0 FROM tab1 AS cor0
----
190

query I rowsort
SELECT cor0.col2 + - cor0.col1 * 67 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3335467e2fae28836c936675ef34ffb0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - col0 * + ( + 95 ) * col2 col1 FROM tab0 AS cor0
----
-3422
-693401
-75326

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

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

query I rowsort
SELECT DISTINCT - 29 + col0 FROM tab1 AS cor0
----
-26
35
51

query I rowsort
SELECT - - 80 * - col0 AS col2 FROM tab0 cor0
----
-1920
-2800
-7120

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT + 81 DIV col1 AS col1 FROM tab1 AS cor0
----
3
6
8

skipif mysql # not compatible
query I rowsort label-8163
SELECT + 81 / col1 AS col1 FROM tab1 AS cor0
----
3
6
8

query I rowsort
SELECT + 91 * + col1 AS col2 FROM tab0 AS cor0
----
7826
8281
8827

query I rowsort
SELECT DISTINCT 47 * + 49 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
2303

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

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

query I rowsort
SELECT ALL - + col0 * ( + cor0.col0 * col2 ) FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT col1 * 69 FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT ALL tab2.col2 * col1 * - 94 + col2 AS col1 FROM tab2
----
-144170
-60686
-78651

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

query I rowsort
SELECT + cor0.col1 * - 92 + - 99 - col1 FROM tab1 AS cor0
----
-1029
-1308
-2517

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8174
SELECT ALL + col2 * col0 DIV + col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8174
SELECT ALL + col2 * col0 / + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 47 + - col0 FROM tab2 AS cor0
----
-31
-32
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 + ( + cor0.col2 ) col2 FROM tab1 AS cor0
----
141
144
183

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

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

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

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

query I rowsort
SELECT ALL + 73 * - ( cor0.col0 ) * - col2 AS col2 FROM tab1 AS cor0
----
11826
266304
560640

onlyif mysql # use DIV operator for integer division
query I rowsort label-8182
SELECT + + 35 DIV col0 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7395
-8281
-9408

skipif mysql # not compatible
query I rowsort label-8182
SELECT + + 35 / col0 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7395
-8281
-9408

query I rowsort
SELECT DISTINCT col2 + 71 AS col1 FROM tab2 cor0
----
109
97
98

skipif mysql # not compatible
query I rowsort
SELECT col0 - CAST ( - col2 AS REAL ) FROM tab1
----
121
176
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-8185
SELECT - col2 * - col0 + + ( col0 ) + col1 DIV + tab0.col1 FROM tab0
----
71
7388
817

skipif mysql # not compatible
query I rowsort label-8185
SELECT - col2 * - col0 + + ( col0 ) + col1 / + tab0.col1 FROM tab0
----
71
7388
817

query I rowsort
SELECT + 88 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT ALL - tab0.col2 + col0 * ( + tab0.col1 ) + 83 AS col2 FROM tab0
----
2114
3477
8100

query I rowsort
SELECT + + 23 + ( cor0.col0 ) FROM tab0 AS cor0
----
112
47
58

query I rowsort
SELECT col1 * 68 * - col0 AS col1 FROM tab0 AS cor0
----
-140352
-230860
-550732

query I rowsort
SELECT - ( + ( cor0.col1 ) ) + - col1 * - 59 * + col1 FROM tab2 AS cor0
----
17034
205320
56668

query I rowsort
SELECT DISTINCT - cor0.col0 * - 97 AS col2 FROM tab0 AS cor0
----
2328
3395
8633

query I rowsort
SELECT ALL 31 * - 34 FROM tab2
----
-1054
-1054
-1054

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-8198
SELECT - - cor0.col1 / 1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT col1 + col1 - col2 FROM tab1 cor0
----
-2
-37
-70

query I rowsort
SELECT DISTINCT - 31 * col0 AS col2 FROM tab0
----
-1085
-2759
-744

onlyif mysql # use DIV operator for integer division
query I rowsort label-8201
SELECT ALL 38 DIV + col2 AS col1 FROM tab0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-8201
SELECT ALL 38 / + col2 AS col1 FROM tab0
----
0
1
38

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

query I rowsort
SELECT DISTINCT + col2 + 55 + - 49 FROM tab0
----
39
7
88

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

query I rowsort
SELECT ALL - col0 * + 59 FROM tab2 cor0
----
-413
-4602
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + ( + ( - col1 ) ) * + col2 col1 FROM tab2 AS cor0
----
-1475
-629
-806

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

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

query I rowsort
SELECT cor0.col0 + + ( 59 ) FROM tab2 AS cor0
----
137
138
66

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 + - 68 col2 FROM tab1 AS cor0
----
2848
3181
9148

query I rowsort
SELECT ALL col0 * 31 + + col1 AS col1 FROM tab1 cor0
----
119
1994
2493

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 + 90 AS col1 FROM tab1 AS cor0
----
-10
-586
-79

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

query I rowsort
SELECT + 82 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 99920d9f7cd9cdccef99cfa459ae6944

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT + col0 DIV col0 - ( col2 ) FROM tab0 cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT + col0 / col0 - ( col2 ) FROM tab0 cor0
----
-32
-81
0

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8217
SELECT cor0.col2 + + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-8217
SELECT cor0.col2 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT col2 * + 21 AS col0 FROM tab1 AS cor0
----
1134
1197
2016

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

query I rowsort
SELECT + col2 * 47 + + col2 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT + col1 * 47 + col2 * col2 AS col2 FROM tab2 AS cor0
----
2186
2243
3449

query I rowsort
SELECT ALL + col1 * - cor0.col0 + 82 AS col1 FROM tab1 cor0
----
-558
-958
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8223
SELECT - + col2 DIV 12 + 30 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
-5672
-60842
-90063

skipif mysql # not compatible
query I rowsort label-8223
SELECT - + col2 / 12 + 30 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
-5672
-60842
-90063

query I rowsort
SELECT - cor0.col0 + - cor0.col2 * - 10 * col2 AS col1 FROM tab1 AS cor0
----
29157
32426
92080

onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT DISTINCT col2 + + ( cor0.col2 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT col2 + + ( cor0.col2 ) / + col2 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 73 col0 FROM tab0 AS cor0
----
-1752
-2555
-6497

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

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

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

query I rowsort
SELECT + col1 + col2 * col2 * - ( - 8 ) FROM tab0 cor0
----
105
53883
8798

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

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

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

query I rowsort
SELECT DISTINCT 4 * - col2 * col2 AS col0 FROM tab2 cor0
----
-2704
-2916
-5776

query I rowsort
SELECT ALL 87 FROM tab1, tab1 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

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

query I rowsort
SELECT - + 10 * col2 FROM tab2 AS cor0
----
-260
-270
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 * - col1 col0 FROM tab0 AS cor0
----
5246
5551
5917

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

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

query I rowsort
SELECT DISTINCT + 13 * - cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-284
-73

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 93 * col0 FROM tab2 cor0
----
-651
-7254
-7347

query I rowsort
SELECT + 69 * col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520

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

query I rowsort
SELECT ALL + + 91 + - col1 * - col2 AS col1 FROM tab1 cor0
----
1339
1495
661

query I rowsort
SELECT DISTINCT - ( 35 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-35

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

query I rowsort
SELECT ALL - + col1 * + col0 + + 53 * + col1 AS col1 FROM tab2 AS cor0
----
-1475
-442
1426

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

query I rowsort
SELECT ALL col0 + col2 - - 83 AS col1 FROM tab0
----
119
140
254

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

query I rowsort
SELECT col1 + col2 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-3581
-7571
-82

query I rowsort
SELECT ALL + col0 * - cor0.col1 + + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-15561
-3492
-4902

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

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

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

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

query I rowsort
SELECT col2 + - 87 FROM tab1
----
-30
-33
9

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( + col2 ) * 91 ) col2 FROM tab2
----
2366
2457
3458

query I rowsort
SELECT ALL + 81 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

query I rowsort
SELECT - + col1 + ( 86 ) FROM tab0 AS cor0
----
-11
-5
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT col2 * + 91 + 71 DIV - cor0.col0 FROM tab2 AS cor0
----
2366
2447
3458

skipif mysql # not compatible
query I rowsort label-8268
SELECT col2 * + 91 + 71 / - cor0.col0 FROM tab2 AS cor0
----
2366
2447
3458

onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT + col1 * ( 65 ) DIV col2 FROM tab0 AS cor0
----
169
6305
72

skipif mysql # not compatible
query I rowsort label-8269
SELECT + col1 * ( 65 ) / col2 FROM tab0 AS cor0
----
169
6305
72

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

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

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

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

query I rowsort
SELECT ALL col0 + + tab0.col0 + col0 FROM tab0
----
105
267
72

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

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

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

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

query I rowsort
SELECT + col2 + - tab2.col2 * col2 * - 82 + col0 AS col1 FROM tab2
----
118525
55536
59812

query I rowsort
SELECT DISTINCT + 95 + col1 * col0 + - 38 * + col2 FROM tab1
----
-1431
-1879
-2513

query I rowsort
SELECT - tab0.col2 * ( + col2 ) FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT - col0 + - 27 FROM tab1
----
-107
-30
-91

query I rowsort
SELECT - col2 * - 18 AS col1 FROM tab0 AS cor0
----
1476
18
594

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

query I rowsort
SELECT ALL col1 - 47 * col0 FROM tab1
----
-115
-2998
-3747

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8285
SELECT + 77 * col0 DIV - col1 col0 FROM tab2 AS cor0
----
-101
-17
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8285
SELECT + 77 * col0 / - col1 col0 FROM tab2 AS cor0
----
-101
-17
-357

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

query I rowsort
SELECT + 89 * + col2 AS col0 FROM tab1 AS cor0
----
4806
5073
8544

query I rowsort
SELECT DISTINCT + 39 + col2 * - 55 FROM tab2 AS cor0
----
-1391
-1446
-2051

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

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT 74 / col0 AS col2 FROM tab0 AS cor0
----
0
2
3

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

query I rowsort
SELECT ALL - col2 + - col2 * 50 FROM tab0 cor0
----
-1683
-4182
-51

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

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

query I rowsort
SELECT + 74 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
4050
4275
7200

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 78 * - col1 - col1 FROM tab1 cor0
----
1001
2002
770

query I rowsort
SELECT - col2 + ( col0 ) * col0 * col0 FROM tab0 cor0
----
13791
42874
704887

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

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

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab0 AS cor0 WHERE NULL >= NULL
----

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

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

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

query I rowsort
SELECT + cor0.col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825

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

query I rowsort
SELECT 72 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

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

query I rowsort
SELECT - - 24 * col0 AS col0 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT DISTINCT 73 * col1 * - col0 AS col2 FROM tab2
----
-15841
-335946
-98039

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

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

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

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

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

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

query I rowsort
SELECT ALL + 47 + 77 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f95a510ef7a720583a4639131b2cccc3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab1.col0 * tab1.col0 - col2 col1 FROM tab1
----
-262201
-512096
-81

query I rowsort
SELECT DISTINCT col1 * + col0 * + 28 FROM tab2
----
128856
37604
6076

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8321
SELECT DISTINCT + col2 DIV 42 - + col0 AS col1 FROM tab2
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + col2 / 42 - + col0 AS col1 FROM tab2
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - - col2 * col2 col2 FROM tab1
----
2862
3192
9120

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

query I rowsort
SELECT ( + 57 ) + + col2 + + tab0.col0 * col0 FROM tab0
----
1283
666
8060

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

skipif mysql # not compatible
query I rowsort label-8325
SELECT ( col1 + tab0.col0 ) / - 97 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-8326
SELECT - - col2 + col2 * + col1 - + col1 DIV - col0 FROM tab2 AS cor0
----
1560
684
868

skipif mysql # not compatible
query I rowsort label-8326
SELECT - - col2 + col2 * + col1 - + col1 / - col0 FROM tab2 AS cor0
----
1560
684
868

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT + 27 / + col1 col2 FROM tab0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8328
SELECT ALL - 20 + - col2 * CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
-1554
-666
-857

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - 20 + - col2 * CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
-1554
-666
-857

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8330
SELECT col0 + + col0 DIV - 42 AS col1 FROM tab2 cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-8330
SELECT col0 + + col0 / - 42 AS col1 FROM tab2 cor0
----
7
77
78

query I rowsort
SELECT DISTINCT col1 + - col0 * 44 * col1 + col2 FROM tab1 cor0
----
-28093
-3352
-45651

query I rowsort
SELECT ALL - col0 * - ( ( col2 ) + ( col1 ) ) * + col2 FROM tab1 AS cor0
----
12960
244416
837120

query I rowsort
SELECT ALL + + col0 * col2 * col1 - - col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

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

query I rowsort
SELECT DISTINCT - - col0 + + 19 AS col0 FROM tab2 AS cor0
----
26
97
98

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

query I rowsort
SELECT DISTINCT col0 * ( + 95 ) + col0 * col2 FROM tab2 AS cor0
----
10507
854
9438

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

skipif mysql # not compatible
query I rowsort
SELECT ALL + - cor0.col2 * CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT + col1 + - 73 * cor0.col0 FROM tab2 AS cor0
----
-480
-5635
-5750

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col1 + + ( - col2 ) FROM tab1 AS cor0
----
-1344
-1458
-627

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8343
SELECT ALL + + col0 DIV col2 + + 24 FROM tab1 AS cor0
----
24
24
25

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL + + col0 / col2 + + 24 FROM tab1 AS cor0
----
24
24
25

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

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

query I rowsort
SELECT ALL - + 34 + - 42 AS col0 FROM tab2 AS cor0
----
-76
-76
-76

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

skipif mysql # not compatible
query I rowsort label-8347
SELECT CAST ( - col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT DISTINCT - 53 * cor0.col1 + - col1 * - 99 + 52 AS col1 FROM tab1 cor0
----
1248
512
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT ALL ( + cor0.col2 ) * col0 DIV + col0 + 8 AS col2 FROM tab1 AS cor0
----
104
62
65

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL ( + cor0.col2 ) * col0 / + col0 + 8 AS col2 FROM tab1 AS cor0
----
104
62
65

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

query I rowsort
SELECT ALL 48 + 21 * + col1 AS col2 FROM tab1 AS cor0
----
258
321
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 28 + + col0 * + cor0.col0 col0 FROM tab2 AS cor0
----
6112
6269
77

query I rowsort
SELECT DISTINCT - 89 * - cor0.col1 + cor0.col0 * col0 + - 69 FROM tab2 AS cor0
----
11266
2739
7685

onlyif mysql # use DIV operator for integer division
query I rowsort label-8354
SELECT ALL - col2 * col2 DIV + 59 FROM tab0
----
-113
-18
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT ALL - col2 * col2 / + 59 FROM tab0
----
-113
-18
0

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

query I rowsort
SELECT ALL col0 * 18 * + col2 FROM tab1
----
138240
2916
65664

query I rowsort
SELECT DISTINCT - col2 * 22 FROM tab2 AS cor0
----
-572
-594
-836

query I rowsort
SELECT col0 + col1 * + 85 FROM tab1 AS cor0
----
1185
2213
914

onlyif mysql # use DIV operator for integer division
query I rowsort label-8359
SELECT ALL + col1 * + col2 + + col0 * + cor0.col2 DIV - col2 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + col1 * + col2 + + col0 * + cor0.col2 / - col2 FROM tab0 AS cor0
----
2814
62
7373

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

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

skipif mysql # not compatible
query I rowsort label-8361
SELECT ( + col2 ) * - CAST ( col0 AS INTEGER ) + col1 * col0 AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84

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

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

query I rowsort
SELECT DISTINCT - cor0.col0 + - col2 * ( + cor0.col1 ) * - col2 AS col0 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT ALL 85 * col1 * col0 FROM tab1 AS cor0
----
54400
6630
88400

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

query I rowsort
SELECT ALL + - col2 + 10 AS col2 FROM tab1 cor0
----
-44
-47
-86

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

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

query I rowsort
SELECT ALL + + col2 + - col2 * + col0 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT DISTINCT col2 * col1 - 29 * - col1 AS col1 FROM tab1 AS cor0
----
1625
2158
860

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

skipif mysql # not compatible
query I rowsort label-8371
SELECT col0 + CAST ( - col2 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-42
-75
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-8372
SELECT ALL col0 + - tab1.col1 + - 26 DIV + col2 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL col0 + - tab1.col1 + - 26 / + col2 FROM tab1
----
-23
54
67

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

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

query I rowsort
SELECT - - 17 + + col2 * + col2 FROM tab0 AS cor0
----
1106
18
6741

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

skipif mysql # not compatible
query I rowsort label-8376
SELECT ( + col0 ) / + col1 FROM tab0
----
0
0
0

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

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

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

query I rowsort
SELECT DISTINCT 49 + col0 - + col1 * col2 AS col1 FROM tab2 AS cor0
----
-1407
-518
-781

query I rowsort
SELECT - col2 * - col0 + col2 + col1 * + cor0.col1 FROM tab1 cor0
----
3805
7945
892

query I rowsort
SELECT + col2 * - col1 * tab0.col1 + + 69 * + col1 FROM tab0
----
-238134
-2716
-672763

query I rowsort
SELECT ALL col1 - 56 * - col0 AS col2 FROM tab0
----
1430
2057
5075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + col0 - - col1 col1 FROM tab2
----
103
144
45

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

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

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

query I rowsort
SELECT ALL - - 51 * + 85 AS col1 FROM tab2 AS cor0
----
4335
4335
4335

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

query I rowsort
SELECT + 95 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a

query I rowsort
SELECT - cor2.col1 * - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
81 values hashing to 420a91ff4b33e7636f4e3cf34067850c

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

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

query I rowsort
SELECT ALL - col1 * col1 - - col0 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + - 64 + - col0 AS col1 FROM tab1 AS cor0
----
-128
-144
-67

query I rowsort
SELECT DISTINCT - ( 67 ) AS col1 FROM tab0
----
-67

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8396
SELECT - 43 - + cor1.col1 DIV + tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f06fb51a5861b0f3e5d1baf809094920

skipif mysql # not compatible
query I rowsort label-8396
SELECT - 43 - + cor1.col1 / + tab1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f06fb51a5861b0f3e5d1baf809094920

query I rowsort
SELECT + 68 * + col2 FROM tab0 AS cor0
----
2244
5576
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * ( 28 ) col1 FROM tab1
----
-1512
-1596
-2688

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

query I rowsort
SELECT + - col0 * + ( 9 ) AS col0 FROM tab0 AS cor0
----
-216
-315
-801

onlyif mysql # use DIV operator for integer division
query I rowsort label-8401
SELECT + col1 DIV - col2 + + 28 * + col2 FROM tab1 AS cor0
----
1512
1596
2688

skipif mysql # not compatible
query I rowsort label-8401
SELECT + col1 / - col2 + + 28 * + col2 FROM tab1 AS cor0
----
1512
1596
2688

query I rowsort
SELECT DISTINCT - col1 + 63 * col0 AS col0 FROM tab1 AS cor0
----
163
4022
5027

query I rowsort
SELECT col1 * 43 FROM tab0 cor0
----
3698
3913
4171

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

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

query I rowsort
SELECT DISTINCT - - 98 * + 89 FROM tab2 AS cor0
----
8722

query I rowsort
SELECT ALL - + ( + col0 ) + col2 * col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <> col1
----

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

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

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

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

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

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

query I rowsort
SELECT + col2 + + col2 * + col0 - tab2.col0 AS col0 FROM tab2
----
1976
209
2961

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

query I rowsort
SELECT - col1 + + col0 - - tab0.col0 FROM tab0
----
-27
-38
87

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

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

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

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

query I rowsort
SELECT col1 + tab0.col0 + col0 * col1 AS col2 FROM tab0
----
2174
3527
8279

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

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

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

query I rowsort
SELECT - col2 * - col2 + - col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-139
-917
781

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

query I rowsort
SELECT cor0.col2 + ( + 13 ) FROM tab2, tab1 AS cor0
----
9 values hashing to ca94141dffaa15b95570dbf636e25302

query I rowsort
SELECT tab0.col1 - + col2 * 43 * 28 AS col0 FROM tab0
----
-1107
-39646
-98637

query I rowsort
SELECT DISTINCT + col1 * - col0 + col1 + col1 AS col2 FROM tab1 AS cor0
----
-1014
-26
-620

query I rowsort
SELECT - col2 * - cor0.col2 + 32 + col1 FROM tab0 AS cor0
----
1207
130
6847

onlyif mysql # use DIV operator for integer division
query I rowsort label-8432
SELECT 83 DIV 93 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-8432
SELECT 83 / 93 AS col2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT ALL + col0 + - col1 * 37 FROM tab2
----
-1140
-2105
-550

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

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

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

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - - col0 - CAST ( cor0.col2 + + col1 * ( + ( + col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-1482
-605
-857

query I rowsort
SELECT - - col2 * ( - col2 ) * + cor0.col0 + - col0 * + cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
-120334
-5183
-58871

query I rowsort
SELECT ALL - + col0 + - col1 * + 41 FROM tab1 AS cor0
----
-1069
-474
-613

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8441
SELECT ALL - col2 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - col2 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8443
SELECT DISTINCT col2 + + col1 * 72 DIV col0 FROM tab2 AS cor0
----
345
53
80

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT col2 + + col1 * 72 / col0 FROM tab2 AS cor0
----
345
53
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + - 70 col0 FROM tab1 AS cor0
----
-6
-67
10

query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * - col0 * col2 FROM tab1 cor0
----
-233529
-540
-614496

query I rowsort
SELECT col0 * col0 + + col2 + + col2 FROM tab2
----
103
6136
6317

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab1 WHERE NOT col1 >= ( NULL )
----

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

query I rowsort
SELECT DISTINCT + 56 * col2 + + col0 AS col0 FROM tab2 AS cor0
----
1519
1534
2207

query I rowsort
SELECT DISTINCT + 10 * + 81 AS col2 FROM tab0, tab2 AS cor0
----
810

query I rowsort
SELECT ALL - cor0.col1 + - col2 * 56 FROM tab2 AS cor0
----
-1515
-1543
-2145

onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT DISTINCT col2 * col0 DIV tab1.col0 + - col0 - - col0 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT col2 * col0 / tab1.col0 + - col0 - - col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8459
SELECT - col0 DIV col0 - col2 * + col2 AS col1 FROM tab0
----
-1090
-2
-6725

skipif mysql # not compatible
query I rowsort label-8459
SELECT - col0 / col0 - col2 * + col2 AS col1 FROM tab0
----
-1090
-2
-6725

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE col1 - col2 * - col2 < - col2 - col0
----

query I rowsort
SELECT ALL - col0 + col2 * - cor0.col0 * + cor0.col2 + - col2 FROM tab2 AS cor0
----
-114193
-5137
-52832

query I rowsort
SELECT col1 + col2 * + col1 * col2 FROM tab2
----
22630
24565
39943

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

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

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

query I rowsort
SELECT + + col0 * + 92 FROM tab2 cor0
----
644
7176
7268

query I rowsort
SELECT + 40 + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cb47dadb7a1977f840747801aa4a6210

query I rowsort
SELECT DISTINCT - ( - 77 ) FROM tab0, tab1 AS cor0
----
77

query I rowsort
SELECT ALL - cor0.col0 * + 59 + col2 AS col1 FROM tab0 cor0
----
-1383
-2064
-5169

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

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

query I rowsort
SELECT - - 49 + - col2 FROM tab0 AS cor0
----
-33
16
48

query I rowsort
SELECT - 25 * + col1 + + col1 - - 66 FROM tab0 AS cor0
----
-1998
-2118
-2262

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT ALL - CAST( - tab0.col1 AS SIGNED ) * + tab0.col2 col1 FROM tab0
----
2838
7462
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL - CAST ( - tab0.col1 AS INTEGER ) * + tab0.col2 col1 FROM tab0
----
2838
7462
97

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

query I rowsort
SELECT + 70 + col0 * col1 AS col1 FROM tab0 AS cor0
----
2134
3465
8169

query I rowsort
SELECT ALL 81 * - col2 FROM tab0 cor0
----
-2673
-6642
-81

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

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

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

query I rowsort
SELECT col1 + + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + - col2 * col0 col2 FROM tab2 AS cor0
----
-187
-2026
-3000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 * col0 - + cor0.col1 * + col1 col2 FROM tab1 AS cor0
----
-523
3164
3911

query I rowsort
SELECT + tab1.col1 + 60 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 61b38cac83962bbead9ba9cab260b593

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

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT - col0 + col2 / - ( col1 ) FROM tab2 cor0
----
-7
-78
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT ALL + 20 DIV cor0.col2 - - col0 col2 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8485
SELECT ALL + 20 / cor0.col2 - - col0 col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + col0 * + col0 + ( col0 ) FROM tab1 cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col2 + + col2 col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL ( + col0 ) + 49 FROM tab2 AS cor0
----
127
128
56

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8490
SELECT DISTINCT 98 DIV col0 - ( cor0.col0 + + cor0.col1 ) DIV + col0 AS col1 FROM tab2 AS cor0
----
0
9

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT 98 / col0 - ( cor0.col0 + + cor0.col1 ) / + col0 AS col1 FROM tab2 AS cor0
----
0
9

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

query I rowsort
SELECT + + col2 + 47 AS col1 FROM tab1 AS cor0
----
101
104
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-8493
SELECT - col2 * + col0 + + 87 DIV col0 col2 FROM tab2
----
-177
-2027
-3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8493
SELECT - col2 * + col0 + + 87 / col0 col2 FROM tab2
----
-177
-2027
-3001

query I rowsort
SELECT col2 + 41 * col1 AS col1 FROM tab0 AS cor0
----
3559
3813
3978

query I rowsort
SELECT + col2 * 63 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT - col1 * - 52 + + ( - col0 + - col2 ) FROM tab0 AS cor0
----
4415
4561
5008

query I rowsort
SELECT + - col0 + - 67 AS col0 FROM tab0 cor0
----
-102
-156
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 * + col0 col1 FROM tab0
----
-1958
-528
-770

query I rowsort
SELECT - cor0.col2 * - 96 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT + col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT ALL + ( col1 ) + col1 * - cor0.col2 + col0 DIV col0 FROM tab2 AS cor0
----
-1474
-628
-805

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL + ( col1 ) + col1 * - cor0.col2 + col0 / col0 FROM tab2 AS cor0
----
-1474
-628
-805

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

query I rowsort
SELECT ALL + - col2 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-130
-155
-61

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

query I rowsort
SELECT - 67 + col2 FROM tab0 AS cor0
----
-34
-66
15

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

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

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

query I rowsort
SELECT + 82 * - col1 AS col2 FROM tab1
----
-1066
-2132
-820

query I rowsort
SELECT - 51 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4

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

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

query I rowsort
SELECT + - ( + col1 ) * - ( - 52 ) FROM tab0 AS cor0
----
-4472
-4732
-5044

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8514
SELECT + col2 / + col0 + col0 col1 FROM tab0 AS cor0
----
25
35
89

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

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

query I rowsort
SELECT DISTINCT + col0 * col2 + cor0.col0 - 38 * cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-110643
-119750
-342448

query I rowsort
SELECT ALL - 96 * + 0 * col1 - - cor0.col0 * + 91 * col2 AS col0 FROM tab2 AS cor0
----
17199
184548
273182

query I rowsort
SELECT + ( + col1 ) * + col1 * - cor0.col1 + - 77 FROM tab0 cor0
----
-636133
-753648
-912750

query I rowsort
SELECT DISTINCT + 93 + cor0.col1 * - cor0.col2 FROM tab2 cor0
----
-1441
-553
-744

query I rowsort
SELECT + 85 + 15 FROM tab0 AS cor0
----
100
100
100

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

query I rowsort
SELECT DISTINCT + ( + col2 ) + col2 * - 51 AS col2 FROM tab2 AS cor0
----
-1300
-1350
-1900

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

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

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

query I rowsort
SELECT 66 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8528
SELECT ALL col2 * col1 + - CAST( col2 AS SIGNED ) * + cor0.col2 FROM tab0 AS cor0
----
1749
738
96

skipif mysql # not compatible
query I rowsort label-8528
SELECT ALL col2 * col1 + - CAST ( col2 AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
1749
738
96

query I rowsort
SELECT 2 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT DISTINCT + 90 * - cor0.col2 FROM tab0, tab0 AS cor0
----
-2970
-7380
-90

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

query I rowsort
SELECT - col2 * 36 - col0 AS col2 FROM tab2 AS cor0
----
-1014
-1447
-979

query I rowsort
SELECT col0 + col1 * ( + tab1.col0 ) + col2 * - 9 FROM tab1
----
-405
191
256

query I rowsort
SELECT ALL - + col1 * 35 FROM tab0 AS cor0
----
-3010
-3185
-3395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 37 + - 79 col2 FROM tab1 AS cor0
----
12
15
54

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

query I rowsort
SELECT ALL - ( cor0.col2 ) + col2 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - 14 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1458
-690
-743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + col1 + - col0 col2 FROM tab1 AS cor0
----
-15
-28
62

query I rowsort
SELECT ALL + ( 23 ) FROM tab1 cor0
----
23
23
23

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

query I rowsort
SELECT DISTINCT col2 * ( col2 ) + col2 FROM tab2
----
1482
702
756

query I rowsort
SELECT + col2 * + 87 * - col0 FROM tab1
----
-14094
-317376
-668160

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 - + ( col2 * - col2 ) col2 FROM tab0
----
14823
3153
3396

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 42 AS REAL ) col1 FROM tab0 cor0
----
42
42
42

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

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

skipif mysql # not compatible
query I rowsort label-8548
SELECT - 80 + cor0.col1 / + col0 FROM tab1 AS cor0
----
-72
-80
-80

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

query I rowsort
SELECT + ( col0 ) * - col1 - - col2 * + cor0.col2 * col2 FROM tab0 AS cor0
----
-3394
33873
543269

query I rowsort
SELECT - 18 * + 47 * cor0.col2 FROM tab1 AS cor0
----
-45684
-48222
-81216

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

skipif mysql # not compatible
query I rowsort label-8552
SELECT col0 * - CAST ( - col1 * col0 AS INTEGER ) + + ( col2 ) FROM tab2
----
106135
1546
358982

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

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

query I rowsort
SELECT ALL 66 + - col1 * col1 AS col0 FROM tab2
----
-223
-3415
-895

query I rowsort
SELECT + 25 + + col1 * col1 AS col0 FROM tab1
----
125
194
701

query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 * col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT + col2 * + col0 + - cor0.col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584

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

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

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

query I rowsort
SELECT ALL + col0 + + cor0.col2 * 63 AS col2 FROM tab0 AS cor0
----
2103
5255
98

query I rowsort
SELECT ALL - + col2 * - col1 + 83 AS col1 FROM tab2 AS cor0
----
1617
729
920

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

query I rowsort
SELECT DISTINCT + col1 * - col0 + + col0 * col2 * - 7 AS col0 FROM tab0 AS cor0
----
-3640
-59185
-7608

query I rowsort
SELECT ALL + col2 * ( col2 ) AS col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT ALL + col0 + 29 AS col0 FROM tab0 AS cor0
----
118
53
64

query I rowsort
SELECT ALL + + col0 * 28 AS col0 FROM tab1 AS cor0
----
1792
2240
84

query I rowsort
SELECT DISTINCT col1 * - 18 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT ALL - col2 + 39 AS col2 FROM tab2 AS cor0
----
1
12
13

query I rowsort
SELECT ALL - - col1 + + 77 * + col2 FROM tab2 AS cor0
----
2061
2110
2943

query I rowsort
SELECT + col0 * col1 * col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT ( + col0 ) + 23 AS col1 FROM tab1 AS cor0
----
103
26
87

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

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

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

query I rowsort
SELECT - 26 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

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

query I rowsort
SELECT - 89 * - col0 AS col0 FROM tab0 AS cor0
----
2136
3115
7921

query I rowsort
SELECT - col2 * - col1 * + ( - 87 ) AS col1 FROM tab0 AS cor0
----
-246906
-649194
-8439

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

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

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

query I rowsort
SELECT + 7 * cor1.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fcd58c8f5819cd5317a12d4f81ca501

query I rowsort
SELECT col2 + col1 * 10 AS col2 FROM tab0
----
893
971
992

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

query I rowsort
SELECT + col2 + - ( - col2 ) AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT col2 * + 53 + col1 * col1 FROM tab2 AS cor0
----
2303
2392
4859

query I rowsort
SELECT DISTINCT + col1 + 7 * col1 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT + - col0 * + 14 + col1 * col2 FROM tab1 AS cor0
----
-326
128
1362

query I rowsort
SELECT ALL + col0 + ( 49 ) * - col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-329296
-53251
83

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

query I rowsort
SELECT - col2 * col2 + - 95 * + cor0.col0 FROM tab1 AS cor0
----
-16816
-3201
-9329

query I rowsort
SELECT ALL + + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 + + col1 * col1 * col2 AS col0 FROM tab0 cor0
----
0
236672
670761

query I rowsort
SELECT ALL - + col2 + + 23 FROM tab1 AS cor0
----
-31
-34
-73

query I rowsort
SELECT DISTINCT - ( - 73 ) FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT ( col0 ) * + col1 + 79 AS col2 FROM tab2 AS cor0
----
1422
296
4681

query I rowsort
SELECT - ( + col1 ) + col1 * 84 AS col2 FROM tab0 AS cor0
----
7138
7553
8051

query I rowsort
SELECT ALL + ( 37 ) * col1 AS col0 FROM tab0 AS cor0
----
3182
3367
3589

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

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

query I rowsort
SELECT DISTINCT col2 * + 70 + tab2.col2 AS col2 FROM tab2
----
1846
1917
2698

onlyif mysql # use DIV operator for integer division
query I rowsort label-8601
SELECT col2 + - 32 + + col2 DIV + col0 FROM tab2
----
-2
-6
6

skipif mysql # not compatible
query I rowsort label-8601
SELECT col2 + - 32 + + col2 / + col0 FROM tab2
----
-2
-6
6

query I rowsort
SELECT ALL cor0.col2 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

query I rowsort
SELECT - col0 + - 50 - col1 * + col2 FROM tab1 cor0
----
-1378
-1457
-684

query I rowsort
SELECT - col1 + + 11 FROM tab2 AS cor0
----
-20
-48
-6

query I rowsort
SELECT + 97 * col2 - - col0 AS col1 FROM tab0 cor0
----
132
3225
8043

query I rowsort
SELECT 40 * col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-120001
-7553
-81042

query I rowsort
SELECT ALL + 84 + - cor0.col0 AS col0 FROM tab1 cor0
----
20
4
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8610
SELECT DISTINCT cor0.col1 + col0 DIV - cor0.col1 col0 FROM tab2 AS cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT cor0.col1 + col0 / - cor0.col1 col0 FROM tab2 AS cor0
----
13
31
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8611
SELECT - col1 DIV - col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8611
SELECT - col1 / - col2 + cor0.col0 FROM tab0 AS cor0
----
132
26
90

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

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

query I rowsort
SELECT - cor0.col0 + - cor1.col2 AS col1 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 3c20997e8f50a49d3d5ef57547207ac7

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

query I rowsort
SELECT - cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col2 * 31 FROM tab0
----
-1023
-2542
-31

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8621
SELECT 82 + 14 DIV col0 AS col2 FROM tab1 AS cor0
----
82
82
86

skipif mysql # not compatible
query I rowsort label-8621
SELECT 82 + 14 / col0 AS col2 FROM tab1 AS cor0
----
82
82
86

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

skipif mysql # not compatible
query I rowsort label-8622
SELECT - col0 / - 58 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT col2 * + col0 * + col0 AS col0 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 65 - 23 col2 FROM tab1 AS cor0
----
-3533
-3728
-6263

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

query I rowsort
SELECT ALL col0 * + col0 * 70 AS col2 FROM tab1
----
286720
448000
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT col1 DIV - 48 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8627
SELECT col1 / - 48 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - 14 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT ALL + col2 * 25 + - col0 AS col0 FROM tab0
----
-10
1961
801

query I rowsort
SELECT ALL - col2 + cor0.col1 * col1 + col0 * col0 AS col1 FROM tab0 AS cor0
----
10633
16120
7939

query I rowsort
SELECT - + col2 * 62 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ALL - col2 + - 64 + col2 * - ( col2 ) * col0 FROM tab1 AS cor0
----
-208057
-737440
-8866

query I rowsort
SELECT DISTINCT - + 28 + cor0.col1 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT ALL + + 83 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-106
-1945
-2919

onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT col0 * - col0 - + col2 DIV cor0.col0 FROM tab1 AS cor0
----
-27
-4096
-6401

skipif mysql # not compatible
query I rowsort label-8637
SELECT col0 * - col0 - + col2 / cor0.col0 FROM tab1 AS cor0
----
-27
-4096
-6401

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

skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT col1 * + col2 + col2 / - cor0.col2 AS col1 FROM tab0 cor0
----
2837
7461
96

query I rowsort
SELECT DISTINCT cor0.col2 + + col1 * ( + 62 ) AS col0 FROM tab2 AS cor0
----
1092
1949
3684

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8640
SELECT - 91 * + col2 - - CAST( col0 AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
-1091
-2336
-4905

skipif mysql # not compatible
query I rowsort label-8640
SELECT - 91 * + col2 - - CAST ( col0 AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
-1091
-2336
-4905

query I rowsort
SELECT DISTINCT + col0 * + col0 + + col1 AS col2 FROM tab2 cor0
----
6143
6258
80

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8643
SELECT 0 * + col0 DIV 25 + + 93 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-8643
SELECT 0 * + col0 / 25 + + 93 FROM tab2 AS cor0
----
93
93
93

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

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * ( + col0 + col1 ) AS col0 FROM tab2 AS cor0
----
10712
293
7622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab2
----
17
31
59

query I rowsort
SELECT + ( - cor0.col0 ) + 5 AS col2 FROM tab1 AS cor0
----
-59
-75
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT ALL col0 DIV col0 + - 41 FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL col0 / col0 + - 41 FROM tab1 AS cor0
----
-40
-40
-40

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

query I rowsort
SELECT DISTINCT + 54 - col1 FROM tab1 AS cor0
----
28
41
44

query I rowsort
SELECT 72 * - col1 FROM tab1 AS cor0
----
-1872
-720
-936

query I rowsort
SELECT DISTINCT - + col2 * col2 + - 30 FROM tab2 AS cor0
----
-1474
-706
-759

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col2 col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - - 34 - col2 * 49 AS col2 FROM tab1 AS cor0
----
-2612
-2759
-4670

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

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

query I rowsort
SELECT DISTINCT + + col2 * 65 + - col1 AS col2 FROM tab1 AS cor0
----
3484
3695
6227

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + + ( + 27 ) col2 FROM tab1
----
123
81
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT col2 * col1 + col1 + + col0 DIV + col0 FROM tab0
----
195
2925
7554

skipif mysql # not compatible
query I rowsort label-8660
SELECT col2 * col1 + col1 + + col0 / + col0 FROM tab0
----
195
2925
7554

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

query I rowsort
SELECT DISTINCT 88 + + col2 AS col1 FROM tab0
----
121
170
89

query I rowsort
SELECT ALL + ( - col2 ) + 87 * col1 AS col0 FROM tab0
----
7449
7835
8438

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

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

query I rowsort
SELECT col1 * col2 + ( - col0 * col2 ) FROM tab0
----
164
2046
62

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

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

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

query I rowsort
SELECT ALL + 28 * col0 FROM tab1 AS cor0
----
1792
2240
84

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

query I rowsort
SELECT - 59 * + col0 AS col2 FROM tab0 AS cor0
----
-1416
-2065
-5251

query I rowsort
SELECT ALL cor0.col0 * col1 + cor0.col2 * col0 - - col0 AS col1 FROM tab1 AS cor0
----
243
4352
8800

query I rowsort
SELECT - 17 AS col1 FROM tab0 cor0
----
-17
-17
-17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( ( col1 ) ) + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - col0 + + 78 * ( - col1 ) * ( + col2 ) + col0 FROM tab0
----
-221364
-582036
-7566

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT ALL + col1 + - col1 DIV col0 FROM tab2
----
17
27
59

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL + col1 + - col1 / col0 FROM tab2
----
17
27
59

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

query I rowsort
SELECT DISTINCT - ( + 11 ) AS col2 FROM tab0, tab1 cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab0.col0 * + col2 col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT 5 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT + col1 + col2 DIV + col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-8684
SELECT + col1 + col2 / + col1 FROM tab1
----
15
20
28

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

query I rowsort
SELECT ALL + ( 33 ) + cor0.col2 * + col2 FROM tab0 AS cor0
----
1122
34
6757

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) + col1 * 21 * col0 col1 FROM tab2 cor0
----
28124
4550
96564

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

query I rowsort
SELECT col1 * + 93 + - col2 FROM tab0 cor0
----
7965
8381
9020

query I rowsort
SELECT DISTINCT 86 * col0 AS col2 FROM tab2 AS cor0
----
602
6708
6794

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

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

query I rowsort
SELECT 47 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1178
-529
-7874

query I rowsort
SELECT ( - 93 + col1 ) * 75 FROM tab2
----
-2550
-4650
-5700

query I rowsort
SELECT + 20 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - col2 * - 98 + - 37 AS col0 FROM tab1 AS cor0
----
5255
5549
9371

query I rowsort
SELECT ALL + col2 * - col1 + - col2 * 41 * - col0 + col0 FROM tab2
----
122515
6919
81692

query I rowsort
SELECT - cor0.col1 * 65 AS col2 FROM tab2 AS cor0
----
-1105
-2015
-3835

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

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

query I rowsort
SELECT cor0.col2 - ( 99 ) FROM tab1 AS cor0
----
-3
-42
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * + col1 + + col1 col0 FROM tab0
----
7224
7644
8148

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

query I rowsort
SELECT + 54 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

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

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

query I rowsort
SELECT + + col2 * + col1 + col0 * col0 - 25 AS col0 FROM tab2 AS cor0
----
6862
7593
861

query I rowsort
SELECT DISTINCT - col0 * + 7 * + 10 FROM tab1 AS cor0
----
-210
-4480
-5600

query I rowsort
SELECT - + col2 * 71 + 49 + + col1 AS col0 FROM tab1 AS cor0
----
-3759
-3988
-6754

query I rowsort
SELECT DISTINCT + col0 * + 17 * + col1 AS col2 FROM tab0
----
137683
35088
57715

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-8712
SELECT + + col2 * + 33 * col1 - - cor0.col2 DIV col1 FROM tab2 AS cor0
----
21320
27621
50622

skipif mysql # not compatible
query I rowsort label-8712
SELECT + + col2 * + 33 * col1 - - cor0.col2 / col1 FROM tab2 AS cor0
----
21320
27621
50622

query I rowsort
SELECT - 45 + 42 AS col1 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to 0982dc7d0db8187bbb77550a76766104

query I rowsort
SELECT DISTINCT 14 + col0 + - cor0.col1 * + col1 AS col2 FROM tab1 AS cor0
----
-22
-659
-75

query I rowsort
SELECT - + 76 + + col0 FROM tab0 AS cor0
----
-41
-52
13

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8716
SELECT - CAST( NULL AS SIGNED ) * 97 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT - CAST ( NULL AS INTEGER ) * 97 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 78 * + col1 AS col0 FROM tab1 AS cor0
----
-1014
-2028
-780

query I rowsort
SELECT DISTINCT - col2 + + 70 FROM tab1 AS cor0
----
-26
13
16

query I rowsort
SELECT + 57 - + col2 AS col0 FROM tab0 AS cor0
----
-25
24
56

query I rowsort
SELECT DISTINCT 85 FROM tab0, tab0 cor0
----
85

query I rowsort
SELECT + 77 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL col0 * ( - col0 ) * + col2 FROM tab2
----
-1323
-158184
-237158

query I rowsort
SELECT - tab2.col0 * - 9 - col1 FROM tab2
----
32
643
694

onlyif mysql # use DIV operator for integer division
query I rowsort label-8724
SELECT ALL - ( col0 ) * - col1 + - 80 + col1 DIV col0 AS col0 FROM tab2
----
1263
141
4522

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL - ( col0 ) * - col1 + - 80 + col1 / col0 AS col0 FROM tab2
----
1263
141
4522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 54 + + col0 col1 FROM tab1 cor0
----
118
134
57

query I rowsort
SELECT + 0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8727
SELECT + 0 DIV - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8727
SELECT + 0 / - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT DISTINCT col2 DIV 69 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
97

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT col2 / 69 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
97

query I rowsort
SELECT - 52 + col1 - col0 FROM tab2 AS cor0
----
-114
-28
-71

onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT + - col0 DIV + 56 AS col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT + - col0 / + 56 AS col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - 19 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-1108
-20
-6743

query I rowsort
SELECT + col2 * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT - col0 DIV - 31 col1 FROM tab0 AS cor0
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8733
SELECT - col0 / - 31 col1 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT ALL + + col2 * col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229

query I rowsort
SELECT cor0.col2 * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8736
SELECT DISTINCT - col2 * cor0.col0 DIV col0 + col0 + + col0 FROM tab2 AS cor0
----
-13
120
130

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT - col2 * cor0.col0 / col0 + col0 + + col0 FROM tab2 AS cor0
----
-13
120
130

onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT ALL - - col1 DIV col2 - col0 DIV + col2 FROM tab0 AS cor0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-8737
SELECT ALL - - col1 / col2 - col0 / + col2 FROM tab0 AS cor0
----
0
2
62

query I rowsort
SELECT - + col0 + cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
105
112
50

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT col2 * + tab2.col0 + - col0 * col1 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT ALL + - col1 + col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT DISTINCT - col0 * + cor0.col0 - - col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-50
-6085
-6242

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - col0 * + cor0.col0 - - col1 / - cor0.col1 FROM tab2 AS cor0
----
-50
-6085
-6242

query I rowsort
SELECT cor0.col0 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT DISTINCT + col0 * col0 - + tab1.col1 AS col2 FROM tab1
----
-17
4086
6387

onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT - tab2.col1 DIV - tab2.col0 FROM tab2
----
0
0
4

skipif mysql # not compatible
query I rowsort label-8747
SELECT - tab2.col1 / - tab2.col0 FROM tab2
----
0
0
4

query I rowsort
SELECT ALL - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

query I rowsort
SELECT ALL - 93 * + col1 FROM tab1
----
-1209
-2418
-930

query I rowsort
SELECT ALL - col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT ALL - + col0 * col2 + col0 - col1 * - col1 FROM tab1 AS cor0
----
-3484
-7431
517

query I rowsort
SELECT ALL + col2 * + cor0.col2 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT - col2 + + col0 * col1 AS col2 FROM tab2
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + cor0.col1 col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 / col0 )
----

query I rowsort
SELECT tab2.col1 + + col0 * + col1 + + col0 FROM tab2
----
1439
255
4739

query I rowsort
SELECT ALL + tab0.col0 - col1 AS col2 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT - col2 * - tab0.col0 AS col0 FROM tab0 WHERE NULL <> - col2 + - col1 * col1
----

query I rowsort
SELECT + col0 + col2 * col0 + col0 FROM tab0
----
105
7476
840

query I rowsort
SELECT - col0 * col1 + col0 * col2 AS col0 FROM tab2
----
-2574
-28
1659

query I rowsort
SELECT col0 + col1 * tab1.col2 AS col0 FROM tab1
----
1328
1407
634

query I rowsort
SELECT DISTINCT + - cor0.col2 + col2 * - ( - 4 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
11610
12939
36768

query I rowsort
SELECT - 50 * + col1 AS col1 FROM tab2 AS cor0
----
-1550
-2950
-850

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab2.col0 * - col0 col1 FROM tab2
----
343
474552
493039

query I rowsort
SELECT col0 + col0 * + col2 * + col2 AS col1 FROM tab2
----
114155
5110
52806

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) < ( NULL )
----

query I rowsort
SELECT + tab2.col1 * + col2 + + col0 * + col1 AS col2 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT ALL col1 + col2 * + col2 FROM tab0
----
1175
6815
98

query I rowsort
SELECT col1 * col1 FROM tab2 WHERE NULL < col0 + - col2 * col1
----

query I rowsort
SELECT col0 * - col2 - - col1 * + col2 FROM tab1
----
-3078
-6432
1242

query I rowsort
SELECT DISTINCT - col1 + col1 * col2 FROM tab1
----
1235
1378
560

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - col1 IN ( col1 * - col1 + + col1 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + tab2.col0 col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 * col0 + col1 + col1 * tab1.col2 FROM tab1
----
1592
4228
8941

query I rowsort
SELECT ALL + 59 + col1 AS col2 FROM tab2 AS cor0
----
118
76
90

query I rowsort
SELECT DISTINCT + + col1 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT - 71 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a

query I rowsort
SELECT - col1 * col2 - - col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT - col0 + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
133
3574
7587

query I rowsort
SELECT DISTINCT - ( tab2.col1 * - 58 ) FROM tab2
----
1798
3422
986

query I rowsort
SELECT + col0 + 24 AS col2 FROM tab2 AS cor0
----
102
103
31

query I rowsort
SELECT + col0 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT ( tab2.col1 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59

query I rowsort
SELECT ALL - col1 + + 91 FROM tab2 AS cor0
----
32
60
74

query I rowsort
SELECT + ( - 43 ) * - col1 AS col2 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 AS col2 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT + col2 * ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT ALL ( - col2 ) + - col2 * col0 DIV 16 AS col1 FROM tab2 AS cor0
----
-152
-225
-38

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL ( - col2 ) + - col2 * col0 / 16 AS col1 FROM tab2 AS cor0
----
-152
-225
-38

query I rowsort
SELECT DISTINCT col0 + 97 * + cor0.col2 * 1 FROM tab2 AS cor0
----
2600
2626
3765

query I rowsort
SELECT ALL - 69 * col2 + col1 - + 73 FROM tab1 AS cor0
----
-3773
-3996
-6684

query I rowsort
SELECT ALL 36 + col1 AS col0 FROM tab0 AS cor0
----
122
127
133

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8794
SELECT ALL + tab1.col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-8794
SELECT ALL + tab1.col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
4096
6400
9

query I rowsort
SELECT + ( + col0 ) + col1 * - ( - 22 ) AS col1 FROM tab2 AS cor0
----
1376
453
689

query I rowsort
SELECT + + col1 * - ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 55 * cor0.col1 FROM tab2 AS cor0
----
1705
3245
935

query I rowsort
SELECT - 49 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2646
-2793
-4704

onlyif mysql # use DIV operator for integer division
query I rowsort label-8799
SELECT DISTINCT 94 DIV col1 FROM tab1 AS cor0
----
3
7
9

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT 94 / col1 FROM tab1 AS cor0
----
3
7
9

query I rowsort
SELECT + + col2 + + col0 * col1 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT 18 AS col1 FROM tab1 cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 63 * - col2 col1 FROM tab1
----
-3402
-3591
-6048

query I rowsort
SELECT col0 - + col0 * + col1 FROM tab0
----
-2040
-3360
-8010

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8804
SELECT + tab0.col1 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8804
SELECT + tab0.col1 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col2 * ( - col0 ) AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT tab2.col2 * 7 AS col1 FROM tab2
----
182
189
266

query I rowsort
SELECT + col0 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT - col2 * - 5 + - cor0.col2 * - col0 AS col1 FROM tab2 AS cor0
----
2158
3192
324

query I rowsort
SELECT - - 52 + + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
214
3700
7732

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8810
SELECT CAST( - 28 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 70e92c218433163922867899a16e1269

skipif mysql # not compatible
query I rowsort label-8810
SELECT CAST ( - 28 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 70e92c218433163922867899a16e1269

query I rowsort
SELECT + 92 * + tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 844e514306f2f916b4219f43521d18e1

query I rowsort
SELECT 87 + + 17 FROM tab1 AS cor0
----
104
104
104

query I rowsort
SELECT - + ( + col1 ) * + col2 + 17 + - col1 AS col2 FROM tab2 AS cor0
----
-1576
-646
-851

query I rowsort
SELECT + 50 * + 46 FROM tab0 AS cor0
----
2300
2300
2300

query I rowsort
SELECT ALL + col2 * - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

onlyif mysql # use DIV operator for integer division
query I rowsort label-8816
SELECT ALL col2 DIV - col1 - col1 FROM tab1 AS cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL col2 / - col1 - col1 FROM tab1 AS cor0
----
-15
-20
-28

query I rowsort
SELECT col0 * + ( cor0.col2 ) FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + + col1 + ( 94 ) * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1581
-2883
-5487

query I rowsort
SELECT - - col0 + ( - 93 ) * - col1 FROM tab2 AS cor0
----
1660
2890
5565

query I rowsort
SELECT ALL col0 * + ( + cor0.col2 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT DISTINCT + col0 + - col2 DIV + col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT + col0 + - col2 / + col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT col0 + + 35 * - 59 AS col2 FROM tab2 cor0
----
-1986
-1987
-2058

query I rowsort
SELECT - col0 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - cor0.col0 * + col2 * + col0 - + col1 AS col2 FROM tab1 AS cor0
----
-233482
-512
-614413

query I rowsort
SELECT DISTINCT col2 * ( 67 + - col2 * + cor0.col0 ) FROM tab2 cor0
----
-111530
-3294
-50986

query I rowsort
SELECT ALL - - col1 * 37 * + ( col2 ) + col1 + + cor0.col2 * + col2 FROM tab2 AS cor0
----
25363
31729
57493

query I rowsort
SELECT + - ( ( cor0.col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT cor0.col1 + ( - col2 ) AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT 89 + col1 + col0 * col1 FROM tab2 AS cor0
----
1449
337
4750

onlyif mysql # use DIV operator for integer division
query I rowsort label-8830
SELECT col0 + + col1 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-8830
SELECT col0 + + col1 / cor0.col2 AS col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT col2 + + ( col2 ) FROM tab2
----
52
54
76

query I rowsort
SELECT tab0.col2 + + 53 * + tab0.col1 AS col0 FROM tab0
----
4591
4905
5142

query I rowsort
SELECT + col1 - 94 * col1 AS col1 FROM tab2
----
-1581
-2883
-5487

query I rowsort
SELECT ALL + + col2 * col1 + + col1 + col2 AS col1 FROM tab2 cor0
----
1619
701
895

query I rowsort
SELECT - 90 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT - + col0 * - col2 + col0 * col2 FROM tab1 AS cor0
----
15360
324
7296

query I rowsort
SELECT DISTINCT + + 76 FROM tab2 AS cor0
----
76

query I rowsort
SELECT ALL + 13 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT + 65 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8840
SELECT DISTINCT - col1 DIV 42 col2 FROM tab0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - col1 / 42 col2 FROM tab0
----
-2

query I rowsort
SELECT - + 72 + cor0.col1 * + 49 AS col1 FROM tab2 AS cor0
----
1447
2819
761

query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT ALL 79 * + col0 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL 79 * + col0 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 24 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
24

query I rowsort
SELECT ALL col0 * col0 + tab2.col0 AS col1 FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8846
SELECT + col0 * tab2.col1 + col2 * - 75 * col0 + - CAST( - 34 + col2 AS SIGNED ) DIV + ( col1 * - col0 ) AS col2 FROM tab2
----
-13958
-147498
-223807

skipif mysql # not compatible
query I rowsort label-8846
SELECT + col0 * tab2.col1 + col2 * - 75 * col0 + - CAST ( - 34 + col2 AS INTEGER ) / + ( col1 * - col0 ) AS col2 FROM tab2
----
-13958
-147498
-223807

query I rowsort
SELECT tab0.col0 + 13 AS col2 FROM tab0
----
102
37
48

query I rowsort
SELECT + 41 AS col0 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8849
SELECT col2 * + ( tab1.col2 ) + + col1 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT col2 * + ( tab1.col2 ) + + col1 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT tab0.col2 * - 80 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e2f9dfe1892e3027a8eef6722afb27ca

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) AS col0 FROM tab0, tab1 AS cor0
----
24
35
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 23 col2 FROM tab1 AS cor0
----
-1472
-1840
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8853
SELECT - cor0.col1 * CAST( NULL AS DECIMAL ) 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-8853
SELECT - cor0.col1 * CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + col1 * + 89 * col1 AS col1 FROM tab1 AS cor0
----
15054
60190
8910

query I rowsort
SELECT DISTINCT + col2 * ( - 22 ) FROM tab1 AS cor0
----
-1188
-1254
-2112

query I rowsort
SELECT DISTINCT - tab2.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
-26
-27
-38

query I rowsort
SELECT 64 * 44 AS col0 FROM tab0
----
2816
2816
2816

query I rowsort
SELECT ALL 4 * - col0 * - col2 + - tab2.col1 FROM tab2
----
11991
725
8053

query I rowsort
SELECT - 67 * tab0.col2 + + col2 * - col0 * col2 + - tab0.col1 FROM tab0
----
-199
-28433
-604021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

query I rowsort
SELECT + 97 + ( - col0 + + tab1.col2 ) AS col1 FROM tab1
----
113
148
90

query I rowsort
SELECT ALL - ( - cor0.col0 ) + col0 * + col2 AS col0 FROM tab1 cor0
----
165
3712
7760

query I rowsort
SELECT DISTINCT + 94 - col1 FROM tab2 AS cor0
----
35
63
77

query I rowsort
SELECT ALL - 96 * col2 + col2 FROM tab0 AS cor0
----
-3135
-7790
-95

query I rowsort
SELECT DISTINCT - tab1.col0 * tab1.col0 * col0 + col1 * col2 FROM tab1
----
-261574
-510752
1377

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) + 51 col1 FROM tab1 AS cor0
----
-13
-29
48

query I rowsort
SELECT - 87 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT ALL - ( - col2 ) * col1 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col1 + col2 * - ( col0 * cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * + col1 + - 96 col1 FROM tab0 AS cor0
----
3430
3635
3881

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 + cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT col0 * - col0 - + 57 FROM tab2 AS cor0
----
-106
-6141
-6298

onlyif mysql # use DIV operator for integer division
query I rowsort label-8874
SELECT ALL + cor0.col0 DIV col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL + cor0.col0 / col0 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-2
-63
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8875
SELECT + col2 + col1 DIV col2 + + col2 * col2 * ( + col0 ) FROM tab0 AS cor0
----
133
26171
598519

skipif mysql # not compatible
query I rowsort label-8875
SELECT + col2 + col1 / col2 + + col2 * col2 * ( + col0 ) FROM tab0 AS cor0
----
133
26171
598519

query I rowsort
SELECT ALL + - ( col1 ) * - ( col0 ) AS col1 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col0 * col1 + - 73 * + 72 AS col2 FROM tab0 AS cor0
----
-1861
-3192
2843

query I rowsort
SELECT + 4 * cor0.col2 + + col0 * col0 * - col0 FROM tab1 AS cor0
----
-261916
-511616
189

query I rowsort
SELECT 90 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT tab0.col2 * - ( + ( + tab0.col2 ) ) AS col2 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + col2 * tab0.col1 - - col2 * col2 AS col2 FROM tab0
----
14186
3927
98

query I rowsort
SELECT + 8 * - tab1.col1 FROM tab1
----
-104
-208
-80

query I rowsort
SELECT - col2 * tab2.col0 - - tab2.col0 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT 53 FROM tab2, tab0 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - ( cor0.col2 ) AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT ( 46 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8887
SELECT - + ( col1 ) DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8887
SELECT - + ( col1 ) / - col0 AS col0 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - + col0 * + ( col0 ) + - col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413

query I rowsort
SELECT DISTINCT - col1 + ( - col0 ) FROM tab2 AS cor0
----
-137
-38
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8890
SELECT + + col0 DIV ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8890
SELECT + + col0 / ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col2 + + ( ( cor0.col1 ) ) AS col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - col2 + ( + col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + - cor0.col0 * col2 * 50 AS col1 FROM tab0 cor0
----
-1750
-364900
-39600

query I rowsort
SELECT + col1 * col1 + - 67 + col0 AS col0 FROM tab2 cor0
----
301
3492
901

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT tab0.col0 * col1 * col1 + + col2 AS col0 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT DISTINCT 22 * + 86 FROM tab0, tab1 AS cor0
----
1892

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8898
SELECT col1 * CAST( NULL AS DECIMAL ) + 81 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT col1 * CAST ( NULL AS REAL ) + 81 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) FROM tab2 AS cor0
----
-41
-52
20

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8900
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ( + 81 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT col2 * - 29 AS col0 FROM tab0 AS cor0
----
-2378
-29
-957

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab0 cor0
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8904
SELECT + 76 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
2
76

skipif mysql # not compatible
query I rowsort label-8904
SELECT + 76 / + col2 AS col1 FROM tab0 AS cor0
----
0
2
76

query I rowsort
SELECT ALL + - col0 * - col0 + - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT + ( + 54 ) AS col2 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + - 47 * + col2 FROM tab0 AS cor0
----
-1551
-3854
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT + - 99 DIV + col0 AS col2 FROM tab1 cor0
----
-1
-1
-33

skipif mysql # not compatible
query I rowsort label-8908
SELECT + - 99 / + col0 AS col2 FROM tab1 cor0
----
-1
-1
-33

query I rowsort
SELECT ALL + - ( 22 ) + col0 AS col2 FROM tab0 AS cor0
----
13
2
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT DISTINCT - col2 DIV col2 + + col2 * col2 FROM tab1 AS cor0
----
2915
3248
9215

skipif mysql # not compatible
query I rowsort label-8910
SELECT DISTINCT - col2 / col2 + + col2 * col2 FROM tab1 AS cor0
----
2915
3248
9215

query I rowsort
SELECT 35 + col0 AS col2 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT - 2 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1038
638
76

query I rowsort
SELECT ALL - - cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + col1 * cor0.col0 - - col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ( + col1 ) * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ( col1 + - tab2.col1 ) * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * - col0 + cor0.col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL - 13 - + col1 AS col2 FROM tab2 AS cor0
----
-30
-44
-72

query I rowsort
SELECT DISTINCT col1 + 83 * 78 AS col2 FROM tab2 AS cor0
----
6491
6505
6533

query I rowsort
SELECT + + ( + cor1.col2 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8921
SELECT DISTINCT - cor0.col1 DIV + 33 FROM tab2, tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8921
SELECT DISTINCT - cor0.col1 / + 33 FROM tab2, tab2 AS cor0
----
-1
0

query I rowsort
SELECT + 37 * col1 * 74 + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
236044
257079
266811

onlyif mysql # use DIV operator for integer division
query I rowsort label-8923
SELECT col1 DIV col0 - + 11 FROM tab0
----
-10
-8
-9

skipif mysql # not compatible
query I rowsort label-8923
SELECT col1 / col0 - + 11 FROM tab0
----
-10
-8
-9

query I rowsort
SELECT + col2 * ( + col0 ) - ( col0 ) AS col1 FROM tab1
----
159
3584
7600

query I rowsort
SELECT - 15 AS col2 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT - - 33 * col2 FROM tab2 AS cor0
----
1254
858
891

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8927
SELECT ALL - 83 + col0 * col2 * CAST( + col2 * - cor0.col0 + + col2 AS SIGNED ) FROM tab1 cor0
----
-13100051
-17579
-58245203

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - 83 + col0 * col2 * CAST ( + col2 * - cor0.col0 + + col2 AS INTEGER ) FROM tab1 cor0
----
-13100051
-17579
-58245203

query I rowsort
SELECT col1 * + cor0.col1 + col1 FROM tab1 AS cor0
----
110
182
702

query I rowsort
SELECT col1 * + 17 FROM tab1 AS cor0
----
170
221
442

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8930
SELECT DISTINCT - + CAST( + col0 AS SIGNED ) * - col1 * + ( ( - cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

skipif mysql # not compatible
query I rowsort label-8930
SELECT DISTINCT - + CAST ( + col0 AS INTEGER ) * - col1 * + ( ( - cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + col1 * tab2.col2 + + tab2.col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT + col0 * ( tab1.col2 ) FROM tab1
----
162
3648
7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8933
SELECT ALL - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * 78 FROM tab2 AS cor0
----
1405
2425
4680

query I rowsort
SELECT + 69 * col2 AS col1 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT ALL - col1 - col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - + 23 + col2 AS col1 FROM tab2 AS cor0
----
15
3
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab0 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col1 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * col2 * + col0 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT - - 7 AS col0 FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT - + 0 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 * ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL tab2.col0 + ( col0 ) * + col2 FROM tab2
----
196
2106
3081

query I rowsort
SELECT DISTINCT col0 + - col1 * - col2 * tab1.col1 FROM tab1
----
16304
36507
5764

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1e12915106866c102f2d9f96f9233144

query I rowsort
SELECT col0 + ( 71 * + col0 ) AS col0 FROM tab0 cor0
----
1728
2520
6408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8950
SELECT - col0 + CAST( + cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51

skipif mysql # not compatible
query I rowsort label-8950
SELECT - col0 + CAST ( + cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + col0 + 68 FROM tab0 AS cor0
----
103
157
92

query I rowsort
SELECT + col1 - - 32 AS col0 FROM tab2 AS cor0
----
49
63
91

onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT ALL + - col2 * col1 DIV + col2 + col0 * + 69 col1 FROM tab1 AS cor0
----
181
4406
5507

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + - col2 * col1 / + col2 + col0 * + 69 col1 FROM tab1 AS cor0
----
181
4406
5507

query I rowsort
SELECT DISTINCT col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT - cor0.col1 - 42 AS col2 FROM tab1 AS cor0
----
-52
-55
-68

query I rowsort
SELECT + + cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - col0 * col2 + 92 FROM tab1 AS cor0
----
-3556
-70
-7588

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8958
SELECT DISTINCT col1 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97

skipif mysql # not compatible
query I rowsort label-8958
SELECT DISTINCT col1 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + col0 + ( col0 ) FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + - ( + 21 ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - ( + 23 ) + + col0 * + 28 FROM tab1 cor0
----
1769
2217
61

query I rowsort
SELECT DISTINCT - 52 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT ALL - 3 * - col0 * - col1 FROM tab2 AS cor0
----
-13806
-4029
-651

query I rowsort
SELECT 1 + + 64 * col1 FROM tab1 AS cor0
----
1665
641
833

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8965
SELECT ALL - - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8965
SELECT ALL - - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + - col0 + col1 * - col0 + - col0 FROM tab0 AS cor0
----
-2112
-3465
-8277

query I rowsort
SELECT ALL + ( cor0.col0 ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT cor1.col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + ( 45 ) AS col1 FROM tab2 cor0
----
45

query I rowsort
SELECT + - 67 + col0 * col1 FROM tab0 AS cor0
----
1997
3328
8032

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8971
SELECT ALL + col2 * ( col1 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL + col2 * ( col1 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col2 + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL col1 * col1 + - col2 * col2 FROM tab2 AS cor0
----
-1155
232
2805

query I rowsort
SELECT ALL + 22 * col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
156
206
569

query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ( + col2 ) DIV + col0 + + 11 AS col0 FROM tab0 AS cor0
----
11
11
12

skipif mysql # not compatible
query I rowsort label-8977
SELECT ( + col2 ) / + col0 + + 11 AS col0 FROM tab0 AS cor0
----
11
11
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 10 + - col2 col0 FROM tab0 AS cor0
----
827
828
969

query I rowsort
SELECT DISTINCT - 51 AS col0 FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 27 col0 FROM tab2 AS cor0
----
-11
0
1

query I rowsort
SELECT 66 * cor0.col1 AS col0 FROM tab0 AS cor0
----
5676
6006
6402

query I rowsort
SELECT - 91 + - col0 * + col0 + + col2 FROM tab1 AS cor0
----
-4130
-46
-6395

query I rowsort
SELECT + 91 * col1 FROM tab2
----
1547
2821
5369

query I rowsort
SELECT DISTINCT + 94 - tab1.col0 AS col2 FROM tab1, tab2 AS cor0
----
14
30
91

query I rowsort
SELECT tab2.col1 + col2 + col2 * - col0 * col1 AS col0 FROM tab2
----
-119567
-50979
-5801

query I rowsort
SELECT cor1.col1 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT DISTINCT - + col2 + ( - col1 ) FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT + - col1 * 10 AS col0 FROM tab2 cor0
----
-170
-310
-590

query I rowsort
SELECT col2 * col2 + 57 AS col2 FROM tab0
----
1146
58
6781

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT - col2 DIV + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8990
SELECT - col2 / + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT 7 FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to bd991c690468eea3ef45a96817ca3617

query I rowsort
SELECT ALL col2 * + ( col0 ) + - col2 * ( - 72 ) FROM tab1
----
14592
4050
7752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8993
SELECT + col1 + CAST( 14 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
255
465
885

skipif mysql # not compatible
query I rowsort label-8993
SELECT + col1 + CAST ( 14 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
255
465
885

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + - 56 * col0 AS col2 FROM tab1 AS cor0
----
-168
-3584
-4480

query I rowsort
SELECT ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL 29 * - 88 FROM tab1
----
-2552
-2552
-2552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + tab1.col0 * tab1.col0 col2 FROM tab1
----
-45
4039
6304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 * - col2 ) col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + cor0.col2 + + 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
109
67
70

query I rowsort
SELECT - 58 AS col0 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to a38440572743ed8a3d8af7b49a5388c9

query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab1, tab0 AS cor0
----
-19

query I rowsort
SELECT ALL - 57 * col2 AS col1 FROM tab2
----
-1482
-1539
-2166

query I rowsort
SELECT DISTINCT col2 + col0 * + col1 FROM tab0
----
2097
3396
8181

query I rowsort
SELECT ALL - col0 * ( 95 ) + - col2 + + 83 FROM tab2
----
-609
-7353
-7460

query I rowsort
SELECT col0 + - tab1.col0 + + tab1.col2 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9008
SELECT ALL - col2 DIV ( col1 ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9008
SELECT ALL - col2 / ( col1 ) AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col1 * - ( 13 ) FROM tab1
----
-130
-169
-338

onlyif mysql # use DIV operator for integer division
query I rowsort label-9010
SELECT - tab1.col1 DIV - ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT - tab1.col1 / - ( col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col0 * + 68 AS col1 FROM tab1 cor0
----
-204
-4352
-5440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col0 FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT + 99 * ( col1 ) + + col0 * col0 AS col1 FROM tab1 cor0
----
2583
5086
7687

query I rowsort
SELECT + col1 * + 98 AS col1 FROM tab2 AS cor0
----
1666
3038
5782

query I rowsort
SELECT - + 58 * + col2 FROM tab1 cor0
----
-3132
-3306
-5568

query I rowsort
SELECT - + cor0.col0 * col2 * + col0 + - ( col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
-232832
-408
-613360

query I rowsort
SELECT - col1 + 57 AS col1 FROM tab0 cor0
----
-29
-34
-40

query I rowsort
SELECT col1 + cor0.col1 * col1 FROM tab1 AS cor0
----
110
182
702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col2 ) * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 93 * col0 FROM tab1
----
279
5952
7440

onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT - col1 + col1 * col0 DIV col1 - col2 FROM tab1
----
-29
-3
-77

skipif mysql # not compatible
query I rowsort label-9021
SELECT - col1 + col1 * col0 / col1 - col2 FROM tab1
----
-29
-3
-77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9022
SELECT - col1 DIV - ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9022
SELECT - col1 / - ( col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - ( col2 + tab0.col1 ) * col2 FROM tab0
----
-14186
-3927
-98

query I rowsort
SELECT 66 * - col0 * col2 FROM tab1
----
-10692
-240768
-506880

onlyif mysql # use DIV operator for integer division
query I rowsort label-9025
SELECT ALL CAST( col0 AS SIGNED ) DIV col2 AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL CAST ( col0 AS INTEGER ) / col2 AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT ( + 57 ) AS col1 FROM tab1
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * col2 + + col2 col0 FROM tab1 AS cor0
----
-4698
-4959
-8352

query I rowsort
SELECT 24 * + col1 + - col1 AS col1 FROM tab1 AS cor0
----
230
299
598

query I rowsort
SELECT DISTINCT - cor0.col2 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # use DIV operator for integer division
query I rowsort label-9030
SELECT - col0 DIV col0 + col2 + col1 AS col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-9030
SELECT - col0 / col0 + col2 + col1 AS col2 FROM tab1 AS cor0
----
108
66
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL - - cor0.col0 * col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - - 23 + col0 FROM tab2 cor0
----
101
102
30

query I rowsort
SELECT + - col0 + + cor0.col1 + col2 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT + 37 + + col0 + + col2 FROM tab1 cor0
----
158
213
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col2 + - tab0.col0 + col2 * + col0 FROM tab0
----
1
7291
801

query I rowsort
SELECT + cor0.col1 * 9 AS col1 FROM tab2 AS cor0
----
153
279
531

query I rowsort
SELECT ( col1 ) + col1 + col0 AS col0 FROM tab0 AS cor0
----
196
229
271

query I rowsort
SELECT - col0 * + 52 AS col2 FROM tab0
----
-1248
-1820
-4628

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9041
SELECT ALL - col0 + - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6

skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL - col0 + - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 - + cor0.col1 FROM tab0 AS cor0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT + - col1 + + 48 FROM tab2 AS cor0
----
-11
17
31

query I rowsort
SELECT - 72 * col0 AS col0 FROM tab2
----
-504
-5616
-5688

query I rowsort
SELECT DISTINCT - col1 * + ( + 80 ) FROM tab1 cor0
----
-1040
-2080
-800

query I rowsort
SELECT ALL - col1 + col2 * + 94 AS col1 FROM tab2 AS cor0
----
2385
2507
3555

query I rowsort
SELECT ALL col0 + 2 AS col2 FROM tab2 cor0
----
80
81
9

query I rowsort
SELECT ALL - - col2 + - col0 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT - col0 * 72 + col0 AS col1 FROM tab1 AS cor0
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT tab0.col1 + + col2 * col2 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-9051
SELECT DISTINCT + col0 DIV - col0 + - 22 + - tab0.col1 FROM tab0
----
-109
-114
-120

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT + col0 / - col0 + - 22 + - tab0.col1 FROM tab0
----
-109
-114
-120

query I rowsort
SELECT DISTINCT 80 + col1 AS col1 FROM tab1
----
106
90
93

query I rowsort
SELECT ALL - tab1.col1 - + col1 * + ( col1 ) AS col0 FROM tab1
----
-110
-182
-702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9054
SELECT ( col0 ) + tab0.col2 + tab0.col0 DIV - tab0.col0 AS col0 FROM tab0
----
170
35
56

skipif mysql # not compatible
query I rowsort label-9054
SELECT ( col0 ) + tab0.col2 + tab0.col0 / - tab0.col0 AS col0 FROM tab0
----
170
35
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-9055
SELECT + col1 + col1 DIV + col1 + col0 AS col0 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-9055
SELECT + col1 + col1 / + col1 + col0 AS col0 FROM tab2
----
138
39
97

query I rowsort
SELECT ALL + col0 + - 11 AS col1 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT cor0.col2 + - cor0.col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT DISTINCT - col0 + - 98 FROM tab2 AS cor0
----
-105
-176
-177

query I rowsort
SELECT - - col1 + 11 * + col1 FROM tab2 cor0
----
204
372
708

query I rowsort
SELECT + col0 * 78 AS col2 FROM tab2 AS cor0
----
546
6084
6162

query I rowsort
SELECT - + cor0.col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) - tab0.col2 col1 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT col2 * + col1 + tab1.col1 FROM tab1
----
1261
1430
580

query I rowsort
SELECT DISTINCT col2 * + tab0.col0 * + col0 FROM tab0
----
1225
19008
649522

query I rowsort
SELECT 52 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT + col1 - + 96 FROM tab0
----
-10
-5
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9067
SELECT ( col1 ) + + CAST( - ( col1 ) AS SIGNED ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9067
SELECT ( col1 ) + + CAST ( - ( col1 ) AS INTEGER ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 54 AS col2 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT - 22 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe

onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT ( + tab1.col0 ) * col1 DIV - col2 + + tab1.col1 FROM tab1
----
-1
25
3

skipif mysql # not compatible
query I rowsort label-9070
SELECT ( + tab1.col0 ) * col1 / - col2 + + tab1.col1 FROM tab1
----
-1
25
3

query I rowsort
SELECT + col2 + - col0 + + 25 * - col1 AS col0 FROM tab2
----
-1527
-466
-755

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT DISTINCT tab1.col0 + col1 * - ( + col2 ) DIV - col2 AS col1 FROM tab1
----
29
74
93

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT tab1.col0 + col1 * - ( + col2 ) / - col2 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL + 29 * col2 * + 98 FROM tab0 AS cor0
----
233044
2842
93786

onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT ALL + 54 * col0 + cor0.col0 DIV + 12 AS col1 FROM tab0 AS cor0
----
1298
1892
4813

skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL + 54 * col0 + cor0.col0 / + 12 AS col1 FROM tab0 AS cor0
----
1298
1892
4813

query I rowsort
SELECT DISTINCT + 65 * col1 AS col0 FROM tab1 AS cor0
----
1690
650
845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * + 18 + - 46 + - col2 col1 FROM tab2 cor0
----
1332
1338
53

query I rowsort
SELECT ALL - 68 * + col0 FROM tab0 AS cor0
----
-1632
-2380
-6052

query I rowsort
SELECT ALL col2 * col2 + + col0 * cor0.col2 FROM tab2 cor0
----
2704
4446
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-9080
SELECT DISTINCT + 87 DIV + col0 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
38
60

skipif mysql # not compatible
query I rowsort label-9080
SELECT DISTINCT + 87 / + col0 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
171
38
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + + col0 col2 FROM tab2 cor0
----
-52
19
20

query I rowsort
SELECT + col0 * 55 AS col2 FROM tab1 AS cor0
----
165
3520
4400

query I rowsort
SELECT - - col0 - - 14 * - col2 FROM tab0 AS cor0
----
-1059
-438
21

query I rowsort
SELECT + col2 - ( col1 ) AS col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col0 * 80 + 49 FROM tab1 AS cor0
----
-191
-5071
-6351

query I rowsort
SELECT DISTINCT - 78 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-9087
SELECT col0 * + col1 - col0 DIV col0 FROM tab0 AS cor0
----
2063
3394
8098

skipif mysql # not compatible
query I rowsort label-9087
SELECT col0 * + col1 - col0 / col0 FROM tab0 AS cor0
----
2063
3394
8098

query I rowsort
SELECT col1 + 31 * col2 AS col1 FROM tab0 AS cor0
----
1109
128
2633

query I rowsort
SELECT DISTINCT - col2 + - tab2.col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT 83 + col0 * 86 FROM tab0
----
2147
3093
7737

query I rowsort
SELECT DISTINCT ( col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9092
SELECT DISTINCT - col2 * col1 + + col1 DIV 30 AS col2 FROM tab2 cor0
----
-1533
-646
-836

skipif mysql # not compatible
query I rowsort label-9092
SELECT DISTINCT - col2 * col1 + + col1 / 30 AS col2 FROM tab2 cor0
----
-1533
-646
-836

query I rowsort
SELECT col2 + + 52 FROM tab1 AS cor0
----
106
109
148

query I rowsort
SELECT ALL - + ( + cor0.col0 ) * col0 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT ALL + 15 DIV col1 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL + 15 / col1 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9096
SELECT ALL + col2 + - 3 + col0 DIV col0 AS col0 FROM tab0
----
-1
31
80

skipif mysql # not compatible
query I rowsort label-9096
SELECT ALL + col2 + - 3 + col0 / col0 AS col0 FROM tab0
----
-1
31
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT DISTINCT 18 * col1 + + col1 + - ( col1 + + cor0.col1 ) DIV cor0.col2 FROM tab0 AS cor0
----
1629
1649
1727

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT 18 * col1 + + col1 + - ( col1 + + cor0.col1 ) / cor0.col2 FROM tab0 AS cor0
----
1629
1649
1727

query I rowsort
SELECT DISTINCT + col2 + - 38 AS col1 FROM tab2 AS cor0
----
-11
-12
0

query I rowsort
SELECT col1 + - ( - tab0.col0 + 41 ) FROM tab0
----
139
69
91

query I rowsort
SELECT ( - tab0.col0 + tab0.col2 ) AS col1 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + 86 * + 46 FROM tab1 AS cor0
----
3956
3956
3956

query I rowsort
SELECT - - col1 + col1 * - col1 FROM tab1 AS cor0
----
-156
-650
-90

query I rowsort
SELECT - col0 * 34 + col0 FROM tab1 AS cor0
----
-2112
-2640
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9104
SELECT - CAST( + ( col2 ) AS SIGNED ) * - 19 + col2 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

skipif mysql # not compatible
query I rowsort label-9104
SELECT - CAST ( + ( col2 ) AS INTEGER ) * - 19 + col2 AS col1 FROM tab1 AS cor0
----
1080
1140
1920

query I rowsort
SELECT ( 11 ) AS col1 FROM tab0 AS cor0
----
11
11
11

query I rowsort
SELECT + - ( - col0 ) * - col2 + + col1 * col1 FROM tab1 AS cor0
----
-3548
-7511
514

query I rowsort
SELECT ALL - 63 + + cor0.col2 * ( col2 + + col1 ) FROM tab2 AS cor0
----
1503
2027
2147

query I rowsort
SELECT ALL + - 3 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL 84 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a

query I rowsort
SELECT tab0.col1 * ( + col1 * - 23 ) AS col0 FROM tab0
----
-170108
-190463
-216407

query I rowsort
SELECT + ( col0 ) + ( col2 ) * col0 + ( col1 ) AS col0 FROM tab1 AS cor0
----
191
3722
7773

onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT DISTINCT - 40 DIV + tab2.col0 FROM tab2
----
-5
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - 40 / + tab2.col0 FROM tab2
----
-5
0

query I rowsort
SELECT col0 * + col1 * tab1.col1 AS col1 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT - - col0 - - 95 AS col0 FROM tab0 AS cor0
----
119
130
184

query I rowsort
SELECT cor0.col1 * + col0 * col1 - col2 FROM tab1 cor0
----
13424
1974
6343

query I rowsort
SELECT + - col2 + - cor0.col0 FROM tab1 AS cor0
----
-121
-176
-57

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab0, tab1 AS cor0
----
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9118
SELECT col1 DIV + CAST( 18 AS SIGNED ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9118
SELECT col1 / + CAST ( 18 AS INTEGER ) FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT ALL CAST( NULL AS SIGNED ) - - 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9119
SELECT ALL CAST ( NULL AS INTEGER ) - - 49 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + ( 29 * - tab1.col0 + - tab1.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ad61a0c94b477a4d149385a488b90d9

query I rowsort
SELECT - cor0.col0 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT cor1.col2 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col0 * ( - ( - col2 ) ) AS col1 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - cor1.col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

query I rowsort
SELECT ALL - ( 42 ) FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - col1 * + ( col2 ) * col1 FROM tab0
----
-244068
-679042
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9127
SELECT ALL - CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + 45 - col1 * tab1.col0 FROM tab1
----
-213
-3520
-4640

query I rowsort
SELECT 87 + col1 * col1 FROM tab1
----
187
256
763

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9130
SELECT DISTINCT - cor0.col2 + CAST( 45 AS SIGNED ) FROM tab2, tab1 AS cor0
----
-12
-51
-9

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT - cor0.col2 + CAST ( 45 AS INTEGER ) FROM tab2, tab1 AS cor0
----
-12
-51
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9131
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

query I rowsort
SELECT + cor0.col2 + + col2 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT col0 + - ( + col1 ) FROM tab0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT cor0.col1 * + ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT DISTINCT - cor0.col2 * 64 + + 86 FROM tab2 AS cor0
----
-1578
-1642
-2346

query I rowsort
SELECT + + col0 + 3 * + cor0.col0 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT ALL + col0 * + 49 AS col0 FROM tab2 AS cor0
----
343
3822
3871

onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT ALL + + 28 * + col2 + col1 * - 17 - + col0 DIV + ( + 30 ) AS col1 FROM tab1 AS cor0
----
1070
1424
2465

skipif mysql # not compatible
query I rowsort label-9138
SELECT ALL + + 28 * + col2 + col1 * - 17 - + col0 / + ( + 30 ) AS col1 FROM tab1 AS cor0
----
1070
1424
2465

query I rowsort
SELECT DISTINCT 25 + - col2 * col2 FROM tab1 AS cor0
----
-2891
-3224
-9191

query I rowsort
SELECT DISTINCT col1 + - col0 + 71 FROM tab1 AS cor0
----
17
4
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-9141
SELECT - 35 DIV - col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 35 / - col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - 85 * - col2 FROM tab1 AS cor0
----
4590
4845
8160

query I rowsort
SELECT ALL - - col2 * + cor0.col2 + 35 AS col0 FROM tab2 AS cor0
----
1479
711
764

query I rowsort
SELECT DISTINCT 71 + col0 FROM tab1 AS cor0
----
135
151
74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9145
SELECT ALL 59 * + col2 + CAST( NULL AS SIGNED ) * - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL 59 * + col2 + CAST ( NULL AS INTEGER ) * - col1 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + col1 * + col2 AS col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT + + col2 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9148
SELECT DISTINCT - 64 + - col0 - + CAST( - col0 AS SIGNED ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-9148
SELECT DISTINCT - 64 + - col0 - + CAST ( - col0 AS INTEGER ) FROM tab0
----
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT ALL + + col0 DIV ( + col1 ) FROM tab2 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + + col0 / ( + col1 ) FROM tab2 AS cor0
----
0
1
4

query I rowsort
SELECT DISTINCT col1 * - ( + 7 ) * col2 FROM tab2 cor0
----
-10738
-4522
-5859

query I rowsort
SELECT col0 - - ( cor0.col0 + - col2 ) AS col2 FROM tab1 cor0
----
-48
64
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9152
SELECT ALL cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9152
SELECT ALL cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9153
SELECT 55 * - tab1.col1 + CAST( + col1 * col2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-52
10
520

skipif mysql # not compatible
query I rowsort label-9153
SELECT 55 * - tab1.col1 + CAST ( + col1 * col2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-52
10
520

query I rowsort
SELECT ( col2 ) + tab2.col0 * + col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
61

query I rowsort
SELECT ALL + + col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT col2 * - 62 FROM tab0 AS cor0
----
-2046
-5084
-62

query I rowsort
SELECT DISTINCT + - 59 + 7 AS col0 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT DISTINCT - + col1 * col1 - col2 AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410

query I rowsort
SELECT DISTINCT - 8 * - col2 + col1 + 86 * ( col2 * - col1 ) FROM tab2 AS cor0
----
-131657
-55235
-71735

query I rowsort
SELECT DISTINCT col2 * 64 - cor0.col2 AS col2 FROM tab1 AS cor0
----
3402
3591
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 + - col2 * + col1 * - col1 col0 FROM tab0 AS cor0
----
244094
679068
9435

query I rowsort
SELECT + col0 * col2 * - col0 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT + col1 + 15 AS col0 FROM tab2
----
32
46
74

query I rowsort
SELECT + col2 + 42 FROM tab0
----
124
43
75

query I rowsort
SELECT + col0 - 41 AS col1 FROM tab0
----
-17
-6
48

query I rowsort
SELECT - col2 * col2 * col1 + + col1 AS col2 FROM tab0
----
-611793
-93568
0

query I rowsort
SELECT + 39 + + tab2.col2 AS col0 FROM tab2
----
65
66
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9169
SELECT ALL - - CAST( col0 AS SIGNED ) * cor0.col1 - col2 FROM tab2 AS cor0
----
1305
190
4576

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL - - CAST ( col0 AS INTEGER ) * cor0.col1 - col2 FROM tab2 AS cor0
----
1305
190
4576

query I rowsort
SELECT - cor0.col1 + + cor0.col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * col1 - col0 * col0 FROM tab2 AS cor0
----
-4550
-5595
788

query I rowsort
SELECT ALL cor0.col1 + - col1 + + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9173
SELECT ALL - - CAST( NULL AS SIGNED ) * - col2 + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT ALL - - CAST ( NULL AS INTEGER ) * - col2 + + col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( + col0 ) * + col0 AS col2 FROM tab1
----
233472
486
614400

query I rowsort
SELECT - - 73 AS col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-9176
SELECT + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - + 59 * + col1 AS col2 FROM tab0 AS cor0
----
-5074
-5369
-5723

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9178
SELECT CAST( 82 AS SIGNED ) * - col0 FROM tab2
----
-574
-6396
-6478

skipif mysql # not compatible
query I rowsort label-9178
SELECT CAST ( 82 AS INTEGER ) * - col0 FROM tab2
----
-574
-6396
-6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT - ( ( - col2 ) ) AS col0 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9181
SELECT ALL + - CAST( NULL AS SIGNED ) / + 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9181
SELECT ALL + - CAST ( NULL AS INTEGER ) / + 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + - cor0.col1 * ( col0 ) AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 75 + + col2 col2 FROM tab0 AS cor0
----
108
157
76

query I rowsort
SELECT DISTINCT - 88 - col0 FROM tab0 AS cor0
----
-112
-123
-177

query I rowsort
SELECT ALL + cor0.col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT 58 - - col1 FROM tab2 AS cor0
----
117
75
89

query I rowsort
SELECT + ( cor0.col2 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col1 + + 28 * + 76 FROM tab2 cor0
----
2145
2159
2187

query I rowsort
SELECT - col0 + 40 + col2 FROM tab2 AS cor0
----
-1
-12
60

query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9191
SELECT ALL - + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL - + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 85 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9193
SELECT DISTINCT col1 + CAST( + 75 AS SIGNED ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1292
2356
4484

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT col1 + CAST ( + 75 AS INTEGER ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
1292
2356
4484

query I rowsort
SELECT ALL - ( + cor0.col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9195
SELECT ALL CAST( cor0.col0 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL CAST ( cor0.col0 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + ( + col1 ) + - ( col2 + col1 * - 23 ) col1 FROM tab2 cor0
----
1331
353
686

query I rowsort
SELECT + col0 * 27 AS col1 FROM tab2 AS cor0
----
189
2106
2133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col1 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT + col0 + - 74 * - col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
4077
4922
8224

query I rowsort
SELECT ALL - 2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab2, tab2 AS cor0
----
65

query I rowsort
SELECT cor0.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 - 50 col0 FROM tab1 AS cor0
----
-2966
-3299
-9266

query I rowsort
SELECT - ( + col1 ) * 81 FROM tab1
----
-1053
-2106
-810

query I rowsort
SELECT col1 + col0 * 87 AS col0 FROM tab1 AS cor0
----
287
5578
6973

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT - + col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT - + col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + ( 13 ) FROM tab2
----
20
91
92

query I rowsort
SELECT + col1 * - 53 AS col1 FROM tab1
----
-1378
-530
-689

onlyif mysql # use DIV operator for integer division
query I rowsort label-9209
SELECT DISTINCT - col1 DIV - tab1.col2 + col2 + col1 AS col2 FROM tab1
----
109
67
80

skipif mysql # not compatible
query I rowsort label-9209
SELECT DISTINCT - col1 / - tab1.col2 + col2 + col1 AS col2 FROM tab1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT col0 DIV ( + 89 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT col0 / ( + 89 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT DISTINCT col2 DIV 14 AS col1 FROM tab1 cor0
----
3
4
6

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT col2 / 14 AS col1 FROM tab1 cor0
----
3
4
6

query I rowsort
SELECT col2 + - col2 + - col0 AS col2 FROM tab2
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9213
SELECT - + col1 + CAST( - 9 AS SIGNED ) FROM tab0 cor0
----
-100
-106
-95

skipif mysql # not compatible
query I rowsort label-9213
SELECT - + col1 + CAST ( - 9 AS INTEGER ) FROM tab0 cor0
----
-100
-106
-95

onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT 71 + col0 DIV col2 AS col1 FROM tab1 AS cor0
----
71
71
72

skipif mysql # not compatible
query I rowsort label-9214
SELECT 71 + col0 / col2 AS col1 FROM tab1 AS cor0
----
71
71
72

query I rowsort
SELECT ALL + - col1 * 72 FROM tab0 AS cor0
----
-6192
-6552
-6984

query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col0 + 59 AS col1 FROM tab0 AS cor0
----
148
83
94

query I rowsort
SELECT DISTINCT 26 * col0 FROM tab0
----
2314
624
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + tab2.col2 ) col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + - col0 * col0 * - col2 + - col2 AS col0 FROM tab1 cor0
----
233415
432
614304

query I rowsort
SELECT + 3 + + col2 FROM tab0 AS cor0
----
36
4
85

query I rowsort
SELECT ALL - 8 + + col1 AS col2 FROM tab2 cor0
----
23
51
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT DISTINCT + col1 + - col1 + col2 DIV col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + col1 + - col1 + col2 / col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - - col1 + + col0 * col1 * col2 - - col2 FROM tab0 AS cor0
----
3493
664291
68231

query I rowsort
SELECT + col2 + + col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - 13 + - col1 * col0 FROM tab1 AS cor0
----
-1053
-653
-91

query I rowsort
SELECT ALL - + col1 - + col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + + 81 * col2 + ( col1 ) - col2 * ( col1 ) FROM tab1 AS cor0
----
2996
4057
6541

query I rowsort
SELECT DISTINCT + col0 * + 75 + - 25 AS col0 FROM tab0 AS cor0
----
1775
2600
6650

query I rowsort
SELECT DISTINCT + cor0.col1 * 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947

query I rowsort
SELECT DISTINCT + col2 * - 50 - + cor0.col2 * col2 * - col0 FROM tab1 AS cor0
----
205086
6048
732480

query I rowsort
SELECT - col0 - + 43 FROM tab2 AS cor0
----
-121
-122
-50

query I rowsort
SELECT ALL + col0 + + 38 AS col2 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT - 74 + col2 FROM tab2
----
-36
-47
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + + col1 col1 FROM tab0
----
126
131
137

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9236
SELECT + - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9236
SELECT + - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 56 + 44 FROM tab2 AS cor0
----
-12
-12
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT - 54 + col2 * col2 FROM tab1 AS cor0
----
2862
3195
9162

onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT cor0.col0 + + col2 DIV col0 FROM tab2 cor0
----
10
78
79

skipif mysql # not compatible
query I rowsort label-9240
SELECT cor0.col0 + + col2 / col0 FROM tab2 cor0
----
10
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9241
SELECT CAST( NULL AS SIGNED ) + col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9241
SELECT CAST ( NULL AS INTEGER ) + col0 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 11 + col1 + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1311
651
8001

onlyif mysql # use DIV operator for integer division
query I rowsort label-9243
SELECT DISTINCT col1 DIV 16 AS col2 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT col1 / 16 AS col2 FROM tab2 AS cor0
----
1
3

query I rowsort
SELECT col0 * + 76 FROM tab1
----
228
4864
6080

query I rowsort
SELECT col0 * 73 AS col0 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT - col2 * 64 * - col1 FROM tab2 AS cor0
----
41344
53568
98176

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9247
SELECT + + CAST( 8 AS SIGNED ) * - col0 FROM tab2 AS cor0
----
-56
-624
-632

skipif mysql # not compatible
query I rowsort label-9247
SELECT + + CAST ( 8 AS INTEGER ) * - col0 FROM tab2 AS cor0
----
-56
-624
-632

query I rowsort
SELECT ALL - tab2.col2 * 83 FROM tab2
----
-2158
-2241
-3154

query I rowsort
SELECT + col0 * + 95 + tab1.col1 FROM tab1
----
311
6090
7613

onlyif mysql # use DIV operator for integer division
query I rowsort label-9250
SELECT ALL + + col0 DIV col0 col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + + col0 / col0 col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 + 77 AS col1 FROM tab1 AS cor0
----
103
87
90

query I rowsort
SELECT ALL - col2 + - ( + col1 ) AS col2 FROM tab1 cor0
----
-109
-67
-80

query I rowsort
SELECT ALL col2 * - 28 FROM tab2 AS cor0
----
-1064
-728
-756

query I rowsort
SELECT ALL 81 AS col1 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + 52 * - 98 FROM tab2 AS cor0
----
-5096

query I rowsort
SELECT ALL + 32 * ( col2 ) + - col0 FROM tab2 AS cor0
----
1137
754
857

query I rowsort
SELECT DISTINCT + 74 FROM tab1 cor0
----
74

query I rowsort
SELECT DISTINCT col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

query I rowsort
SELECT ALL + col0 * + ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL + col2 * 39 + - cor0.col1 FROM tab2 AS cor0
----
1022
1465
955

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col2 FROM tab1 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT 44 * ( cor0.col0 ) * + ( + 96 ) FROM tab1 AS cor0
----
12672
270336
337920

query I rowsort
SELECT ALL - 41 * col1 + + col0 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-10940
-3977
-4294

query I rowsort
SELECT ALL + 56 * + col0 FROM tab1 AS cor0
----
168
3584
4480

query I rowsort
SELECT + col0 * + 45 * - col0 AS col1 FROM tab2 AS cor0
----
-2205
-273780
-280845

query I rowsort
SELECT col0 - ( + col1 ) AS col1 FROM tab2
----
-24
19
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9268
SELECT ALL + col1 DIV + col1 + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + col1 / + col1 + col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT + + 23 AS col0 FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL col2 * col0 + - 65 * - 97 + col1 AS col0 FROM tab1 AS cor0
----
13998
6493
9963

query I rowsort
SELECT - 84 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-58
-71
-74

query I rowsort
SELECT ALL 21 * col1 * 0 + - col1 * col1 + 64 FROM tab0 AS cor0
----
-7332
-8217
-9345

query I rowsort
SELECT ALL - - 3 * + col2 * col1 - ( cor0.col2 ) * ( + col1 ) FROM tab0 cor0
----
14924
194
5676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT DISTINCT 2 DIV + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT 2 / + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT col1 + + col2 * - 40 FROM tab1 AS cor0
----
-2134
-2270
-3827

query I rowsort
SELECT - - col1 * col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT DISTINCT + col2 + col0 * 2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT + col1 * cor0.col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col2 + + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776

onlyif mysql # use DIV operator for integer division
query I rowsort label-9280
SELECT ALL cor0.col1 * col1 DIV - col1 + 88 FROM tab0 AS cor0
----
-3
-9
2

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL cor0.col1 * col1 / - col1 + 88 FROM tab0 AS cor0
----
-3
-9
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT col0 + 44 DIV - 29 AS col2 FROM tab1 cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-9281
SELECT col0 + 44 / - 29 AS col2 FROM tab1 cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9282
SELECT ALL col1 DIV col2 + col1 DIV col1 FROM tab0 AS cor0
----
2
3
98

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL col1 / col2 + col1 / col1 FROM tab0 AS cor0
----
2
3
98

query I rowsort
SELECT ALL + col0 + - col2 + - col0 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT ALL - + col2 * - col1 + + col2 AS col1 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT + col2 * col0 - col0 FROM tab2 cor0
----
182
1950
2923

query I rowsort
SELECT ( tab0.col1 ) + + 11 * col0 FROM tab0
----
1070
350
482

query I rowsort
SELECT ALL 70 * - col2 + + col1 AS col2 FROM tab0
----
-2224
-5649
27

query I rowsort
SELECT + + col0 * col0 + - ( - col2 + - 50 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
10568
2436
7737

query I rowsort
SELECT col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL col0 + col1 * + 98 FROM tab2 AS cor0
----
1745
3045
5860

query I rowsort
SELECT - + cor0.col0 + col1 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT - + cor0.col0 + col0 * 61 AS col1 FROM tab0 AS cor0
----
1440
2100
5340

query I rowsort
SELECT ALL - 78 + col0 * - ( tab0.col1 ) FROM tab0
----
-2142
-3473
-8177

query I rowsort
SELECT DISTINCT + 46 + + col2 + + 77 AS col1 FROM tab1
----
177
180
219

query I rowsort
SELECT - col2 * col1 + + col0 * - col1 FROM tab1
----
-1210
-1482
-2288

query I rowsort
SELECT col1 + + ( - col2 + col1 ) FROM tab0 cor0
----
100
139
193

onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT + col2 DIV + tab0.col0 + - 88 FROM tab0
----
-87
-88
-88

skipif mysql # not compatible
query I rowsort label-9297
SELECT + col2 / + tab0.col0 + - 88 FROM tab0
----
-87
-88
-88

query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT - 27 + + col2 AS col0 FROM tab0
----
-26
55
6

query I rowsort
SELECT - col2 * + 44 + + 78 FROM tab2 cor0
----
-1066
-1110
-1594

query I rowsort
SELECT DISTINCT - col1 - col0 * - 39 FROM tab2 AS cor0
----
242
2983
3064

query I rowsort
SELECT ALL - col0 + col2 + col0 AS col0 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT + cor0.col1 * col1 + 28 AS col0 FROM tab1 AS cor0
----
128
197
704

query I rowsort
SELECT - 38 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
26
27
38

query I rowsort
SELECT DISTINCT - tab1.col1 * - 83 - + col0 * 13 * + ( col0 ) FROM tab1
----
-52418
-82121
2041

query I rowsort
SELECT 15 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9308
SELECT 37 + - col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
36
37
37

skipif mysql # not compatible
query I rowsort label-9308
SELECT 37 + - col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
36
37
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9309
SELECT ALL - CAST( NULL AS SIGNED ) + col1 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 * - col2 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
10
13
26

query I rowsort
SELECT ALL - tab2.col2 * - col1 + + col2 FROM tab2
----
1560
684
864

query I rowsort
SELECT ALL + col1 + - col1 - 9 * + col0 AS col0 FROM tab2 AS cor0
----
-63
-702
-711

query I rowsort
SELECT - col1 + + col1 - - 43 * cor0.col1 AS col0 FROM tab2 cor0
----
1333
2537
731

query I rowsort
SELECT col0 + - col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-9315
SELECT DISTINCT - - ( col2 ) DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT - - ( col2 ) / + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 45 + + 12 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * + col1 col1 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT DISTINCT + 19 * + 72 FROM tab1 AS cor0
----
1368

query I rowsort
SELECT ( 20 ) FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ALL 83 * col0 AS col0 FROM tab1 AS cor0
----
249
5312
6640

onlyif mysql # use DIV operator for integer division
query I rowsort label-9322
SELECT DISTINCT - ( + col1 ) DIV col2 + col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT - ( + col1 ) / col2 + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ( col1 ) * col2 * - ( - col1 ) + col1 + + col1 FROM tab1
----
16250
36556
5720

query I rowsort
SELECT - + 53 * col0 FROM tab1 cor0
----
-159
-3392
-4240

query I rowsort
SELECT 69 * + col2 AS col1 FROM tab0
----
2277
5658
69

query I rowsort
SELECT + 82 * col1 AS col2 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT DISTINCT + col1 * - col0 + + tab0.col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL + cor0.col2 * col1 + - cor0.col1 FROM tab2 AS cor0
----
1475
629
806

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9329
SELECT - - cor0.col1 * + CAST( cor0.col0 * col1 AS SIGNED ) FROM tab2 AS cor0
----
22831
271518
6727

skipif mysql # not compatible
query I rowsort label-9329
SELECT - - cor0.col1 * + CAST ( cor0.col0 * col1 AS INTEGER ) FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - col0 + + ( col2 ) * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT - - col0 * col2 + - col1 * col1 * - cor0.col1 + col2 AS col2 FROM tab2 AS cor0
----
207433
30007
7953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 67 + + col2 col2 FROM tab0 AS cor0
----
165
186
240

query I rowsort
SELECT cor0.col1 + col1 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-4
35
92

query I rowsort
SELECT - 27 + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-316
-3508
-988

query I rowsort
SELECT DISTINCT - col2 * col1 * - col1 + cor0.col0 FROM tab0 AS cor0
----
244092
679131
9444

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9336
SELECT CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT cor0.col1 * - 99 FROM tab0 AS cor0
----
-8514
-9009
-9603

query I rowsort
SELECT 39 + + col2 AS col2 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col0 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT tab0.col1 * col0 + ( - col2 * - col2 ) FROM tab0
----
14823
3153
3396

query I rowsort
SELECT - - col1 * col2 * - col2 - col1 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT + 90 * - col2 + 37 AS col0 FROM tab0 AS cor0
----
-2933
-53
-7343

query I rowsort
SELECT ALL - col2 * + col2 * - col0 AS col0 FROM tab0 cor0
----
26136
35
598436

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * + col1 * col0 col1 FROM tab0 AS cor0
----
177504
329315
737009

onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT DISTINCT + + col1 * - col1 + - 12 DIV - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-675

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT + + col1 * - col1 + - 12 / - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-164
-249
-675

query I rowsort
SELECT DISTINCT - col0 + + 64 * col1 * - cor0.col1 FROM tab0 AS cor0
----
-473368
-530073
-602211

query I rowsort
SELECT + col2 + + col2 * + 88 FROM tab2 AS cor0
----
2314
2403
3382

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab0.col0 col0 FROM tab0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9350
SELECT ALL - col1 DIV 29 + 0 + - col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL - col1 / 29 + 0 + - col0 AS col2 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - + col0 * + ( + cor0.col1 ) + + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT DISTINCT - col1 * + 42 FROM tab0 AS cor0
----
-3612
-3822
-4074

query I rowsort
SELECT DISTINCT + + col2 * + col0 + 43 AS col1 FROM tab2 cor0
----
2071
232
3045

onlyif mysql # use DIV operator for integer division
query I rowsort label-9354
SELECT - col2 DIV + ( + col2 * - col2 ) + col2 AS col0 FROM tab1 cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9354
SELECT - col2 / + ( + col2 * - col2 ) + col2 AS col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT DISTINCT col1 - tab2.col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col0 + tab2.col2 * col1 - + tab2.col0 * col0 AS col0 FROM tab2
----
-4472
-5516
795

query I rowsort
SELECT - 36 * col2 AS col0 FROM tab1 cor0
----
-1944
-2052
-3456

query I rowsort
SELECT 92 + + col1 FROM tab2 AS cor0
----
109
123
151

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT + tab1.col0 + - col0 + col0 * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9359
SELECT + tab1.col0 + - col0 + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 80 * + col2 AS col1 FROM tab2
----
2080
2160
3040

query I rowsort
SELECT ALL col1 * col0 * + col0 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL - ( tab0.col0 + col2 * col1 ) FROM tab0
----
-132
-2862
-7551

query I rowsort
SELECT ALL - 78 AS col0 FROM tab1
----
-78
-78
-78

query I rowsort
SELECT DISTINCT 90 + cor0.col1 * 42 FROM tab1 AS cor0
----
1182
510
636

query I rowsort
SELECT ALL - - cor0.col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT + + col2 * col2 + + ( + col2 ) FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - 87 + + col2 AS col1 FROM tab2 AS cor0
----
-49
-60
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 + - col1 * col0 col1 FROM tab1 AS cor0
----
-1017
-55
-617

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9369
SELECT DISTINCT + ( - col2 ) + + CAST( col0 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-13
120
130

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT + ( - col2 ) + + CAST ( col0 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT DISTINCT col0 + - 94 * tab1.col1 FROM tab1
----
-1142
-2441
-876

query I rowsort
SELECT DISTINCT col2 + 57 + 74 * + col0 FROM tab2
----
5855
5941
602

query I rowsort
SELECT tab2.col2 * ( ( col2 ) ) + col0 FROM tab2
----
1523
736
754

query I rowsort
SELECT col1 * + ( 21 ) FROM tab0
----
1806
1911
2037

query I rowsort
SELECT DISTINCT + tab0.col0 + 64 * 0 * + col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT ALL - col1 + ( col0 ) - + col0 DIV 46 col2 FROM tab0
----
-3
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL - col1 + ( col0 ) - + col0 / 46 col2 FROM tab0
----
-3
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9376
SELECT col1 DIV - 38 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9376
SELECT col1 / - 38 FROM tab2
----
-1
0
0

query I rowsort
SELECT ALL col1 * col2 + - col0 * col0 + + col1 AS col1 FROM tab0
----
-1031
-368
2348

onlyif mysql # use DIV operator for integer division
query I rowsort label-9378
SELECT col2 DIV col0 + col2 FROM tab0
----
1
34
82

skipif mysql # not compatible
query I rowsort label-9378
SELECT col2 / col0 + col2 FROM tab0
----
1
34
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT col1 * 86 + - ( + col1 ) DIV cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
7371
7736
8306

skipif mysql # not compatible
query I rowsort label-9379
SELECT col1 * 86 + - ( + col1 ) / cor0.col1 - cor0.col0 FROM tab0 AS cor0
----
7371
7736
8306

onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT + - col0 DIV col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9380
SELECT + - col0 / col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 + + ( + col1 ) FROM tab2
----
137
38
96

query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 + col1 AS col0 FROM tab2
----
-119593
-51017
-5828

query I rowsort
SELECT + 24 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # use DIV operator for integer division
query I rowsort label-9384
SELECT + col2 DIV col1 AS col1 FROM tab1 cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-9384
SELECT + col2 / col1 AS col1 FROM tab1 cor0
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT DISTINCT + col2 DIV - ( + col0 ) AS col2 FROM tab0 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + col2 / - ( + col0 ) AS col2 FROM tab0 cor0
----
-1
0

query I rowsort
SELECT + + 41 * col0 FROM tab1 AS cor0
----
123
2624
3280

query I rowsort
SELECT - 76 * - col1 + col0 * ( - col0 + - col2 * col1 ) FROM tab2 AS cor0
----
-121252
-3552
-55983

query I rowsort
SELECT DISTINCT + 70 * + cor0.col1 * + col0 FROM tab0 AS cor0
----
144480
237650
566930

onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT DISTINCT + 93 DIV - col0 FROM tab1 AS cor0
----
-1
-31

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + 93 / - col0 FROM tab1 AS cor0
----
-1
-31

query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab0 cor0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9391
SELECT + CAST( col1 AS SIGNED ) * - col1 + + CAST( 14 + - col0 AS SIGNED ) DIV cor0.col0 AS col0 FROM tab1 cor0
----
-100
-169
-673

skipif mysql # not compatible
query I rowsort label-9391
SELECT + CAST ( col1 AS INTEGER ) * - col1 + + CAST ( 14 + - col0 AS INTEGER ) / cor0.col0 AS col0 FROM tab1 cor0
----
-100
-169
-673

query I rowsort
SELECT ALL + + col0 * 86 FROM tab0 AS cor0
----
2064
3010
7654

query I rowsort
SELECT DISTINCT - ( - 38 ) + col2 FROM tab0 AS cor0
----
120
39
71

query I rowsort
SELECT ALL cor0.col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT + - 85 * + col2 + + cor0.col1 FROM tab0 AS cor0
----
-2719
-6879
12

query I rowsort
SELECT DISTINCT - - col0 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT - - col0 * - 15 + col0 * - ( - col1 ) FROM tab0 AS cor0
----
1704
2870
6764

query I rowsort
SELECT DISTINCT 25 * cor0.col2 + - col1 FROM tab1 AS cor0
----
1324
1415
2387

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 75 col2 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT 18 * col0 * + col1 FROM tab2 AS cor0
----
24174
3906
82836

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9401
SELECT ALL + CAST( - 86 * col0 AS SIGNED ) col0 FROM tab1
----
-258
-5504
-6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL + CAST ( - 86 * col0 AS INTEGER ) col0 FROM tab1
----
-258
-5504
-6880

query I rowsort
SELECT + 15 * - col0 AS col1 FROM tab0
----
-1335
-360
-525

query I rowsort
SELECT - 34 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT + - 79 DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9404
SELECT + - 79 / col2 AS col1 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT + + cor0.col1 + + 41 FROM tab1, tab2 AS cor0
----
9 values hashing to f07164c011d87af71d6328a0e1e51def

query I rowsort
SELECT + 70 + - col2 * col0 FROM tab1 cor0
----
-3578
-7610
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + col1 * col2 + - ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT + col1 * cor0.col0 + + 34 AS col1 FROM tab2 AS cor0
----
1377
251
4636

query I rowsort
SELECT ALL 93 * 28 + - col2 * col0 FROM tab2
----
-398
2415
576

query I rowsort
SELECT 16 * + tab0.col1 * - col0 FROM tab0
----
-129584
-33024
-54320

query I rowsort
SELECT - 18 + col1 AS col0 FROM tab2
----
-1
13
41

query I rowsort
SELECT 84 + col1 + cor0.col2 FROM tab2 AS cor0
----
139
142
169

query I rowsort
SELECT col2 + - cor0.col2 * - cor0.col1 * + col1 FROM tab2 cor0
----
11020
25974
90532

query I rowsort
SELECT DISTINCT ( col2 ) * col0 + col2 * col0 AS col0 FROM tab1
----
15360
324
7296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9416
SELECT CAST( NULL AS SIGNED ) * - 51 + - col2 + ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9416
SELECT CAST ( NULL AS INTEGER ) * - 51 + - col2 + ( + col2 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9417
SELECT DISTINCT + col2 * CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + col2 * CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9418
SELECT ALL - col1 + 2 DIV col1 - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9418
SELECT ALL - col1 + 2 / col1 - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9419
SELECT - col0 + col0 DIV 50 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-9419
SELECT - col0 + col0 / 50 AS col1 FROM tab2 AS cor0
----
-7
-77
-78

query I rowsort
SELECT DISTINCT + col2 + 76 FROM tab1 AS cor0
----
130
133
172

query I rowsort
SELECT ALL col1 * cor0.col1 * + 88 + - col2 FROM tab2 AS cor0
----
25394
306302
84541

query I rowsort
SELECT DISTINCT + col2 * + col0 - - col2 * + col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT DISTINCT - col0 + 70 * cor0.col0 FROM tab0 cor0
----
1656
2415
6141

query I rowsort
SELECT ALL + - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9425
SELECT DISTINCT - col1 + + CAST( - col0 + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT - col1 + + CAST ( - col0 + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9426
SELECT ALL col2 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + cor0.col2 ) FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

query I rowsort
SELECT col1 + 64 * - col2 AS col1 FROM tab1 AS cor0
----
-3430
-3638
-6131

query I rowsort
SELECT - + col0 * - ( - 35 ) FROM tab2 cor0
----
-245
-2730
-2765

query I rowsort
SELECT cor0.col0 * - col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col1 * 40 AS col1 FROM tab1 AS cor0
----
1040
400
520

query I rowsort
SELECT ALL - col2 * col2 + 8 FROM tab1 AS cor0
----
-2908
-3241
-9208

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9434
SELECT + + CAST( + 91 AS SIGNED ) col1 FROM tab0 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9434
SELECT + + CAST ( + 91 AS INTEGER ) col1 FROM tab0 AS cor0
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 79 ) + cor0.col1 col2 FROM tab2 AS cor0
----
-20
-48
-62

query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 + ( col0 ) FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL - + 40 * col2 FROM tab1 AS cor0
----
-2160
-2280
-3840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9438
SELECT ALL + CAST( - 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + CAST ( - 82 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col0 FROM tab1, tab0 AS cor0
----
-7

query I rowsort
SELECT ALL 73 + - 9 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT + tab2.col2 * + col0 AS col1 FROM tab2
----
189
2028
3002

query I rowsort
SELECT col2 * + col2 + col1 * - col2 FROM tab2
----
-108
-858
798

query I rowsort
SELECT DISTINCT + col2 * col0 * col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT col2 * + cor0.col2 + + col1 AS col1 FROM tab0 AS cor0
----
1175
6815
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + + 53 * + 65 col0 FROM tab1 AS cor0
----
-2955
-651
3436

onlyif mysql # use DIV operator for integer division
query I rowsort label-9446
SELECT DISTINCT col0 DIV tab0.col2 + + col0 FROM tab0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT col0 / tab0.col2 + + col0 FROM tab0
----
24
70
90

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab0, tab2 AS cor0
----
-83

query I rowsort
SELECT 97 + col2 FROM tab2
----
123
124
135

query I rowsort
SELECT + col1 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT - + col1 + col0 AS col0 FROM tab2 cor0
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9451
SELECT - tab0.col1 * col1 + + CAST( NULL AS SIGNED ) - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9451
SELECT - tab0.col1 * col1 + + CAST ( NULL AS INTEGER ) - col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - tab1.col1 * - ( + col1 ) + - col1 FROM tab1
----
147
252
704

query I rowsort
SELECT ALL + 32 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 col1 FROM tab1, tab2 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL - col1 + + 21 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1180
340
620

query I rowsort
SELECT DISTINCT - + col2 * + 99 * + cor0.col1 FROM tab1 AS cor0
----
-123552
-138996
-56430

query I rowsort
SELECT ALL - col2 + col2 * col0 * col2 FROM tab0 AS cor0
----
26103
34
598354

query I rowsort
SELECT DISTINCT + - col1 * ( + col0 ) AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 36 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 040bacab2e1ccbab3ba644c44345ab1f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9460
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + ( 28 ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
15
18
2

query I rowsort
SELECT - 18 * - col0 FROM tab1 AS cor0
----
1152
1440
54

query I rowsort
SELECT + - 33 AS col2 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT - ( + col0 ) * 79 + 16 * - col2 FROM tab1 AS cor0
----
-1101
-5968
-7856

query I rowsort
SELECT + ( col2 ) * - 31 AS col2 FROM tab0 cor0
----
-1023
-2542
-31

query I rowsort
SELECT col0 * col2 + + 63 * col2 * col2 AS col2 FROM tab2 AS cor0
----
44616
46116
93974

query I rowsort
SELECT + - cor0.col1 - - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 + - col0 - ( ( col0 ) + 33 ) AS col2 FROM tab2 AS cor0
----
-215
-229
-74

query I rowsort
SELECT 30 * col1 + + 81 * 79 AS col1 FROM tab1 cor0
----
6699
6789
7179

query I rowsort
SELECT col0 + + col0 * 31 * - 37 FROM tab0 AS cor0
----
-101994
-27504
-40110

onlyif mysql # use DIV operator for integer division
query I rowsort label-9471
SELECT ( + col0 ) * col0 DIV - 85 AS col1 FROM tab2
----
-71
-73
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT ( + col0 ) * col0 / - 85 AS col1 FROM tab2
----
-71
-73
0

query I rowsort
SELECT ALL 19 + col1 * + 76 * + col0 FROM tab2 AS cor0
----
102087
16511
349771

query I rowsort
SELECT DISTINCT cor0.col0 * col1 + - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL + col0 + col0 - + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-512
-72
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + + col2 * col0 col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT tab1.col0 + + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1a631b5353963ab6921ce8264d786b8b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT ALL + col1 DIV col1 - + col2 * + col2 FROM tab0 AS cor0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + col1 / col1 - + col2 * + col2 FROM tab0 AS cor0
----
-1088
-6723
0

query I rowsort
SELECT ALL - col2 * + ( - col0 * col2 ) AS col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT + 18 * + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
1581
1720
1747

query I rowsort
SELECT DISTINCT + col2 * ( col0 ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + 33 * + col0 FROM tab0
----
1155
2937
792

query I rowsort
SELECT col2 * col1 * col2 AS col1 FROM tab2
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-9484
SELECT ALL 25 + col1 DIV - col0 + - col1 FROM tab2 AS cor0
----
-10
-34
8

skipif mysql # not compatible
query I rowsort label-9484
SELECT ALL 25 + col1 / - col0 + - col1 FROM tab2 AS cor0
----
-10
-34
8

query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT DISTINCT + 83 - - col2 FROM tab1 AS cor0
----
137
140
179

query I rowsort
SELECT - 54 * col0 AS col2 FROM tab0 AS cor0
----
-1296
-1890
-4806

query I rowsort
SELECT - - 2 FROM tab1 cor0
----
2
2
2

query I rowsort
SELECT DISTINCT - 87 * col0 FROM tab0 AS cor0
----
-2088
-3045
-7743

query I rowsort
SELECT ALL + + 38 * cor0.col0 FROM tab1 AS cor0
----
114
2432
3040

query I rowsort
SELECT ALL - - col0 * col2 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-3298
-664027
-68026

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 23 - cor0.col0 FROM tab0 AS cor0
----
-112
-47
-58

query I rowsort
SELECT ALL - ( col2 ) + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-9495
SELECT ALL - 16 DIV col0 + + col1 FROM tab1 AS cor0
----
10
13
21

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL - 16 / col0 + + col1 FROM tab1 AS cor0
----
10
13
21

query I rowsort
SELECT ALL + 11 + col2 + col1 AS col1 FROM tab0 AS cor0
----
109
130
184

query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT ( col0 ) <> col0 / + col2
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * + col0 col1 FROM tab2
----
-6143
-6258
-80

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9500
SELECT ALL + tab0.col2 DIV + col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9500
SELECT ALL + tab0.col2 / + col2 AS col1 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9501
SELECT DISTINCT tab2.col0 * col0 DIV col0 AS col0 FROM tab2
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9501
SELECT DISTINCT tab2.col0 * col0 / col0 AS col0 FROM tab2
----
7
78
79

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 - col2 NOT IN ( - col0 * col0 - + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT col0 * col2 + - col0 DIV - col1 FROM tab2
----
189
2029
3006

skipif mysql # not compatible
query I rowsort label-9503
SELECT col0 * col2 + - col0 / - col1 FROM tab2
----
189
2029
3006

query I rowsort
SELECT tab1.col0 FROM tab1 WHERE NULL > - col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9505
SELECT ALL + tab1.col2 DIV - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9505
SELECT ALL + tab1.col2 / - tab1.col1 AS col2 FROM tab1
----
-2
-5
-7

query I rowsort
SELECT col1 + + col1 + - col2 AS col0 FROM tab2
----
-4
35
92

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 - - col2 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col1 col0 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT - + col1 * + col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-9510
SELECT - + col1 * + col2 / + col2 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 + col0 * + cor0.col2 FROM tab2 AS cor0
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT + col1 DIV cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-84
-90
0

skipif mysql # not compatible
query I rowsort label-9512
SELECT + col1 / cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-84
-90
0

query I rowsort
SELECT - col0 * col2 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT - cor0.col2 + + cor0.col2 + - col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NOT NULL >= ( col0 )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9516
SELECT CAST( - col2 AS SIGNED ) * col2 AS col0 FROM tab1
----
-2916
-3249
-9216

skipif mysql # not compatible
query I rowsort label-9516
SELECT CAST ( - col2 AS INTEGER ) * col2 AS col0 FROM tab1
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col1 FROM tab2
----
14
156
158

onlyif mysql # use DIV operator for integer division
query I rowsort label-9518
SELECT DISTINCT + 84 DIV - col2 + col2 + - col1 * 67 FROM tab1
----
-1689
-614
-775

skipif mysql # not compatible
query I rowsort label-9518
SELECT DISTINCT + 84 / - col2 + col2 + - col1 * 67 FROM tab1
----
-1689
-614
-775

query I rowsort
SELECT DISTINCT - 62 * - col2 + + col1 * + ( col1 ) FROM tab2
----
2635
2645
5093

query I rowsort
SELECT - col1 * - 62 - col0 * + tab0.col0 FROM tab0
----
-2279
4756
4789

query I rowsort
SELECT col2 + - col0 + col0 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT ALL ( + tab1.col0 ) * + col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT 70 FROM tab2, tab0 cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT + 71 * + col1 AS col0 FROM tab0 AS cor0
----
6106
6461
6887

skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - col0 AS REAL ) * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT + ( col0 ) * + 89 AS col2 FROM tab1 AS cor0
----
267
5696
7120

query I rowsort
SELECT + col1 + cor0.col1 + col2 * col0 FROM tab1 AS cor0
----
214
3668
7706

query I rowsort
SELECT col1 * + col1 + + ( ( col2 ) ) AS col1 FROM tab0 cor0
----
7429
8363
9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT ALL + 39 * tab0.col0 FROM tab0
----
1365
3471
936

query I rowsort
SELECT DISTINCT col2 * col2 * + col0 - 30 AS col0 FROM tab2 AS cor0
----
114046
5073
52698

query I rowsort
SELECT ALL - 36 * + cor0.col2 FROM tab0 AS cor0
----
-1188
-2952
-36

query I rowsort
SELECT DISTINCT col2 * + col0 - ( col0 ) FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT - cor0.col1 + cor0.col0 * ( + col1 + + col0 ) FROM tab0 AS cor0
----
15929
2554
4523

query I rowsort
SELECT DISTINCT + 39 + + col2 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT DISTINCT - col1 + col0 * + ( col2 ) FROM tab0 AS cor0
----
-62
706
7207

query I rowsort
SELECT - cor0.col0 + + col2 * col0 AS col1 FROM tab1 cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col2 col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL cor1.col0 * 40 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 750312b6305a60577c48dc1cf9f578af

query I rowsort
SELECT DISTINCT tab1.col2 - + ( + col2 ) * col1 AS col2 FROM tab1
----
-1152
-1350
-513

query I rowsort
SELECT - + col0 + ( + col2 ) FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT cor0.col2 * ( + col2 ) AS col2 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 6 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT - 52 - - col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1586
-698
-889

query I rowsort
SELECT DISTINCT - col0 * + 57 AS col1 FROM tab0
----
-1368
-1995
-5073

query I rowsort
SELECT 54 + tab1.col1 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 3c4109757b862d7ca1eff7555ff515b6

query I rowsort
SELECT cor0.col0 - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - col1 col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col2 * + col1 + cor0.col0 * col1 FROM tab2 cor0
----
1054
1989
6136

query I rowsort
SELECT DISTINCT col0 + col2 * + col1 FROM tab2 AS cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9553
SELECT ALL + - CAST( + 3 AS SIGNED ) FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-9553
SELECT ALL + - CAST ( + 3 AS INTEGER ) FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT - 34 * - 95 + - col0 AS col2 FROM tab0 AS cor0
----
3141
3195
3206

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 56 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9555
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 56 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col1 + 52 * col1 AS col0 FROM tab2 AS cor0
----
1643
3127
901

onlyif mysql # use DIV operator for integer division
query I rowsort label-9558
SELECT + + 42 * col0 DIV col1 - 12 * col0 col0 FROM tab0 AS cor0
----
-1027
-277
-405

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9558
SELECT + + 42 * col0 / col1 - 12 * col0 col0 FROM tab0 AS cor0
----
-1027
-277
-405

query I rowsort
SELECT 10 * + 6 FROM tab0, tab2, tab2 AS cor0, tab1 cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349

query I rowsort
SELECT 10 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
-16
-3
0

query I rowsort
SELECT ALL + + 71 AS col2 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT ALL cor0.col0 + 24 * + col0 AS col2 FROM tab2 cor0
----
175
1950
1975

query I rowsort
SELECT DISTINCT + 82 + cor0.col0 * col0 FROM tab2 AS cor0
----
131
6166
6323

query I rowsort
SELECT DISTINCT 80 - + tab1.col0 AS col2 FROM tab1
----
0
16
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT DISTINCT + ( + 14 ) DIV - col0 + col0 * col0 col2 FROM tab1
----
4096
5
6400

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9565
SELECT DISTINCT + ( + 14 ) / - col0 + col0 * col0 col2 FROM tab1
----
4096
5
6400

query I rowsort
SELECT ALL 25 * col1 * col2 + col0 * + col2 FROM tab0
----
193848
2460
71742

query I rowsort
SELECT DISTINCT - cor0.col2 + 41 * - col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT ALL - 7 * - col0 FROM tab0 AS cor0
----
168
245
623

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9569
SELECT + CAST( 57 AS SIGNED ) FROM tab2 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-9569
SELECT + CAST ( 57 AS INTEGER ) FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT ALL col0 + col2 + - col1 FROM tab1
----
111
163
31

query I rowsort
SELECT DISTINCT - col0 * + col1 - col2 FROM tab1 AS cor0
----
-1136
-132
-697

query I rowsort
SELECT cor0.col2 * 48 AS col0 FROM tab1 AS cor0
----
2592
2736
4608

query I rowsort
SELECT DISTINCT - + cor0.col2 * ( - 88 * col0 ) FROM tab2 AS cor0
----
16632
178464
264176

query I rowsort
SELECT ALL - cor0.col2 * + cor0.col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 8c9123b78bd6939e7be59da36c5c5c77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT ALL + col1 / - CAST( NULL AS DECIMAL ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + col1 / - CAST ( NULL AS REAL ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9577
SELECT ALL + + col2 + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL + + col2 + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9578
SELECT ALL - col1 * - CAST( NULL AS DECIMAL ) - - 86 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9578
SELECT ALL - col1 * - CAST ( NULL AS REAL ) - - 86 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 66 AS col2 FROM tab1 cor0
----
130
146
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9580
SELECT DISTINCT col0 DIV col2 + 57 FROM tab1 AS cor0
----
57
58

skipif mysql # not compatible
query I rowsort label-9580
SELECT DISTINCT col0 / col2 + 57 FROM tab1 AS cor0
----
57
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab2 AS cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL - ( cor0.col0 ) * 2 FROM tab0 AS cor0
----
-178
-48
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9584
SELECT col2 * col1 DIV 51 FROM tab0 AS cor0
----
1
146
55

skipif mysql # not compatible
query I rowsort label-9584
SELECT col2 * col1 / 51 FROM tab0 AS cor0
----
1
146
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-9585
SELECT DISTINCT + col2 DIV - col1 + + cor0.col2 FROM tab1 cor0
----
52
89

skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT + col2 / - col1 + + cor0.col2 FROM tab1 cor0
----
52
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL - col0 * + col0 + - 35 * - 94 FROM tab0
----
-4631
2065
2714

onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT - col0 DIV + 84 col1 FROM tab0 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9588
SELECT - col0 / + 84 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - cor0.col1 + 30 FROM tab1 AS cor0
----
17
20
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9590
SELECT ALL col2 * 81 + + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
4375
4618
7777

skipif mysql # not compatible
query I rowsort label-9590
SELECT ALL col2 * 81 + + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
4375
4618
7777

query I rowsort
SELECT ALL + ( + col1 ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + + cor0.col0 col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - - 6 * cor0.col1 + col2 AS col2 FROM tab0 cor0
----
549
583
628

query I rowsort
SELECT DISTINCT - ( 81 * - col1 ) FROM tab0
----
6966
7371
7857

query I rowsort
SELECT DISTINCT col0 * - 46 + - col0 + + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-378
-9750
-9954

query I rowsort
SELECT ALL + ( - 57 ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd

onlyif mysql # use DIV operator for integer division
query I rowsort label-9598
SELECT + 1 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9598
SELECT + 1 / + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - 81 * - col2 AS col0 FROM tab2 AS cor0
----
2106
2187
3078

query I rowsort
SELECT DISTINCT + 31 FROM tab2, tab1, tab1 AS cor0, tab0
----
31

query I rowsort
SELECT - ( 79 ) AS col0 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

query I rowsort
SELECT ALL ( - col2 + tab0.col0 ) FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL - cor1.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab2
----
8
8
8

query I rowsort
SELECT ( col2 + + col1 ) FROM tab2
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 45 * cor0.col2 col1 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT + tab0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT - - col1 + - col1 * - col0 AS col1 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT col0 + ( col0 ) * col2 + - col1 FROM tab2
----
165
2047
3064

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 71 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT + col2 + + 7 FROM tab1
----
103
61
64

query I rowsort
SELECT ALL col2 * 26 AS col1 FROM tab0
----
2132
26
858

query I rowsort
SELECT - 84 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT DISTINCT + col2 * + 27 AS col1 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT ALL - 62 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL - ( - col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT 46 * - col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1137
-1211
-1731

query I rowsort
SELECT DISTINCT ( - col0 ) + col2 * ( col2 ) FROM tab1 cor0
----
2913
3185
9136

query I rowsort
SELECT + ( col0 ) * col0 * - col0 + + col1 FROM tab0 AS cor0
----
-13738
-42778
-704878

query I rowsort
SELECT - + col2 * col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * - col1 col0 FROM tab1
----
1040
640
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT + - col2 + CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9622
SELECT + - col2 + CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT DISTINCT + cor0.col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT + cor0.col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col0 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT tab1.col1 FROM tab1, tab2, tab1 cor0, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c

query I rowsort
SELECT 97 * col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT + 29 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT - + col2 * + col0 * + ( + cor0.col2 ) FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + - col0 * col1 + - col2 * col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT ALL col2 + 45 FROM tab1
----
102
141
99

query I rowsort
SELECT - - col0 - 20 AS col1 FROM tab1 cor0
----
-17
44
60

query I rowsort
SELECT DISTINCT col0 - 47 FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT DISTINCT - - col0 * 88 AS col1 FROM tab1 AS cor0
----
264
5632
7040

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9634
SELECT ALL cor0.col0 * + CAST( NULL AS SIGNED ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9634
SELECT ALL cor0.col0 * + CAST ( NULL AS INTEGER ) + + cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9636
SELECT - col0 + + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

skipif mysql # not compatible
query I rowsort label-9636
SELECT - col0 + + col1 / col1 AS col0 FROM tab1 AS cor0
----
-2
-63
-79

query I rowsort
SELECT DISTINCT - col2 * - col2 * + cor0.col2 FROM tab0 AS cor0
----
1
35937
551368

query I rowsort
SELECT ALL - ( + tab2.col0 ) * col1 FROM tab2
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9639
SELECT - + CAST( - cor0.col0 AS SIGNED ) + col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
132
2862
7551

skipif mysql # not compatible
query I rowsort label-9639
SELECT - + CAST ( - cor0.col0 AS INTEGER ) + col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 2 col1 FROM tab0 AS cor0
----
172
182
194

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col0 AS REAL ) * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 90 * - col0 AS col2 FROM tab2 AS cor0
----
-630
-7020
-7110

query I rowsort
SELECT - 89 + ( col2 ) * + col1 FROM tab2 cor0
----
1445
557
748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 65 col1 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - + 49 FROM tab0 cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + + col2 + + col1 * + 11 AS col0 FROM tab1 AS cor0
----
167
239
340

query I rowsort
SELECT ALL col2 * col0 + 58 FROM tab0 AS cor0
----
7356
850
93

query I rowsort
SELECT + cor0.col0 + + col1 * - ( col1 + + col1 ) * col0 FROM tab2 AS cor0
----
-13447
-45583
-542958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 40 * col0 col1 FROM tab0
----
11659
3024
4795

query I rowsort
SELECT cor0.col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + col2 * - col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT DISTINCT col1 * col1 * + col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
22910
271596
6734

query I rowsort
SELECT ALL + col2 + col0 * - ( - col2 ) AS col1 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT cor0.col2 * + 51 FROM tab2 cor0
----
1326
1377
1938

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT - col1 * + col2 + - col1 * + col2 - + CAST( + col1 * + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1581
-2635
-6549

skipif mysql # not compatible
query I rowsort label-9655
SELECT - col1 * + col2 + - col1 * + col2 - + CAST ( + col1 * + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1581
-2635
-6549

query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + tab2.col2 * tab2.col2 - 39 FROM tab2
----
1405
637
690

query I rowsort
SELECT DISTINCT 93 + 47 FROM tab0 AS cor0
----
140

query I rowsort
SELECT ALL + + 64 FROM tab2 cor0
----
64
64
64

query I rowsort
SELECT DISTINCT - + 9 AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 8 + cor0.col1 FROM tab1 AS cor0
----
18
21
34

query I rowsort
SELECT - col1 * col0 * + col2 FROM tab2 AS cor0
----
-119652
-51034
-5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT DISTINCT + cor1.col1 DIV cor1.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9664
SELECT DISTINCT + cor1.col1 / cor1.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
87
92
98

query I rowsort
SELECT ALL + 76 + + col1 * + col2 AS col2 FROM tab0 cor0
----
173
2914
7538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab1 AS cor0
----
-3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT DISTINCT + ( tab0.col1 ) + col0 + col1 DIV col1 FROM tab0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT + ( tab0.col1 ) + col0 + col1 / col1 FROM tab0
----
111
133
181

query I rowsort
SELECT 70 * col1 + - col1 * col2 FROM tab1
----
-338
130
416

query I rowsort
SELECT ALL 54 * col2 FROM tab0 AS cor0
----
1782
4428
54

query I rowsort
SELECT - ( - col1 ) * - col2 * col1 - - col2 * + tab2.col2 AS col2 FROM tab2
----
-25218
-89830
-9538

query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 col1 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col2 * 74 + - col1 AS col2 FROM tab0
----
-23
2356
5977

query I rowsort
SELECT ALL - 36 * 55 FROM tab0, tab1 cor0
----
9 values hashing to 5ca027b3c643230fee0c44ca2419a62f

query I rowsort
SELECT ALL - - col1 * ( - 75 ) FROM tab1 AS cor0
----
-1950
-750
-975

query I rowsort
SELECT ALL + 53 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-109
-3595
-7627

query I rowsort
SELECT ALL cor0.col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9678
SELECT ALL + CAST( NULL AS DECIMAL ) * - 36 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL + CAST ( NULL AS REAL ) * - 36 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 89 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + col2 * + 71 AS col2 FROM tab1 AS cor0
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col1 + col0 col2 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT - - col1 + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL + 51 * + col0 FROM tab0 AS cor0
----
1224
1785
4539

query I rowsort
SELECT + col1 + col2 * ( 50 ) + + col1 AS col1 FROM tab2 AS cor0
----
1412
1418
1934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col2 col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT 70 * col0 * + col1 AS col2 FROM tab0 cor0
----
144480
237650
566930

query I rowsort
SELECT + - 5 FROM tab0, tab0 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to cfe53b245e67951b626206d3d227d771

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9688
SELECT + + col1 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9688
SELECT + + col1 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 17 * + cor0.col2 + - cor0.col1 * + col1 col2 FROM tab0 AS cor0
----
-6749
-6796
-9295

query I rowsort
SELECT DISTINCT col0 + + 10 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT DISTINCT + col1 + - col1 * col1 * - tab0.col2 + col1 FROM tab0
----
244240
679224
9603

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9692
SELECT - tab0.col0 * - col2 + + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT - tab0.col0 * - col2 + + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 99 * col2 - + ( - 64 ) FROM tab1
----
-5282
-5579
-9440

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * - col2 col1 FROM tab1 cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT - 21 + + col0 AS col2 FROM tab1
----
-18
43
59

query I rowsort
SELECT DISTINCT 60 * tab2.col0 + col0 + col1 AS col1 FROM tab2
----
458
4817
4836

query I rowsort
SELECT - cor0.col0 + - ( + col2 ) FROM tab2 AS cor0
----
-104
-117
-34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9698
SELECT DISTINCT + col2 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-9698
SELECT DISTINCT + col2 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT - + 20 * 80 + - tab0.col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to da306e82e40af823cb6f52b36f09960b

query I rowsort
SELECT DISTINCT col2 + col2 * col0 AS col1 FROM tab1 AS cor0
----
216
3705
7776

query I rowsort
SELECT - 2 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1091
-3
-6726

onlyif mysql # use DIV operator for integer division
query I rowsort label-9702
SELECT col2 DIV - ( col0 ) AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9702
SELECT col2 / - ( col0 ) AS col2 FROM tab2 AS cor0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col2 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT tab0.col2 * - 62 AS col1 FROM tab0
----
-2046
-5084
-62

query I rowsort
SELECT + 88 - - col0 AS col1 FROM tab1 AS cor0
----
152
168
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 * col1 col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT DISTINCT 2 * col1 AS col2 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL 58 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query I rowsort
SELECT DISTINCT 61 + 96 FROM tab0
----
157

query I rowsort
SELECT DISTINCT col0 * tab2.col1 * + tab2.col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-47

query I rowsort
SELECT 62 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT DISTINCT + cor0.col1 - - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT - + col1 DIV col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-9714
SELECT - + col1 / col0 + col2 AS col2 FROM tab2 AS cor0
----
23
26
38

query I rowsort
SELECT ALL - + col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT - col1 - + col1 * - col0 AS col0 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - 42 * - col0 + + col2 + - col1 FROM tab2 AS cor0
----
290
3243
3339

query I rowsort
SELECT - 76 * - col1 * 31 + cor0.col2 FROM tab2 AS cor0
----
139030
40090
73063

query I rowsort
SELECT DISTINCT 40 + col2 * - ( - col2 * col1 + - 26 ) FROM tab2 AS cor0
----
23341
25576
40600

query I rowsort
SELECT + cor0.col0 * + cor0.col1 - col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT DISTINCT 58 * ( cor1.col1 ) DIV + ( - 44 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-113
-119
-127

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT 58 * ( cor1.col1 ) / + ( - 44 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-113
-119
-127

onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT ALL 6 * col0 DIV col2 + 5 * cor0.col0 AS col0 FROM tab0 AS cor0
----
124
385
451

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL 6 * col0 / col2 + 5 * cor0.col0 AS col0 FROM tab0 AS cor0
----
124
385
451

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col2 col2 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT col0 FROM tab0 WHERE NOT + col1 * + col0 IN ( col2 + + col0 )
----
24
35
89

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 * - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + tab2.col1 * + col1 - - col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT ALL col2 * + col1 + - 43 + + col0 AS col2 FROM tab2 AS cor0
----
1569
682
801

query I rowsort
SELECT ALL - ( + col2 ) + - col2 * + cor0.col2 * col1 FROM tab1 cor0
----
-119904
-32547
-75870

query I rowsort
SELECT ALL + + col1 * col0 + + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT 70 * + col1 FROM tab1
----
1820
700
910

query I rowsort
SELECT ALL - 53 * - cor0.col1 AS col2 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 7f79fbcc4b7351e80bc0f1b59275e4e9

query I rowsort
SELECT 99 - col0 FROM tab0
----
10
64
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9733
SELECT + - cor0.col1 DIV cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-9733
SELECT + - cor0.col1 / cor0.col2 FROM tab0 AS cor0
----
-1
-2
-97

query I rowsort
SELECT DISTINCT - - col1 + - cor0.col2 * + col1 FROM tab1 cor0
----
-1235
-1378
-560

query I rowsort
SELECT + + col2 * 7 + col1 - + col1 FROM tab1 AS cor0
----
378
399
672

query I rowsort
SELECT DISTINCT col0 + ( - 52 ) FROM tab0 AS cor0
----
-17
-28
37

query I rowsort
SELECT DISTINCT + - cor0.col2 + - 10 FROM tab0 AS cor0
----
-11
-43
-92

query I rowsort
SELECT - - col1 * 31 + cor0.col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-119
124
295

onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT col2 * col1 DIV 41 FROM tab0
----
182
2
69

skipif mysql # not compatible
query I rowsort label-9739
SELECT col2 * col1 / 41 FROM tab0
----
182
2
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-9740
SELECT ALL + col0 DIV - col2 AS col2 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT ALL + col0 / - col2 AS col2 FROM tab0
----
-1
-35
0

query I rowsort
SELECT ALL col2 - + col0 * col0 FROM tab1
----
-4039
-6304
45

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT NULL <> + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 = - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) = ( col0 + col2 * col1 )
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( + col0 ) NOT BETWEEN NULL AND + col2
----
91
97

query I rowsort
SELECT col1 * col1 + - col1 + + col1 * col1 * col2 FROM tab0
----
18721
251378
687232

query I rowsort
SELECT DISTINCT + col2 + col2 + - col1 FROM tab2
----
-7
23
59

query I rowsort
SELECT DISTINCT col2 + col1 + + tab0.col1 * col0 * + tab0.col1 AS col2 FROM tab0
----
177623
329413
737182

query I rowsort
SELECT DISTINCT col1 - + col0 * col2 * - col2 AS col1 FROM tab1
----
207946
737293
8774

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE tab0.col1 < NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT + col2 - col1 * + col1 AS col0 FROM tab2
----
-251
-3455
-934

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT ALL col0 DIV col0 - - col0 * col0 FROM tab2
----
50
6085
6242

skipif mysql # not compatible
query I rowsort label-9754
SELECT ALL col0 / col0 - - col0 * col0 FROM tab2
----
50
6085
6242

query I rowsort
SELECT + col0 * col0 AS col1 FROM tab1 WHERE NOT col2 <> ( - col2 )
----

query I rowsort
SELECT - col1 * + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col1 + - col2 )
----

query I rowsort
SELECT - col0 * + col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + col2 * col2 col0 FROM tab2
----
2787
5278
946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 col1 FROM tab2 WHERE NULL IN ( col0 * col1 + + tab2.col1 )
----

query I rowsort
SELECT DISTINCT col0 - - col1 * col1 FROM tab0
----
7420
8370
9444

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) IN ( col1 )
----

query I rowsort
SELECT col1 + - col1 * - col2 * - col1 + - col1 AS col2 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT - ( - tab2.col0 * + col0 ) + ( col0 ) FROM tab2
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT col0 DIV 47 + tab1.col1 AS col1 FROM tab1
----
11
14
26

skipif mysql # not compatible
query I rowsort label-9765
SELECT col0 / 47 + tab1.col1 AS col1 FROM tab1
----
11
14
26

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9766
SELECT CAST( NULL AS DECIMAL ) + + 38 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9766
SELECT CAST ( NULL AS REAL ) + + 38 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 10 FROM tab0, tab0 cor0
----
10

query I rowsort
SELECT col2 - + 55 * col0 * col2 AS col2 FROM tab2
----
-10368
-111514
-165072

query I rowsort
SELECT ( - 60 ) + + col2 FROM tab1
----
-3
-6
36

query I rowsort
SELECT + 73 * tab1.col1 + - col0 FROM tab1
----
1895
666
869

query I rowsort
SELECT DISTINCT ( 13 ) + + col0 FROM tab0
----
102
37
48

query I rowsort
SELECT DISTINCT - col0 * + 12 AS col2 FROM tab1 AS cor0
----
-36
-768
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + tab0.col0 col2 FROM tab0
----
-9
34
7

query I rowsort
SELECT cor0.col1 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab1.col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT cor0.col2 * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL - cor0.col1 + + col1 * col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT ALL - + col2 * - col0 * 99 AS col1 FROM tab2 AS cor0
----
18711
200772
297198

query I rowsort
SELECT ALL + - 98 - col0 * col2 FROM tab0 AS cor0
----
-133
-7396
-890

query I rowsort
SELECT ALL + + col2 + - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL - 81 + col1 * - 91 - col0 AS col0 FROM tab2 AS cor0
----
-1707
-2909
-5528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9782
SELECT ALL 25 * + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT ALL 25 * + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col1 ) + + col2 * - 61 AS col0 FROM tab2 AS cor0
----
-1645
-1678
-2335

query I rowsort
SELECT DISTINCT + 89 * col1 AS col0 FROM tab1 AS cor0
----
1157
2314
890

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col1 col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + 43 * - cor0.col0 + col2 * col2 + col0 AS col2 FROM tab1 AS cor0
----
2790
561
5856

query I rowsort
SELECT DISTINCT + col1 + + 17 + - col2 FROM tab2
----
-4
21
50

query I rowsort
SELECT - + col2 + col2 * col2 FROM tab1 AS cor0
----
2862
3192
9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT DISTINCT col1 DIV 87 AS col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT col1 / 87 AS col0 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT - + col1 * 23 FROM tab1 AS cor0
----
-230
-299
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col1 * + ( + col2 ) col2 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-9792
SELECT col2 + + ( + col1 ) DIV col1 AS col1 FROM tab0 cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9792
SELECT col2 + + ( + col1 ) / col1 AS col1 FROM tab0 cor0
----
2
34
83

query I rowsort
SELECT - + col1 + ( col1 ) * col1 - + 48 AS col1 FROM tab1 AS cor0
----
108
42
602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - 50 col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT col0 * + col1 + + cor0.col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + - cor0.col1 * - 25 AS col1 FROM tab1 AS cor0
----
250
325
650

query I rowsort
SELECT - 35 * cor0.col1 FROM tab2 AS cor0
----
-1085
-2065
-595

query I rowsort
SELECT ALL + ( ( - col1 ) ) + col0 * - col1 AS col0 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT DISTINCT + 61 * 15 * - col1 FROM tab1 AS cor0
----
-11895
-23790
-9150

query I rowsort
SELECT ALL + 48 * col1 AS col2 FROM tab2 AS cor0
----
1488
2832
816

query I rowsort
SELECT DISTINCT col0 + - ( + col1 ) FROM tab1
----
-23
54
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-9802
SELECT - + ( cor0.col1 ) DIV - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9802
SELECT - + ( cor0.col1 ) / - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + + ( - cor0.col1 ) * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT ALL - ( 14 ) FROM tab0 cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - - cor0.col0 + + col2 * - col2 FROM tab2 cor0
----
-1365
-598
-722

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9806
SELECT DISTINCT + CAST( col2 AS SIGNED ) + col2 FROM tab1
----
108
114
192

skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + col2 FROM tab1
----
108
114
192

onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT DISTINCT ( col2 ) DIV - col0 + + col1 AS col0 FROM tab2
----
17
28
59

skipif mysql # not compatible
query I rowsort label-9807
SELECT DISTINCT ( col2 ) / - col0 + + col1 AS col0 FROM tab2
----
17
28
59

query I rowsort
SELECT ( 61 ) AS col1 FROM tab0
----
61
61
61

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( cor0.col2 )
----

query I rowsort
SELECT DISTINCT 44 + - col0 AS col1 FROM tab0 AS cor0
----
-45
20
9

query I rowsort
SELECT ALL + + 97 + + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
259
3745
7777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 74 col0 FROM tab0
----
-8
41
73

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9813
SELECT - - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9813
SELECT - - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - cor0.col0 * 36 + col2 FROM tab2 AS cor0
----
-225
-2782
-2806

query I rowsort
SELECT ALL col0 * ( col1 ) * - col1 + + col1 * col1 FROM tab2
----
-22542
-268037
-5766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 col1 FROM tab2 AS cor0
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + - ( 77 ) * - col1 + - col0 - cor0.col1 * + cor0.col2 * + cor0.col2 FROM tab2 AS cor0
----
-20219
-23318
-35419

query I rowsort
SELECT ALL - ( + 27 ) AS col1 FROM tab2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - col1 + col0 col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT ALL + ( + 86 ) AS col1 FROM tab2 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * + col0 - col1 col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col1 * - 65 + + col1 FROM tab2 AS cor0
----
-1088
-1984
-3776

onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT DISTINCT + col0 * col2 DIV tab2.col1 AS col2 FROM tab2
----
176
34
6

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT + col0 * col2 / tab2.col1 AS col2 FROM tab2
----
176
34
6

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( tab2.col2 + - col1 * tab2.col2 )
----

query I rowsort
SELECT - + col2 + col0 * - col0 - col2 FROM tab1 AS cor0
----
-117
-4210
-6592

query I rowsort
SELECT col0 * col1 - col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT + - col0 * - col0 + col0 * + col2 - col0 FROM tab1 AS cor0
----
14000
168
7680

query I rowsort
SELECT tab1.col0 + + col1 - + col2 AS col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT col2 - - cor0.col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col0 * - col1 * cor0.col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT ALL - tab2.col0 * + col2 * - col2 FROM tab2
----
114076
5103
52728

query I rowsort
SELECT + col1 + col0 + + col0 * col0 FROM tab0
----
1357
686
8101

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 + + col0 * - col0 ) NOT IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT + col0 + cor0.col1 + - col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col1 / col1 AND NULL
----

query I rowsort
SELECT ALL + col1 + - col2 * + col0 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col0 * - col2 * col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col1 * col2 * col1 AS col2 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT + col0 * + col1 + - col0 FROM tab1 AS cor0
----
576
75
960

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 ) = NULL OR NULL NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col2 * ( 87 ) + col2 FROM tab1
----
-4644
-4902
-8256

query I rowsort
SELECT DISTINCT + col1 * 35 AS col0 FROM tab1 AS cor0
----
350
455
910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 col1 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col1 * + col0 + - col2 + - col2 * col0 FROM tab0 AS cor0
----
1239
3359
719

onlyif mysql # use DIV operator for integer division
query I rowsort label-9846
SELECT ALL col1 DIV ( - col0 ) + + col0 FROM tab0 AS cor0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-9846
SELECT ALL col1 / ( - col0 ) + + col0 FROM tab0 AS cor0
----
21
33
88

query I rowsort
SELECT + + col0 * + ( - 77 ) * col1 AS col1 FROM tab1 AS cor0
----
-49280
-6006
-80080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 col0 FROM tab2 cor0
----
1444
676
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col1 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT DISTINCT col0 DIV - 23 + - col0 FROM tab1 cor0
----
-3
-66
-83

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT col0 / - 23 + - col0 FROM tab1 cor0
----
-3
-66
-83

query I rowsort
SELECT ALL - - 40 * col2 AS col0 FROM tab2 AS cor0
----
1040
1080
1520

query I rowsort
SELECT DISTINCT 79 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-10
44
55

query I rowsort
SELECT DISTINCT - + 67 + col0 AS col2 FROM tab1 cor0
----
-3
-64
13

query I rowsort
SELECT + col2 + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT 38 * col0 AS col0 FROM tab1 cor0
----
114
2432
3040

query I rowsort
SELECT - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - 33 AS col1 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT - + 94 DIV - col0 FROM tab0 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9858
SELECT - + 94 / - col0 FROM tab0 cor0
----
1
2
3

query I rowsort
SELECT DISTINCT - - 91 * col0 AS col1 FROM tab0 AS cor0
----
2184
3185
8099

query I rowsort
SELECT ALL + + ( - ( - col0 ) ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9861
SELECT - col2 + col0 DIV col2 FROM tab1
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-9861
SELECT - col2 + col0 / col2 FROM tab1
----
-54
-56
-96

query I rowsort
SELECT - 59 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f

query I rowsort
SELECT + - col2 * + col2 + 73 AS col1 FROM tab1 AS cor0
----
-2843
-3176
-9143

query I rowsort
SELECT DISTINCT - + col2 - col1 * - col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT + - col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT ALL - - col0 + + col2 * col1 FROM tab1 cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-9867
SELECT - 80 DIV - col0 - 25 DIV col0 FROM tab1 AS cor0
----
1
1
18

skipif mysql # not compatible
query I rowsort label-9867
SELECT - 80 / - col0 - 25 / col0 FROM tab1 AS cor0
----
1
1
18

query I rowsort
SELECT DISTINCT - - col0 + col0 * 96 AS col0 FROM tab2 AS cor0
----
679
7566
7663

query I rowsort
SELECT DISTINCT col2 + + col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT 86 + + col1 FROM tab0 cor0
----
172
177
183

query I rowsort
SELECT col0 * + 56 AS col2 FROM tab2
----
392
4368
4424

query I rowsort
SELECT DISTINCT 94 + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT ALL cor0.col0 * + 98 FROM tab1, tab2 AS cor0
----
9 values hashing to e7a44491687dc8ab8596e721e62f3fad

query I rowsort
SELECT ALL col2 + - tab0.col2 * - 19 FROM tab0
----
1640
20
660

query I rowsort
SELECT ALL + - col1 - col1 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT col1 + - ( + col0 + col1 ) * col2 FROM tab1 AS cor0
----
-1540
-4208
-8915

query I rowsort
SELECT ALL ( col2 ) * 78 - + 29 AS col0 FROM tab1
----
4183
4417
7459

onlyif mysql # use DIV operator for integer division
query I rowsort label-9878
SELECT - col2 DIV ( + ( col0 ) * + ( 70 ) ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-9878
SELECT - col2 / ( + ( col0 ) * + ( 70 ) ) + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT cor0.col1 + - ( + col1 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT ALL - - col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9880
SELECT ALL - - col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT DISTINCT + + col0 + 25 FROM tab2 AS cor0
----
103
104
32

query I rowsort
SELECT - col0 + col1 - col0 AS col2 FROM tab2
----
-141
-97
17

query I rowsort
SELECT ALL + 14 * col0 + col2 FROM tab2
----
1118
1144
125

query I rowsort
SELECT DISTINCT col1 + col1 * - 27 FROM tab0
----
-2236
-2366
-2522

query I rowsort
SELECT DISTINCT 72 + col0 AS col0 FROM tab1
----
136
152
75

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9886
SELECT col0 * tab2.col1 / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9886
SELECT col0 * tab2.col1 / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * + col0 - 42 col1 FROM tab0
----
-1386
-2002
-5026

query I rowsort
SELECT ALL 83 - col0 AS col2 FROM tab1
----
19
3
80

query I rowsort
SELECT + col2 + + col1 + + col0 AS col1 FROM tab1
----
131
189
83

query I rowsort
SELECT ALL - col1 * col2 + col1 * col0 FROM tab0
----
-774
3298
637

query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2, tab0
----
13122 values hashing to faf3606458d22d1bd6767d1089fdb605

query I rowsort
SELECT - - col1 + + ( 51 ) AS col0 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT + col2 + - col2 * - 26 FROM tab2 AS cor0
----
1026
702
729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col1 * + 87 + - col2 FROM tab2 AS cor0
----
1441
2670
5107

query I rowsort
SELECT ALL - + col1 * 0 - cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT - col1 DIV col0 + col1 FROM tab1 AS cor0
----
10
13
18

skipif mysql # not compatible
query I rowsort label-9898
SELECT - col1 / col0 + col1 FROM tab1 AS cor0
----
10
13
18

query I rowsort
SELECT col0 * 1 + 13 * col1 * + cor0.col0 FROM tab0 AS cor0
----
105376
26856
44170

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9900
SELECT - CAST( NULL AS SIGNED ) + 71 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9900
SELECT - CAST ( NULL AS INTEGER ) + 71 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT DISTINCT cor0.col1 + - col1 DIV 58 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT cor0.col1 + - col1 / 58 FROM tab2 AS cor0
----
17
31
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9902
SELECT DISTINCT + cor0.col0 + - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-9902
SELECT DISTINCT + cor0.col0 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + cor0.col2 * 96 AS col0 FROM tab0 AS cor0
----
3168
7872
96

query I rowsort
SELECT - + cor0.col2 * ( + cor0.col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760

query I rowsort
SELECT ALL + + col0 * cor0.col0 + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT + col0 * col0 - + col2 * ( tab1.col0 * col1 ) AS col1 FROM tab1
----
-32384
-4203
-93440

query I rowsort
SELECT ALL 12 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + - cor1.col2 * + 66 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 68abcd000241d28589b6ebc454c1ed24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9909
SELECT ALL 28 * + col1 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL 28 * + col1 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col1 + - col0 - - 4 * - cor0.col0 AS col1 FROM tab2 cor0
----
-3871
-684
-996

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9911
SELECT - col2 - - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT - col2 - - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 53 AS REAL ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

query I rowsort
SELECT DISTINCT - 54 * + col2 - - col0 FROM tab1 AS cor0
----
-2913
-3014
-5104

query I rowsort
SELECT ALL 39 + + col2 AS col0 FROM tab1 AS cor0
----
135
93
96

query I rowsort
SELECT DISTINCT + + 34 - + col1 AS col1 FROM tab2 AS cor0
----
-25
17
3

query I rowsort
SELECT DISTINCT + + col1 + cor0.col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - + col2 + - 83 FROM tab0 AS cor0
----
-116
-165
-84

query I rowsort
SELECT - + 28 * + 6 * col1 + - col2 FROM tab2 AS cor0
----
-2894
-5235
-9938

onlyif mysql # use DIV operator for integer division
query I rowsort label-9919
SELECT DISTINCT + cor0.col2 DIV + col1 + col2 AS col1 FROM tab1 AS cor0
----
103
56
62

skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT + cor0.col2 / + col1 + col2 AS col1 FROM tab1 AS cor0
----
103
56
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-9920
SELECT - 22 + - col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-119
-23
-24

skipif mysql # not compatible
query I rowsort label-9920
SELECT - 22 + - col1 / + col2 AS col1 FROM tab0 AS cor0
----
-119
-23
-24

onlyif mysql # use DIV operator for integer division
query I rowsort label-9921
SELECT DISTINCT + - 93 * - col0 + - col0 DIV - cor0.col0 + - 2 FROM tab0 AS cor0
----
2231
3254
8276

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + - 93 * - col0 + - col0 / - cor0.col0 + - 2 FROM tab0 AS cor0
----
2231
3254
8276

query I rowsort
SELECT ALL - col2 * - col0 + col1 * - ( + col0 ) FROM tab0 cor0
----
-1272
-3360
-801

query I rowsort
SELECT col2 * - cor0.col1 + - cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868

onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT - 57 DIV + 37 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9924
SELECT - 57 / + 37 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col2 * 12 + col0 FROM tab2 AS cor0
----
-234
-317
-377

query I rowsort
SELECT - 1 * 5 + col2 AS col2 FROM tab0 AS cor0
----
-4
28
77

query I rowsort
SELECT + 99 + + col2 FROM tab0 cor0
----
100
132
181

onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT - + col2 DIV + 46 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9928
SELECT - + col2 / + 46 AS col2 FROM tab1 AS cor0
----
-1
-1
-2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9929
SELECT col0 - - col1 * cor0.col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9929
SELECT col0 - - col1 * cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col2 + col1 * col0 FROM tab2 AS cor0
----
1419
271
4654

query I rowsort
SELECT ALL + col1 * + 80 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-819
4365
4816

onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT DISTINCT col0 + + cor0.col1 DIV col2 - col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT col0 + + cor0.col1 / col2 - col0 FROM tab0 AS cor0
----
1
2
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9933
SELECT - col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-9933
SELECT - col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d

query I rowsort
SELECT DISTINCT - col1 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - + col0 - 30 AS col0 FROM tab0 AS cor0
----
-119
-54
-65

query I rowsort
SELECT DISTINCT - - 19 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab0 cor2
----
19

query I rowsort
SELECT 51 - col0 FROM tab2
----
-27
-28
44

query I rowsort
SELECT DISTINCT col0 + col2 * + col2 FROM tab1
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-9940
SELECT col2 + 88 + col2 DIV + col0 FROM tab1
----
145
160
185

skipif mysql # not compatible
query I rowsort label-9940
SELECT col2 + 88 + col2 / + col0 FROM tab1
----
145
160
185

query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) + + tab2.col2 FROM tab2
----
-162
-2002
-2964

query I rowsort
SELECT ALL + + col1 * 42 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-3640
3977
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 11 ) col2 FROM tab0, tab0 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL + + col2 * + col1 + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT col1 * ( - col1 ) + col2 FROM tab2
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9946
SELECT ALL - tab1.col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL - tab1.col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT col2 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9947
SELECT col2 / CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
0
0
2

query I rowsort
SELECT ALL + 92 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT - col1 * - 28 * + col0 + col1 * ( - col0 ) AS col2 FROM tab0
----
218673
55728
91665

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 4 AS REAL ) * - cor0.col0 - col0 FROM tab0 AS cor0
----
105
267
72

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT ALL + 75 DIV - col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL + 75 / - col1 AS col0 FROM tab1 cor0
----
-2
-5
-7

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 cor2, tab0 AS cor3
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT 97 + 84 - tab2.col1 FROM tab2
----
122
150
164

query I rowsort
SELECT - tab2.col2 - col0 * + col0 FROM tab2
----
-6110
-6279
-76

query I rowsort
SELECT ALL - 66 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query I rowsort
SELECT + ( - 68 ) - + col0 FROM tab2 AS cor0
----
-146
-147
-75

query I rowsort
SELECT col2 * cor0.col0 - - col0 FROM tab0 cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 * + col1 col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT col0 * col0 * col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT - + col2 * 8 FROM tab1 AS cor0
----
-432
-456
-768

query I rowsort
SELECT col0 * + 57 FROM tab1 cor0
----
171
3648
4560

query I rowsort
SELECT cor0.col0 * ( - 58 ) FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT - col1 * cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT - col2 * + col2 + 11 FROM tab1
----
-2905
-3238
-9205

query I rowsort
SELECT + col2 + + 29 * - col1 AS col2 FROM tab1 AS cor0
----
-233
-281
-700

query I rowsort
SELECT 47 * col0 AS col1 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT - 2 * - col2 * - col2 + col1 * - ( + col2 ) * + ( 88 ) AS col2 FROM tab0
----
-251922
-670104
-8538

query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT - ( - 35 ) AS col1 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT DISTINCT + col1 * col2 + 62 AS col0 FROM tab0 AS cor0
----
159
2900
7524

query I rowsort
SELECT - + 97 + cor0.col1 FROM tab2 AS cor0
----
-38
-66
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT col2 DIV 90 + - col0 AS col1 FROM tab1
----
-3
-64
-79

skipif mysql # not compatible
query I rowsort label-9972
SELECT col2 / 90 + - col0 AS col1 FROM tab1
----
-3
-64
-79

query I rowsort
SELECT col0 * 45 - col1 AS col2 FROM tab0 AS cor0
----
1478
3914
994

query I rowsort
SELECT - 22 + tab1.col0 - + col1 FROM tab1
----
-45
32
45

skipif mysql # not compatible
query I rowsort
SELECT ALL - - ( col1 ) * col0 * - ( cor0.col1 ) + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
-177418
-329218
-736918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9976
SELECT + ( col2 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT + ( col2 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 43 * col0 + col2 FROM tab2 AS cor0
----
-274
-3328
-3359

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9978
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9979
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + col1 AS col0 FROM tab2
----
-33
-4
21

query I rowsort
SELECT - + col0 + - 11 FROM tab0 AS cor0
----
-100
-35
-46

query I rowsort
SELECT 36 * 68 AS col1 FROM tab1 AS cor0
----
2448
2448
2448

query I rowsort
SELECT ALL + ( - col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - 87 * - col2 AS col2 FROM tab2 AS cor0
----
2262
2349
3306

query I rowsort
SELECT DISTINCT - - ( + col1 ) * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - - cor0.col0 + 10 AS col1 FROM tab2 AS cor0
----
17
88
89

query I rowsort
SELECT + + cor0.col0 + 73 AS col0 FROM tab0 AS cor0
----
108
162
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 35 ) col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT + tab2.col0 * 18 FROM tab2
----
126
1404
1422

query I rowsort
SELECT DISTINCT - col1 * + 7 * col0 FROM tab1
----
-4480
-546
-7280

onlyif mysql # use DIV operator for integer division
query I rowsort label-9991
SELECT + - 37 + + 74 - - cor0.col2 DIV - 68 col1 FROM tab1 AS cor0
----
36
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9991
SELECT + - 37 + + 74 - - cor0.col2 / - 68 col1 FROM tab1 AS cor0
----
36
37
37

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197

query I rowsort
SELECT 16 + col2 FROM tab2 AS cor0
----
42
43
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9994
SELECT - col0 * 12 + col2 - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9994
SELECT - col0 * 12 + col2 - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * 35 AS col0 FROM tab2 cor0
----
1330
910
945

query I rowsort
SELECT ALL - col2 + 22 FROM tab1 AS cor0
----
-32
-35
-74

query I rowsort
SELECT ALL - 13 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-39
-832

onlyif mysql # use DIV operator for integer division
query I rowsort label-9998
SELECT ALL col0 + - ( - col2 ) + - col2 * + cor0.col0 DIV col0 AS col0 FROM tab2 cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL col0 + - ( - col2 ) + - col2 * + cor0.col0 / col0 AS col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9999
SELECT DISTINCT col0 + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-9999
SELECT DISTINCT col0 + col0 / - col1 AS col0 FROM tab0 AS cor0
----
24
35
89

