sqllogictest

Artifact [38971d6132]
Login

Artifact 38971d6132a57c66de4521b752d0dc88f7b1a7d4:


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

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

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

query I rowsort
SELECT + 40 * ( col1 ) FROM tab0 AS cor0
----
3440
3640
3880

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT ALL - cor0.col2 * + col0 DIV ( col0 ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - cor0.col2 * + col0 / ( col0 ) FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5
SELECT cor0.col0 / CAST( NULL AS SIGNED ) + + 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5
SELECT cor0.col0 / CAST ( NULL AS INTEGER ) + + 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query I rowsort
SELECT ALL + 96 + + col2 * + 55 * col1 + - col2 FROM tab1
----
31389
68640
77262

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 * - 92 col2 FROM tab0 AS cor0
----
189
3122
7635

onlyif mysql # use DIV operator for integer division
query I rowsort label-10
SELECT DISTINCT + col1 DIV tab2.col0 + + 90 * col0 AS col1 FROM tab2
----
634
7020
7110

skipif mysql # not compatible
query I rowsort label-10
SELECT DISTINCT + col1 / tab2.col0 + + 90 * col0 AS col1 FROM tab2
----
634
7020
7110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 27 col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 0259a67676b131a4843853be4811b775

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

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

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

query I rowsort
SELECT + col0 * col0 + + col0 - - col2 FROM tab2 AS cor0
----
6188
6358
83

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

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

query I rowsort
SELECT - 83 * - col1 * tab0.col2 FROM tab0
----
235554
619346
8051

onlyif mysql # use DIV operator for integer division
query I rowsort label-19
SELECT 61 * tab2.col1 DIV + col1 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-19
SELECT 61 * tab2.col1 / + col1 FROM tab2
----
61
61
61

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-21
SELECT col2 DIV - 33 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-21
SELECT col2 / - 33 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT + 34 * - 72 AS col1 FROM tab2
----
-2448

query I rowsort
SELECT col2 * cor0.col0 + 88 FROM tab1 AS cor0
----
250
3736
7768

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT ALL - 37 DIV + col0 AS col0 FROM tab1
----
-12
0
0

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL - 37 / + col0 AS col0 FROM tab1
----
-12
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-31
SELECT - col1 * + col1 + col2 DIV - col1 AS col2 FROM tab1
----
-105
-176
-678

skipif mysql # not compatible
query I rowsort label-31
SELECT - col1 * + col1 + col2 / - col1 AS col2 FROM tab1
----
-105
-176
-678

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

query I rowsort
SELECT col0 * col0 + col1 * - tab1.col1 AS col2 FROM tab1
----
-667
3996
6231

query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab0 cor0 WHERE NULL NOT BETWEEN col0 AND NULL OR NULL IN ( + col0 )
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col0 + - col0 * - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
1357
686
8101

query I rowsort
SELECT ALL col0 - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL OR NOT col2 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * - col2 + + col1 + col0 col2 FROM tab2 AS cor0
----
1350
929
995

query I rowsort
SELECT DISTINCT col2 * - tab0.col0 + col0 * + col1 + - col2 FROM tab0
----
1239
3359
719

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT 80 DIV col0 + - col1 FROM tab0 AS cor0
----
-83
-91
-95

skipif mysql # not compatible
query I rowsort label-45
SELECT 80 / col0 + - col1 FROM tab0 AS cor0
----
-83
-91
-95

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-47
SELECT col1 * col0 + + col1 DIV col0 FROM tab2 AS cor0
----
1343
221
4602

skipif mysql # not compatible
query I rowsort label-47
SELECT col1 * col0 + + col1 / col0 FROM tab2 AS cor0
----
1343
221
4602

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

query I rowsort
SELECT DISTINCT - + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
-33
-82

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 81 + col0 + ( - ( col1 ) * + ( cor0.col1 ) ) col0 FROM tab0 AS cor0
----
-7453
-8273
-9455

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

query I rowsort
SELECT DISTINCT + col2 * cor0.col2 * - col1 + cor0.col1 + col1 FROM tab2 AS cor0
----
-22537
-24514
-39766

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

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

query I rowsort
SELECT - col0 + + cor0.col0 * + 17 FROM tab0 AS cor0
----
1424
384
560

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 + 66 * + col0 col0 FROM tab2 AS cor0
----
-1027
-936
413

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

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

query I rowsort
SELECT - col0 * - col2 + + 86 FROM tab2
----
2114
275
3088

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

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

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

query I rowsort
SELECT ALL - + 98 FROM tab0 cor0
----
-98
-98
-98

query I rowsort
SELECT - - 11 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

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

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

query I rowsort
SELECT DISTINCT col2 + + 36 AS col1 FROM tab0
----
118
37
69

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

query I rowsort
SELECT DISTINCT - + col1 + - 73 + col0 FROM tab0 AS cor0
----
-135
-75

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-71
SELECT col1 DIV 4 FROM tab1
----
2
3
6

skipif mysql # not compatible
query I rowsort label-71
SELECT col1 / 4 FROM tab1
----
2
3
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + col0 + - col0 DIV 19 + + col2 AS col2 FROM tab0
----
167
35
56

skipif mysql # not compatible
query I rowsort label-72
SELECT + col0 + - col0 / 19 + + col2 AS col2 FROM tab0
----
167
35
56

query I rowsort
SELECT DISTINCT col0 + col0 * 97 * col1 FROM tab0
----
200232
329350
785692

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

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

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

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

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

query I rowsort
SELECT 43 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-79
SELECT ALL - + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL - + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

query I rowsort
SELECT ALL - + col1 + - 77 FROM tab1 AS cor0
----
-103
-87
-90

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

skipif mysql # not compatible
query I rowsort label-85
SELECT + CAST ( 91 AS INTEGER ) * + col0 AS col1 FROM tab0 cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT 94 * - col1 AS col1 FROM tab1 cor0
----
-1222
-2444
-940

query I rowsort
SELECT DISTINCT 57 * + cor0.col2 + cor0.col1 * + 15 FROM tab1 cor0
----
3399
3468
5667

onlyif mysql # use DIV operator for integer division
query I rowsort label-88
SELECT DISTINCT ( + col0 ) DIV + cor0.col1 + col0 + col0 FROM tab0 AS cor0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-88
SELECT DISTINCT ( + col0 ) / + cor0.col1 + col0 + col0 FROM tab0 AS cor0
----
178
48
70

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

skipif mysql # not compatible
query I rowsort label-89
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

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

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

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

query I rowsort
SELECT DISTINCT - - col1 * - col0 * col1 + - 56 * - col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
-169850
-323786
-724451

query I rowsort
SELECT + - cor0.col2 + col1 * + col1 * - ( ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
17522
2101
943

query I rowsort
SELECT ALL + 31 + + col2 * 51 AS col0 FROM tab2 AS cor0
----
1357
1408
1969

query I rowsort
SELECT ALL - ( + col1 ) + ( - 70 ) AS col2 FROM tab1 AS cor0
----
-80
-83
-96

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + + col0 * col1 col1 FROM tab0 AS cor0
----
-774
3298
637

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 - ( col2 * 66 ) col1 FROM tab2 cor0
----
-2392
-2511
-3952

query I rowsort
SELECT DISTINCT col2 + tab1.col2 + col0 FROM tab1
----
111
178
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab1.col2 ) col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

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

query I rowsort
SELECT ALL cor0.col2 * col2 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT col0 * - 90 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT 77 * - col0 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT + col0 * - 88 - - col0 FROM tab2 AS cor0
----
-609
-6786
-6873

onlyif mysql # use DIV operator for integer division
query I rowsort label-109
SELECT + col2 * 80 DIV + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-17
-35
6

skipif mysql # not compatible
query I rowsort label-109
SELECT + col2 * 80 / + cor0.col1 - col0 AS col0 FROM tab0 AS cor0
----
-17
-35
6

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( 18 ) * col0 + ( + col1 ) * col1 * col0 col0 FROM tab2
----
-89507
162006
5845

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

skipif mysql # not compatible
query I rowsort label-112
SELECT ALL + col0 + - CAST ( - col1 AS INTEGER ) FROM tab2
----
137
38
96

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

query I rowsort
SELECT - col1 + col2 * + col1 * - col1 FROM tab1 AS cor0
----
-16237
-36530
-5710

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 - - col2 col2 FROM tab2
----
76
77
88

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 * col1 * + col1 AS col1 FROM tab1 AS cor0
----
-16128
-36450
-5643

onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT DISTINCT + CAST( col1 AS SIGNED ) * col0 - 96 DIV 36 FROM tab2 AS cor0
----
1341
215
4600

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * col0 - 96 / 36 FROM tab2 AS cor0
----
1341
215
4600

query I rowsort
SELECT cor0.col2 * + cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
-1
-35937
-551368

onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT ALL - ( 11 ) DIV - tab0.col0 AS col1 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-120
SELECT ALL - ( 11 ) / - tab0.col0 AS col1 FROM tab0, tab0 cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - + col1 * col2 + - col2 * + col2 FROM tab0 AS cor0
----
-14186
-3927
-98

query I rowsort
SELECT - 54 + - col2 FROM tab1 AS cor0
----
-108
-111
-150

query I rowsort
SELECT ALL col2 - + 48 AS col2 FROM tab1 AS cor0
----
48
6
9

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

query I rowsort
SELECT cor0.col1 + - col1 * - 15 FROM tab1 cor0
----
160
208
416

query I rowsort
SELECT - col2 + - col0 * - 30 FROM tab1 AS cor0
----
1863
2304
36

query I rowsort
SELECT ALL tab1.col1 * cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f1ecce02b56643d011f10eb912aa8a90

query I rowsort
SELECT col1 * + 41 * - col0 AS col2 FROM tab1 AS cor0
----
-26240
-3198
-42640

query I rowsort
SELECT ALL + - col2 + + 42 + + 75 AS col2 FROM tab1 AS cor0
----
21
60
63

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

skipif mysql # not compatible
query I rowsort label-130
SELECT - col0 * CAST ( - col2 AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT - + col1 + + 13 * col1 AS col1 FROM tab2 AS cor0
----
204
372
708

query I rowsort
SELECT DISTINCT col2 * 46 AS col1 FROM tab0 AS cor0
----
1518
3772
46

query I rowsort
SELECT - col0 + col0 * + col0 AS col2 FROM tab1 cor0
----
4032
6
6320

query I rowsort
SELECT col2 + col1 * - 7 AS col1 FROM tab0 AS cor0
----
-555
-569
-678

query I rowsort
SELECT col1 + col2 - ( col1 ) * col2 FROM tab0
----
-2719
-7289
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT DISTINCT - col0 DIV - col2 + + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-569

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT - col0 / - col2 + + cor0.col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-569

query I rowsort
SELECT + col0 + 90 * - 41 * - col0 FROM tab2 AS cor0
----
25837
287898
291589

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

query I rowsort
SELECT - 6 * - ( + col2 + col1 * 40 ) FROM tab0 AS cor0
----
20838
22332
23286

query I rowsort
SELECT ALL + ( 57 ) + - col1 FROM tab1 AS cor0
----
31
44
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT DISTINCT 91 DIV cor0.col2 FROM tab0 cor0
----
1
2
91

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT 91 / cor0.col2 FROM tab0 cor0
----
1
2
91

query I rowsort
SELECT - col1 * + 77 AS col2 FROM tab1 cor0
----
-1001
-2002
-770

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

skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( col1 AS REAL ) AS col0 FROM tab0
----
2838
7462
97

query I rowsort
SELECT + col0 * 40 * col0 FROM tab1
----
163840
256000
360

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( cor0.col1 ) * + ( - col1 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT + 4 * - col0 AS col0 FROM tab1
----
-12
-256
-320

query I rowsort
SELECT ALL - 81 * col2 + + cor0.col1 FROM tab2 cor0
----
-2047
-2156
-3061

query I rowsort
SELECT col2 * + cor0.col0 + 6 FROM tab0 AS cor0
----
41
7304
798

query I rowsort
SELECT ALL + 72 + + col1 FROM tab1 cor0
----
82
85
98

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

query I rowsort
SELECT + 85 + 62 * col0 - + col2 * - tab0.col1 AS col0 FROM tab0
----
13065
2352
4411

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

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

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

skipif mysql # not compatible
query I rowsort label-158
SELECT CAST ( NULL AS REAL ) * + 72 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - 85 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - 46 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT col2 * + col2 + - col1 AS col0 FROM tab0
----
-96
1003
6633

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-164
SELECT DISTINCT ( - col0 ) + CAST( - col2 AS SIGNED ) * col0 FROM tab1
----
-165
-3712
-7760

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT ( - col0 ) + CAST ( - col2 AS INTEGER ) * col0 FROM tab1
----
-165
-3712
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * col0 col1 FROM tab0 AS cor0
----
-144
-210
-534

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + col2 col2 FROM tab0 AS cor0
----
123
42
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * 27 col2 FROM tab2 AS cor0
----
676
702
988

query I rowsort
SELECT DISTINCT + col0 * 79 AS col0 FROM tab1
----
237
5056
6320

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

query I rowsort
SELECT + 3 + col2 FROM tab1
----
57
60
99

query I rowsort
SELECT - ( + 24 ) FROM tab2
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + col2 + - 52 * + col0 * - col2 AS col0 FROM tab1 AS cor0
----
189753
399456
8478

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961

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

skipif mysql # not compatible
query I rowsort label-181
SELECT col2 / 86 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - ( + col1 ) + 70 FROM tab1 AS cor0
----
44
57
60

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

query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969

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

query I rowsort
SELECT DISTINCT - + 96 * - col2 AS col2 FROM tab2 cor0
----
2496
2592
3648

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

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

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

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

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

query I rowsort
SELECT + col2 + + col1 * 37 AS col1 FROM tab0 AS cor0
----
3215
3449
3590

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

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

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

query I rowsort
SELECT col1 + + col1 - col0 * + col2 FROM tab1 cor0
----
-110
-3628
-7654

query I rowsort
SELECT DISTINCT col1 * - cor0.col2 + + 65 AS col0 FROM tab0 cor0
----
-2773
-32
-7397

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

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

query I rowsort
SELECT - col0 * cor0.col1 - + 67 FROM tab1 AS cor0
----
-1107
-145
-707

query I rowsort
SELECT ALL - col2 + - ( - col1 ) * + col1 FROM tab1 AS cor0
----
43
622
73

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

query I rowsort
SELECT ALL - - col0 * 15 AS col1 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT - + col0 + 59 + col1 FROM tab0 AS cor0
----
121
121
61

query I rowsort
SELECT ALL col1 + 12 FROM tab0 AS cor0
----
103
109
98

query I rowsort
SELECT - col0 * - 4 AS col2 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT ALL + + col1 + + 3 * - col0 AS col2 FROM tab1 cor0
----
-182
-227
17

query I rowsort
SELECT - col0 * + ( + col1 ) * col0 + col0 + + col0 AS col2 FROM tab0 cor0
----
-118755
-49488
-720633

query I rowsort
SELECT ALL col0 + - 31 AS col1 FROM tab1
----
-28
33
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-207
SELECT col0 DIV 29 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-207
SELECT col0 / 29 FROM tab2
----
0
2
2

query I rowsort
SELECT ALL col1 + - ( col0 ) * col0 * 93 + col0 * col2 AS col1 FROM tab2
----
-4337
-563725
-577394

onlyif mysql # use DIV operator for integer division
query I rowsort label-209
SELECT DISTINCT + col1 + col2 DIV tab0.col0 + col2 * col1 FROM tab0
----
194
2925
7553

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT + col1 + col2 / tab0.col0 + col2 * col1 FROM tab0
----
194
2925
7553

query I rowsort
SELECT - col1 * + col0 + cor0.col2 * col1 * col1 - col2 AS col2 FROM tab2 AS cor0
----
25703
85878
9601

onlyif mysql # use DIV operator for integer division
query I rowsort label-211
SELECT col2 * + 37 + col0 DIV CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1221
3035
72

skipif mysql # not compatible
query I rowsort label-211
SELECT col2 * + 37 + col0 / CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1221
3035
72

query I rowsort
SELECT ( 32 ) + col1 FROM tab1 AS cor0
----
42
45
58

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

query I rowsort
SELECT cor0.col0 * - col0 + - col1 - - col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-4609
-5612
757

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

query I rowsort
SELECT ALL col1 * - col0 * col2 + col2 AS col0 FROM tab0
----
-3394
-664036
-68079

query I rowsort
SELECT 78 + + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6bd9801f7b48d458101c67d6bc53fa5b

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * cor0.col1 + col2 col0 FROM tab2 AS cor0
----
-1509
-2794
-5343

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-221
SELECT col1 DIV ( - col2 ) + col2 * cor0.col2 FROM tab0 AS cor0
----
-96
1087
6723

skipif mysql # not compatible
query I rowsort label-221
SELECT col1 / ( - col2 ) + col2 * cor0.col2 FROM tab0 AS cor0
----
-96
1087
6723

query I rowsort
SELECT + col0 * + 15 * + tab0.col1 AS col2 FROM tab0
----
121485
30960
50925

query I rowsort
SELECT ALL 13 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5f7729099a7a1ec77ed9570d8cdd3d45

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

query I rowsort
SELECT ALL - ( cor1.col2 ) * cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e9c9a5d5cefe83eb1c091d89114ff7df

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

query I rowsort
SELECT + cor1.col1 * + 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a2d92791da4ec24a091aacfb7b519042

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

query I rowsort
SELECT DISTINCT - + cor0.col0 * - 85 + col2 FROM tab0 cor0
----
2073
2976
7647

query I rowsort
SELECT DISTINCT + cor0.col2 + 45 AS col1 FROM tab1 AS cor0
----
102
141
99

query I rowsort
SELECT DISTINCT - 79 + cor0.col1 FROM tab0, tab1 AS cor0
----
-53
-66
-69

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 41 + col2 * 10 col2 FROM tab2 AS cor0
----
219
229
339

onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT 19 DIV cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
10
13
32

skipif mysql # not compatible
query I rowsort label-235
SELECT 19 / cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
10
13
32

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c0d96679aba507520916e8654e5a6618

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-239
SELECT + col2 * CAST( + 48 AS SIGNED ) FROM tab2
----
1248
1296
1824

skipif mysql # not compatible
query I rowsort label-239
SELECT + col2 * CAST ( + 48 AS INTEGER ) FROM tab2
----
1248
1296
1824

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

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

query I rowsort
SELECT ALL col0 * - 19 FROM tab1
----
-1216
-1520
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-242
SELECT col2 DIV 33 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-242
SELECT col2 / 33 AS col1 FROM tab1
----
1
1
2

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-244
SELECT + col0 * + col0 + col2 DIV CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-244
SELECT + col0 * + col0 + col2 / CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT 65 * - col2 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 + col0 col2 FROM tab0 AS cor0
----
34
45
99

query I rowsort
SELECT + 50 * 86 FROM tab2 AS cor0
----
4300
4300
4300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 2 col0 FROM tab1
----
128
160
6

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

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

query I rowsort
SELECT - - ( - 3 ) FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT ALL + 48 * - tab0.col1 + col1 AS col0 FROM tab0
----
-4042
-4277
-4559

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-253
SELECT CAST( col1 AS SIGNED ) + cor0.col1 FROM tab2 cor0
----
118
34
62

skipif mysql # not compatible
query I rowsort label-253
SELECT CAST ( col1 AS INTEGER ) + cor0.col1 FROM tab2 cor0
----
118
34
62

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

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

query I rowsort
SELECT - - 28 FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL - + 13 + cor0.col0 AS col2 FROM tab0 AS cor0
----
11
22
76

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-259
SELECT - ( col1 ) DIV + 8 + - 31 AS col1 FROM tab1 cor0
----
-32
-32
-34

skipif mysql # not compatible
query I rowsort label-259
SELECT - ( col1 ) / + 8 + - 31 AS col1 FROM tab1 cor0
----
-32
-32
-34

query I rowsort
SELECT DISTINCT + 36 + col1 AS col1 FROM tab0 cor0
----
122
127
133

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

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL cor0.col2 + col2 / col0 FROM tab2 AS cor0
----
26
30
38

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT ALL col1 * col2 DIV + 55 + + col2 FROM tab1 AS cor0
----
118
67
79

skipif mysql # not compatible
query I rowsort label-263
SELECT ALL col1 * col2 / + 55 + + col2 FROM tab1 AS cor0
----
118
67
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col1 * cor0.col2 col1 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + + 93 + cor0.col2 AS col1 FROM tab1 AS cor0
----
147
150
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-266
SELECT ALL + 82 DIV col2 + - col2 FROM tab1
----
-53
-56
-96

skipif mysql # not compatible
query I rowsort label-266
SELECT ALL + 82 / col2 + - col2 FROM tab1
----
-53
-56
-96

query I rowsort
SELECT DISTINCT - col0 + 43 * 53 AS col1 FROM tab0 AS cor0
----
2190
2244
2255

onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT DISTINCT + - col0 * col1 DIV - 42 col2 FROM tab2 AS cor0
----
109
31
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + - col0 * col1 / - 42 col2 FROM tab2 AS cor0
----
109
31
5

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

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * + CAST ( + ( col1 ) AS REAL ) * - col1 + ( - col2 ) FROM tab0 AS cor0
----
-177537
-329316
-737091

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT + col2 DIV - CAST( - 9 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-272
SELECT + col2 / - CAST ( - 9 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
3
9

query I rowsort
SELECT + - col1 + col0 * + 62 AS col2 FROM tab0 AS cor0
----
1402
2073
5427

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

query I rowsort
SELECT ALL - tab0.col1 - + 68 FROM tab0, tab1 AS cor0
----
9 values hashing to d222940ce1fc475c7e85923b43845418

query I rowsort
SELECT ALL + col1 + 63 * - col1 FROM tab2 AS cor0
----
-1054
-1922
-3658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( + 12 ) - col2 col1 FROM tab1
----
-16
-35
-71

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

query I rowsort
SELECT + col0 * - 25 FROM tab0 AS cor0
----
-2225
-600
-875

query I rowsort
SELECT + col2 + ( - 4 ) * + col0 * col1 FROM tab2 AS cor0
----
-18382
-5334
-841

onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT ALL col2 DIV CAST( col2 * - col1 AS SIGNED ) - col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-281
SELECT ALL col2 / CAST ( col2 * - col1 AS INTEGER ) - col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
35

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

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

skipif mysql # not compatible
query I rowsort label-284
SELECT 40 / col2 FROM tab0
----
0
1
40

query I rowsort
SELECT ALL + col2 * - col0 + col0 * + 79 FROM tab1
----
-1360
1408
75

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

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

query I rowsort
SELECT 75 + + col0 AS col1 FROM tab0
----
110
164
99

query I rowsort
SELECT + + col1 + cor0.col1 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT DISTINCT - col0 * - 87 FROM tab2 AS cor0
----
609
6786
6873

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

query I rowsort
SELECT ALL + col1 * 57 + cor0.col0 * col1 * - col0 FROM tab1 AS cor0
----
-40390
-82459
1248

query I rowsort
SELECT DISTINCT cor0.col1 - 8 FROM tab2 cor0
----
23
51
9

query I rowsort
SELECT ALL - + cor0.col1 * - col2 + + 82 FROM tab2 AS cor0
----
1616
728
919

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

query I rowsort
SELECT + cor0.col0 * + 58 FROM tab2 AS cor0
----
406
4524
4582

query I rowsort
SELECT + cor0.col0 * + 30 - col1 AS col2 FROM tab2 AS cor0
----
179
2281
2353

query I rowsort
SELECT ALL + + col2 * 26 AS col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT ALL - col1 + - 3 FROM tab1 AS cor0
----
-13
-16
-29

query I rowsort
SELECT DISTINCT cor0.col1 * + col1 FROM tab2 cor0
----
289
3481
961

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

query I rowsort
SELECT ALL - col2 * - col0 + col0 + col2 AS col0 FROM tab2 AS cor0
----
2132
223
3119

query I rowsort
SELECT DISTINCT col2 - 84 FROM tab2 cor0
----
-46
-57
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 79 * col1 - col2 * + 82 col0 FROM tab2 AS cor0
----
19715
272867
73705

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col2 ) + + col0 col2 FROM tab2 cor0
----
104
117
34

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

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

query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 * col2 - - 42 AS col2 FROM tab1 cor0
----
2961
3355
9338

query I rowsort
SELECT ALL - col1 + - 76 AS col2 FROM tab1 AS cor0
----
-102
-86
-89

query I rowsort
SELECT DISTINCT - - 79 * - col0 - - col2 FROM tab0 cor0
----
-1863
-2764
-6949

query I rowsort
SELECT 39 * 24 AS col1 FROM tab1 AS cor0
----
936
936
936

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

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

query I rowsort
SELECT DISTINCT - - 85 + + 27 * + col1 AS col2 FROM tab1 AS cor0
----
355
436
787

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

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

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26

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

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

query I rowsort
SELECT + col1 * + col0 * - 30 FROM tab1 AS cor0
----
-19200
-2340
-31200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + + col1 * ( + ( + col2 ) ) col0 FROM tab0 AS cor0
----
2839
7463
98

query I rowsort
SELECT ALL + 37 * + col0 FROM tab2 cor0
----
259
2886
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * cor0.col2 - - ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
-1540
-1643
-2771

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

query I rowsort
SELECT DISTINCT + - col1 - + col0 * 76 AS col0 FROM tab1 AS cor0
----
-254
-4874
-6093

query I rowsort
SELECT ALL - 41 * - col1 AS col0 FROM tab1 AS cor0
----
1066
410
533

query I rowsort
SELECT - col2 - col1 * - 31 * col0 FROM tab0 AS cor0
----
105244
250987
63951

query I rowsort
SELECT ALL 46 * col1 + cor0.col2 * - 90 - + col2 FROM tab2 cor0
----
-1031
-2676
348

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd

query I rowsort
SELECT col0 * col1 * 7 FROM tab1 AS cor0
----
4480
546
7280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col1 col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - 36 * - col2 AS col0 FROM tab0 AS cor0
----
1188
2952
36

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

query I rowsort
SELECT 49 + col0 * - tab1.col1 FROM tab1
----
-29
-591
-991

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

query I rowsort
SELECT + - col1 * ( col2 ) + cor0.col1 + col0 * col0 FROM tab0 AS cor0
----
-2176
1225
550

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

query I rowsort
SELECT + col2 + - ( tab0.col2 ) * - col1 * 78 AS col0 FROM tab0
----
221397
582118
7567

query I rowsort
SELECT DISTINCT - col0 * - 29 + col2 FROM tab0
----
1016
2663
729

query I rowsort
SELECT - 20 + - col2 * - cor0.col1 + - col1 FROM tab2 AS cor0
----
1455
609
786

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

query I rowsort
SELECT 17 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT DISTINCT ( - col2 ) DIV col1 FROM tab2
----
-2
0

skipif mysql # not compatible
query I rowsort label-345
SELECT DISTINCT ( - col2 ) / col1 FROM tab2
----
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 47 col0 FROM tab2 AS cor0
----
-1457
-2773
-799

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col2 + + col1 ) * col0 col2 FROM tab0 AS cor0
----
1239
3359
719

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

query I rowsort
SELECT + cor0.col1 * + col1 * - 64 AS col0 FROM tab1 cor0
----
-10816
-43264
-6400

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-353
SELECT + 39 DIV - tab1.col1 FROM tab1
----
-1
-3
-3

skipif mysql # not compatible
query I rowsort label-353
SELECT + 39 / - tab1.col1 FROM tab1
----
-1
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 + 92 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6ca4b2cdfad956991591f91381792f68

query I rowsort
SELECT DISTINCT - col0 + col0 * - 19 AS col1 FROM tab2 AS cor0
----
-140
-1560
-1580

onlyif mysql # use DIV operator for integer division
query I rowsort label-356
SELECT ALL col2 DIV 17 AS col1 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL col2 / 17 AS col1 FROM tab0 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-357
SELECT ALL col2 + + ( - cor0.col2 ) * - col2 + - cor0.col2 DIV col0 FROM tab0 AS cor0
----
1121
2
6806

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL col2 + + ( - cor0.col2 ) * - col2 + - cor0.col2 / col0 FROM tab0 AS cor0
----
1121
2
6806

query I rowsort
SELECT - col2 * 45 FROM tab1
----
-2430
-2565
-4320

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

query I rowsort
SELECT + col2 * col0 + + tab0.col1 * - col0 AS col0 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT ALL col0 + + 22 + col2 FROM tab0
----
193
58
79

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 - 93 * col1 col0 FROM tab0 AS cor0
----
-7998
-8463
-9021

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

query I rowsort
SELECT + 39 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

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

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

query I rowsort
SELECT ALL col1 - - col0 * 11 AS col1 FROM tab0
----
1070
350
482

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

query I rowsort
SELECT ALL - tab1.col1 * - col1 + col1 - col2 FROM tab1
----
53
648
86

query I rowsort
SELECT ALL + 22 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL + 82 AS col2 FROM tab2 AS cor0
----
82
82
82

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

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

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

query I rowsort
SELECT ALL - col0 * col0 + - tab1.col0 * + col1 + col0 AS col1 FROM tab1
----
-4672
-7360
-84

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

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL col2 / col0 + col2 AS col2 FROM tab2
----
26
30
38

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 78 * - col1 AS col1 FROM tab0
----
-6708
-7098
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 18 * col2 + + tab2.col0 col1 FROM tab2
----
-12090
-13115
-25913

query I rowsort
SELECT 70 + + col1 AS col2 FROM tab1
----
80
83
96

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

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

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

query I rowsort
SELECT ( 9 ) * col2 + col1 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1153
1904
564

query I rowsort
SELECT col0 * 22 * col0 FROM tab2 AS cor0
----
1078
133848
137302

query I rowsort
SELECT DISTINCT col0 * - 28 FROM tab2 AS cor0
----
-196
-2184
-2212

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-393
SELECT ALL cor0.col0 * - col0 * + col0 + col0 DIV + col0 AS col1 FROM tab2 cor0
----
-342
-474551
-493038

skipif mysql # not compatible
query I rowsort label-393
SELECT ALL cor0.col0 * - col0 * + col0 + col0 / + col0 AS col1 FROM tab2 cor0
----
-342
-474551
-493038

query I rowsort
SELECT DISTINCT - col1 - cor0.col2 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT DISTINCT + + 49 + + col0 AS col0 FROM tab1 AS cor0
----
113
129
52

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 ALL col2 * col2 + col2 * col0 FROM tab0 AS cor0
----
14022
1881
36

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

query I rowsort
SELECT DISTINCT + - 64 * - col0 + col2 FROM tab0 AS cor0
----
1569
2241
5778

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

query I rowsort
SELECT ALL + - col1 * - col1 + col2 * col1 FROM tab2 cor0
----
1798
5015
935

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

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

query I rowsort
SELECT 0 * col1 - col2 FROM tab2
----
-26
-27
-38

query I rowsort
SELECT ALL + tab2.col0 * 2 AS col0 FROM tab2
----
14
156
158

query I rowsort
SELECT DISTINCT - 72 * 0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 11 * + col0 * - col0 col1 FROM tab1 AS cor0
----
45056
70400
99

query IIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL col0 * - 24 * - ( col2 ) FROM tab1
----
184320
3888
87552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 36 col0 FROM tab1
----
132
90
93

query I rowsort
SELECT ALL col1 + tab0.col0 + col1 FROM tab0
----
196
229
271

query I rowsort
SELECT ALL + 72 * 47 + + col0 AS col0 FROM tab1
----
3387
3448
3464

query I rowsort
SELECT DISTINCT - col1 * + 87 * col0 FROM tab2
----
-116841
-18879
-400374

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT col0 DIV 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-416
SELECT col0 / 84 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - ( 89 ) AS col2 FROM tab2
----
-89
-89
-89

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

query I rowsort
SELECT + col1 + + col2 + 35 FROM tab0 AS cor0
----
133
154
208

onlyif mysql # use DIV operator for integer division
query I rowsort label-420
SELECT - col0 DIV - tab0.col0 + 69 FROM tab0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-420
SELECT - col0 / - tab0.col0 + 69 FROM tab0
----
70
70
70

query I rowsort
SELECT 51 * - tab1.col2 + col2 * - col1 FROM tab1
----
-3477
-4158
-6144

query I rowsort
SELECT DISTINCT tab2.col0 * + 17 AS col1 FROM tab2
----
119
1326
1343

query I rowsort
SELECT DISTINCT - col2 * - ( + 1 ) + col1 FROM tab0 AS cor0
----
119
173
98

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

query I rowsort
SELECT ALL + cor0.col0 + col1 * 26 AS col2 FROM tab1 cor0
----
324
418
679

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-430
SELECT DISTINCT + + col2 DIV col2 + - col0 * col0 FROM tab1 AS cor0
----
-4095
-6399
-8

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + + col2 / col2 + - col0 * col0 FROM tab1 AS cor0
----
-4095
-6399
-8

query I rowsort
SELECT DISTINCT 12 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
12

query I rowsort
SELECT + 95 + - tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8d88a9ed705555d0a132a7e0a02fe1ba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-433
SELECT DISTINCT - CAST( - 18 AS SIGNED ) - - cor0.col0 FROM tab1 AS cor0
----
21
82
98

skipif mysql # not compatible
query I rowsort label-433
SELECT DISTINCT - CAST ( - 18 AS INTEGER ) - - cor0.col0 FROM tab1 AS cor0
----
21
82
98

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

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

query I rowsort
SELECT 82 + - col2 FROM tab0 AS cor0
----
0
49
81

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

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

query I rowsort
SELECT + 34 * 47 FROM tab1 AS cor0
----
1598
1598
1598

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

query I rowsort
SELECT - ( 67 ) FROM tab2 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - 10 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT - 76 * col1 + + col2 * col0 FROM tab2 cor0
----
-2167
-2456
1710

onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT + - col2 DIV cor0.col0 - col0 FROM tab2 cor0
----
-10
-78
-79

skipif mysql # not compatible
query I rowsort label-443
SELECT + - col2 / cor0.col0 - col0 FROM tab2 cor0
----
-10
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT col2 DIV col1 + + col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-444
SELECT col2 / col1 + + col1 FROM tab2 AS cor0
----
19
31
59

query I rowsort
SELECT + 46 * + col2 + cor0.col0 FROM tab2 cor0
----
1249
1274
1827

query I rowsort
SELECT 30 * + col0 AS col1 FROM tab2 cor0
----
210
2340
2370

query I rowsort
SELECT + col2 * - col0 + 27 * col2 * + ( 17 ) FROM tab0 cor0
----
14355
30340
424

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

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

query I rowsort
SELECT DISTINCT + + 49 + - cor0.col0 FROM tab0, tab1 AS cor0
----
-15
-31
46

query I rowsort
SELECT - 29 * + col0 AS col2 FROM tab0 AS cor0
----
-1015
-2581
-696

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-453
SELECT ALL + ( - col1 ) DIV col0 - 19 AS col2 FROM tab0 cor0
----
-20
-21
-22

skipif mysql # not compatible
query I rowsort label-453
SELECT ALL + ( - col1 ) / col0 - 19 AS col2 FROM tab0 cor0
----
-20
-21
-22

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

skipif mysql # not compatible
query I rowsort label-454
SELECT ALL + cor0.col0 + col0 / col2 FROM tab1 AS cor0
----
3
65
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * + ( col1 ) col1 FROM tab0 AS cor0
----
177504
329315
737009

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

query I rowsort
SELECT DISTINCT - col2 + - 4 + + col0 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-49
4035
6300

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT DISTINCT - col2 + + col1 * col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-46
-53
-86

skipif mysql # not compatible
query I rowsort label-461
SELECT DISTINCT - col2 + + col1 * col0 / col2 AS col2 FROM tab1 AS cor0
----
-46
-53
-86

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

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

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

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

query I rowsort
SELECT ALL + + col1 * + 33 * col2 + + cor0.col1 FROM tab2 AS cor0
----
21335
27652
50681

query I rowsort
SELECT ALL + col1 * + 41 AS col0 FROM tab2 cor0
----
1271
2419
697

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

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

query I rowsort
SELECT ALL - 99 * col1 * + 16 FROM tab2
----
-26928
-49104
-93456

query I rowsort
SELECT ( col2 + col0 ) * - col1 AS col2 FROM tab2
----
-1054
-1989
-6136

query I rowsort
SELECT - 66 * col1 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894

query I rowsort
SELECT - - ( - 58 ) * + col1 FROM tab1 AS cor0
----
-1508
-580
-754

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

query I rowsort
SELECT ALL 32 * col0 FROM tab1
----
2048
2560
96

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

query I rowsort
SELECT ALL 19 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL 91 * col1 FROM tab2
----
1547
2821
5369

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) + ( col2 * + col2 ) AS col1 FROM tab2 AS cor0
----
1482
702
756

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

query I rowsort
SELECT - col1 + + tab0.col1 * + col2 FROM tab0
----
0
2752
7371

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

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

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

query I rowsort
SELECT col0 * - col0 + - ( + col1 ) * - col0 FROM tab0
----
1488
178
2170

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

query I rowsort
SELECT ALL - 7 + - col0 AS col0 FROM tab0 AS cor0
----
-31
-42
-96

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

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

query I rowsort
SELECT ALL - col0 + col0 * - 19 FROM tab1
----
-1280
-1600
-60

query I rowsort
SELECT ALL - 87 AS col0 FROM tab2 cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT + + col0 * - col0 + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-6887
-7618
-886

query I rowsort
SELECT - col2 + - 44 FROM tab1 AS cor0
----
-101
-140
-98

query I rowsort
SELECT DISTINCT + + 74 - + col1 FROM tab2 AS cor0
----
15
43
57

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

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

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

query I rowsort
SELECT DISTINCT - 36 + + 77 * col0 AS col0 FROM tab0 cor0
----
1812
2659
6817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-501
SELECT DISTINCT CAST( 10 AS SIGNED ) + col1 * + col1 col1 FROM tab1 AS cor0
----
110
179
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-501
SELECT DISTINCT CAST ( 10 AS INTEGER ) + col1 * + col1 col1 FROM tab1 AS cor0
----
110
179
686

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-503
SELECT ALL col0 DIV - 45 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-503
SELECT ALL col0 / - 45 FROM tab2 cor0
----
-1
-1
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

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

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

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

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

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL IN ( + col0 + - col2 )
----

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

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

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

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

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

query I rowsort
SELECT - + col1 + col2 - col0 * col0 AS col2 FROM tab1 AS cor0
----
-4049
-6317
19

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-519
SELECT ALL + col1 * col2 DIV col1 + col0 FROM tab0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + col1 * col2 / col1 + col0 FROM tab0
----
171
36
57

query I rowsort
SELECT ALL - col0 + col2 * - col0 * + tab1.col0 FROM tab1
----
-233536
-489
-614480

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col0 + - col1 col0 FROM tab0 AS cor0
----
1978
3298
8008

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

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

skipif mysql # not compatible
query I rowsort label-526
SELECT - - col1 + + col2 / 53 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT 55 * col1 FROM tab0
----
4730
5005
5335

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

query I rowsort
SELECT - col0 * 31 AS col1 FROM tab0 AS cor0
----
-1085
-2759
-744

query I rowsort
SELECT + cor0.col1 + 4 AS col0 FROM tab0 AS cor0
----
101
90
95

query I rowsort
SELECT - col2 * + 80 + + 3 AS col2 FROM tab1 cor0
----
-4317
-4557
-7677

query I rowsort
SELECT - col0 + - col0 * + 85 FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT - - cor0.col1 * col0 + 98 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
123344
137670
56500

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

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

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

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

query I rowsort
SELECT ALL col0 * col0 + - col2 * col1 AS col1 FROM tab0
----
-2262
1128
459

onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT DISTINCT - col2 DIV - col1 - col0 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-538
SELECT DISTINCT - col2 / - col1 - col0 FROM tab0
----
-24
-35
-89

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

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + 94 * 23 FROM tab2 AS cor0
----
2379
3505
6764

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

query I rowsort
SELECT + - 54 + + 91 FROM tab0, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col2 < col0
----
35
97
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT ALL + col0 DIV - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-551
SELECT ALL + col0 / - 89 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 * + 72 FROM tab2 AS cor0
----
1224
2232
4248

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col1 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-555
SELECT ALL col2 * CAST( 61 + - col1 * - col1 AS SIGNED ) FROM tab1
----
22080
39798
9177

skipif mysql # not compatible
query I rowsort label-555
SELECT ALL col2 * CAST ( 61 + - col1 * - col1 AS INTEGER ) FROM tab1
----
22080
39798
9177

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

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-561
SELECT ALL + 76 DIV - col0 AS col0 FROM tab1
----
-1
-25
0

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + 76 / - col0 AS col0 FROM tab1
----
-1
-25
0

query I rowsort
SELECT ALL - + ( col2 ) * + col2 + col2 + col1 AS col0 FROM tab0 AS cor0
----
-6551
-970
97

query I rowsort
SELECT DISTINCT + col1 - 73 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1872
-720
-936

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

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

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT + + CAST ( - col0 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-566
SELECT ALL CAST( 43 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2322
2451
4128

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL CAST ( 43 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2322
2451
4128

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

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

query I rowsort
SELECT ALL + cor0.col0 * - 20 + col1 AS col1 FROM tab0 AS cor0
----
-1689
-394
-603

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

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

query I rowsort
SELECT DISTINCT + col2 * 46 * cor0.col2 FROM tab1 AS cor0
----
134136
149454
423936

query I rowsort
SELECT ALL + 69 + - col1 FROM tab1 AS cor0
----
43
56
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-573
SELECT DISTINCT + 40 + col2 DIV col0 FROM tab2
----
40
43

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + 40 + col2 / col0 FROM tab2
----
40
43

query I rowsort
SELECT 43 * col2 + col1 + - col2 * + cor0.col0 FROM tab0 AS cor0
----
-3681
105
713

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - col1 col2 FROM tab2 AS cor0
----
-16
12
26

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

query I rowsort
SELECT ALL - - col0 + - ( col0 ) * col1 * cor0.col0 FROM tab1 cor0
----
-231
-40896
-83120

query I rowsort
SELECT - 39 * - cor1.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 82e803dd2c1eeff2a43161ac8c810948

query I rowsort
SELECT ALL col2 * - col1 * - cor0.col1 - col1 AS col0 FROM tab0 AS cor0
----
243982
678951
9312

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * + 80 col2 FROM tab1 cor0
----
1053
2106
810

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-586
SELECT ALL - cor0.col2 * - col0 DIV col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL - cor0.col2 * - col0 / col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT + col2 + + col1 * 77 AS col2 FROM tab2 AS cor0
----
1347
2414
4569

query I rowsort
SELECT ALL col2 + 34 FROM tab2 AS cor0
----
60
61
72

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

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

query I rowsort
SELECT + col2 * - col1 + 33 AS col0 FROM tab1 AS cor0
----
-1215
-1371
-537

query I rowsort
SELECT DISTINCT col2 * + 96 AS col2 FROM tab2 AS cor0
----
2496
2592
3648

query I rowsort
SELECT DISTINCT - col2 + 13 * + 79 AS col1 FROM tab1 cor0
----
931
970
973

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( - 55 ) col0 FROM tab2 AS cor0
----
-385
-4290
-4345

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

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

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

query I rowsort
SELECT ALL - col0 * col1 + - col1 * 75 FROM tab0 AS cor0
----
-10670
-14924
-8514

query I rowsort
SELECT col1 * - ( + 91 ) + tab2.col2 FROM tab2
----
-1509
-2794
-5343

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

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

query I rowsort
SELECT - 76 - col1 AS col0 FROM tab1 AS cor0
----
-102
-86
-89

query I rowsort
SELECT - - 81 AS col2 FROM tab2 cor0
----
81
81
81

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

query I rowsort
SELECT 35 - 28 * col2 * col2 AS col1 FROM tab1
----
-258013
-81613
-90937

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

query I rowsort
SELECT ALL + ( col1 ) + col2 - + 68 AS col1 FROM tab2
----
-10
-13
17

query I rowsort
SELECT 67 + col2 FROM tab0
----
100
149
68

query I rowsort
SELECT - 85 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede

query I rowsort
SELECT col1 + + col2 * - 27 - col1 * - tab0.col1 FROM tab0
----
6158
6591
9479

query I rowsort
SELECT ALL 85 + - col1 FROM tab2
----
26
54
68

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

query I rowsort
SELECT 44 + + ( col2 ) + col1 * - col0 FROM tab0
----
-1987
-3350
-7973

query I rowsort
SELECT + 30 FROM tab1, tab1 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 1ae25494a21836bac07879aa19fd4615

query I rowsort
SELECT + 5 + col1 FROM tab0 AS cor0
----
102
91
96

query I rowsort
SELECT ALL - - col0 * 95 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT DISTINCT + 85 * col0 - cor0.col1 AS col0 FROM tab0 AS cor0
----
1954
2878
7474

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 50 * 52 + + col0 col1 FROM tab0 AS cor0
----
-2511
-2565
-2576

onlyif mysql # use DIV operator for integer division
query I rowsort label-617
SELECT DISTINCT - 80 * + ( col2 ) - col2 DIV - 43 FROM tab2 AS cor0
----
-2080
-2160
-3040

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - 80 * + ( col2 ) - col2 / - 43 FROM tab2 AS cor0
----
-2080
-2160
-3040

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col1 col2 FROM tab0, tab1 cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT - 30 AS col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

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

query I rowsort
SELECT DISTINCT - 13 + - cor0.col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
-102
-37
-48

query I rowsort
SELECT col0 + + col2 * 26 FROM tab0 AS cor0
----
2221
61
882

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-628
SELECT ALL - col2 - - CAST( + 81 + col1 AS SIGNED ) FROM tab0 AS cor0
----
134
177
90

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL - col2 - - CAST ( + 81 + col1 AS INTEGER ) FROM tab0 AS cor0
----
134
177
90

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

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

query I rowsort
SELECT DISTINCT + col2 * + col1 - cor0.col0 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT + col1 - - col2 * col2 * cor0.col2 FROM tab2 cor0
----
17635
19714
54889

query I rowsort
SELECT DISTINCT - + col0 * + 83 FROM tab0 cor0
----
-1992
-2905
-7387

query I rowsort
SELECT ALL - - col0 * - 33 + 15 * - col2 AS col1 FROM tab2 AS cor0
----
-2964
-3177
-636

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT - ( 70 ) * col1 + + CAST( 13 * + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1819
-3792
-696

skipif mysql # not compatible
query I rowsort label-635
SELECT - ( 70 ) * col1 + + CAST ( 13 * + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1819
-3792
-696

query I rowsort
SELECT - 12 * 81 + col1 AS col2 FROM tab0 AS cor0
----
-875
-881
-886

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

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

query I rowsort
SELECT - - 57 + - col0 AS col0 FROM tab2 AS cor0
----
-21
-22
50

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

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

query I rowsort
SELECT ALL - 79 FROM tab1, tab2 cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT ALL col0 + + ( 68 ) * - tab1.col1 AS col0 FROM tab1
----
-1765
-616
-804

onlyif mysql # use DIV operator for integer division
query I rowsort label-643
SELECT ALL - col2 + + ( + 67 ) DIV + col2 FROM tab0
----
-31
-82
66

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL - col2 + + ( + 67 ) / + col2 FROM tab0
----
-31
-82
66

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

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

query I rowsort
SELECT - col2 * + col1 * 59 FROM tab1
----
-33630
-73632
-82836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 53 * tab1.col2 col1 FROM tab1
----
30210
66144
74412

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

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

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

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

query I rowsort
SELECT - ( col2 ) + + col1 + - 32 FROM tab2 AS cor0
----
-28
-53
1

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT ALL + 12 DIV col2 + + CAST( ( col2 ) AS SIGNED ) * + ( col2 ) AS col2 FROM tab0 AS cor0
----
1089
13
6724

skipif mysql # not compatible
query I rowsort label-654
SELECT ALL + 12 / col2 + + CAST ( ( col2 ) AS INTEGER ) * + ( col2 ) AS col2 FROM tab0 AS cor0
----
1089
13
6724

query I rowsort
SELECT DISTINCT col1 * + col1 + + 42 * + col0 * + col1 FROM tab2 AS cor0
----
10075
196765
56695

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-656
SELECT - col0 / ( - col1 ) col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * tab2.col2 * + col1 FROM tab2
----
22599
24548
39884

query I rowsort
SELECT DISTINCT 8 * col2 - col0 * col0 FROM tab1
----
-3640
-5632
423

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-661
SELECT 37 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-661
SELECT 37 / - col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - + cor0.col2 + col1 * - ( - col1 ) FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT DISTINCT 66 * 83 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
5478

query I rowsort
SELECT + 79 * tab1.col2 + + col0 AS col2 FROM tab1
----
4269
4567
7664

query I rowsort
SELECT - col1 * 12 AS col1 FROM tab1 AS cor0
----
-120
-156
-312

query I rowsort
SELECT + + col0 * - 68 AS col0 FROM tab2 AS cor0
----
-476
-5304
-5372

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

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

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

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

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

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

query I rowsort
SELECT col1 * col1 + - 73 + + col0 FROM tab0 cor0
----
7347
8297
9371

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

query I rowsort
SELECT DISTINCT + + 31 + - cor0.col0 FROM tab1 AS cor0
----
-33
-49
28

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-677
SELECT ( + 38 ) - col1 * + CAST( 78 + col0 AS SIGNED ) FROM tab2
----
-2597
-2631
-9166

skipif mysql # not compatible
query I rowsort label-677
SELECT ( + 38 ) - col1 * + CAST ( 78 + col0 AS INTEGER ) FROM tab2
----
-2597
-2631
-9166

query I rowsort
SELECT 63 * - col2 - + col0 * + 77 FROM tab2
----
-2240
-7644
-8477

query I rowsort
SELECT 1 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc

query I rowsort
SELECT + 87 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # use DIV operator for integer division
query I rowsort label-681
SELECT ( col1 ) + 90 DIV col1 FROM tab2
----
22
33
60

skipif mysql # not compatible
query I rowsort label-681
SELECT ( col1 ) + 90 / col1 FROM tab2
----
22
33
60

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

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

query I rowsort
SELECT - col2 * + cor0.col1 + - col0 * col0 AS col0 FROM tab2 cor0
----
-6887
-7618
-886

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-685
SELECT - 38 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-685
SELECT - 38 / cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - col2 - 38 * col0 FROM tab0 AS cor0
----
-10680
-1365
-1704

onlyif mysql # use DIV operator for integer division
query I rowsort label-687
SELECT + - col2 * - col1 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
1248
1404
571

skipif mysql # not compatible
query I rowsort label-687
SELECT + - col2 * - col1 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
1248
1404
571

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-689
SELECT DISTINCT + col1 - 68 DIV 48 AS col1 FROM tab1
----
12
25
9

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + col1 - 68 / 48 AS col1 FROM tab1
----
12
25
9

query I rowsort
SELECT ALL - col2 + + 67 * - col1 FROM tab2
----
-1177
-2104
-3979

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT DISTINCT + ( col2 ) + col0 * + 23 + + col1 DIV col0 FROM tab0 AS cor0
----
2130
588
808

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + ( col2 ) + col0 * + 23 + + col1 / col0 FROM tab0 AS cor0
----
2130
588
808

onlyif mysql # use DIV operator for integer division
query I rowsort label-693
SELECT - col0 + + 63 DIV + cor0.col0 FROM tab0 AS cor0
----
-22
-34
-89

skipif mysql # not compatible
query I rowsort label-693
SELECT - col0 + + 63 / + cor0.col0 FROM tab0 AS cor0
----
-22
-34
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-694
SELECT - cor0.col1 + col0 * col1 DIV + 46 AS col0 FROM tab0 AS cor0
----
-24
-42
85

skipif mysql # not compatible
query I rowsort label-694
SELECT - cor0.col1 + col0 * col1 / + 46 AS col0 FROM tab0 AS cor0
----
-24
-42
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-695
SELECT ALL - + col2 DIV - 47 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL - + col2 / - 47 FROM tab1 cor0
----
1
1
2

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab0, tab2 cor1
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094

query I rowsort
SELECT DISTINCT - 99 + - col0 * + col2 FROM tab1
----
-261
-3747
-7779

query I rowsort
SELECT DISTINCT 49 + tab2.col0 AS col2 FROM tab2
----
127
128
56

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + + 97 * - 69 FROM tab1 AS cor0
----
-6693

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

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

query I rowsort
SELECT - 38 - - col1 AS col0 FROM tab2 AS cor0
----
-21
-7
21

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

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

query I rowsort
SELECT + cor0.col2 * 73 FROM tab2 AS cor0
----
1898
1971
2774

query I rowsort
SELECT ALL - 33 - col1 AS col2 FROM tab1 cor0
----
-43
-46
-59

query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
54
57
96

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

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

query I rowsort
SELECT DISTINCT 47 - col2 FROM tab2 AS cor0
----
20
21
9

query I rowsort
SELECT ALL ( - 4 ) + + col1 AS col0 FROM tab2 AS cor0
----
13
27
55

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

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - CAST ( 47 AS INTEGER ) FROM tab1 cor0
----
-47

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

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

query I rowsort
SELECT ALL + 32 * col2 AS col1 FROM tab1 AS cor0
----
1728
1824
3072

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

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

query I rowsort
SELECT 27 * + col1 * col0 AS col2 FROM tab1
----
17280
2106
28080

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-723
SELECT ALL + col0 DIV + col1 + col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-723
SELECT ALL + col0 / + col1 + col1 FROM tab2 AS cor0
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 * + col2 + col2 col0 FROM tab0 AS cor0
----
-1224
-18975
-649440

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

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

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

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

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

query I rowsort
SELECT DISTINCT - - col1 - + 83 * + 44 FROM tab2 cor0
----
-3593
-3621
-3635

query I rowsort
SELECT - col2 * + 14 * - col0 AS col0 FROM tab1 AS cor0
----
107520
2268
51072

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

query I rowsort
SELECT ALL - - col1 - 28 FROM tab2 AS cor0
----
-11
3
31

query I rowsort
SELECT DISTINCT col1 - + 13 * - ( col2 ) AS col1 FROM tab0
----
110
1157
515

query I rowsort
SELECT DISTINCT - - col2 * + 2 + col2 FROM tab2 AS cor0
----
114
78
81

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

query I rowsort
SELECT DISTINCT - 4 - + col2 * col2 FROM tab1 AS cor0
----
-2920
-3253
-9220

query I rowsort
SELECT - + 55 + + col1 FROM tab2 AS cor0
----
-24
-38
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT 53 DIV + col1 - + col2 FROM tab2 AS cor0
----
-26
-26
-35

skipif mysql # not compatible
query I rowsort label-737
SELECT 53 / + col1 - + col2 FROM tab2 AS cor0
----
-26
-26
-35

query I rowsort
SELECT ALL ( - col0 ) + - col2 * 84 * col2 AS col0 FROM tab0 AS cor0
----
-119
-564905
-91500

query I rowsort
SELECT DISTINCT - 52 * 33 FROM tab1, tab1 AS cor0
----
-1716

query IIIIIIIII rowsort
SELECT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT - tab1.col0 <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-741
SELECT + col1 / ( + col1 ) FROM tab1
----
1
1
1

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

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

query I rowsort
SELECT + tab2.col0 * ( + 50 ) AS col0 FROM tab2
----
350
3900
3950

onlyif mysql # use DIV operator for integer division
query I rowsort label-744
SELECT DISTINCT - col2 DIV + 22 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT - col2 / + 22 FROM tab0
----
-1
-3
0

query I rowsort
SELECT DISTINCT col1 * + 15 FROM tab0
----
1290
1365
1455

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT col1 DIV 60 + - 13 FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-747
SELECT col1 / 60 + - 13 FROM tab2 AS cor0
----
-13
-13
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1f939dc89697ad072dddfacfe2e2eebb

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

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

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

query I rowsort
SELECT DISTINCT col2 * cor0.col1 + col0 * ( - 81 ) + col2 * 42 FROM tab1 AS cor0
----
-1200
-2220
3429

query I rowsort
SELECT ALL - - ( - 40 ) AS col2 FROM tab0 cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - - 58 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-171
-3648
-4560

query I rowsort
SELECT - cor0.col2 + cor0.col1 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537

query I rowsort
SELECT ALL + ( col2 ) + - col0 * - 8 AS col1 FROM tab2 AS cor0
----
650
670
83

query I rowsort
SELECT DISTINCT - 36 * 59 + col0 FROM tab0 AS cor0
----
-2035
-2089
-2100

query I rowsort
SELECT ALL 18 * - 16 - col0 FROM tab0 cor0
----
-312
-323
-377

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

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

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT ALL - 33 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2883
3216
9183

query I rowsort
SELECT + cor0.col0 * - col0 + col0 * col0 + + col2 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT - 54 - col1 AS col1 FROM tab2
----
-113
-71
-85

query I rowsort
SELECT - col2 * - col2 + - ( col1 ) FROM tab0 AS cor0
----
-96
1003
6633

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

query I rowsort
SELECT DISTINCT ( 56 ) FROM tab2
----
56

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

skipif mysql # not compatible
query I rowsort label-768
SELECT + ( col0 ) * + CAST ( col1 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT - 10 * col0 * ( ( col2 ) ) FROM tab0 AS cor0
----
-350
-72980
-7920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-770
SELECT cor0.col2 + + CAST( col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
171
36
57

skipif mysql # not compatible
query I rowsort label-770
SELECT cor0.col2 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-771
SELECT ALL col2 * 18 + col0 DIV col1 FROM tab1 AS cor0
----
1032
1734
972

skipif mysql # not compatible
query I rowsort label-771
SELECT ALL col2 * 18 + col0 / col1 FROM tab1 AS cor0
----
1032
1734
972

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

query I rowsort
SELECT + col0 - 50 FROM tab2 AS cor0
----
-43
28
29

onlyif mysql # use DIV operator for integer division
query I rowsort label-774
SELECT - col0 + col1 * col0 DIV + col2 FROM tab1 AS cor0
----
-2
-53
-70

skipif mysql # not compatible
query I rowsort label-774
SELECT - col0 + col1 * col0 / + col2 FROM tab1 AS cor0
----
-2
-53
-70

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

query I rowsort
SELECT DISTINCT - - col2 * + 89 - col1 FROM tab0 AS cor0
----
-8
2851
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT + col2 * + col0 + col1 DIV col1 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-777
SELECT + col2 * + col0 + col1 / col1 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT - - 94 * col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
126242
20398
432588

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

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

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

query I rowsort
SELECT + ( + 59 ) + - col1 FROM tab2 cor0
----
0
28
42

query I rowsort
SELECT ALL + 24 FROM tab1, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT - + 60 + col1 * col0 FROM tab2 cor0
----
1283
157
4542

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

query I rowsort
SELECT DISTINCT cor0.col1 + - 77 AS col1 FROM tab2 AS cor0
----
-18
-46
-60

query I rowsort
SELECT ALL 89 + + 80 FROM tab2
----
169
169
169

onlyif mysql # use DIV operator for integer division
query I rowsort label-788
SELECT - 38 + col2 DIV col0 AS col0 FROM tab2
----
-35
-38
-38

skipif mysql # not compatible
query I rowsort label-788
SELECT - 38 + col2 / col0 AS col0 FROM tab2
----
-35
-38
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82

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

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

query I rowsort
SELECT 55 * ( + col1 ) + - cor0.col2 * + col0 + col0 AS col0 FROM tab2 AS cor0
----
-1988
1295
1523

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

query I rowsort
SELECT 98 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 6624b1f09c0594f5576803ac29f4499d

query I rowsort
SELECT DISTINCT col2 * + col0 + + 62 * col0 FROM tab0 AS cor0
----
12816
2205
2280

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

query I rowsort
SELECT + 6 * + cor0.col1 + - ( col0 + - cor0.col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-258
1183
3880

query I rowsort
SELECT DISTINCT - 1 + - col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT ALL + - col1 * col0 + - col0 + + cor0.col1 FROM tab0 AS cor0
----
-2002
-3333
-8097

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

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

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

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

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

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

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

query I rowsort
SELECT + 41 + + col1 FROM tab0 AS cor0
----
127
132
138

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-807
SELECT DISTINCT - col1 + - col2 DIV + col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-807
SELECT DISTINCT - col1 + - col2 / + col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT - col0 * 59 + + col2 * - tab1.col2 AS col2 FROM tab1
----
-13936
-3093
-7025

query I rowsort
SELECT 43 * + cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 19dab67aab425d7be61650756bbd8a3c

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

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 37 FROM tab0
----
NULL

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

query I rowsort
SELECT - col2 * + ( - col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + col1 * - 58 * - col2 FROM tab0 AS cor0
----
-164604
-432796
-5626

onlyif mysql # use DIV operator for integer division
query I rowsort label-814
SELECT DISTINCT - col1 * col1 DIV + col0 FROM tab0 AS cor0
----
-268
-308
-93

skipif mysql # not compatible
query I rowsort label-814
SELECT DISTINCT - col1 * col1 / + col0 FROM tab0 AS cor0
----
-268
-308
-93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 + + col1 + - col2 col0 FROM tab2 AS cor0
----
-185
-1995
-3023

query I rowsort
SELECT DISTINCT - + col2 * + col0 * cor0.col1 - col1 * - cor0.col1 FROM tab2 AS cor0
----
-116171
-4898
-50745

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

query I rowsort
SELECT ALL - 52 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74

query I rowsort
SELECT col2 * col1 + col2 * + ( - col2 ) * - col2 + + col1 FROM tab0 AS cor0
----
195
38861
558921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * col1 col1 FROM tab2
----
-22831
-271518
-6727

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-824
SELECT col2 / - tab0.col2 col2 FROM tab0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + 7 col2 FROM tab0 AS cor0
----
104
93
98

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 * + 52 col1 FROM tab2 AS cor0
----
-4472
-4472
-4472

query I rowsort
SELECT col2 + col0 * col0 * col0 FROM tab1
----
262201
512096
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 8 col2 FROM tab2 AS cor0
----
-1
70
71

query I rowsort
SELECT ALL - cor0.col2 * + 90 AS col1 FROM tab0 AS cor0
----
-2970
-7380
-90

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

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

query I rowsort
SELECT ALL 10 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

query I rowsort
SELECT ALL - 92 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # use DIV operator for integer division
query I rowsort label-835
SELECT 88 DIV - col0 AS col2 FROM tab0
----
-2
-3
0

skipif mysql # not compatible
query I rowsort label-835
SELECT 88 / - col0 AS col2 FROM tab0
----
-2
-3
0

query I rowsort
SELECT DISTINCT col1 * - col1 + col0 + + col2 AS col1 FROM tab1
----
-619
21
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT - 65 + col1 + col0 DIV - 5 FROM tab1
----
-39
-67
-68

skipif mysql # not compatible
query I rowsort label-837
SELECT - 65 + col1 + col0 / - 5 FROM tab1
----
-39
-67
-68

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

skipif mysql # not compatible
query I rowsort label-838
SELECT - - cor1.col2 + CAST ( NULL AS INTEGER ) / cor1.col0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 57 * - col1 * col0 + - col1 FROM tab0
----
-117734
-193612
-461734

query I rowsort
SELECT - ( + 24 ) - - col1 * 79 FROM tab0 AS cor0
----
6770
7165
7639

query I rowsort
SELECT ALL - ( + 34 ) * cor0.col2 + 31 FROM tab1 AS cor0
----
-1805
-1907
-3233

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

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

query I rowsort
SELECT ALL + cor0.col2 * 21 FROM tab2 AS cor0
----
546
567
798

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

query I rowsort
SELECT col0 + - cor0.col2 * - cor0.col1 * - ( - 99 + - col2 ) FROM tab1 AS cor0
----
214815
243440
88984

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

query I rowsort
SELECT DISTINCT - + 42 * + col2 FROM tab0 AS cor0
----
-1386
-3444
-42

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

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

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

query I rowsort
SELECT ALL + 49 AS col1 FROM tab1
----
49
49
49

onlyif mysql # use DIV operator for integer division
query I rowsort label-853
SELECT DISTINCT - - col1 DIV col0 - + col2 * + 42 * + col0 FROM tab0 AS cor0
----
-1468
-306515
-33261

skipif mysql # not compatible
query I rowsort label-853
SELECT DISTINCT - - col1 / col0 - + col2 * + 42 * + col0 FROM tab0 AS cor0
----
-1468
-306515
-33261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + - col0 col2 FROM tab2 AS cor0
----
-43
-44
28

query I rowsort
SELECT DISTINCT - col2 + - col2 * 67 * - col2 AS col1 FROM tab0 AS cor0
----
450426
66
72930

query I rowsort
SELECT ALL + - 56 * - cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
1510
617
824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( + 32 ) col1 FROM tab1 AS cor0
----
-22
-25
-64

query I rowsort
SELECT - cor0.col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT - col2 * - ( 47 ) AS col1 FROM tab2 AS cor0
----
1222
1269
1786

query I rowsort
SELECT - col0 - - col2 * - 42 AS col2 FROM tab2
----
-1141
-1170
-1675

onlyif mysql # use DIV operator for integer division
query I rowsort label-861
SELECT DISTINCT - col2 DIV 81 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT - col2 / 81 FROM tab1 AS cor0
----
-1
0

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + col2 * + col0 - cor0.col0 NOT BETWEEN NULL AND ( NULL ) OR col2 = ( NULL )
----

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

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

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

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

query I rowsort
SELECT - col1 * - col1 + tab1.col0 + - tab1.col2 * - col2 FROM tab1
----
3413
3595
9465

query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT DISTINCT - tab1.col2 + col2 DIV - col2 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-873
SELECT DISTINCT - tab1.col2 + col2 / - col2 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT + 49 + col1 * - col0 AS col2 FROM tab0
----
-2015
-3346
-8050

query I rowsort
SELECT ALL - col0 * + col1 * col1 FROM tab2
----
-22831
-271518
-6727

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

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

query I rowsort
SELECT ALL + 99 * + col2 + col1 + col1 AS col0 FROM tab2 cor0
----
2692
2735
3796

query I rowsort
SELECT - 76 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0

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

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

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

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

query I rowsort
SELECT ALL col0 * - col1 * col1 - + tab1.col2 * col1 AS col2 FROM tab1
----
-14768
-3432
-6970

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

query I rowsort
SELECT ALL + 95 * tab0.col2 FROM tab0
----
3135
7790
95

onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT + col2 * - col2 + + col1 DIV + 74 AS col1 FROM tab0
----
-1088
-6723
0

skipif mysql # not compatible
query I rowsort label-887
SELECT + col2 * - col2 + + col1 / + 74 AS col1 FROM tab0
----
-1088
-6723
0

query I rowsort
SELECT DISTINCT + - col0 * col1 * col2 + - ( + col0 * ( cor0.col0 ) ) AS col0 FROM tab2 AS cor0
----
-125736
-57275
-5908

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

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

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

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

query I rowsort
SELECT - col2 + + col2 * 51 AS col1 FROM tab0 AS cor0
----
1650
4100
50

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT tab1.col1 DIV + tab1.col1 col1 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-895
SELECT tab1.col1 / + tab1.col1 col1 FROM tab1
----
1
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 ) <= col0
----

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

query I rowsort
SELECT - col2 * + col2 + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= ( - col2 )
----

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

query I rowsort
SELECT + col2 * + col1 + + tab0.col1 * col2 * col2 AS col1 FROM tab0
----
194
619346
96492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 * col0 col2 FROM tab1
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + + col1 col0 FROM tab2
----
6143
6258
80

query I rowsort
SELECT col2 * col1 + col0 * + col1 FROM tab2
----
1054
1989
6136

query I rowsort
SELECT DISTINCT col0 * - col2 + + tab0.col1 FROM tab0
----
-706
-7207
62

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 * + col0 - tab0.col2 col1 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT - col0 + col1 * tab2.col2 FROM tab2
----
1456
567
830

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT tab2.col2 * - col0 * - col0 + col1 FROM tab2
----
1354
158243
237175

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

query I rowsort
SELECT - col2 + col2 * col0 * col1 FROM tab0
----
3394
664036
68079

query I rowsort
SELECT + 35 + + col1 + + col1 FROM tab1
----
55
61
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - col0 + 68 * 10 col1 FROM tab0
----
-1350
-4482
-712

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

query I rowsort
SELECT - cor0.col0 FROM tab1, tab0, tab2 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

query I rowsort
SELECT 31 * - col0 + - col1 - + col1 AS col2 FROM tab1
----
-145
-2004
-2506

query I rowsort
SELECT + col2 + + col0 - col2 * 43 AS col0 FROM tab0
----
-1362
-3355
-7

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

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

query I rowsort
SELECT DISTINCT - col1 * 19 AS col0 FROM tab1 cor0
----
-190
-247
-494

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

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

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

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

query I rowsort
SELECT - 88 * + col0 FROM tab2
----
-616
-6864
-6952

query I rowsort
SELECT ALL - 59 - col0 * 90 * col1 FROM tab0
----
-185819
-305609
-728969

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

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

query I rowsort
SELECT ALL col1 + 98 FROM tab0 AS cor0
----
184
189
195

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-937
SELECT DISTINCT col0 + CAST( + 97 AS SIGNED ) FROM tab0 AS cor0
----
121
132
186

skipif mysql # not compatible
query I rowsort label-937
SELECT DISTINCT col0 + CAST ( + 97 AS INTEGER ) FROM tab0 AS cor0
----
121
132
186

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

skipif mysql # not compatible
query I rowsort label-938
SELECT + CAST ( col2 AS INTEGER ) * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 81 * col2 col0 FROM tab1 AS cor0
----
236196
263169
746496

query I rowsort
SELECT ALL - ( + 77 ) FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-636056
-753571
-912673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 81 + - ( col1 ) * col1 col1 FROM tab1 AS cor0
----
-19
-595
-88

query I rowsort
SELECT ALL - 98 - + col1 AS col2 FROM tab0 cor0
----
-184
-189
-195

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

query I rowsort
SELECT col2 + col1 * ( - cor0.col1 ) FROM tab2 cor0
----
-251
-3455
-934

query I rowsort
SELECT ALL + + 69 * + col0 * + col0 + - col1 * cor0.col1 + + col1 AS col2 FROM tab2 AS cor0
----
2451
416374
430357

query I rowsort
SELECT DISTINCT 66 AS col2 FROM tab0
----
66

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

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

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

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

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

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

query I rowsort
SELECT ALL - + col2 * col2 + cor0.col1 * 25 FROM tab2 AS cor0
----
-1019
46
799

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 * + col2 col2 FROM tab0 AS cor0
----
-2145
-5330
-65

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

query I rowsort
SELECT ALL + 89 * col1 FROM tab1
----
1157
2314
890

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-960
SELECT + 93 DIV + cor0.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-960
SELECT + 93 / + cor0.col2 col0 FROM tab2, tab1 cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

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

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

query I rowsort
SELECT ALL col1 * 54 FROM tab2
----
1674
3186
918

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

query I rowsort
SELECT ALL - col0 * col2 + col1 + - col0 FROM tab1 AS cor0
----
-139
-3702
-7747

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

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

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

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

query I rowsort
SELECT 26 + col1 AS col1 FROM tab1
----
36
39
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT 23 DIV + col0 + + tab2.col0 * ( tab2.col1 ) DIV + col1 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-970
SELECT 23 / + col0 + + tab2.col0 * ( tab2.col1 ) / + col1 FROM tab2
----
10
78
79

query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT - - col1 * + 76 FROM tab2 cor0
----
1292
2356
4484

query I rowsort
SELECT ALL + 76 FROM tab0 cor0
----
76
76
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-974
SELECT DISTINCT ( 27 ) + - col0 DIV ( - 58 ) AS col1 FROM tab2 AS cor0
----
27
28

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT ( 27 ) + - col0 / ( - 58 ) AS col1 FROM tab2 AS cor0
----
27
28

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

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

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

skipif mysql # not compatible
query I rowsort label-977
SELECT - - col0 + - col2 / cor0.col0 FROM tab0 AS cor0
----
23
35
89

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - - col2 * CAST ( - col0 AS INTEGER ) + cor0.col1 col2 FROM tab2 AS cor0
----
-158
-1969
-2985

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

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

skipif mysql # not compatible
query I rowsort label-986
SELECT + - col1 * - CAST ( 78 * col2 AS INTEGER ) FROM tab1 AS cor0
----
109512
44460
97344

query I rowsort
SELECT - col2 * + 48 AS col0 FROM tab1 cor0
----
-2592
-2736
-4608

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

query I rowsort
SELECT DISTINCT + - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-43

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

query I rowsort
SELECT + 23 * - col1 AS col2 FROM tab0 cor0
----
-1978
-2093
-2231

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

query I rowsort
SELECT ( 97 ) * + col0 * col2 FROM tab0
----
3395
707906
76824

query I rowsort
SELECT + - col0 * cor0.col0 + 44 * + 55 FROM tab1 cor0
----
-1676
-3980
2411

query I rowsort
SELECT ( - col0 ) * 71 AS col2 FROM tab0
----
-1704
-2485
-6319

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

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT - col0 * - col1 / + col1 AS col0 FROM tab0
----
24
35
89

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

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

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

query I rowsort
SELECT ALL col0 * col2 + col0 FROM tab1
----
165
3712
7760

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 cor0.col2 + 3 FROM tab1 AS cor0
----
57
60
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1003
SELECT - cor0.col2 + ( + 72 ) DIV - col1 FROM tab2 AS cor0
----
-27
-29
-42

skipif mysql # not compatible
query I rowsort label-1003
SELECT - cor0.col2 + ( + 72 ) / - col1 FROM tab2 AS cor0
----
-27
-29
-42

query I rowsort
SELECT ALL + tab2.col2 * - 43 + 13 FROM tab2
----
-1105
-1148
-1621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * col2 col2 FROM tab1
----
324
342
576

query I rowsort
SELECT ALL + + 46 + col0 FROM tab2 AS cor0
----
124
125
53

query I rowsort
SELECT ALL ( + ( + col1 ) ) + - ( col2 + col1 ) * col1 FROM tab2 AS cor0
----
-1767
-4956
-918

onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT + 88 + + cor0.col0 - col2 DIV col0 AS col0 FROM tab0 AS cor0
----
111
123
177

skipif mysql # not compatible
query I rowsort label-1008
SELECT + 88 + + cor0.col0 - col2 / col0 AS col0 FROM tab0 AS cor0
----
111
123
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 - + col1 / + CAST ( col1 AS REAL ) col2 FROM tab2
----
6
77
78

skipif mysql # not compatible
query I rowsort
SELECT - ( + col2 ) + - CAST ( - col0 AS REAL ) - - col1 * + ( 60 ) AS col0 FROM tab0 AS cor0
----
5151
5467
5854

query I rowsort
SELECT + 28 * 78 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71be0bbe3898e63ed63c2f0ad400ee6d

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

query I rowsort
SELECT - - col1 * col0 + - ( - ( - col1 ) ) * + 72 FROM tab1 AS cor0
----
-1794
-80
104

query I rowsort
SELECT - ( + col0 ) + + col2 * + 89 FROM tab1 cor0
----
4803
5009
8464

query I rowsort
SELECT ALL + 77 + + 4 * + col1 AS col0 FROM tab0 AS cor0
----
421
441
465

query I rowsort
SELECT ALL + 23 * col0 * - col0 FROM tab0 AS cor0
----
-13248
-182183
-28175

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

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

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

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

query I rowsort
SELECT - ( tab2.col1 ) * + tab2.col2 * + col1 + - col2 * col2 FROM tab2
----
-12426
-26676
-91182

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

query I rowsort
SELECT DISTINCT tab0.col0 * + 99 FROM tab0
----
2376
3465
8811

query I rowsort
SELECT + col2 - - 76 FROM tab0
----
109
158
77

query I rowsort
SELECT 65 + + col0 * + col0 * + ( - col0 ) FROM tab0
----
-13759
-42810
-704904

query I rowsort
SELECT ALL + 18 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT 2 * ( col2 ) FROM tab0
----
164
2
66

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

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

query I rowsort
SELECT col1 * 68 * col2 FROM tab1 AS cor0
----
38760
84864
95472

query I rowsort
SELECT ALL + col0 * - 9 FROM tab1 AS cor0
----
-27
-576
-720

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

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

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

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1033
SELECT - CAST( - col0 AS SIGNED ) * col2 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1033
SELECT - CAST ( - col0 AS INTEGER ) * col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT 22 * + col1 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT ALL col1 * + col2 + - 80 FROM tab2
----
1454
566
757

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

query I rowsort
SELECT - col1 - + col0 * 91 FROM tab0
----
-2270
-3282
-8190

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL col0 * col1 + 16 / - col2 col0 FROM tab0
----
2064
3379
8099

query I rowsort
SELECT ALL 51 + col2 FROM tab2
----
77
78
89

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

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

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

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

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

query I rowsort
SELECT + 2 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT DISTINCT + col2 * 74 + 68 FROM tab0 AS cor0
----
142
2510
6136

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

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

query I rowsort
SELECT DISTINCT cor0.col1 * + col2 + + col0 + - cor0.col2 FROM tab0 AS cor0
----
131
2829
7469

query I rowsort
SELECT col2 * col2 + col2 + col2 * col0 FROM tab2 AS cor0
----
2730
4484
945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 53 * col0 col1 FROM tab1
----
213
3449
4336

query I rowsort
SELECT 67 * - cor0.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8e81cba09bc594618d54e53134dd1b22

onlyif mysql # use DIV operator for integer division
query I rowsort label-1054
SELECT - cor0.col1 * - ( - cor0.col0 ) + col0 DIV ( 84 + col2 ) FROM tab1 AS cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-1054
SELECT - cor0.col1 * - ( - cor0.col0 ) + col0 / ( 84 + col2 ) FROM tab1 AS cor0
----
-1040
-640
-78

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

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

query I rowsort
SELECT - 87 * - cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 126d67ae3258e3466d77694a94cddacf

query I rowsort
SELECT ALL col0 + + col2 * col1 * - col2 FROM tab0 AS cor0
----
-611795
-62
-93630

skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * - col2 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1566
-2090
-2210

query I rowsort
SELECT DISTINCT + - 64 * - col0 + - col2 AS col1 FROM tab0 AS cor0
----
1503
2239
5614

query I rowsort
SELECT ALL + - cor0.col1 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT - ( 28 ) FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT ALL + 45 * + col1 FROM tab1 AS cor0
----
1170
450
585

query I rowsort
SELECT ALL col2 * 96 FROM tab2 AS cor0
----
2496
2592
3648

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

query I rowsort
SELECT DISTINCT + 48 + - cor0.col0 FROM tab2 AS cor0
----
-30
-31
41

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

query I rowsort
SELECT col1 * col1 + ( cor0.col2 ) * - col0 FROM tab1 cor0
----
-3548
-7511
514

onlyif mysql # use DIV operator for integer division
query I rowsort label-1068
SELECT DISTINCT + col0 + col1 DIV - ( 75 ) FROM tab0 cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT + col0 + col1 / - ( 75 ) FROM tab0 cor0
----
23
34
88

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

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

query I rowsort
SELECT - 11 + + cor0.col1 FROM tab1 cor0
----
-1
15
2

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

query I rowsort
SELECT ALL + col2 * col0 * cor0.col2 AS col1 FROM tab2 cor0
----
114076
5103
52728

query I rowsort
SELECT DISTINCT - + 26 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
38
54

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT - col2 - col2 DIV 33 AS col2 FROM tab1 AS cor0
----
-55
-58
-98

skipif mysql # not compatible
query I rowsort label-1076
SELECT - col2 - col2 / 33 AS col2 FROM tab1 AS cor0
----
-55
-58
-98

query I rowsort
SELECT - col2 * - col2 * col2 + - col0 + - 21 AS col0 FROM tab2
----
17477
19655
54772

query I rowsort
SELECT DISTINCT + 96 - col0 AS col2 FROM tab2
----
17
18
89

query I rowsort
SELECT DISTINCT + 32 * cor0.col0 FROM tab2, tab1 cor0
----
2048
2560
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1080
SELECT DISTINCT col1 - col1 DIV col1 FROM tab0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1080
SELECT DISTINCT col1 - col1 / col1 FROM tab0
----
85
90
96

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

query I rowsort
SELECT ALL 29 * - cor0.col1 - - col2 * + col1 FROM tab2 AS cor0
----
-177
-62
153

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

query I rowsort
SELECT + + 26 - - col1 AS col1 FROM tab0 AS cor0
----
112
117
123

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

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

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

query I rowsort
SELECT DISTINCT 54 * col1 AS col0 FROM tab0
----
4644
4914
5238

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

query I rowsort
SELECT - 10 * col2 AS col0 FROM tab0 AS cor0
----
-10
-330
-820

query I rowsort
SELECT ALL - 64 * cor0.col2 FROM tab2 cor0
----
-1664
-1728
-2432

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1093
SELECT + ( ( col1 ) ) * col0 / col1 FROM tab0
----
24
35
89

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

query I rowsort
SELECT + 55 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3

query I rowsort
SELECT 92 * + col1 FROM tab0
----
7912
8372
8924

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1098
SELECT + col0 + - col0 DIV + col2 FROM tab0 cor0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-1098
SELECT + col0 + - col0 / + col2 FROM tab0 cor0
----
0
24
88

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT - 99 / col0 + col1 * col1 AS col2 FROM tab1 cor0
----
168
643
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1100
SELECT + + ( col1 ) * col2 + col1 DIV cor0.col0 FROM tab1 AS cor0
----
1248
1412
570

skipif mysql # not compatible
query I rowsort label-1100
SELECT + + ( col1 ) * col2 + col1 / cor0.col0 FROM tab1 AS cor0
----
1248
1412
570

query I rowsort
SELECT - col2 * 40 * col1 AS col2 FROM tab2
----
-25840
-33480
-61360

onlyif mysql # use DIV operator for integer division
query I rowsort label-1102
SELECT col2 DIV - 98 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1102
SELECT col2 / - 98 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL - col1 + + ( col0 ) * col0 + col1 * col2 FROM tab2 AS cor0
----
6870
7559
855

onlyif mysql # use DIV operator for integer division
query I rowsort label-1106
SELECT + + col0 DIV + 24 AS col1 FROM tab2 AS cor0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-1106
SELECT + + col0 / + 24 AS col1 FROM tab2 AS cor0
----
0
3
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + col1 * col1 * col1 col1 FROM tab1 cor0
----
1033
17609
2230

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

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

query I rowsort
SELECT ALL + col1 + - 25 FROM tab1 AS cor0
----
-12
-15
1

query I rowsort
SELECT DISTINCT + + 21 + - col1 AS col0 FROM tab1 AS cor0
----
-5
11
8

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

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

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

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

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

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

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

query I rowsort
SELECT + 24 * col2 AS col1 FROM tab2 AS cor0
----
624
648
912

query I rowsort
SELECT ALL + col2 * col2 * col1 - + 51 * 41 AS col0 FROM tab1 AS cor0
----
117717
30399
73725

query I rowsort
SELECT + - 36 - + ( col0 * - col1 + col0 ) AS col0 FROM tab0 AS cor0
----
2004
3324
7974

query I rowsort
SELECT + col1 * - 49 + col2 * col1 AS col2 FROM tab1 cor0
----
130
611
80

query I rowsort
SELECT - 7 * + col1 - col2 * ( + 57 ) FROM tab1 AS cor0
----
-3260
-3319
-5563

query I rowsort
SELECT - col0 * - col0 + + 26 AS col1 FROM tab2 AS cor0
----
6110
6267
75

query I rowsort
SELECT DISTINCT - 89 * col0 FROM tab1 AS cor0
----
-267
-5696
-7120

onlyif mysql # use DIV operator for integer division
query I rowsort label-1125
SELECT + col2 * col0 DIV 90 AS col0 FROM tab2 cor0
----
2
22
33

skipif mysql # not compatible
query I rowsort label-1125
SELECT + col2 * col0 / 90 AS col0 FROM tab2 cor0
----
2
22
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT col1 + col1 DIV col1 FROM tab1 cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-1126
SELECT col1 + col1 / col1 FROM tab1 cor0
----
11
14
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-1127
SELECT DISTINCT - col0 DIV - col0 + - 6 * 53 AS col1 FROM tab2 cor0
----
-317

skipif mysql # not compatible
query I rowsort label-1127
SELECT DISTINCT - col0 / - col0 + - 6 * 53 AS col1 FROM tab2 cor0
----
-317

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1131
SELECT ALL - col1 * col2 DIV 64 + + col2 FROM tab2 AS cor0
----
14
28
3

skipif mysql # not compatible
query I rowsort label-1131
SELECT ALL - col1 * col2 / 64 + + col2 FROM tab2 AS cor0
----
14
28
3

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

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

query I rowsort
SELECT + col2 * - 62 AS col1 FROM tab1 AS cor0
----
-3348
-3534
-5952

query I rowsort
SELECT 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

query I rowsort
SELECT DISTINCT 0 * 86 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 + 81 AS col1 FROM tab0
----
105
116
170

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT ALL + + col0 DIV col2 + col1 AS col2 FROM tab0 AS cor0
----
132
86
92

skipif mysql # not compatible
query I rowsort label-1140
SELECT ALL + + col0 / col2 + col1 AS col2 FROM tab0 AS cor0
----
132
86
92

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

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

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

query I rowsort
SELECT - 69 + + col1 FROM tab0 AS cor0
----
17
22
28

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

query I rowsort
SELECT - + 22 + - col2 FROM tab2 AS cor0
----
-48
-49
-60

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

query I rowsort
SELECT ALL + 57 AS col2 FROM tab1
----
57
57
57

query I rowsort
SELECT ALL - col1 * 60 FROM tab0 AS cor0
----
-5160
-5460
-5820

query I rowsort
SELECT col1 * col2 + 27 AS col1 FROM tab2
----
1561
673
864

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

query I rowsort
SELECT DISTINCT - 95 * col1 FROM tab0
----
-8170
-8645
-9215

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

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

query I rowsort
SELECT - ( - col1 ) * - tab0.col1 + col2 FROM tab0
----
-7363
-8199
-9408

onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT + col2 + col2 DIV + col0 FROM tab1
----
57
72
97

skipif mysql # not compatible
query I rowsort label-1155
SELECT + col2 + col2 / + col0 FROM tab1
----
57
72
97

query I rowsort
SELECT + cor0.col1 * 47 AS col1 FROM tab2 cor0
----
1457
2773
799

query I rowsort
SELECT + col1 - ( - col2 ) * 83 FROM tab0 AS cor0
----
180
2825
6897

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

query I rowsort
SELECT ALL col1 * - 32 + col1 * col2 FROM tab2 AS cor0
----
-155
-354
102

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1161
SELECT col0 * CAST( col2 AS SIGNED ) + - col0 - 0 DIV + tab2.col0 AS col1 FROM tab2
----
182
1950
2923

skipif mysql # not compatible
query I rowsort label-1161
SELECT col0 * CAST ( col2 AS INTEGER ) + - col0 - 0 / + tab2.col0 AS col1 FROM tab2
----
182
1950
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT DISTINCT col0 + col2 * + 22 * col1 - + col0 DIV - 63 col0 FROM tab0
----
164254
2169
62460

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT col0 + col2 * + 22 * col1 - + col0 / - 63 col0 FROM tab0
----
164254
2169
62460

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

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

query I rowsort
SELECT col1 * - ( 58 ) * col1 FROM tab0
----
-428968
-480298
-545722

query I rowsort
SELECT col1 - - 44 AS col0 FROM tab2
----
103
61
75

query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) AS col0 FROM tab1
----
108
114
192

query I rowsort
SELECT DISTINCT col0 * 93 + - col0 AS col0 FROM tab1
----
276
5888
7360

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

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

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

query I rowsort
SELECT ALL - ( col1 ) + + col2 + 4 FROM tab0 AS cor0
----
-49
-5
-92

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT + 70 DIV col0 FROM tab2 AS cor0
----
0
0
10

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 70 / col0 FROM tab2 AS cor0
----
0
0
10

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

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

query I rowsort
SELECT - ( 71 ) * col0 FROM tab2 AS cor0
----
-497
-5538
-5609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 7 + + col1 col1 FROM tab2 AS cor0
----
-18
-487
-536

onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT ALL - + col2 * 11 DIV cor0.col1 AS col2 FROM tab2 cor0
----
-24
-4
-9

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - + col2 * 11 / cor0.col1 AS col2 FROM tab2 cor0
----
-24
-4
-9

query I rowsort
SELECT ALL - 83 + 71 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1929
-2000
-2781

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1180
SELECT ALL + col0 DIV - col0 + - col2 * + col1 FROM tab1
----
-1249
-1405
-571

skipif mysql # not compatible
query I rowsort label-1180
SELECT ALL + col0 / - col0 + - col2 * + col1 FROM tab1
----
-1249
-1405
-571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + - col1 * col0 + tab2.col2 col2 FROM tab2
----
-1288
-159
-4517

query I rowsort
SELECT DISTINCT - col0 + ( col2 ) * - col0 * col0 + - col2 * - col2 AS col0 FROM tab1
----
-230287
-605264
2427

query I rowsort
SELECT col0 * - col0 * col0 + col0 AS col0 FROM tab2
----
-336
-474474
-492960

query I rowsort
SELECT ALL - col1 + + tab1.col2 FROM tab1
----
28
47
83

query I rowsort
SELECT DISTINCT 92 + 61 * - col1 FROM tab1
----
-1494
-518
-701

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - - 31 * col0 col0 FROM tab1 AS cor0
----
1974
2467
67

query I rowsort
SELECT ALL - col0 * - col1 * - col1 + + col1 * - col2 AS col1 FROM tab2
----
-23477
-273052
-7564

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

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

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

query I rowsort
SELECT ALL - 76 FROM tab1 cor0
----
-76
-76
-76

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

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

query I rowsort
SELECT DISTINCT - 40 + col1 AS col0 FROM tab0 AS cor0
----
46
51
57

query I rowsort
SELECT DISTINCT - col0 * - 62 AS col1 FROM tab2 AS cor0
----
434
4836
4898

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

query I rowsort
SELECT ALL + + col1 * + 88 + - col2 AS col1 FROM tab0 AS cor0
----
7535
7926
8535

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

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

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

query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - col0 + - CAST ( ( col0 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-178
-48
-70

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

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + col2 * + CAST ( col2 AS INTEGER ) - - col0 * col2 AS col2 FROM tab0 cor0
----
14022
1881
36

query I rowsort
SELECT DISTINCT col0 + - 10 FROM tab0 AS cor0
----
14
25
79

query I rowsort
SELECT DISTINCT - - col2 * col0 - + 3 * col0 AS col1 FROM tab0 AS cor0
----
-70
7031
720

query I rowsort
SELECT col2 * - cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

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

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1210
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-1210
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96

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

query I rowsort
SELECT DISTINCT - - 97 * + 58 FROM tab2 AS cor0
----
5626

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

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

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

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

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

query I rowsort
SELECT + cor0.col1 * 61 + - 34 + - col2 * + 9 FROM tab1 AS cor0
----
-105
1066
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1219
SELECT ALL - 13 * - col1 + tab2.col1 DIV col1 + col0 * col0 FROM tab2
----
453
6463
6852

skipif mysql # not compatible
query I rowsort label-1219
SELECT ALL - 13 * - col1 + tab2.col1 / col1 + col0 * col0 FROM tab2
----
453
6463
6852

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

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

query I rowsort
SELECT + cor0.col0 + + ( 33 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 9c3fcb0491d1928ea6959c983fcf9fd2

query I rowsort
SELECT col0 * col0 * 91 FROM tab1
----
372736
582400
819

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

query I rowsort
SELECT - col0 * + ( + cor0.col1 ) + + col2 - - col1 * col2 FROM tab0 AS cor0
----
-3297
-555
807

query I rowsort
SELECT DISTINCT + col0 * - ( col2 ) + + 14 AS col2 FROM tab2 AS cor0
----
-175
-2014
-2988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 79 * 90 col0 FROM tab2 cor0
----
7110
7110
7110

query I rowsort
SELECT ALL + col0 * 87 AS col1 FROM tab0
----
2088
3045
7743

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT - tab2.col1 DIV col1 - - tab2.col1 FROM tab2
----
16
30
58

skipif mysql # not compatible
query I rowsort label-1230
SELECT - tab2.col1 / col1 - - tab2.col1 FROM tab2
----
16
30
58

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

query I rowsort
SELECT + col0 - 50 AS col1 FROM tab1 AS cor0
----
-47
14
30

query I rowsort
SELECT ALL - col0 + 65 FROM tab2 AS cor0
----
-13
-14
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1234
SELECT + col0 DIV + ( cor0.col0 ) 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-1234
SELECT + col0 / + ( cor0.col0 ) col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT + tab0.col2 DIV 19 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1235
SELECT + tab0.col2 / 19 FROM tab0
----
0
1
4

query I rowsort
SELECT + col1 + col2 * - 52 FROM tab0
----
-1630
-4173
45

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1239
SELECT DISTINCT - col1 * - col2 + - 28 DIV - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - col1 * - col2 + - 28 / - col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

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

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

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

query I rowsort
SELECT DISTINCT + col0 + 5 AS col0 FROM tab0
----
29
40
94

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

query I rowsort
SELECT col0 * - 80 * col2 + tab2.col1 * tab2.col0 FROM tab2
----
-14903
-157638
-238817

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

query I rowsort
SELECT ALL 60 + ( - col0 ) * ( + 25 ) FROM tab0 AS cor0
----
-2165
-540
-815

query I rowsort
SELECT + - col2 + ( + col1 + + col2 ) * cor0.col2 * - col0 FROM tab0 AS cor0
----
-1262636
-3431
-94281

query I rowsort
SELECT 15 * - 71 AS col1 FROM tab0 AS cor0
----
-1065
-1065
-1065

query I rowsort
SELECT ALL 37 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2953
3286
9253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + col1 col1 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-1252
SELECT DISTINCT - + col0 + + col1 DIV cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-1252
SELECT DISTINCT - + col0 + + col1 / cor0.col0 FROM tab0 AS cor0
----
-21
-33
-88

query I rowsort
SELECT DISTINCT + 85 + col0 * - cor0.col1 FROM tab0 cor0
----
-1979
-3310
-8014

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

query I rowsort
SELECT col1 * - 9 * - col2 FROM tab2
----
13806
5814
7533

query I rowsort
SELECT - 52 AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to bee61227972ad9a02705a1cd2b945aee

query I rowsort
SELECT + - 59 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
-5098
-5458
-5758

query I rowsort
SELECT ALL col0 + + 21 * col1 FROM tab2 cor0
----
1317
436
658

query I rowsort
SELECT DISTINCT + col1 * col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL - col2 * col0 - col1 * 47 AS col1 FROM tab0 AS cor0
----
-11575
-4594
-4834

query I rowsort
SELECT cor0.col0 + 2 FROM tab2 AS cor0
----
80
81
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT + cor0.col0 * - col2 - - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif mysql # not compatible
query I rowsort label-1262
SELECT + cor0.col0 * - col2 - - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-188
-2027
-3001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col1 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - + 91 * + col0 + col0 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT ALL - 92 * 16 FROM tab2 AS cor0
----
-1472
-1472
-1472

query I rowsort
SELECT DISTINCT - + ( col1 ) + - col0 * ( 75 ) AS col0 FROM tab0 AS cor0
----
-1886
-2722
-6766

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

query I rowsort
SELECT ALL col2 * col1 + - col1 * + col0 + - col0 * ( + col2 ) AS col2 FROM tab0 AS cor0
----
-18
-3333
-7935

query I rowsort
SELECT col1 + col1 + + col1 AS col1 FROM tab2
----
177
51
93

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

query I rowsort
SELECT ALL 51 * col0 FROM tab1 cor0
----
153
3264
4080

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

query I rowsort
SELECT ALL - col0 * - col0 + ( + col1 ) + - ( cor0.col2 ) * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-1369
3536
5165

query I rowsort
SELECT ALL + col1 + 47 * + 54 + col0 FROM tab2 AS cor0
----
2576
2634
2675

query I rowsort
SELECT DISTINCT - + col0 * 43 FROM tab2 AS cor0
----
-301
-3354
-3397

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

query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 - - col0 AS col1 FROM tab0 AS cor0
----
-27
-2790
-7284

query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 + - col2 - + col1 * col2 FROM tab0 AS cor0
----
-15643
-3493
-4935

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

query I rowsort
SELECT col1 + + 75 AS col2 FROM tab2 AS cor0
----
106
134
92

query I rowsort
SELECT ALL + - cor0.col0 + + 18 FROM tab2 cor0
----
-60
-61
11

query I rowsort
SELECT DISTINCT - + cor0.col1 * 89 AS col2 FROM tab2 AS cor0
----
-1513
-2759
-5251

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 92 ) * col0 col2 FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT DISTINCT col2 - - col1 * col2 AS col0 FROM tab1
----
1344
1458
627

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 60 * - col1 col1 FROM tab1 cor0
----
-1557
-536
-700

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

query I rowsort
SELECT 32 * 49 * col2 AS col1 FROM tab0 AS cor0
----
128576
1568
51744

query I rowsort
SELECT DISTINCT cor1.col0 * + cor2.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab0 AS cor2
----
9 values hashing to 116454f2268e21c1351daf3f5803c987

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) * - col2 * + 94 AS col2 FROM tab1 AS cor0
----
-274104
-305406
-866304

query I rowsort
SELECT ALL col2 + 1 FROM tab0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT ALL - 6 DIV col0 + + col0 FROM tab1
----
1
64
80

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - 6 / col0 + + col0 FROM tab1
----
1
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-1295
SELECT 87 DIV - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b3d6c8be0dc15270b9c82e9356b59da4

skipif mysql # not compatible
query I rowsort label-1295
SELECT 87 / - cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to b3d6c8be0dc15270b9c82e9356b59da4

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

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

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

query I rowsort
SELECT + col1 + - col1 * col1 * - 57 FROM tab0
----
421658
472108
536410

query I rowsort
SELECT ALL ( - 89 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc

query I rowsort
SELECT ALL 73 * - col2 AS col2 FROM tab1
----
-3942
-4161
-7008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1301
SELECT DISTINCT - ( col2 ) DIV + 33 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - ( col2 ) / + 33 FROM tab1
----
-1
-2

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

query I rowsort
SELECT col2 * + col0 * - 71 + + 87 FROM tab2
----
-13332
-143901
-213055

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

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

query I rowsort
SELECT col2 + + 8 FROM tab0 AS cor0
----
41
9
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-1306
SELECT ALL col1 DIV 5 FROM tab1 AS cor0
----
2
2
5

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL col1 / 5 FROM tab1 AS cor0
----
2
2
5

query I rowsort
SELECT - + 57 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT ALL - col1 * + 35 AS col0 FROM tab1 AS cor0
----
-350
-455
-910

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + cor0.col0 col0 FROM tab0 AS cor0
----
110
132
180

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

query I rowsort
SELECT DISTINCT - col1 + + col0 * + col0 * - col0 FROM tab1 AS cor0
----
-262154
-512013
-53

query I rowsort
SELECT + col1 + - col2 * 99 AS col1 FROM tab1 AS cor0
----
-5320
-5633
-9491

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1317
SELECT DISTINCT col2 + col0 DIV - col0 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT col2 + col0 / - col0 FROM tab0 AS cor0
----
0
32
81

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 + + col0 col0 FROM tab2 AS cor0
----
113
114
42

query I rowsort
SELECT col2 + 84 FROM tab1 AS cor0
----
138
141
180

query I rowsort
SELECT - col1 + cor0.col1 * 30 FROM tab0 AS cor0
----
2494
2639
2813

onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT col2 DIV + col1 + 70 - + col2 * 52 FROM tab0 cor0
----
-1646
-4194
18

skipif mysql # not compatible
query I rowsort label-1322
SELECT col2 / + col1 + 70 - + col2 * 52 FROM tab0 cor0
----
-1646
-4194
18

query I rowsort
SELECT DISTINCT cor0.col1 + + 86 AS col1 FROM tab2 cor0
----
103
117
145

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

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

query I rowsort
SELECT DISTINCT + col2 + + 70 + col0 AS col2 FROM tab0 AS cor0
----
106
127
241

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

query I rowsort
SELECT 43 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9

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

query I rowsort
SELECT + - 89 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
-11
551
951

query I rowsort
SELECT - cor0.col2 * + 73 FROM tab1 cor0
----
-3942
-4161
-7008

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

query I rowsort
SELECT tab0.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT ALL - col0 * col1 * 3 FROM tab0
----
-10185
-24297
-6192

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

query I rowsort
SELECT DISTINCT + 37 * + cor2.col0 FROM tab1, tab1 AS cor0, tab0 cor1, tab2 AS cor2
----
259
2886
2923

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

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

query I rowsort
SELECT ALL + ( - 10 ) FROM tab0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT cor1.col1 * 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2580
2730
2910

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

query I rowsort
SELECT ALL + + 12 + col0 AS col0 FROM tab0 AS cor0
----
101
36
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - - col0 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL 74 + + col2 AS col2 FROM tab2 AS cor0
----
100
101
112

onlyif mysql # use DIV operator for integer division
query I rowsort label-1345
SELECT 50 + - col0 DIV - 43 AS col0 FROM tab2 AS cor0
----
50
51
51

skipif mysql # not compatible
query I rowsort label-1345
SELECT 50 + - col0 / - 43 AS col0 FROM tab2 AS cor0
----
50
51
51

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

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

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

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

query I rowsort
SELECT 55 * + 95 FROM tab2
----
5225
5225
5225

query I rowsort
SELECT 65 * - col2 FROM tab1
----
-3510
-3705
-6240

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

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

skipif mysql # not compatible
query I rowsort label-1353
SELECT + col2 * col0 + CAST ( - col1 * + col2 AS INTEGER ) AS col2 FROM tab2
----
-648
2356
494

query I rowsort
SELECT 71 - - tab1.col2 FROM tab1
----
125
128
167

query I rowsort
SELECT + + 4 * col0 AS col2 FROM tab2 AS cor0
----
28
312
316

query I rowsort
SELECT DISTINCT 9 + - col0 * col2 FROM tab2 AS cor0
----
-180
-2019
-2993

query I rowsort
SELECT 0 * col1 * ( - 5 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT ALL col0 * + col0 + - col2 DIV col1 FROM tab0 AS cor0
----
1225
576
7921

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL col0 * + col0 + - col2 / col1 FROM tab0 AS cor0
----
1225
576
7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 7 ) * cor2.col0 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 6abf63445915edeb7a2c0b2cd275f4bc

query I rowsort
SELECT 6 * + col1 AS col2 FROM tab1 cor0
----
156
60
78

query I rowsort
SELECT col2 + 61 AS col2 FROM tab1
----
115
118
157

query I rowsort
SELECT - col1 - 47 AS col2 FROM tab2
----
-106
-64
-78

query I rowsort
SELECT DISTINCT 61 * + col2 + - col0 FROM tab0
----
1989
26
4913

query I rowsort
SELECT ALL col2 * tab1.col1 + col2 + + col2 AS col2 FROM tab1
----
1440
1512
684

query I rowsort
SELECT ALL - col0 + 72 + col2 * col0 AS col1 FROM tab1
----
231
3656
7672

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * tab2.col2 * ( col0 ) FROM tab2
----
-119652
-51034
-5859

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

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

skipif mysql # not compatible
query I rowsort
SELECT - col2 + + CAST ( - col2 * - col2 AS REAL ) - - col2 * 51 FROM tab0 AS cor0
----
10824
2739
51

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT ALL ( - col0 ) DIV + col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL ( - col0 ) / + col0 FROM tab0
----
-1
-1
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1377
SELECT - + CAST ( col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT - 29 + - col1 * col2 AS col1 FROM tab1
----
-1277
-1433
-599

query I rowsort
SELECT + tab1.col0 + 57 AS col2 FROM tab1
----
121
137
60

query I rowsort
SELECT ALL - cor0.col0 * + 40 * - col0 + + 49 * - col0 FROM tab1 AS cor0
----
160704
213
252080

query I rowsort
SELECT ALL 36 * cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
225
2782
2806

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

query I rowsort
SELECT + cor0.col1 + - 11 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 331d23ff65e00a449fa8af55400dfdd0

query I rowsort
SELECT DISTINCT 99 * col0 + - col1 FROM tab1 AS cor0
----
271
6326
7907

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

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

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

query I rowsort
SELECT ALL + 37 * + col2 AS col1 FROM tab0 AS cor0
----
1221
3034
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT DISTINCT - cor0.col2 DIV - col2 + 93 DIV col0 + col1 * - 19 AS col2 FROM tab1 AS cor0
----
-188
-245
-462

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT - cor0.col2 / - col2 + 93 / col0 + col1 * - 19 AS col2 FROM tab1 AS cor0
----
-188
-245
-462

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1390
SELECT ALL CAST( 57 AS SIGNED ) AS col1 FROM tab2
----
57
57
57

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL CAST ( 57 AS INTEGER ) AS col1 FROM tab2
----
57
57
57

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

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

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

query I rowsort
SELECT DISTINCT - 29 * + col0 * - col1 AS col1 FROM tab1
----
18560
2262
30160

query I rowsort
SELECT - 75 + col2 * - ( col2 ) FROM tab1 AS cor0
----
-2991
-3324
-9291

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

query I rowsort
SELECT + 47 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
81 values hashing to 5c7a6f591fb2a38893dafe56c4b9b97f

query I rowsort
SELECT + + ( + cor0.col1 ) * - ( 99 ) AS col0 FROM tab0 AS cor0
----
-8514
-9009
-9603

onlyif mysql # use DIV operator for integer division
query I rowsort label-1399
SELECT 42 DIV - col2 + - tab1.col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1399
SELECT 42 / - col2 + - tab1.col2 FROM tab1
----
-54
-57
-96

query I rowsort
SELECT + + 84 + 78 FROM tab0 AS cor0
----
162
162
162

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT - 89 + - col1 DIV - col1 FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-1402
SELECT - 89 + - col1 / - col1 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT 47 * + col0 AS col0 FROM tab1 cor0
----
141
3008
3760

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-1408
SELECT ALL + 28 + + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
28
28
29

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + 28 + + col2 / col0 AS col2 FROM tab0 AS cor0
----
28
28
29

query I rowsort
SELECT - 77 * - col1 + - cor0.col0 FROM tab2 AS cor0
----
1230
2380
4465

query I rowsort
SELECT DISTINCT col1 + ( 27 ) FROM tab2
----
44
58
86

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT ALL - col0 DIV ( + 59 ) + col1 + - col2 AS col2 FROM tab1
----
-28
-48
-84

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL - col0 / ( + 59 ) + col1 + - col2 AS col2 FROM tab1
----
-28
-48
-84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1413
SELECT col2 * - CAST( 67 AS SIGNED ) AS col0 FROM tab0
----
-2211
-5494
-67

skipif mysql # not compatible
query I rowsort label-1413
SELECT col2 * - CAST ( 67 AS INTEGER ) AS col0 FROM tab0
----
-2211
-5494
-67

query I rowsort
SELECT DISTINCT + col2 + - col0 + - ( + tab1.col1 ) AS col0 FROM tab1
----
-17
25
3

query I rowsort
SELECT - col2 + 2 FROM tab1
----
-52
-55
-94

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

query I rowsort
SELECT ALL + + 6 AS col2 FROM tab2 AS cor0
----
6
6
6

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

query I rowsort
SELECT DISTINCT - + col0 * - 96 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT ALL + col1 + 88 FROM tab2 cor0
----
105
119
147

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) * - col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 39 + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d786c86c12bb6b3bcf6cd52d2850258a

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

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

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

query I rowsort
SELECT + col2 * - 10 * + col0 - + col0 FROM tab1
----
-1623
-36544
-76880

query I rowsort
SELECT 53 * 25 AS col2 FROM tab2 AS cor0
----
1325
1325
1325

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1429
SELECT + + CAST( - 85 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
1
12
6

skipif mysql # not compatible
query I rowsort label-1429
SELECT + + CAST ( - 85 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
1
12
6

query I rowsort
SELECT 5 * 87 FROM tab2 AS cor0
----
435
435
435

onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT + + ( - col2 ) + + cor0.col2 DIV 63 AS col1 FROM tab1 AS cor0
----
-54
-57
-95

skipif mysql # not compatible
query I rowsort label-1431
SELECT + + ( - col2 ) + + cor0.col2 / 63 AS col1 FROM tab1 AS cor0
----
-54
-57
-95

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

query I rowsort
SELECT - - 10 FROM tab2 cor0
----
10
10
10

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

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

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

query I rowsort
SELECT cor0.col0 * col2 * + col1 + - col1 FROM tab2 AS cor0
----
119593
51017
5828

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

query I rowsort
SELECT + ( + 76 ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT + + col1 DIV ( - col2 * col2 ) + - col0 * + 55 AS col0 FROM tab0 AS cor0
----
-1320
-2022
-4895

skipif mysql # not compatible
query I rowsort label-1440
SELECT + + col1 / ( - col2 * col2 ) + - col0 * + 55 AS col0 FROM tab0 AS cor0
----
-1320
-2022
-4895

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

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

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

query I rowsort
SELECT col1 + 91 * + col1 AS col0 FROM tab2 cor0
----
1564
2852
5428

onlyif mysql # use DIV operator for integer division
query I rowsort label-1444
SELECT cor0.col1 * col0 * - col0 + - col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-242
-40960
-83200

skipif mysql # not compatible
query I rowsort label-1444
SELECT cor0.col1 * col0 * - col0 + - col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-242
-40960
-83200

query I rowsort
SELECT ALL - + col1 * col2 * 64 - col0 FROM tab2 AS cor0
----
-41423
-53575
-98254

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

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

query I rowsort
SELECT DISTINCT - col1 + - col2 * + 98 AS col1 FROM tab2 AS cor0
----
-2607
-2677
-3741

skipif mysql # not compatible
query I rowsort
SELECT ALL + - cor0.col1 + CAST ( col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT col2 * 17 AS col0 FROM tab1 AS cor0
----
1632
918
969

query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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

skipif mysql # not compatible
query I rowsort label-1451
SELECT DISTINCT + col1 + col2 / + col0 FROM tab2 AS cor0
----
17
34
59

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

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

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

query I rowsort
SELECT 13 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to b092e3fa17e78608cf120e97d1bfff67

query I rowsort
SELECT + col0 + 95 * 6 AS col2 FROM tab1
----
573
634
650

query I rowsort
SELECT ALL col2 * - col1 + - 59 FROM tab2
----
-1593
-705
-896

query I rowsort
SELECT DISTINCT tab1.col1 + 30 * - tab1.col2 FROM tab1
----
-1594
-1700
-2867

query I rowsort
SELECT ALL + cor0.col0 + + col1 + - col1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT cor0.col0 * 17 * - 95 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-103360
-129200
-4845

query I rowsort
SELECT - col1 * - col2 * + 38 + 77 + - col1 FROM tab1
----
21727
47488
53403

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

query I rowsort
SELECT 54 + col0 * - 10 AS col0 FROM tab1
----
-586
-746
24

query I rowsort
SELECT ALL col1 - col1 * - col0 FROM tab0
----
2150
3492
8190

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

query I rowsort
SELECT ALL - col0 * col0 * + ( col1 ) AS col1 FROM tab1
----
-234
-40960
-83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 * - col2 col1 FROM tab2
----
196
2106
3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 * + ( col2 ) col2 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - col0 * col1 - + ( col0 * + cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4736
-7440
-87

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1, tab0 cor0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 31 col0 FROM tab2 AS cor0
----
217
2418
2449

query I rowsort
SELECT ALL + + 69 + - 22 * col1 FROM tab0 cor0
----
-1823
-1933
-2065

query I rowsort
SELECT ALL + - ( - ( - cor0.col0 - - 31 - - 27 - - cor0.col0 - col1 - col0 ) ) + + col1 + + col0 AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL - ( 68 ) + col0 - ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1236
-1469
-574

query I rowsort
SELECT DISTINCT - 66 * col2 AS col0 FROM tab2 AS cor0
----
-1716
-1782
-2508

onlyif mysql # use DIV operator for integer division
query I rowsort label-1478
SELECT ALL + col0 * ( - cor0.col1 ) DIV + 71 + + col1 * col1 - col1 AS col0 FROM tab2 AS cor0
----
254
3358
927

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + col0 * ( - cor0.col1 ) / + 71 + + col1 * col1 - col1 AS col0 FROM tab2 AS cor0
----
254
3358
927

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844

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

skipif mysql # not compatible
query I rowsort label-1485
SELECT + CAST ( + col1 * + col0 AS INTEGER ) FROM tab1
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 7 - col2 col1 FROM tab2 AS cor0
----
-19
-20
-31

query I rowsort
SELECT ALL + col2 * col2 + col0 AS col2 FROM tab0 cor0
----
1113
36
6813

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

query I rowsort
SELECT col2 + 91 AS col1 FROM tab2 cor0
----
117
118
129

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

query I rowsort
SELECT ALL + + cor0.col2 + - col1 * + 87 FROM tab0 AS cor0
----
-7449
-7835
-8438

query I rowsort
SELECT + tab1.col1 * ( col2 ) * - col2 + + col0 * - 85 FROM tab1
----
-126608
-37930
-76071

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

query I rowsort
SELECT - + col1 + col2 * - col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
36470
4186
99827

query I rowsort
SELECT ALL - - col0 + 3 AS col2 FROM tab1 AS cor0
----
6
67
83

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

query I rowsort
SELECT DISTINCT - + col0 * ( - col2 + cor0.col0 ) AS col0 FROM tab1 cor0
----
-448
1280
153

onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT ALL col0 DIV + col1 + 9 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-16
-18
-25

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL col0 / + col1 + 9 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-16
-18
-25

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

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

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

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

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

query I rowsort
SELECT + - col1 * - 21 + - col2 * col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-296
-855
-895

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1505
SELECT 34 DIV col1 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1505
SELECT 34 / col1 FROM tab1 AS cor0
----
1
2
3

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

query I rowsort
SELECT + 65 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
-169
-4150
-5187

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT ALL + 25 * col2 + col2 DIV + col0 col0 FROM tab2 AS cor0
----
650
678
950

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 25 * col2 + col2 / + col0 col0 FROM tab2 AS cor0
----
650
678
950

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

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

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

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

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

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

query I rowsort
SELECT 71 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2

query I rowsort
SELECT DISTINCT + 29 + + col2 * col0 FROM tab2
----
2057
218
3031

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1519
SELECT ALL - cor0.col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL - cor0.col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col0 + col1 col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT + col0 * col1 * - col1 + col0 * + tab0.col1 FROM tab0
----
-175440
-325920
-728910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT DISTINCT - 96 * col2 * + CAST( col2 AS SIGNED ) + col2 * - col2 + + col2 * col1 FROM tab1
----
-281448
-314583
-892704

skipif mysql # not compatible
query I rowsort label-1522
SELECT DISTINCT - 96 * col2 * + CAST ( col2 AS INTEGER ) + col2 * - col2 + + col2 * col1 FROM tab1
----
-281448
-314583
-892704

onlyif mysql # use DIV operator for integer division
query I rowsort label-1523
SELECT DISTINCT tab0.col2 DIV col2 + + col0 + 50 AS col0 FROM tab0
----
140
75
86

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT tab0.col2 / col2 + + col0 + 50 AS col0 FROM tab0
----
140
75
86

query I rowsort
SELECT ALL 44 * + col2 + col1 FROM tab2
----
1203
1219
1689

query I rowsort
SELECT + 92 * col2 + ( cor0.col2 ) * - col2 FROM tab1 AS cor0
----
-384
1995
2052

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 36 col2 FROM tab2
----
-1368
-936
-972

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

query I rowsort
SELECT DISTINCT - 85 * tab0.col0 FROM tab0
----
-2040
-2975
-7565

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 + 25 ) col2 FROM tab1
----
29
32
71

query I rowsort
SELECT 67 * col2 AS col2 FROM tab1 AS cor0
----
3618
3819
6432

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1532
SELECT - col2 DIV ( col0 ) AS col2 FROM tab1
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-1532
SELECT - col2 / ( col0 ) AS col2 FROM tab1
----
-1
-18
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1533
SELECT col0 * CAST( 20 AS SIGNED ) * col0 + - col0 + col1 FROM tab2
----
1004
121661
124758

skipif mysql # not compatible
query I rowsort label-1533
SELECT col0 * CAST ( 20 AS INTEGER ) * col0 + - col0 + col1 FROM tab2
----
1004
121661
124758

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

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

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

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

query I rowsort
SELECT + cor0.col2 * + ( - col2 ) * col0 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

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

query I rowsort
SELECT - 41 - col1 AS col2 FROM tab2 AS cor0
----
-100
-58
-72

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

query I rowsort
SELECT + col1 * col0 + col2 * 64 FROM tab2 AS cor0
----
1945
3775
6266

query I rowsort
SELECT 27 + - col2 * + cor0.col0 FROM tab1 AS cor0
----
-135
-3621
-7653

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

query I rowsort
SELECT DISTINCT col0 - 68 AS col1 FROM tab2
----
-61
10
11

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

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

query I rowsort
SELECT 54 * - tab0.col2 AS col0 FROM tab0
----
-1782
-4428
-54

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

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

query I rowsort
SELECT col1 + 75 * + col1 - - ( - col2 ) FROM tab1
----
1922
703
892

query I rowsort
SELECT DISTINCT - 48 - 32 * tab1.col2 AS col2 FROM tab1
----
-1776
-1872
-3120

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

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

query I rowsort
SELECT ALL + cor0.col2 + - 80 AS col1 FROM tab0 AS cor0
----
-47
-79
2

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 DISTINCT - - 38 + + cor0.col0 FROM tab1 AS cor0
----
102
118
41

query I rowsort
SELECT - col1 * + 69 + + col0 + 51 * - 48 AS col0 FROM tab2
----
-3542
-4580
-6441

query I rowsort
SELECT 67 * + 89 + tab1.col0 FROM tab1
----
5966
6027
6043

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

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

query I rowsort
SELECT ALL cor0.col0 * - col0 + - ( col2 ) + col0 FROM tab1 AS cor0
----
-4089
-60
-6416

query I rowsort
SELECT DISTINCT 13 * - col0 AS col0 FROM tab1 AS cor0
----
-1040
-39
-832

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

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

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

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

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

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

query I rowsort
SELECT - + col1 * cor0.col2 + col0 - + col2 FROM tab2 AS cor0
----
-1482
-605
-857

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

query I rowsort
SELECT ALL 27 - col0 * - col0 AS col1 FROM tab1
----
36
4123
6427

query I rowsort
SELECT 19 * 58 - tab0.col1 AS col0 FROM tab0
----
1005
1011
1016

onlyif mysql # use DIV operator for integer division
query I rowsort label-1569
SELECT + 87 DIV col1 + - tab1.col1 * 77 + + col0 AS col2 FROM tab1
----
-1996
-698
-915

skipif mysql # not compatible
query I rowsort label-1569
SELECT + 87 / col1 + - tab1.col1 * 77 + + col0 AS col2 FROM tab1
----
-1996
-698
-915

query I rowsort
SELECT ALL - 33 - + col1 AS col2 FROM tab0
----
-119
-124
-130

query I rowsort
SELECT ALL 23 + col0 FROM tab0 AS cor0
----
112
47
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1572
SELECT + + col0 + col1 * CAST( 30 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2604
2819
2945

skipif mysql # not compatible
query I rowsort label-1572
SELECT + + col0 + col1 * CAST ( 30 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2604
2819
2945

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

query I rowsort
SELECT ALL col1 + + col2 * 23 FROM tab0 AS cor0
----
120
1977
845

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

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

query I rowsort
SELECT ALL col2 + 96 FROM tab1 AS cor0
----
150
153
192

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT ALL - + cor0.col2 * col1 + cor0.col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - + cor0.col2 * col1 + cor0.col2 / col1 AS col1 FROM tab2 AS cor0
----
-1534
-644
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 col2 FROM tab2
----
1343
217
4602

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

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

query I rowsort
SELECT DISTINCT + 1 - col0 * col2 AS col2 FROM tab0 AS cor0
----
-34
-7297
-791

query I rowsort
SELECT col1 * - ( - col2 ) - - col0 AS col2 FROM tab0
----
132
2862
7551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 81 - + ( - col1 ) col0 FROM tab1 AS cor0
----
-109
-128
-164

query I rowsort
SELECT + col1 + - 23 AS col2 FROM tab1 cor0
----
-10
-13
3

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL - + col2 / - col1 + + 32 FROM tab0 AS cor0
----
32
32
32

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

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

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

query I rowsort
SELECT ALL - cor0.col0 + 33 FROM tab2 AS cor0
----
-45
-46
26

query I rowsort
SELECT DISTINCT - col0 * col1 * col0 + - col0 - col1 AS col1 FROM tab0 AS cor0
----
-118957
-49646
-720991

query I rowsort
SELECT - col0 * 7 + 32 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-236840
-265615
-301333

query I rowsort
SELECT cor0.col1 + - 48 AS col1 FROM tab1 AS cor0
----
-22
-35
-38

query I rowsort
SELECT DISTINCT - col1 * - col0 * + col2 + col0 FROM tab2 cor0
----
119730
51113
5866

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT + + col1 * + CAST ( - 37 AS INTEGER ) + col2 FROM tab2 AS cor0
----
-1120
-2157
-591

onlyif mysql # use DIV operator for integer division
query I rowsort label-1595
SELECT ALL - cor0.col1 DIV + col0 + + col0 AS col2 FROM tab2 cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL - cor0.col1 / + col0 + + col0 AS col2 FROM tab2 cor0
----
3
78
79

query I rowsort
SELECT DISTINCT - col0 * col1 - col1 * 18 * - col1 FROM tab0 AS cor0
----
131064
140959
165967

query I rowsort
SELECT DISTINCT - 40 - + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
-50
-53
-66

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

query I rowsort
SELECT + col0 * col2 + + 67 * - col1 + col1 FROM tab1 AS cor0
----
-1554
2988
6822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 * cor0.col0 col1 FROM tab1 AS cor0
----
255
5440
6800

query I rowsort
SELECT ALL + - 90 * col0 AS col2 FROM tab0 AS cor0
----
-2160
-3150
-8010

query I rowsort
SELECT - cor0.col2 * + col0 * 94 AS col1 FROM tab2 AS cor0
----
-17766
-190632
-282188

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL + col1 / col0 AS col1 FROM tab1
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-1604
SELECT ALL + col2 + + col1 * col2 DIV col1 + - tab2.col2 * - col2 AS col1 FROM tab2
----
1520
728
783

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL + col2 + + col1 * col2 / col1 + - tab2.col2 * - col2 AS col1 FROM tab2
----
1520
728
783

query I rowsort
SELECT DISTINCT - tab2.col0 + col2 + - tab2.col2 * col0 AS col1 FROM tab2
----
-169
-2080
-3043

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT DISTINCT + col0 + - col2 * col0 DIV - tab2.col0 + + col2 AS col2 FROM tab2
----
130
155
61

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + col0 + - col2 * col0 / - tab2.col0 + + col2 AS col2 FROM tab2
----
130
155
61

query I rowsort
SELECT DISTINCT - col2 + tab2.col1 + + col0 FROM tab2
----
11
111
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-1609
SELECT + tab0.col1 * col0 DIV - col2 FROM tab0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-1609
SELECT + tab0.col1 * col0 / - col2 FROM tab0
----
-3395
-62
-98

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * tab2.col2 + col0 AS col1 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT ALL + col1 * + tab1.col1 + col0 * col0 FROM tab1
----
4196
6569
685

query I rowsort
SELECT - col2 * - 24 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT 39 AS col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229

query I rowsort
SELECT - col0 + - col0 * col0 * tab2.col0 AS col0 FROM tab2
----
-350
-474630
-493118

query I rowsort
SELECT - col1 + + 89 FROM tab2
----
30
58
72

query I rowsort
SELECT ALL - 96 + - col0 * col0 FROM tab0 AS cor0
----
-1321
-672
-8017

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

query I rowsort
SELECT 85 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

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

skipif mysql # not compatible
query I rowsort label-1625
SELECT - col0 / + 77 FROM tab0 AS cor0
----
-1
0
0

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

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 81 FROM tab1 AS cor0
----
4377
4681
7856

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

query I rowsort
SELECT ( col0 ) * col0 * 9 + col0 AS col2 FROM tab1 AS cor0
----
36928
57680
84

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

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

query I rowsort
SELECT ALL col1 * + 96 * - tab1.col2 AS col1 FROM tab1
----
-119808
-134784
-54720

query I rowsort
SELECT col2 + col0 * 67 FROM tab2 AS cor0
----
496
5252
5331

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

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

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT DISTINCT col0 + - col2 DIV col2 + col0 AS col0 FROM tab0 cor0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT col0 + - col2 / col2 + col0 AS col0 FROM tab0 cor0
----
177
47
69

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

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

query I rowsort
SELECT DISTINCT + col1 * - tab1.col2 - col2 FROM tab1
----
-1344
-1458
-627

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1645
SELECT cor0.col0 DIV tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7a36023ae3a0064882cdba4294e64d78

skipif mysql # not compatible
query I rowsort label-1645
SELECT cor0.col0 / tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7a36023ae3a0064882cdba4294e64d78

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

query I rowsort
SELECT tab2.col2 * col1 * - col0 + + col0 + - col1 AS col0 FROM tab2
----
-119633
-50972
-5883

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

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

query I rowsort
SELECT + - 75 AS col1 FROM tab1 AS cor0
----
-75
-75
-75

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

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

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

query I rowsort
SELECT ( 6 ) FROM tab1
----
6
6
6

query I rowsort
SELECT - col1 * - col1 / tab0.col0 AS col1 FROM tab0 WHERE col2 * col1 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

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

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

skipif mysql # not compatible
query I rowsort label-1657
SELECT - col1 + col1 + col2 / + col2 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> col0
----

query I rowsort
SELECT col1 + col2 + col2 * + col0 AS col0 FROM tab2
----
2113
247
3057

query I rowsort
SELECT ALL tab0.col1 * col2 + col0 * - col0 AS col0 FROM tab0
----
-1128
-459
2262

query III rowsort
SELECT * FROM tab1 WHERE NOT tab1.col0 * + col0 = - col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT col2 + - col2 * col1 * + col1 FROM tab0
----
-244035
-678960
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + col0 + + col2 col1 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL col2 + + col0 + - tab1.col2 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col0 * col0 + - col1 * + col2 - + tab0.col2 AS col1 FROM tab0
----
-2295
1127
377

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

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

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

onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT col2 + - col2 DIV - col0 AS col0 FROM tab2
----
26
30
38

skipif mysql # not compatible
query I rowsort label-1669
SELECT col2 + - col2 / - col0 AS col0 FROM tab2
----
26
30
38

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

query I rowsort
SELECT ALL - col0 + col0 * + col2 * col1 FROM tab0
----
3360
664029
68088

onlyif mysql # use DIV operator for integer division
query I rowsort label-1672
SELECT - - col1 + - col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-1672
SELECT - - col1 + - col0 / + col0 AS col0 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT - col1 + - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

skipif mysql # not compatible
query I rowsort label-1673
SELECT - col1 + - col1 / + col1 AS col1 FROM tab1 AS cor0
----
-11
-14
-27

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-912
2603
5952

query I rowsort
SELECT - col1 * + col0 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-3492
-664209
-68198

query I rowsort
SELECT + cor0.col1 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT col0 * + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT ALL col2 + - cor0.col1 + + col0 FROM tab1 cor0
----
111
163
31

query I rowsort
SELECT ALL + col2 * + col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1680
SELECT DISTINCT - col2 + - col1 DIV + col1 FROM tab1
----
-55
-58
-97

skipif mysql # not compatible
query I rowsort label-1680
SELECT DISTINCT - col2 + - col1 / + col1 FROM tab1
----
-55
-58
-97

query I rowsort
SELECT ALL - 44 + col0 + + col2 FROM tab2
----
-10
60
73

query I rowsort
SELECT col1 + + col2 * tab2.col0 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT + + col2 + col2 - 65 FROM tab2 AS cor0
----
-11
-13
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-1684
SELECT + col0 + + col0 DIV - col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-1684
SELECT + col0 + + col0 / - col0 FROM tab1
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * col0 + 37 * 91 + col1 col2 FROM tab1
----
3471
4017
4420

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1686
SELECT ALL CAST( - 53 AS SIGNED ) * + col0 AS col1 FROM tab2 AS cor0
----
-371
-4134
-4187

skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL CAST ( - 53 AS INTEGER ) * + col0 AS col1 FROM tab2 AS cor0
----
-371
-4134
-4187

onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT - + col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1687
SELECT - + col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1688
SELECT DISTINCT - cor0.col0 DIV 8 FROM tab1 AS cor0
----
-10
-8
0

skipif mysql # not compatible
query I rowsort label-1688
SELECT DISTINCT - cor0.col0 / 8 FROM tab1 AS cor0
----
-10
-8
0

query I rowsort
SELECT ALL ( col0 * col0 ) + - col0 AS col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT DISTINCT cor0.col0 + - tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a0891d923255f338145ac78ca8c0ccef

query I rowsort
SELECT ALL ( - col2 + - col1 * col0 ) FROM tab0
----
-2097
-3396
-8181

query I rowsort
SELECT + col1 + + col2 * + col2 AS col1 FROM tab1 cor0
----
2942
3259
9229

query I rowsort
SELECT DISTINCT 49 + - col2 AS col2 FROM tab2 AS cor0
----
11
22
23

query I rowsort
SELECT - + 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT ALL - col1 + cor0.col2 * 43 FROM tab2 AS cor0
----
1059
1130
1617

query I rowsort
SELECT ALL + + 83 * col0 + col1 FROM tab2 AS cor0
----
612
6533
6574

query I rowsort
SELECT + - col1 + col1 * + 75 AS col0 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT ALL - col2 * col2 + col0 + col2 FROM tab1 AS cor0
----
-2859
-3128
-9040

onlyif mysql # use DIV operator for integer division
query I rowsort label-1699
SELECT DISTINCT - col2 * + 39 + 36 DIV - col0 AS col0 FROM tab1 AS cor0
----
-2118
-2223
-3744

skipif mysql # not compatible
query I rowsort label-1699
SELECT DISTINCT - col2 * + 39 + 36 / - col0 AS col0 FROM tab1 AS cor0
----
-2118
-2223
-3744

onlyif mysql # use DIV operator for integer division
query I rowsort label-1700
SELECT ALL - col0 + + col1 DIV + col0 FROM tab0 cor0
----
-21
-33
-88

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - col0 + + col1 / + col0 FROM tab0 cor0
----
-21
-33
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT col0 DIV + 76 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1701
SELECT col0 / + 76 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - 71 FROM tab2 cor0
----
-1286
-2208
-4267

query I rowsort
SELECT ALL - + col0 * cor0.col0 + + ( col1 ) FROM tab1 AS cor0
----
-4086
-6387
17

onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT ALL - col2 + + ( col0 ) DIV - col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL - col2 + + ( col0 ) / - col1 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL col1 * ( ( col0 ) ) AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + - col1 + ( 43 ) FROM tab0 AS cor0
----
-43
-48
-54

query I rowsort
SELECT ALL - col0 + - ( + col1 ) * col2 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT ( + col0 ) * col1 + + ( - 56 ) AS col2 FROM tab2 cor0
----
1287
161
4546

query I rowsort
SELECT + cor1.col0 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT DISTINCT - col2 * - 89 + - col2 DIV col2 + - col1 AS col0 FROM tab1 AS cor0
----
4779
5062
8530

skipif mysql # not compatible
query I rowsort label-1711
SELECT DISTINCT - col2 * - 89 + - col2 / col2 + - col1 AS col0 FROM tab1 AS cor0
----
4779
5062
8530

query I rowsort
SELECT - ( cor0.col2 ) + cor0.col0 * ( 68 ) * + col2 - col2 FROM tab0 AS cor0
----
2378
496100
53790

onlyif mysql # use DIV operator for integer division
query I rowsort label-1713
SELECT ALL - 3 DIV col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT ALL - 3 / col0 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( - col0 ) * - col2 col0 FROM tab2
----
1323
158184
237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col1 ) * - col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT col0 + 71 AS col0 FROM tab0
----
106
160
95

query I rowsort
SELECT ALL + 90 + + col2 FROM tab1 AS cor0
----
144
147
186

query I rowsort
SELECT ALL cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT DISTINCT 55 * col1 AS col0 FROM tab1
----
1430
550
715

query I rowsort
SELECT - 0 FROM tab1, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT + cor0.col2 * - 95 FROM tab2 AS cor0
----
-2470
-2565
-3610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - ( - 89 ) col1 FROM tab2 AS cor0
----
30
58
72

query I rowsort
SELECT col2 + + 70 * 55 AS col1 FROM tab0 AS cor0
----
3851
3883
3932

query I rowsort
SELECT DISTINCT tab1.col1 * col1 * + col0 FROM tab1
----
13520
2028
6400

query I rowsort
SELECT DISTINCT col2 * 95 + col1 * col1 FROM tab1 AS cor0
----
5515
5806
9289

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 + + col0 col0 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-1727
SELECT tab1.col1 + ( - cor0.col2 ) DIV + 3 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 72b7a1fa83821e9c201dd0ac5cff49b4

skipif mysql # not compatible
query I rowsort label-1727
SELECT tab1.col1 + ( - cor0.col2 ) / + 3 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 72b7a1fa83821e9c201dd0ac5cff49b4

onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT DISTINCT - - col0 DIV + 8 + 97 * - col1 col1 FROM tab0 AS cor0
----
-8339
-8816
-9405

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1728
SELECT DISTINCT - - col0 / + 8 + 97 * - col1 col1 FROM tab0 AS cor0
----
-8339
-8816
-9405

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1729
SELECT ( + col1 ) + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
55
58
85

skipif mysql # not compatible
query I rowsort label-1729
SELECT ( + col1 ) + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT 83 * + col2 AS col2 FROM tab0
----
2739
6806
83

query I rowsort
SELECT + + 22 * col1 FROM tab2 AS cor0
----
1298
374
682

query I rowsort
SELECT ALL - col1 + - col2 * ( + col0 ) FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT + col2 * + col1 - col0 AS col2 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT - + col2 * col1 * col2 FROM tab2 AS cor0
----
-22599
-24548
-39884

query I rowsort
SELECT DISTINCT col2 * col1 * - col0 + col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT ALL col0 * 49 FROM tab1 cor0
----
147
3136
3920

query I rowsort
SELECT ALL - 79 * + col1 * col0 + - 92 AS col2 FROM tab0
----
-163148
-268297
-639913

query I rowsort
SELECT ALL 31 + col0 FROM tab1
----
111
34
95

query I rowsort
SELECT ALL - 83 * cor0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 584effc8024aed184e5ccaa26b281826

query I rowsort
SELECT DISTINCT - 77 + + cor0.col0 + col1 FROM tab2 AS cor0
----
-39
19
60

onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT + - ( - 59 ) * col2 + + 52 DIV + 66 AS col1 FROM tab0 AS cor0
----
1947
4838
59

skipif mysql # not compatible
query I rowsort label-1741
SELECT + - ( - 59 ) * col2 + + 52 / + 66 AS col1 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT - - col0 * + col0 + - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304

query I rowsort
SELECT ALL + - 49 * - col1 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * + col1 * 86 FROM tab1 AS cor0
----
54983
6654
89344

query I rowsort
SELECT - cor0.col0 + 82 * 46 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d8eb6c47dfcf69997f922dd911176213

query I rowsort
SELECT ALL 23 + + col0 * - col2 + + col0 AS col0 FROM tab1 AS cor0
----
-136
-3561
-7577

query I rowsort
SELECT ALL - + 50 * - col2 + + cor0.col1 FROM tab1 AS cor0
----
2726
2860
4813

query I rowsort
SELECT ALL - + col2 * col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
-540
1352
1558

query I rowsort
SELECT DISTINCT + ( - col2 * + col0 ) FROM tab1
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT 39 + + col2 FROM tab2
----
65
66
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT DISTINCT 41 DIV - col2 FROM tab0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT 41 / - col2 FROM tab0
----
-1
-41
0

query I rowsort
SELECT DISTINCT + col1 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT - + 23 * col1 - + col2 FROM tab2 AS cor0
----
-1383
-429
-740

query I rowsort
SELECT ALL + ( + col2 ) * - tab0.col2 + - 2 FROM tab0
----
-1091
-3
-6726

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1755
SELECT ALL - - 27 * - col1 + CAST( NULL AS SIGNED ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - - 27 * - col1 + CAST ( NULL AS INTEGER ) / + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 + col2 ) AS col2 FROM tab1
----
109
67
80

query I rowsort
SELECT DISTINCT + + col1 * - col2 * - col2 AS col1 FROM tab1 AS cor0
----
119808
32490
75816

onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT ALL + col2 DIV - 18 FROM tab1 AS cor0
----
-3
-3
-5

skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL + col2 / - 18 FROM tab1 AS cor0
----
-3
-3
-5

query I rowsort
SELECT ALL ( - col2 * - ( col2 ) ) AS col0 FROM tab0
----
1
1089
6724

query I rowsort
SELECT - col2 + + col1 * - col2 * - 63 AS col0 FROM tab2
----
40660
52704
96616

query I rowsort
SELECT ALL - 35 AS col2 FROM tab0
----
-35
-35
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-1762
SELECT - + 85 + cor0.col0 * col0 DIV col1 FROM tab1 cor0
----
-85
324
407

skipif mysql # not compatible
query I rowsort label-1762
SELECT - + 85 + cor0.col0 * col0 / col1 FROM tab1 cor0
----
-85
324
407

query I rowsort
SELECT ALL - + col1 + 1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58

query I rowsort
SELECT ALL - col1 * 65 AS col1 FROM tab1
----
-1690
-650
-845

query I rowsort
SELECT DISTINCT 99 * col1 FROM tab0 cor0
----
8514
9009
9603

query I rowsort
SELECT ALL + - cor0.col1 * + 63 AS col2 FROM tab2 AS cor0
----
-1071
-1953
-3717

query I rowsort
SELECT - + col0 + 92 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-79
35
56

query I rowsort
SELECT DISTINCT - col1 * - 75 * col2 AS col2 FROM tab2 AS cor0
----
115050
48450
62775

query I rowsort
SELECT - 7 * - col0 + cor0.col2 AS col2 FROM tab2 cor0
----
572
591
76

query I rowsort
SELECT DISTINCT col2 - - ( + 42 ) AS col2 FROM tab0
----
124
43
75

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT col1 + ( col0 ) FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col1 + col2 - + tab0.col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - tab2.col1 + - 83 AS col0 FROM tab2
----
-100
-114
-142

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1775
SELECT - col1 + + CAST( + col1 AS SIGNED ) - + col2 FROM tab1
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-1775
SELECT - col1 + + CAST ( + col1 AS INTEGER ) - + col2 FROM tab1
----
-54
-57
-96

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db

query I rowsort
SELECT col0 * 16 + col2 FROM tab0
----
1506
417
561

query I rowsort
SELECT ALL - 15 + col1 AS col0 FROM tab2 AS cor0
----
16
2
44

query I rowsort
SELECT ALL cor0.col0 * ( - col2 ) - - cor0.col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT ALL - col2 * cor0.col1 + + col1 * + ( + col0 ) AS col1 FROM tab0 AS cor0
----
-774
3298
637

query I rowsort
SELECT col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL + col0 * - 25 + col2 AS col2 FROM tab2 AS cor0
----
-148
-1924
-1937

query I rowsort
SELECT 15 + + 8 FROM tab0 AS cor0
----
23
23
23

query I rowsort
SELECT ALL - - col1 + - 55 * col1 AS col1 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT DISTINCT + 13 * + 76 AS col1 FROM tab0 AS cor0
----
988

query I rowsort
SELECT - cor0.col2 * 58 FROM tab2 AS cor0
----
-1508
-1566
-2204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - cor0.col1 col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT - - col2 + cor0.col1 * + 5 FROM tab2 AS cor0
----
123
182
321

query I rowsort
SELECT DISTINCT - 10 FROM tab1, tab0, tab0 AS cor0
----
-10

query I rowsort
SELECT col1 * + col2 + col2 AS col1 FROM tab2
----
1560
684
864

query I rowsort
SELECT + 11 AS col0 FROM tab2
----
11
11
11

query I rowsort
SELECT 13 * + col1 + + col0 * tab2.col1 AS col2 FROM tab2
----
1564
5369
620

query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2
----
81 values hashing to 09fa7af42010457bb3c6ffd0dfea3bc8

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1795
SELECT ALL + col1 * CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + col2 * + 81 AS col1 FROM tab0 AS cor0
----
178
2759
6733

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1797
SELECT ALL + col0 + CAST( + col1 AS DECIMAL ) * - col0 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1797
SELECT ALL + col0 + CAST ( + col1 AS REAL ) * - col0 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1798
SELECT - + col2 * ( + col1 * + col1 ) - - CAST( col2 * + col0 + - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-25789
-7997
-88537

skipif mysql # not compatible
query I rowsort label-1798
SELECT - + col2 * ( + col1 * + col1 ) - - CAST ( col2 * + col0 + - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-25789
-7997
-88537

query I rowsort
SELECT - - cor0.col0 * - 28 * - col2 + col2 + - 95 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
4306
897736
97449

query I rowsort
SELECT ALL + col1 + + col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT - + col1 * - cor0.col2 * - col1 - - col0 * - 43 * ( col1 * + col1 ) AS col1 FROM tab2 AS cor0
----
-11765780
-315208
-992715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1802
SELECT DISTINCT + - cor0.col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT + - cor0.col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT cor1.col1 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 - col0 col2 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1805
SELECT 24 * col1 DIV col1 + col1 * + 85 AS col2 FROM tab0
----
7334
7759
8269

skipif mysql # not compatible
query I rowsort label-1805
SELECT 24 * col1 / col1 + col1 * + 85 AS col2 FROM tab0
----
7334
7759
8269

query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3
-64
-80

query I rowsort
SELECT ALL - ( - 57 ) AS col0 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT - 92 * col0 + + col2 * + col0 + - col0 FROM tab1 AS cor0
----
-117
-2304
240

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1809
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1810
SELECT - - CAST( NULL AS SIGNED ) * ( - col2 + - col1 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1810
SELECT - - CAST ( NULL AS INTEGER ) * ( - col2 + - col1 ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 * col1 col1 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT CAST( NULL AS DECIMAL ) + cor0.col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1812
SELECT CAST ( NULL AS REAL ) + cor0.col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) * tab1.col0 AS col0 FROM tab1
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - 66 + col0 AS col2 FROM tab1 AS cor0
----
-2
-63
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - - 48 * - col0 AS col1 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT ALL - + 75 * col1 FROM tab0 AS cor0
----
-6450
-6825
-7275

query I rowsort
SELECT - + 17 + col0 FROM tab1 AS cor0
----
-14
47
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-1819
SELECT + + 16 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1819
SELECT + + 16 / cor0.col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - col1 + - 19 AS col2 FROM tab1 AS cor0
----
-6
-9
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 + + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT - 14 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT - - cor0.col0 * + col2 + + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + + col0 * 80 * + ( + col0 ) FROM tab2 AS cor0
----
3083
485186
498634

query I rowsort
SELECT ALL cor0.col2 + - col0 * + cor0.col2 FROM tab0 cor0
----
-34
-7216
-759

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1827
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

skipif mysql # not compatible
query I rowsort label-1827
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col2 * + col1 * 28 FROM tab2
----
18088
23436
42952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1829
SELECT ALL col0 + - CAST( - ( + col0 ) AS SIGNED ) AS col2 FROM tab2
----
14
156
158

skipif mysql # not compatible
query I rowsort label-1829
SELECT ALL col0 + - CAST ( - ( + col0 ) AS INTEGER ) AS col2 FROM tab2
----
14
156
158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col2 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT col0 * 52 AS col2 FROM tab2
----
364
4056
4108

query I rowsort
SELECT DISTINCT + ( - 71 ) FROM tab1 cor0
----
-71

query I rowsort
SELECT ALL - col1 * 80 FROM tab2 AS cor0
----
-1360
-2480
-4720

query I rowsort
SELECT 58 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT ALL + 15 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + col0 * + col2 + col0 FROM tab0
----
70
7387
816

query I rowsort
SELECT + 25 * 59 FROM tab2 AS cor0
----
1475
1475
1475

query I rowsort
SELECT + col1 * cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200

query I rowsort
SELECT + - cor0.col1 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

query I rowsort
SELECT - ( col2 ) * col0 AS col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT ALL cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994

query I rowsort
SELECT 15 - + col0 AS col1 FROM tab0
----
-20
-74
-9

query I rowsort
SELECT 60 + col2 + - ( + col0 * + col1 ) FROM tab1
----
-523
-884
36

query I rowsort
SELECT + 61 * - col0 AS col0 FROM tab0
----
-1464
-2135
-5429

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col1 FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-1847
SELECT DISTINCT 71 DIV - tab2.col1 AS col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1847
SELECT DISTINCT 71 / - tab2.col1 AS col2 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT + col1 * col0 + 65 FROM tab0 AS cor0
----
2129
3460
8164

query I rowsort
SELECT DISTINCT col0 * col0 - - ( - col0 ) * tab2.col0 AS col2 FROM tab2
----
0

query I rowsort
SELECT + col0 * col0 * ( 62 ) AS col1 FROM tab0 cor0
----
35712
491102
75950

query I rowsort
SELECT ALL + 80 FROM tab2, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1852
SELECT + col0 * CAST( NULL AS DECIMAL ) + - cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1852
SELECT + col0 * CAST ( NULL AS REAL ) + - cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col0 + + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + col0 + cor0.col1 * 87 * + col2 FROM tab0 AS cor0
----
246930
649283
8474

onlyif mysql # use DIV operator for integer division
query I rowsort label-1855
SELECT + - col2 + 24 DIV col0 FROM tab2 AS cor0
----
-24
-26
-38

skipif mysql # not compatible
query I rowsort label-1855
SELECT + - col2 + 24 / col0 FROM tab2 AS cor0
----
-24
-26
-38

query I rowsort
SELECT ALL 79 * col1 FROM tab2
----
1343
2449
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT + col1 + CAST( ( col2 ) AS SIGNED ) * - cor0.col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1857
SELECT + col1 + CAST ( ( col2 ) AS INTEGER ) * - cor0.col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT + col0 * - ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT + cor0.col2 + + ( + 69 ) * col1 AS col2 FROM tab2 AS cor0
----
1211
2166
4097

query I rowsort
SELECT - col2 * cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col0 - col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL tab0.col2 + col2 * 15 AS col0 FROM tab0
----
1312
16
528

query I rowsort
SELECT col1 * tab1.col1 + ( + col2 + - 16 ) FROM tab1
----
141
249
714

query I rowsort
SELECT DISTINCT + col0 + + 78 + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2997
3391
9374

query I rowsort
SELECT - col2 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0

query I rowsort
SELECT - col2 * + ( cor0.col2 ) + col0 FROM tab2 AS cor0
----
-1365
-598
-722

query I rowsort
SELECT DISTINCT + cor0.col1 + col0 * - col1 FROM tab0 AS cor0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT ALL + col0 + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + col0 + col1 / col2 AS col1 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT DISTINCT - - col2 + - 35 AS col0 FROM tab0 cor0
----
-2
-34
47

query I rowsort
SELECT ALL + 5 + col2 AS col1 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT DISTINCT col1 + col2 + + cor0.col0 AS col1 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT - + col2 * col2 * col0 + col2 FROM tab1 cor0
----
-207879
-737184
-8694

query I rowsort
SELECT ALL - col2 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT + + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 14 col0 FROM tab0 cor0
----
-14

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1876
SELECT ALL + + ( - col0 ) + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT ALL + + ( - col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL 19 + 54 + col1 AS col2 FROM tab1 AS cor0
----
83
86
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT col1 + - col0 DIV + col2 AS col1 FROM tab1 cor0
----
13
26
9

skipif mysql # not compatible
query I rowsort label-1879
SELECT col1 + - col0 / + col2 AS col1 FROM tab1 cor0
----
13
26
9

query I rowsort
SELECT ALL + - col0 + col2 + col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT + col2 + col2 + col0 FROM tab0
----
253
37
90

query I rowsort
SELECT col2 * + 74 - col0 AS col1 FROM tab0
----
2418
39
5979

query I rowsort
SELECT ALL col1 + 24 FROM tab1
----
34
37
50

query I rowsort
SELECT + col2 * ( 52 ) * - col1 - - col2 FROM tab1
----
-29583
-64800
-72954

query I rowsort
SELECT DISTINCT col0 + tab1.col1 * col1 AS col0 FROM tab1
----
164
249
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-1886
SELECT DISTINCT + - col0 DIV col2 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1886
SELECT DISTINCT + - col0 / col2 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT ALL + - 71 AS col2 FROM tab0 AS cor0
----
-71
-71
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col2 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT col2 * - col2 * col0 AS col1 FROM tab2 cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL col2 * col0 + ( - ( - col1 ) + col0 ) AS col0 FROM tab0 cor0
----
167
7478
902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 * cor0.col0 - + col0 col0 FROM tab0 AS cor0
----
192
280
712

query I rowsort
SELECT DISTINCT + + 21 * col2 AS col0 FROM tab1 AS cor0
----
1134
1197
2016

query I rowsort
SELECT - + cor0.col2 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT DISTINCT 1 * - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 17 + col0 FROM tab0 AS cor0
----
106
41
52

query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 - col0 FROM tab2 AS cor0
----
-1523
-736
-754

query I rowsort
SELECT + 42 + col2 AS col0 FROM tab2 cor0
----
68
69
80

query I rowsort
SELECT DISTINCT + cor0.col1 * 48 AS col2 FROM tab1 AS cor0
----
1248
480
624

query I rowsort
SELECT ALL col1 * + ( - col2 ) + col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - + col0 - col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT ALL col1 - + col2 AS col2 FROM tab0
----
53
9
96

query I rowsort
SELECT DISTINCT 11 + col2 AS col0 FROM tab1
----
107
65
68

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT ALL + col2 * col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + col2 * col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + col1 + - 14 * col2 FROM tab2 AS cor0
----
-246
-316
-498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + cor0.col1 + col1 col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT + - 24 * col0 + ( cor0.col1 ) * - cor0.col1 FROM tab1 cor0
----
-1636
-2089
-748

query I rowsort
SELECT + + 90 + col1 FROM tab2 AS cor0
----
107
121
149

onlyif mysql # use DIV operator for integer division
query I rowsort label-1908
SELECT - col1 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92

skipif mysql # not compatible
query I rowsort label-1908
SELECT - col1 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92

query I rowsort
SELECT DISTINCT - tab0.col0 * tab0.col2 * col0 AS col2 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT - col2 * col1 + col1 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT ALL - col2 + tab0.col1 - tab0.col0 AS col0 FROM tab0
----
-80
29
61

query I rowsort
SELECT DISTINCT col1 + col1 - - col1 AS col0 FROM tab2
----
177
51
93

query I rowsort
SELECT ALL col2 * + col2 + tab0.col1 AS col0 FROM tab0
----
1175
6815
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT DISTINCT col1 DIV tab2.col1 + col2 FROM tab2
----
27
28
39

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT col1 / tab2.col1 + col2 FROM tab2
----
27
28
39

query I rowsort
SELECT DISTINCT - col0 * col2 * + col0 FROM tab0
----
-1225
-19008
-649522

query I rowsort
SELECT + col2 + + col1 + col1 FROM tab2
----
144
72
89

query I rowsort
SELECT DISTINCT col1 * - col2 * col1 AS col1 FROM tab1
----
-16224
-36504
-5700

query I rowsort
SELECT ALL col2 * - col2 * + col0 + col2 FROM tab0
----
-26103
-34
-598354

query I rowsort
SELECT DISTINCT col1 * + col2 + col2 - col2 * col2 AS col0 FROM tab0
----
1782
820
97

query I rowsort
SELECT col0 + - tab2.col0 + col2 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND - col1 * col0 - + col2
----

query I rowsort
SELECT ALL col0 + col0 + - col0 AS col2 FROM tab0
----
24
35
89

query I rowsort
SELECT DISTINCT col2 * + tab1.col2 * + col2 AS col1 FROM tab1
----
157464
185193
884736

query I rowsort
SELECT + col0 * - col1 - col1 AS col1 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT - col1 + - col0 FROM tab0 WHERE ( NULL ) IN ( - col2 + - col2 / + col1 )
----

query I rowsort
SELECT ALL col0 * + col0 * col1 AS col1 FROM tab1
----
234
40960
83200

query I rowsort
SELECT ALL col2 * - tab0.col0 + + col1 * col2 * + col1 AS col2 FROM tab0
----
243276
671744
9374

query I rowsort
SELECT - col2 * + col0 * - col0 + col0 AS col1 FROM tab1
----
233536
489
614480

query I rowsort
SELECT ALL col2 * + col0 + col0 * col2 AS col0 FROM tab0
----
14596
1584
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-1930
SELECT + col2 + - col2 + - col1 DIV - col2 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-1930
SELECT + col2 + - col2 + - col1 / - col2 FROM tab0
----
1
2
97

query I rowsort
SELECT ALL tab1.col0 * - col0 + tab1.col1 AS col0 FROM tab1
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT - col2 * col0 + - col2 FROM tab2
----
-2054
-216
-3040

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 = + col0 * col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT ALL tab2.col0 DIV + col1 + - col1 FROM tab2
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL tab2.col0 / + col1 + - col1 FROM tab2
----
-13
-31
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <> ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col1 - tab2.col1 FROM tab2
----
0

query I rowsort
SELECT + col2 * - col0 + + col1 * + tab0.col0 FROM tab0
----
1272
3360
801

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

query I rowsort
SELECT + 35 * col1 * 44 FROM tab0 AS cor0
----
132440
140140
149380

query I rowsort
SELECT + 44 + + col2 * - ( + col0 ) AS col2 FROM tab0 cor0
----
-7254
-748
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1942
SELECT + col0 * + col2 + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1942
SELECT + col0 * + col2 + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) * + col2 AS col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT 99 + + col1 AS col1 FROM tab0 AS cor0
----
185
190
196

query I rowsort
SELECT + col2 + col2 * col2 AS col0 FROM tab1 cor0
----
2970
3306
9312

query I rowsort
SELECT + col2 * cor0.col2 + ( 13 ) * - col2 AS col0 FROM tab0 AS cor0
----
-12
5658
660

query I rowsort
SELECT - col0 * - ( 73 * col1 ) FROM tab1
----
46720
5694
75920

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1949
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) / 95 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1949
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) / 95 col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

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-1952
SELECT - - col0 * + col2 + - ( + col1 ) DIV col2 AS col0 FROM tab0 AS cor0
----
-62
7297
790

skipif mysql # not compatible
query I rowsort label-1952
SELECT - - col0 * + col2 + - ( + col1 ) / col2 AS col0 FROM tab0 AS cor0
----
-62
7297
790

skipif mysql # not compatible
query I rowsort
SELECT col0 + + CAST ( 77 AS REAL ) FROM tab1 AS cor0
----
141
157
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-1955
SELECT ALL + col2 DIV + 51 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL + col2 / + 51 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * + 18 AS col1 FROM tab2 AS cor0
----
1062
306
558

query I rowsort
SELECT - - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1958
SELECT CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1958
SELECT CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col0 + - ( + col1 * - 57 ) AS col0 FROM tab0 AS cor0
----
4926
5276
5564

query I rowsort
SELECT DISTINCT - + 44 * col0 + + col0 FROM tab2 AS cor0
----
-301
-3354
-3397

query I rowsort
SELECT - + col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

query I rowsort
SELECT - col2 + cor0.col2 * col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT cor0.col1 - - col0 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1964
SELECT DISTINCT + 13 DIV cor0.col0 + - col1 - cor0.col0 * col0 FROM tab1 cor0
----
-31
-4106
-6413

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT + 13 / cor0.col0 + - col1 - cor0.col0 * col0 FROM tab1 cor0
----
-31
-4106
-6413

query I rowsort
SELECT ( col0 ) * - col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT ALL 82 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
1935
2869
7216

query I rowsort
SELECT DISTINCT + + col0 + + col0 * cor0.col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT ALL - + col1 * + col0 + - cor0.col0 * + col0 * - cor0.col1 FROM tab0 AS cor0
----
115430
47472
712712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) - - col1 col0 FROM tab2
----
118
34
62

query I rowsort
SELECT DISTINCT col2 * col0 * col2 + col2 AS col2 FROM tab0
----
26169
36
598518

query I rowsort
SELECT ALL + 0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 22 FROM tab0, tab2 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT col0 + - cor0.col2 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
119888
32554
75819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1974
SELECT - CAST( ( - col0 ) + col0 AS SIGNED ) * col0 * + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1974
SELECT - CAST ( ( - col0 ) + col0 AS INTEGER ) * col0 * + col2 AS col2 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-1975
SELECT col0 DIV col0 + col2 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-1975
SELECT col0 / col0 + col2 AS col1 FROM tab0
----
2
34
83

query I rowsort
SELECT 58 - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to c4c6a886bdbf2840b12bd5c0a7991e55

query I rowsort
SELECT DISTINCT col2 - 92 FROM tab2
----
-54
-65
-66

query I rowsort
SELECT 32 * - col2 + - col0 AS col0 FROM tab2
----
-1295
-871
-910

query I rowsort
SELECT - col1 * - 12 FROM tab1
----
120
156
312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT ALL - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-1981
SELECT DISTINCT - col2 - - 31 DIV - col0 AS col0 FROM tab1
----
-57
-64
-96

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT - col2 - - 31 / - col0 AS col0 FROM tab1
----
-57
-64
-96

query I rowsort
SELECT DISTINCT tab0.col2 - tab0.col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT + 85 - + col1 AS col2 FROM tab0 AS cor0
----
-1
-12
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-1984
SELECT col2 + col2 DIV - tab0.col0 + - col1 FROM tab0
----
-54
-9
-96

skipif mysql # not compatible
query I rowsort label-1984
SELECT col2 + col2 / - tab0.col0 + - col1 FROM tab0
----
-54
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-1985
SELECT ALL - tab0.col1 DIV col2 + - col2 * - col2 - - col2 AS col1 FROM tab0
----
-95
1120
6805

skipif mysql # not compatible
query I rowsort label-1985
SELECT ALL - tab0.col1 / col2 + - col2 * - col2 - - col2 AS col1 FROM tab0
----
-95
1120
6805

query I rowsort
SELECT DISTINCT col0 - + tab2.col0 * col0 FROM tab2
----
-42
-6006
-6162

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( + col2 - + col0 ) AND + col0 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL col0 + col2 * col0 + - col0 AS col0 FROM tab2 WHERE NOT - col1 * col1 + + col2 * col2 * - col2 NOT IN ( + col1 + + col0 * - col1 )
----

query I rowsort
SELECT ALL col2 * + tab2.col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - tab1.col0 + - col1 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT - col2 * + col1 * col1 + + col0 * - col1 FROM tab2
----
-12325
-26164
-95108

query I rowsort
SELECT col1 * + col2 * - col1 FROM tab2
----
-10982
-25947
-90506

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL >= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT + tab2.col2 DIV + col1 + + col2 * col2 AS col0 FROM tab2
----
1446
676
729

skipif mysql # not compatible
query I rowsort label-1997
SELECT + tab2.col2 / + col1 + + col2 * col2 AS col0 FROM tab2
----
1446
676
729

query I rowsort
SELECT - cor0.col1 * + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT + + col2 + - col2 * col0 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + col1 col0 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT + col0 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2002
SELECT ALL - col0 DIV col2 + + col1 + - col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-177418
-329253
-736919

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL - col0 / col2 + + col1 + - col1 * col1 * col0 AS col0 FROM tab0 AS cor0
----
-177418
-329253
-736919

query I rowsort
SELECT col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col1 FROM tab2 cor0
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT - + col0 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-2005
SELECT - + col0 / - cor0.col2 AS col0 FROM tab0 cor0
----
0
1
35

query I rowsort
SELECT ALL + cor0.col1 + + col0 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT ALL + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT ALL - cor0.col1 + - col1 FROM tab2 cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT - col0 DIV - col1 col1 FROM tab2 AS cor0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2011
SELECT - col0 / - col1 col1 FROM tab2 AS cor0
----
0
1
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2012
SELECT ALL - + col2 * col0 + col1 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
-34
-7297
-791

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - + col2 * col0 + col1 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
-34
-7297
-791

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col0 col2 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-2014
SELECT col2 DIV + col1 - col2 col2 FROM tab2
----
-26
-27
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2014
SELECT col2 / + col1 - col2 col2 FROM tab2
----
-26
-27
-36

query I rowsort
SELECT DISTINCT - - col1 * - col0 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > ( col0 * - col2 ) OR NULL > ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT DISTINCT - col1 * + col0 + + col0 DIV - col2 FROM tab0 AS cor0
----
-2064
-3430
-8100

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - col1 * + col0 + + col0 / - col2 FROM tab0 AS cor0
----
-2064
-3430
-8100

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0, tab1 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 40 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
40

query I rowsort
SELECT - 45 FROM tab0, tab0 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT ALL col0 * + 25 FROM tab0 AS cor0
----
2225
600
875

query I rowsort
SELECT - cor0.col2 * ( + col2 ) * - col1 + + col2 + - 32 FROM tab0 AS cor0
----
611934
66
93655

query I rowsort
SELECT + - col2 + - 96 AS col1 FROM tab1 AS cor0
----
-150
-153
-192

query I rowsort
SELECT DISTINCT + - col0 * - 47 + 53 AS col2 FROM tab2 AS cor0
----
3719
3766
382

query I rowsort
SELECT - col1 * col2 * + 69 AS col0 FROM tab1 AS cor0
----
-39330
-86112
-96876

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 98 col2 FROM tab1 AS cor0
----
1274
2548
980

onlyif mysql # use DIV operator for integer division
query I rowsort label-2027
SELECT - col0 DIV - 19 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-2027
SELECT - col0 / - 19 FROM tab1 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) * - col2 FROM tab2 cor0
----
1444
676
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT ALL - ( + 21 ) DIV + col0 AS col0 FROM tab1 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL - ( + 21 ) / + col0 AS col0 FROM tab1 AS cor0
----
-7
0
0

query I rowsort
SELECT + 72 + - col0 * col1 FROM tab1 AS cor0
----
-568
-6
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-2031
SELECT + ( 55 ) DIV cor0.col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2031
SELECT + ( 55 ) / cor0.col2 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - - cor0.col2 * 61 * col2 + ( col2 * - col2 ) + - cor0.col1 * 0 * col1 FROM tab2 cor0
----
40560
43740
86640

query I rowsort
SELECT - 68 * cor0.col2 FROM tab1 AS cor0
----
-3672
-3876
-6528

query I rowsort
SELECT DISTINCT + cor0.col0 - + cor0.col1 FROM tab0 cor0
----
-2
-62

query I rowsort
SELECT DISTINCT + 66 + col0 * col1 FROM tab1 AS cor0
----
1106
144
706

onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT - col1 - + cor0.col0 DIV + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

skipif mysql # not compatible
query I rowsort label-2036
SELECT - col1 - + cor0.col0 / + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
-31
-60

query I rowsort
SELECT ALL - 59 + - col1 + - col2 FROM tab2 AS cor0
----
-114
-117
-144

query I rowsort
SELECT DISTINCT 64 - + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-1025
-6660
63

query I rowsort
SELECT - - 21 - - col0 * + col0 FROM tab2 AS cor0
----
6105
6262
70

query I rowsort
SELECT ALL col2 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

query I rowsort
SELECT - + cor0.col0 + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT ALL + col0 DIV - col1 - - ( - ( cor0.col2 ) ) col0 FROM tab1 cor0
----
-102
-54
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL + col0 / - col1 - - ( - ( cor0.col2 ) ) col0 FROM tab1 cor0
----
-102
-54
-63

query I rowsort
SELECT + col0 * - col1 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col0 * - col1 + col2 FROM tab1 AS cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT DISTINCT col2 * - col2 + CAST( 8 * - col1 AS SIGNED ) AS col0 FROM tab2
----
-1148
-1580
-977

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT col2 * - col2 + CAST ( 8 * - col1 AS INTEGER ) AS col0 FROM tab2
----
-1148
-1580
-977

query I rowsort
SELECT DISTINCT col2 + col2 + 38 * col0 * + col1 AS col2 FROM tab2
----
174928
51110
8300

query I rowsort
SELECT - - col0 + - 0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * ( col1 ) - - col2 AS col2 FROM tab2 AS cor0
----
327
3507
988

query I rowsort
SELECT col2 * ( - col2 ) + - col2 * col1 FROM tab0 AS cor0
----
-14186
-3927
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 * tab0.col0 col2 FROM tab0
----
1958
528
770

query I rowsort
SELECT DISTINCT + 19 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
19

query I rowsort
SELECT col2 * + 65 AS col1 FROM tab0 AS cor0
----
2145
5330
65

query I rowsort
SELECT + col2 - 59 AS col1 FROM tab1 cor0
----
-2
-5
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - CAST ( NULL AS REAL ) * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * col0 ) + 31 col2 FROM tab2
----
2059
220
3033

query I rowsort
SELECT + 64 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 54 * col1 * cor0.col0 - + col0 col1 FROM tab2 AS cor0
----
-11725
-248586
-72601

query I rowsort
SELECT ALL - - col1 * col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col2 + - cor0.col2 * - col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT 64 AS col2 FROM tab0 cor0
----
64
64
64

query I rowsort
SELECT + - 93 * - col1 * + 21 FROM tab2 AS cor0
----
115227
33201
60543

onlyif mysql # use DIV operator for integer division
query I rowsort label-2063
SELECT col1 + col2 DIV - col2 FROM tab1 AS cor0
----
12
25
9

skipif mysql # not compatible
query I rowsort label-2063
SELECT col1 + col2 / - col2 FROM tab1 AS cor0
----
12
25
9

query I rowsort
SELECT - ( - col0 ) + col2 AS col2 FROM tab1 AS cor0
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2065
SELECT CAST( + 57 * col1 AS SIGNED ) + - tab2.col0 + + col2 FROM tab2
----
1787
3311
928

skipif mysql # not compatible
query I rowsort label-2065
SELECT CAST ( + 57 * col1 AS INTEGER ) + - tab2.col0 + + col2 FROM tab2
----
1787
3311
928

query I rowsort
SELECT + col0 + col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL - - ( 10 ) * - col2 + col2 + - col1 FROM tab1 AS cor0
----
-512
-523
-877

query I rowsort
SELECT ALL + col1 + + 13 FROM tab1 AS cor0
----
23
26
39

query I rowsort
SELECT + col0 * + 75 AS col2 FROM tab1 AS cor0
----
225
4800
6000

query I rowsort
SELECT ALL - 52 + col0 AS col0 FROM tab2 cor0
----
-45
26
27

query I rowsort
SELECT - + 2 + 32 AS col2 FROM tab1 AS cor0
----
30
30
30

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2072
SELECT ALL + CAST( ( + col0 ) AS SIGNED ) * cor0.col2 / - col1 + col0 * CAST( NULL AS DECIMAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + CAST ( ( + col0 ) AS INTEGER ) * cor0.col2 / - col1 + col0 * CAST ( NULL AS REAL ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 80 AS col2 FROM tab0 cor0
----
80
80
80

query I rowsort
SELECT + 31 * ( + col1 ) + - 66 * col2 FROM tab0 AS cor0
----
-2591
2941
488

query I rowsort
SELECT ALL - + col0 * col1 + cor0.col2 * + col0 + col2 * col1 * col1 AS col1 FROM tab2 cor0
----
12641
25919
87932

query I rowsort
SELECT DISTINCT - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT cor0.col1 + col0 AS col2 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT ALL 77 + - col2 * 64 AS col2 FROM tab2 AS cor0
----
-1587
-1651
-2355

query I rowsort
SELECT + col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2080
SELECT + col2 + col2 * 83 DIV - col2 AS col0 FROM tab1 cor0
----
-26
-29
13

skipif mysql # not compatible
query I rowsort label-2080
SELECT + col2 + col2 * 83 / - col2 AS col0 FROM tab1 cor0
----
-26
-29
13

query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * - col2 AS col0 FROM tab2 cor0
----
-1444
-676
-729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2082
SELECT DISTINCT 66 DIV + col1 FROM tab1
----
2
5
6

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT 66 / + col1 FROM tab1
----
2
5
6

query I rowsort
SELECT - col2 + - col1 - + tab0.col0 * + col1 AS col1 FROM tab0
----
-2183
-3493
-8272

query I rowsort
SELECT DISTINCT - 2 + - col1 AS col0 FROM tab2 AS cor0
----
-19
-33
-61

query I rowsort
SELECT - 41 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2086
SELECT + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col1 * 95 AS col2 FROM tab1 cor0
----
1235
2470
950

query I rowsort
SELECT DISTINCT 3 + col1 + col1 AS col1 FROM tab1 AS cor0
----
23
29
55

query I rowsort
SELECT ALL - col1 + col0 + - col2 AS col2 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT ALL + col1 * 80 FROM tab2
----
1360
2480
4720

query I rowsort
SELECT + 76 * + col2 AS col0 FROM tab0 AS cor0
----
2508
6232
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT DISTINCT - + 58 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT - + 58 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col1 * + 62 - + col0 FROM tab0 cor0
----
5308
5553
5979

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT + col0 * CAST( NULL AS SIGNED ) - - 4 / col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2095
SELECT + col0 * CAST ( NULL AS INTEGER ) - - 4 / col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT col2 + + col0 DIV + 20 col1 FROM tab0
----
2
34
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2097
SELECT col2 + + col0 / + 20 col1 FROM tab0
----
2
34
86

query I rowsort
SELECT cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT ( - 12 ) AS col2 FROM tab0
----
-12
-12
-12

query I rowsort
SELECT + col1 * ( col0 ) + + 14 FROM tab1
----
1054
654
92

query I rowsort
SELECT DISTINCT tab2.col2 * 18 FROM tab2
----
468
486
684

onlyif mysql # use DIV operator for integer division
query I rowsort label-2102
SELECT - col0 DIV col2 - col0 AS col1 FROM tab0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-2102
SELECT - col0 / col2 - col0 AS col1 FROM tab0
----
-24
-70
-90

query I rowsort
SELECT DISTINCT ( 94 ) - - col0 FROM tab2
----
101
172
173

onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT 41 * col1 DIV col1 AS col1 FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-2104
SELECT 41 * col1 / col1 AS col1 FROM tab1
----
41
41
41

query I rowsort
SELECT + ( tab1.col1 ) + + tab1.col0 FROM tab1
----
29
74
93

query I rowsort
SELECT ( 54 ) FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT + - col2 + 42 FROM tab2 AS cor0
----
15
16
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2108
SELECT ALL - 20 DIV + col2 AS col1 FROM tab0 cor0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL - 20 / + col2 AS col1 FROM tab0 cor0
----
-20
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2109
SELECT ALL + - CAST( NULL AS SIGNED ) / col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2109
SELECT ALL + - CAST ( NULL AS INTEGER ) / col2 - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT + col0 * col1 * + col2 + ( col1 ) AS col1 FROM tab1
----
36490
4238
99853

query I rowsort
SELECT DISTINCT + col1 * col1 - - cor0.col0 * col2 FROM tab1 AS cor0
----
3748
7849
838

query I rowsort
SELECT DISTINCT 98 FROM tab2, tab1, tab0 AS cor0
----
98

query I rowsort
SELECT + col2 * col2 - - col1 * 45 AS col2 FROM tab0
----
10819
4366
4959

query I rowsort
SELECT DISTINCT col1 + tab1.col1 + tab1.col0 FROM tab1
----
106
55
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-2116
SELECT 87 + col0 DIV col2 FROM tab0
----
122
87
88

skipif mysql # not compatible
query I rowsort label-2116
SELECT 87 + col0 / col2 FROM tab0
----
122
87
88

query I rowsort
SELECT + + 30 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1770
510
930

query I rowsort
SELECT DISTINCT + 72 FROM tab2 cor0
----
72

query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38

query I rowsort
SELECT ALL - - col0 * 3 * 38 FROM tab0 AS cor0
----
10146
2736
3990

onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT ALL - col0 + col2 * 58 DIV - col2 FROM tab0 AS cor0
----
-147
-82
-93

skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL - col0 + col2 * 58 / - col2 FROM tab0 AS cor0
----
-147
-82
-93

query I rowsort
SELECT col1 * 70 FROM tab1 AS cor0
----
1820
700
910

query I rowsort
SELECT DISTINCT - cor0.col0 - - col2 AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT + col1 * - ( 89 ) FROM tab2 AS cor0
----
-1513
-2759
-5251

query I rowsort
SELECT col1 + col1 * col2 * - col1 FROM tab0 AS cor0
----
-243982
-678951
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT ALL + + col1 + - 23 * 60 * + col1 + - ( col1 ) DIV col1 FROM tab2 AS cor0
----
-23444
-42750
-81362

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL + + col1 + - 23 * 60 * + col1 + - ( col1 ) / col1 FROM tab2 AS cor0
----
-23444
-42750
-81362

query I rowsort
SELECT col1 * + 43 AS col0 FROM tab1 cor0
----
1118
430
559

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - 89 col0 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab2 AS cor0
----
-72

query I rowsort
SELECT - - col0 * - col2 + - 11 * + 60 AS col0 FROM tab0 cor0
----
-1452
-695
-7958

query I rowsort
SELECT DISTINCT 80 * col0 AS col0 FROM tab2
----
560
6240
6320

query I rowsort
SELECT 54 AS col1 FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT tab1.col2 * - col2 * col2 FROM tab1
----
-157464
-185193
-884736

query I rowsort
SELECT ALL 48 * 11 FROM tab0, tab2 AS cor0
----
9 values hashing to dc7b5bedbb876282f2aae3ad3e0ee1ab

query I rowsort
SELECT DISTINCT + tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
26
27
38

query I rowsort
SELECT col0 + 68 AS col2 FROM tab2
----
146
147
75

query I rowsort
SELECT + tab0.col1 * 2 * col1 + - col1 AS col1 FROM tab0
----
14706
16471
18721

query I rowsort
SELECT col0 + - ( col2 + col2 ) AS col2 FROM tab2
----
-47
26
3

query I rowsort
SELECT - col0 + ( col1 ) * - cor0.col1 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT + col1 * 95 + col1 FROM tab2 cor0
----
1632
2976
5664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT + col1 * col0 + col1 * - CAST( col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-5308
-5979
-93

skipif mysql # not compatible
query I rowsort label-2141
SELECT + col1 * col0 + col1 * - CAST ( col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-5308
-5979
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT ALL col0 DIV 71 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL col0 / 71 AS col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2143
SELECT - - col0 - + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-2143
SELECT - - col0 - + col1 / col1 AS col2 FROM tab2 AS cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2144
SELECT + CAST( 87 AS SIGNED ) FROM tab2 cor0
----
87
87
87

skipif mysql # not compatible
query I rowsort label-2144
SELECT + CAST ( 87 AS INTEGER ) FROM tab2 cor0
----
87
87
87

query I rowsort
SELECT ALL - + ( + col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 77 * + col2 + - cor0.col1 + col2 FROM tab0 AS cor0
----
-19
2488
6305

query I rowsort
SELECT col1 + 68 * col2 AS col0 FROM tab1 AS cor0
----
3698
3886
6541

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) * cor0.col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT - col1 + + 72 FROM tab2
----
13
41
55

query I rowsort
SELECT 72 - - col1 * col0 AS col1 FROM tab2 cor0
----
1415
289
4674

onlyif mysql # use DIV operator for integer division
query I rowsort label-2151
SELECT col0 * - col2 DIV - col2 + cor0.col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1155
-528
-7743

skipif mysql # not compatible
query I rowsort label-2151
SELECT col0 * - col2 / - col2 + cor0.col0 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1155
-528
-7743

onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT ALL + ( col2 ) DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL + ( col2 ) / - col0 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT ALL + 49 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197

query I rowsort
SELECT - 89 + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1254
128
4513

query I rowsort
SELECT cor0.col0 + - col0 * col1 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT cor1.col2 + - 84 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f614864994bf7c12442278c0cfaf7044

query I rowsort
SELECT - + 70 AS col1 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT + col1 DIV - col1 + - col0 + col1 FROM tab0 cor0
----
1
61
61

skipif mysql # not compatible
query I rowsort label-2159
SELECT + col1 / - col1 + - col0 + col1 FROM tab0 cor0
----
1
61
61

query I rowsort
SELECT ALL col1 + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553

query I rowsort
SELECT DISTINCT - + 49 AS col2 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT + col0 + - cor0.col0 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT + 34 + + cor0.col0 * ( + col0 ) AS col0 FROM tab0 cor0
----
1259
610
7955

query I rowsort
SELECT ( col2 ) + 70 + col1 AS col2 FROM tab0 cor0
----
168
189
243

query I rowsort
SELECT 29 + - cor0.col2 - - col1 * - col1 * + col1 FROM tab1 AS cor0
----
-1028
-17601
-2264

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2166
SELECT + col0 * + col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2166
SELECT + col0 * + col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 35 + - cor0.col2 * ( + cor0.col2 * col1 ) AS col0 FROM tab0 AS cor0
----
-132
-611919
-93689

onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT + col0 DIV 54 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2168
SELECT + col0 / 54 FROM tab1
----
0
1
1

query I rowsort
SELECT - + cor0.col2 * 97 AS col0 FROM tab1 AS cor0
----
-5238
-5529
-9312

query I rowsort
SELECT + + col0 * col0 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448

query I rowsort
SELECT col2 + - 79 AS col2 FROM tab1 AS cor0
----
-22
-25
17

query I rowsort
SELECT + col2 + - col0 * + col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT + col0 * col1 * 78 + - col2 * 68 FROM tab2 cor0
----
102170
15090
357188

query I rowsort
SELECT col0 + ( ( - col1 ) ) * - 43 FROM tab1 AS cor0
----
1121
494
639

query I rowsort
SELECT 2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09

query I rowsort
SELECT DISTINCT + 16 * ( - col1 * col1 ) + cor0.col2 FROM tab2 AS cor0
----
-15349
-4586
-55670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col2 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT ALL cor2.col0 + - 29 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to 19fcbf38780d912c21a4d15a43184112

query I rowsort
SELECT DISTINCT + col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT ALL cor0.col2 - col1 * col0 * col0 FROM tab0 AS cor0
----
-118824
-49503
-720729

query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368

query I rowsort
SELECT ALL + col2 + ( col2 * - col0 ) FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT + col1 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT - 54 * - tab0.col2 + + col2 FROM tab0
----
1815
4510
55

query I rowsort
SELECT ALL col2 * - 75 + + tab2.col0 FROM tab2
----
-1872
-2018
-2771

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0

query I rowsort
SELECT ALL - tab0.col2 - ( ( - col2 ) ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + ( ( + col1 ) ) FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT ALL - + cor0.col0 + - 51 DIV 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL - + cor0.col0 + - 51 / 96 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

query I rowsort
SELECT ALL + col0 * col2 * col1 AS col2 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL cor0.col0 * + 54 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT - cor0.col0 * - col1 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL - - col1 + - ( col0 ) AS col0 FROM tab1 cor0
----
-54
-67
23

query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL + - col1 + col0 * col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-2197
SELECT 87 + col1 DIV - col0 + + ( col0 ) FROM tab1 AS cor0
----
151
167
82

skipif mysql # not compatible
query I rowsort label-2197
SELECT 87 + col1 / - col0 + + ( col0 ) FROM tab1 AS cor0
----
151
167
82

query I rowsort
SELECT - + 90 + col2 AS col2 FROM tab0 AS cor0
----
-57
-8
-89

query I rowsort
SELECT - ( col1 ) * - col2 AS col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT ALL + col0 * 36 FROM tab0 AS cor0
----
1260
3204
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT DISTINCT - col1 DIV - 19 FROM tab0 AS cor0
----
4
5

skipif mysql # not compatible
query I rowsort label-2201
SELECT DISTINCT - col1 / - 19 FROM tab0 AS cor0
----
4
5

query I rowsort
SELECT - + cor0.col1 * - 32 AS col1 FROM tab2 AS cor0
----
1888
544
992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT + 84 * col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT DISTINCT + 86 * col2 AS col2 FROM tab0 AS cor0
----
2838
7052
86

query I rowsort
SELECT + col0 + col1 * + col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
-1
-33
-82

query I rowsort
SELECT ALL - 53 + col2 + col2 AS col2 FROM tab0 AS cor0
----
-51
111
13

query I rowsort
SELECT DISTINCT - + 94 + - col1 * cor0.col1 FROM tab1 AS cor0
----
-194
-263
-770

query I rowsort
SELECT ALL - ( col2 ) + + col0 * 28 AS col0 FROM tab2 AS cor0
----
169
2158
2174

query I rowsort
SELECT + - col1 * + col1 AS col2 FROM tab1 cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - + col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT + - col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT - col1 + col1 + + ( 69 * col0 ) AS col0 FROM tab0 cor0
----
1656
2415
6141

query I rowsort
SELECT DISTINCT - 76 * cor0.col0 + col1 FROM tab2 AS cor0
----
-501
-5869
-5987

query I rowsort
SELECT - 22 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
13
2
67

query I rowsort
SELECT DISTINCT + + 78 + - col0 * ( col0 ) + + col0 FROM tab1 AS cor0
----
-3954
-6242
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + + col1 - col0 col0 FROM tab0 cor0
----
-20
40
40

query I rowsort
SELECT ALL - 71 * col1 AS col0 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT DISTINCT + + 83 FROM tab1 AS cor0
----
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-2221
SELECT col0 DIV + 87 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2221
SELECT col0 / + 87 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-2222
SELECT - + col2 + col2 DIV col0 col1 FROM tab0 AS cor0
----
-1
-32
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2222
SELECT - + col2 + col2 / col0 col1 FROM tab0 AS cor0
----
-1
-32
-82

query I rowsort
SELECT ALL 71 * - tab1.col2 FROM tab1
----
-3834
-4047
-6816

query I rowsort
SELECT 99 + tab0.col1 AS col1 FROM tab0
----
185
190
196

onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT - col2 + + col2 DIV - col1 FROM tab2
----
-26
-27
-40

skipif mysql # not compatible
query I rowsort label-2225
SELECT - col2 + + col2 / - col1 FROM tab2
----
-26
-27
-40

query I rowsort
SELECT 22 * + col0 AS col0 FROM tab1 AS cor0
----
1408
1760
66

query I rowsort
SELECT + + ( - cor0.col1 ) + col2 AS col2 FROM tab1 AS cor0
----
28
47
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-2228
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL - 52 + + cor0.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 26b2c7e64fbf6ef4a47cc67987b7c604

query I rowsort
SELECT - 24 + - 95 FROM tab2
----
-119
-119
-119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT DISTINCT col0 + + ( tab1.col2 ) DIV + ( - col2 ) FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT col0 + + ( tab1.col2 ) / + ( - col2 ) FROM tab1
----
2
63
79

query I rowsort
SELECT 87 * col1 AS col0 FROM tab2
----
1479
2697
5133

query I rowsort
SELECT - 6 + - col2 FROM tab0
----
-39
-7
-88

query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 + - 72 FROM tab1
----
-1112
-150
-712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2235
SELECT ALL + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL col1 + - col1 * col2 AS col1 FROM tab2
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT - col2 + - 64 DIV 44 + col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2238
SELECT - col2 + - 64 / 44 + col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + + tab0.col2 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 076860b1bfa17216a86cd6a20afcb7b8

query I rowsort
SELECT cor0.col2 + 91 AS col0 FROM tab1 cor0
----
145
148
187

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2241
SELECT - col1 * CAST( + 80 AS SIGNED ) AS col1 FROM tab1
----
-1040
-2080
-800

skipif mysql # not compatible
query I rowsort label-2241
SELECT - col1 * CAST ( + 80 AS INTEGER ) AS col1 FROM tab1
----
-1040
-2080
-800

query I rowsort
SELECT ALL - col0 + 33 FROM tab1 AS cor0
----
-31
-47
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT + col2 DIV - 1 FROM tab0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col2 / - 1 FROM tab0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2244
SELECT ALL CAST( + 60 AS SIGNED ) FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL CAST ( + 60 AS INTEGER ) FROM tab2
----
60
60
60

query I rowsort
SELECT ALL 96 * tab1.col1 AS col0 FROM tab1
----
1248
2496
960

query I rowsort
SELECT - + 57 * - cor0.col1 AS col2 FROM tab0 cor0
----
4902
5187
5529

query I rowsort
SELECT + 78 * - col2 AS col1 FROM tab2
----
-2028
-2106
-2964

query I rowsort
SELECT + ( col0 + col1 ) FROM tab0
----
110
132
180

query I rowsort
SELECT ALL col2 * + 17 AS col0 FROM tab1
----
1632
918
969

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2250
SELECT ALL + col0 * col0 * + CAST( - col0 AS SIGNED ) FROM tab1
----
-262144
-27
-512000

skipif mysql # not compatible
query I rowsort label-2250
SELECT ALL + col0 * col0 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
-262144
-27
-512000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 col0 FROM tab2
----
16
16
16

query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 * 28 FROM tab0 AS cor0
----
-2207
-900
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT DISTINCT + col2 + col0 DIV 63 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-2253
SELECT DISTINCT + col2 + col0 / 63 FROM tab0 AS cor0
----
1
33
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + - col1 col1 FROM tab1 AS cor0
----
-10
-23
-7

query I rowsort
SELECT 24 * col0 FROM tab1 AS cor0
----
1536
1920
72

query I rowsort
SELECT DISTINCT - 38 * cor0.col0 FROM tab0 AS cor0
----
-1330
-3382
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-2257
SELECT DISTINCT 48 - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT 48 - col1 / col1 AS col1 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + 88 * + cor0.col1 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT ALL + 91 * col0 FROM tab0 cor0
----
2184
3185
8099

query I rowsort
SELECT DISTINCT ( - col0 ) * - col2 FROM tab0
----
35
7298
792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2261
SELECT DISTINCT ( - col2 ) * 85 DIV tab1.col2 AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT ( - col2 ) * 85 / tab1.col2 AS col1 FROM tab1
----
-85

query I rowsort
SELECT + ( 34 ) AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa

query I rowsort
SELECT ALL + ( - col0 + col2 ) * + col2 FROM tab2
----
-1352
-1558
540

query I rowsort
SELECT ALL - 92 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83

query I rowsort
SELECT 97 * col0 FROM tab0 cor0
----
2328
3395
8633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 + col0 col0 FROM tab2
----
3559
368
968

query I rowsort
SELECT - tab2.col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to adaea38eae032c1639715f21831dd376

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT col2 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT - col1 * cor0.col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT - + col1 * col0 * - col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + col2 * 19 * + col2 col0 FROM tab0 AS cor0
----
-78
127665
20605

query I rowsort
SELECT ALL + cor0.col0 + ( - col1 ) FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT - col1 + + 69 * + col1 FROM tab0 AS cor0
----
5848
6188
6596

query I rowsort
SELECT ALL - - col1 + ( - cor0.col2 * col0 ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT - CAST( - col1 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-2276
SELECT - CAST ( - col1 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 + col1 col2 FROM tab1 AS cor0
----
101
104
117

query I rowsort
SELECT DISTINCT - 26 FROM tab0, tab1 AS cor0 CROSS JOIN tab1
----
-26

query I rowsort
SELECT ALL + 84 AS col0 FROM tab0
----
84
84
84

query I rowsort
SELECT - 58 + - col0 FROM tab2 AS cor0
----
-136
-137
-65

query I rowsort
SELECT + col1 * col1 + - col0 + col1 FROM tab2 AS cor0
----
227
3462
985

query I rowsort
SELECT + - 26 + 52 AS col0 FROM tab2 AS cor0
----
26
26
26

query I rowsort
SELECT col1 * col1 + col2 * col2 AS col0 FROM tab1 AS cor0
----
3349
3592
9385

query I rowsort
SELECT 97 + - col0 FROM tab2 AS cor0
----
18
19
90

query I rowsort
SELECT DISTINCT ( - col1 ) + col0 + - col2 FROM tab2 AS cor0
----
-51
-7
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-2286
SELECT ALL ( 4 ) DIV col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL ( 4 ) / col0 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT - - 40 - 77 * col1 AS col0 FROM tab2 AS cor0
----
-1269
-2347
-4503

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 98 col0 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT DISTINCT - - 53 * + col2 + col2 + cor0.col0 * 27 FROM tab0 AS cor0
----
2430
6831
999

query I rowsort
SELECT DISTINCT + ( 40 ) FROM tab1 AS cor0
----
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT ALL - - col2 DIV - col2 - - cor0.col0 DIV ( col2 + + cor0.col2 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - - col2 / - col2 - - cor0.col0 / ( col2 + + cor0.col2 ) AS col1 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT + + 85 * col2 * col2 AS col2 FROM tab1 AS cor0
----
247860
276165
783360

query I rowsort
SELECT DISTINCT - ( col0 ) - - col0 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col0 + cor0.col2 + col0 FROM tab1 cor0
----
54
57
96

query I rowsort
SELECT ALL + - col0 * - 64 AS col0 FROM tab0 AS cor0
----
1536
2240
5696

query I rowsort
SELECT ALL - 23 + col0 * - cor0.col0 FROM tab1 cor0
----
-32
-4119
-6423

query I rowsort
SELECT DISTINCT 44 * - 3 AS col2 FROM tab2, tab2 AS cor0
----
-132

query I rowsort
SELECT DISTINCT col1 + - 35 FROM tab0
----
51
56
62

query I rowsort
SELECT col0 * col0 * + col1 - + col0 FROM tab1
----
231
40896
83120

query I rowsort
SELECT DISTINCT - tab0.col1 * + ( + col2 ) FROM tab0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2301
SELECT - col0 + + ( col1 * + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2301
SELECT - col0 + + ( col1 * + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( tab2.col2 ) AS col1 FROM tab2
----
26
27
38

query I rowsort
SELECT - col1 + 96 * + col2 FROM tab1
----
5158
5462
9203

query I rowsort
SELECT ALL - 21 AS col2 FROM tab1 AS cor0
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + + cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * + 51 + + col2 * CAST ( - col2 AS REAL ) FROM tab1 cor0
----
-162
-342
-4320

query I rowsort
SELECT ALL + col0 * - 14 + cor0.col1 FROM tab0 cor0
----
-1155
-250
-393

query I rowsort
SELECT ALL - col2 + + col0 * col0 AS col0 FROM tab2 AS cor0
----
22
6058
6203

onlyif mysql # use DIV operator for integer division
query I rowsort label-2309
SELECT ALL - col2 DIV - col0 AS col0 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL - col2 / - col0 AS col0 FROM tab2
----
0
0
3

query I rowsort
SELECT - - cor1.col0 * cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d2e5241c58e367013a1a203910e000c0

query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05

onlyif mysql # use DIV operator for integer division
query I rowsort label-2312
SELECT ALL col2 DIV - col1 + + col0 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL col2 / - col1 + + col0 FROM tab0
----
24
35
89

query I rowsort
SELECT ALL - - cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a

query I rowsort
SELECT + + 67 * - 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30ec6e0413bae93b44ccf2cf2a9032c5

query I rowsort
SELECT + col2 * - col0 + 43 FROM tab1
----
-119
-3605
-7637

query I rowsort
SELECT DISTINCT - col2 + - 27 AS col2 FROM tab0
----
-109
-28
-60

query I rowsort
SELECT DISTINCT + col0 + + ( 88 * tab2.col2 ) AS col0 FROM tab2
----
2366
2383
3423

query I rowsort
SELECT ALL - cor0.col1 + cor0.col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 + cor0.col1 * - col0 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT - - cor0.col0 * col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + + col1 * - 25 + col0 FROM tab2 AS cor0
----
-1397
-346
-768

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + - col0 col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT - col1 * ( 53 + col0 ) FROM tab2
----
-1860
-2244
-7729

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2324
SELECT col1 + + CAST( + col1 AS SIGNED ) - + col1 * 26 FROM tab0
----
-2064
-2184
-2328

skipif mysql # not compatible
query I rowsort label-2324
SELECT col1 + + CAST ( + col1 AS INTEGER ) - + col1 * 26 FROM tab0
----
-2064
-2184
-2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2325
SELECT ALL - col1 + + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT ALL - col1 + + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 * ( col2 ) AS col0 FROM tab2 cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2328
SELECT ALL col2 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL col2 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT + col1 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
86
91
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2331
SELECT DISTINCT - + col0 + + CAST( NULL AS DECIMAL ) * + 55 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2331
SELECT DISTINCT - + col0 + + CAST ( NULL AS REAL ) * + 55 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + - cor0.col1 * + cor0.col0 col0 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT ALL + col0 DIV 72 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + col0 / 72 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT col2 * 51 + col0 FROM tab1 cor0
----
2757
2971
4976

query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + col0 FROM tab2 cor0
----
6110
6279
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT cor0.col2 DIV cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

skipif mysql # not compatible
query I rowsort label-2336
SELECT cor0.col2 / cor0.col0 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 83c163442931d28e4160369d40047ea7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2337
SELECT - - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2337
SELECT - - col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + + col0 * 81 * + col2 AS col1 FROM tab2 AS cor0
----
15309
164268
243162

query I rowsort
SELECT DISTINCT + col2 + 10 AS col1 FROM tab0 AS cor0
----
11
43
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-2340
SELECT + 88 + 83 DIV col0 FROM tab1 AS cor0
----
115
89
89

skipif mysql # not compatible
query I rowsort label-2340
SELECT + 88 + 83 / col0 FROM tab1 AS cor0
----
115
89
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-2341
SELECT col1 DIV col2 + + col1 FROM tab0 AS cor0
----
194
88
92

skipif mysql # not compatible
query I rowsort label-2341
SELECT col1 / col2 + + col1 FROM tab0 AS cor0
----
194
88
92

query I rowsort
SELECT ALL - + col1 * + 31 * col2 AS col2 FROM tab0 AS cor0
----
-231322
-3007
-87978

query I rowsort
SELECT ALL - 8 AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT - col0 + + 18 FROM tab0 AS cor0
----
-17
-6
-71

query I rowsort
SELECT - + 14 + + 34 FROM tab0 cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

query I rowsort
SELECT - 76 FROM tab1, tab0 AS cor0
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

query I rowsort
SELECT 50 * + 17 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 55579f8bf30904b180531671ce36872c

query I rowsort
SELECT ALL - 75 * - col1 - + col2 * 96 FROM tab2 AS cor0
----
-2373
-267
1929

onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT ALL - 22 DIV col2 + col2 AS col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL - 22 / col2 + col2 AS col1 FROM tab1
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2352
SELECT DISTINCT + 82 + - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2352
SELECT DISTINCT + 82 + - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 36 AS col2 FROM tab1
----
36
36
36

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + col2 - col2 * 95 FROM tab1 AS cor0
----
-5076
-5358
-9024

query I rowsort
SELECT DISTINCT + + col2 * col2 + col0 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT - + col0 + + 43 FROM tab1 AS cor0
----
-21
-37
40

query I rowsort
SELECT ALL + 76 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT + col1 * + col2 + - col2 * + col1 * col2 - - col1 FROM tab1 AS cor0
----
-118547
-31910
-74386

query I rowsort
SELECT DISTINCT + col2 * ( 40 ) + col1 AS col2 FROM tab0 AS cor0
----
137
1406
3371

query I rowsort
SELECT + col2 + col1 - col0 FROM tab2 AS cor0
----
-24
51
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2362
SELECT + + col2 DIV col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2362
SELECT + + col2 / col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + + col1 * - col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868

query I rowsort
SELECT 64 * + col2 + ( col0 ) + - tab2.col1 * 9 FROM tab2
----
1211
1456
2358

query I rowsort
SELECT DISTINCT ( col0 ) + ( col1 ) * + col1 AS col2 FROM tab0
----
7420
8370
9444

query I rowsort
SELECT col0 + col1 + col0 * col1 AS col0 FROM tab1
----
107
1133
714

query I rowsort
SELECT ALL - 1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT + 51 * + col0 FROM tab1
----
153
3264
4080

onlyif mysql # use DIV operator for integer division
query I rowsort label-2369
SELECT ALL - 77 DIV + col1 - + 69 FROM tab2
----
-70
-71
-73

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - 77 / + col1 - + 69 FROM tab2
----
-70
-71
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * col2 + cor0.col2 col2 FROM tab0 cor0
----
1716
4264
52

query I rowsort
SELECT col2 * + cor0.col0 * + ( 88 + col1 ) AS col1 FROM tab1 AS cor0
----
18468
357504
775680

query I rowsort
SELECT 39 * col0 FROM tab0 AS cor0
----
1365
3471
936

onlyif mysql # use DIV operator for integer division
query I rowsort label-2373
SELECT col0 DIV col1 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-2373
SELECT col0 / col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2374
SELECT DISTINCT 34 + col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT DISTINCT 34 + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col1 * - col0 * 85 FROM tab1 cor0
----
54400
6630
88400

query I rowsort
SELECT ALL - 68 + + 52 FROM tab2, tab1 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT - col1 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-74

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT + - col0 * CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2379
SELECT + - col0 * CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT ALL cor0.col0 DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL cor0.col0 / col0 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2381
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + - col0 * - 44 AS col1 FROM tab2 AS cor0
----
308
3432
3476

query I rowsort
SELECT - 90 + + 7 * col0 AS col1 FROM tab2 AS cor0
----
-41
456
463

query I rowsort
SELECT ALL - col1 * + col0 + + col1 + col1 AS col2 FROM tab0
----
-1892
-3201
-7917

query I rowsort
SELECT ALL - 95 * - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f743d22257eee9bf287773a4a2445e6

query I rowsort
SELECT - ( 62 ) * col0 + col1 AS col2 FROM tab0 AS cor0
----
-1402
-2073
-5427

query I rowsort
SELECT ALL - 87 FROM tab2, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - ( - col2 ) * col1 AS col2 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT col2 * + col2 * tab2.col1 FROM tab2
----
22599
24548
39884

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2390
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 97 * + col0 col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2390
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 97 * + col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 54 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT ALL - - cor0.col1 * cor0.col0 + 89 FROM tab1 AS cor0
----
1129
167
729

onlyif mysql # use DIV operator for integer division
query I rowsort label-2393
SELECT ALL + 19 + - col2 DIV - col1 FROM tab2 AS cor0
----
19
19
21

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL + 19 + - col2 / - col1 FROM tab2 AS cor0
----
19
19
21

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff

query I rowsort
SELECT ALL 94 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089

query I rowsort
SELECT - 91 * - 38 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5e593484b3b39f9008bf9c4f0f692e25

query I rowsort
SELECT ALL + col1 * + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
7482
8372
9506

query I rowsort
SELECT + 2 * + col1 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc

query I rowsort
SELECT ALL ( + col2 ) * + 96 + col2 AS col2 FROM tab1
----
5238
5529
9312

query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab0, tab2 AS cor0, tab2 cor1
----
54
57
96

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8

query I rowsort
SELECT tab2.col0 - col1 FROM tab2
----
-24
19
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2404
SELECT ALL - cor0.col1 * ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - cor0.col1 * ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + 24 + col0 * col2 * 59 col2 FROM tab0 AS cor0
----
-263
428398
44664

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2406
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 47 * + col2 + col0 * 92 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 47 * + col2 + col0 * 92 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col0 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT 81 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360

query I rowsort
SELECT - 44 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT col1 + 85 * + col2 FROM tab1 AS cor0
----
4616
4855
8173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - col2 * + cor0.col2 col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 93 - + col2 col0 FROM tab2 cor0
----
-2444
-2538
-3572

query I rowsort
SELECT ( + col2 ) + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2414
SELECT - col2 DIV - col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-2414
SELECT - col2 / - col2 + col2 AS col0 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT col0 * + 66 - + col1 FROM tab1 AS cor0
----
172
4214
5267

onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT + + 99 DIV + col0 + - cor0.col1 + col0 FROM tab2 AS cor0
----
-10
20
63

skipif mysql # not compatible
query I rowsort label-2416
SELECT + + 99 / + col0 + - cor0.col1 + col0 FROM tab2 AS cor0
----
-10
20
63

query I rowsort
SELECT - col2 + - col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT - 86 + - 67 AS col0 FROM tab0, tab0 cor0
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 * + col2 col0 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL + - col2 * + ( col0 ) AS col0 FROM tab0 cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-2421
SELECT - + col0 DIV - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT - + col0 / - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT - 10 + cor0.col1 FROM tab2, tab0 AS cor0
----
76
81
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-2423
SELECT col1 + 37 DIV col0 FROM tab1
----
10
13
38

skipif mysql # not compatible
query I rowsort label-2423
SELECT col1 + 37 / col0 FROM tab1
----
10
13
38

query I rowsort
SELECT - col0 + 89 AS col2 FROM tab0
----
0
54
65

query I rowsort
SELECT ALL + + tab0.col1 + 64 * 3 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to c249f2fce57656aa201645871f30b39d

query I rowsort
SELECT ALL + 17 FROM tab2, tab0 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT ALL 33 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT col1 + ( + 56 + - col2 ) AS col1 FROM tab2 AS cor0
----
35
60
89

query I rowsort
SELECT DISTINCT + col2 * + 76 FROM tab1 AS cor0
----
4104
4332
7296

query I rowsort
SELECT + col0 * - 11 FROM tab0 AS cor0
----
-264
-385
-979

query I rowsort
SELECT ALL - cor1.col0 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to f74ca4a9760ae5a015b067d560a14502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( cor0.col2 ) col0 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - ( + 76 ) + col0 FROM tab1 AS cor0
----
-12
-73
4

query I rowsort
SELECT DISTINCT + col1 * - col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2436
SELECT ALL + CAST( 55 AS SIGNED ) FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL + CAST ( 55 AS INTEGER ) FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT col0 + - 9 FROM tab0 AS cor0
----
15
26
80

query I rowsort
SELECT ALL ( col2 ) + cor0.col0 * + 80 AS col1 FROM tab1 AS cor0
----
294
5177
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-2439
SELECT + 74 DIV col0 FROM tab1 cor0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-2439
SELECT + 74 / col0 FROM tab1 cor0
----
0
1
24

query I rowsort
SELECT + col0 + - col2 * - col1 * ( col0 ) FROM tab1 AS cor0
----
36544
4215
99920

query I rowsort
SELECT ALL - + col1 * 82 FROM tab1 cor0
----
-1066
-2132
-820

query I rowsort
SELECT - col1 * - 30 AS col1 FROM tab1 AS cor0
----
300
390
780

query I rowsort
SELECT - 76 + - col2 * col0 * - col2 FROM tab0 AS cor0
----
-41
26060
598360

onlyif mysql # use DIV operator for integer division
query I rowsort label-2444
SELECT col0 * 31 + - col1 DIV + tab0.col2 AS col0 FROM tab0
----
2758
742
988

skipif mysql # not compatible
query I rowsort label-2444
SELECT col0 * 31 + - col1 / + tab0.col2 AS col0 FROM tab0
----
2758
742
988

query I rowsort
SELECT tab0.col1 - - col1 AS col2 FROM tab0
----
172
182
194

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2446
SELECT - col0 + + CAST( + col2 AS SIGNED ) * + col2 AS col1 FROM tab1
----
2913
3185
9136

skipif mysql # not compatible
query I rowsort label-2446
SELECT - col0 + + CAST ( + col2 AS INTEGER ) * + col2 AS col1 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT + col2 * + col1 * col0 AS col0 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT col0 - 20 AS col2 FROM tab1
----
-17
44
60

query I rowsort
SELECT + col0 * - col1 + + col2 AS col2 FROM tab2
----
-1305
-190
-4576

onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT DISTINCT - col2 DIV col0 + ( - col2 ) + col0 FROM tab2 AS cor0
----
-23
41
52

skipif mysql # not compatible
query I rowsort label-2450
SELECT DISTINCT - col2 / col0 + ( - col2 ) + col0 FROM tab2 AS cor0
----
-23
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-2451
SELECT ALL + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL + col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - col2 * col2 + + ( + 42 ) FROM tab2 cor0
----
-1402
-634
-687

query I rowsort
SELECT - col0 - - col2 AS col1 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT ALL + 75 AS col2 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT 15 + - col1 FROM tab2 AS cor0
----
-16
-2
-44

query I rowsort
SELECT ALL col2 * col1 * ( 57 ) FROM tab2 AS cor0
----
36822
47709
87438

query I rowsort
SELECT DISTINCT + col1 * - col2 * 55 AS col2 FROM tab0 cor0
----
-156090
-410410
-5335

query I rowsort
SELECT - 25 AS col1 FROM tab2 cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col0 ) - col2 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT ALL - 30 * col1 FROM tab0
----
-2580
-2730
-2910

query I rowsort
SELECT - 29 + ( col2 ) FROM tab0
----
-28
4
53

query I rowsort
SELECT ALL - - col1 + col2 * col2 + - col2 FROM tab0 AS cor0
----
1142
6733
97

query I rowsort
SELECT + 61 * + col1 FROM tab2 cor0
----
1037
1891
3599

query I rowsort
SELECT DISTINCT + 27 + + col1 * col0 FROM tab2 AS cor0
----
1370
244
4629

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 - + col1 * + cor0.col1 col1 FROM tab2 AS cor0
----
-251
-3455
-934

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2466
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2467
SELECT - col0 + - col1 DIV col1 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-2467
SELECT - col0 + - col1 / col1 AS col1 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT - col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT - 29 + - col2 AS col0 FROM tab2
----
-55
-56
-67

query I rowsort
SELECT cor0.col2 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT col2 * - 54 + 17 FROM tab2 cor0
----
-1387
-1441
-2035

query I rowsort
SELECT 64 + col0 * + tab2.col0 * col0 AS col0 FROM tab2
----
407
474616
493103

query I rowsort
SELECT DISTINCT + tab2.col0 * + col1 AS col0 FROM tab2
----
1343
217
4602

query I rowsort
SELECT + 7 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 51 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT + col2 * ( col2 * + col2 ) FROM tab1 AS cor0
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-2477
SELECT DISTINCT - + col1 + + col1 DIV + col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-2477
SELECT DISTINCT - + col1 + + col1 / + col0 FROM tab2 AS cor0
----
-17
-27
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2478
SELECT ALL + - col2 * CAST( col1 AS SIGNED ) - - col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL + - col2 * CAST ( col1 AS INTEGER ) - - col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT col1 * + 55 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-2839
-5306
1656

query I rowsort
SELECT DISTINCT col0 + 26 AS col0 FROM tab1 cor0
----
106
29
90

query I rowsort
SELECT ALL + - cor0.col1 + 53 * - col1 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT + col0 * + col2 * + cor0.col2 + col2 AS col1 FROM tab2 cor0
----
114114
5130
52754

query I rowsort
SELECT ALL - + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT DISTINCT - col2 * col2 - - col2 FROM tab2 AS cor0
----
-1406
-650
-702

query I rowsort
SELECT DISTINCT col1 * ( col1 * col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
177480
329280
736920

query I rowsort
SELECT ALL - col0 - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2913
3185
9136

query I rowsort
SELECT + cor0.col2 + - 34 FROM tab2 AS cor0
----
-7
-8
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 * 11 col1 FROM tab1 AS cor0
----
-990

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2489
SELECT ALL - CAST( col1 AS SIGNED ) * col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL - CAST ( col1 AS INTEGER ) * col0 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - - 95 * - col2 AS col1 FROM tab1 AS cor0
----
-5130
-5415
-9120

onlyif mysql # use DIV operator for integer division
query I rowsort label-2491
SELECT ALL + - col0 DIV + 59 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + - col0 / + 59 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - + ( col1 ) - + col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + 92 * cor0.col1 FROM tab1 AS cor0
----
1196
2392
920

query I rowsort
SELECT - 30 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142

query I rowsort
SELECT 78 * - col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 + col2 * col1 col1 FROM tab1
----
1235
1391
557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2498
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2498
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT ALL + + col1 DIV col2 - - 2 FROM tab0 AS cor0
----
3
4
99

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL + + col1 / col2 - - 2 FROM tab0 AS cor0
----
3
4
99

query I rowsort
SELECT cor0.col2 * - 66 AS col2 FROM tab0 AS cor0
----
-2178
-5412
-66

query I rowsort
SELECT col0 * 96 * - col1 FROM tab1 AS cor0
----
-61440
-7488
-99840

query I rowsort
SELECT DISTINCT + + 38 AS col2 FROM tab0 cor0
----
38

query I rowsort
SELECT ALL 57 * - col0 AS col1 FROM tab0
----
-1368
-1995
-5073

query I rowsort
SELECT ALL 10 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176

onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT DISTINCT 30 DIV 88 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT 30 / 88 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2506
SELECT ALL col1 * + col2 DIV col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL col1 * + col2 / col2 FROM tab0
----
86
91
97

query I rowsort
SELECT - + cor0.col1 * - col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT ALL - 74 * col0 + col2 + 39 FROM tab2 AS cor0
----
-452
-5707
-5769

query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col0 + ( cor0.col2 + + col1 ) AS col1 FROM tab0 AS cor0
----
133
143
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2511
SELECT col1 + + CAST( col1 AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

skipif mysql # not compatible
query I rowsort label-2511
SELECT col1 + + CAST ( col1 AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2512
SELECT + col2 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2512
SELECT + col2 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 67 + + tab2.col1 AS col0 FROM tab2
----
126
84
98

query I rowsort
SELECT - 6 + col1 AS col2 FROM tab1
----
20
4
7

query I rowsort
SELECT col2 * col0 * - col0 + 33 AS col1 FROM tab0
----
-1192
-18975
-649489

query I rowsort
SELECT DISTINCT col0 * + col0 + - 28 + col1 FROM tab1
----
4078
6385
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT col2 DIV - 71 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2517
SELECT col2 / - 71 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 - - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2519
SELECT - cor0.col2 * - CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-2519
SELECT - cor0.col2 * - CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 27 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2521
SELECT - + col1 * + CAST( col0 AS SIGNED ) + col2 FROM tab2 cor0
----
-1305
-190
-4576

skipif mysql # not compatible
query I rowsort label-2521
SELECT - + col1 * + CAST ( col0 AS INTEGER ) + col2 FROM tab2 cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) + - 90 AS col2 FROM tab0 AS cor0
----
-176
-181
-187

query I rowsort
SELECT ALL 36 * 24 FROM tab1 AS cor0
----
864
864
864

query I rowsort
SELECT DISTINCT + - 39 * - 78 AS col0 FROM tab2 AS cor0
----
3042

query I rowsort
SELECT - ( - 1 ) + col0 * cor0.col1 FROM tab1 AS cor0
----
1041
641
79

query I rowsort
SELECT ALL + + 49 + col1 AS col2 FROM tab1 AS cor0
----
59
62
75

query I rowsort
SELECT 45 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT + - ( + cor0.col1 ) + + col0 AS col0 FROM tab0 cor0
----
-2
-62
-62

query I rowsort
SELECT col2 + col2 + col1 * - col0 AS col0 FROM tab0
----
-1998
-3393
-7935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col0 * + col1 col1 FROM tab0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2531
SELECT DISTINCT - - col1 * + col0 + - CAST( NULL AS SIGNED ) - - 76 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT - - col1 * + col0 + - CAST ( NULL AS INTEGER ) - - 76 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - - 30 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0

query I rowsort
SELECT - col0 * + col1 + - tab2.col1 FROM tab2
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT - col1 * - ( tab2.col0 + ( - col0 ) ) * col0 AS col1 FROM tab2
----
0

query I rowsort
SELECT + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT - + cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

query I rowsort
SELECT DISTINCT - tab2.col2 + - col2 + - tab2.col1 AS col2 FROM tab2
----
-111
-85
-93

query I rowsort
SELECT - ( + col1 * col2 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT ( tab1.col1 ) + col0 * col0 + + col0 FROM tab1
----
38
4170
6493

onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT DISTINCT + ( + tab2.col0 ) - col2 DIV col1 col0 FROM tab2
----
7
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT + ( + tab2.col0 ) - col2 / col1 col0 FROM tab2
----
7
77
78

query I rowsort
SELECT DISTINCT - tab1.col0 - col1 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL - 54 + - col1 - - col0 * 60 * col2 FROM tab2
----
11255
121567
180049

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2543
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 67 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2543
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 67 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * 88 AS col1 FROM tab0 AS cor0
----
2112
3080
7832

query I rowsort
SELECT ALL ( cor0.col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2546
SELECT DISTINCT - col1 + + 91 * + tab0.col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT - col1 + + 91 * + tab0.col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2547
SELECT DISTINCT - CAST( NULL AS SIGNED ) + tab0.col1 + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + tab0.col1 + col1 AS col0 FROM tab0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT + cor0.col2 DIV col0 - col0 AS col0 FROM tab1 AS cor0
----
-64
-79
15

skipif mysql # not compatible
query I rowsort label-2548
SELECT + cor0.col2 / col0 - col0 AS col0 FROM tab1 AS cor0
----
-64
-79
15

query I rowsort
SELECT DISTINCT 91 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-3557
-71
-7589

query I rowsort
SELECT ALL - - col0 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT ALL - 87 + - col0 FROM tab2 AS cor0
----
-165
-166
-94

query I rowsort
SELECT + + col0 * - cor0.col0 + - ( cor0.col2 + + col1 ) AS col0 FROM tab2 AS cor0
----
-107
-6169
-6296

query I rowsort
SELECT + col0 * - col1 * 75 + + col1 AS col1 FROM tab1 AS cor0
----
-47990
-5824
-77987

query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + cor0.col0 - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + 5 + + col1 AS col0 FROM tab2 AS cor0
----
22
36
64

query I rowsort
SELECT ALL + - 25 + - col2 AS col0 FROM tab1 cor0
----
-121
-79
-82

query I rowsort
SELECT - + col1 * - col0 + - ( col0 * col0 ) FROM tab1 AS cor0
----
-3456
-5360
69

query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + + col2 * col1 * + col1 FROM tab0 AS cor0
----
244154
679133
9506

query I rowsort
SELECT ALL - col1 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2562
SELECT DISTINCT - col2 DIV + cor0.col2 + + 27 + col0 FROM tab1 AS cor0
----
106
29
90

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT - col2 / + cor0.col2 + + 27 + col0 FROM tab1 AS cor0
----
106
29
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + col0 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - 63 + col1 - + col1 * - cor0.col0 FROM tab1 cor0
----
41
587
990

query I rowsort
SELECT DISTINCT + - ( col0 ) * col0 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT - - col1 + + col2 * + cor0.col1 - col1 * cor0.col1 FROM tab1 cor0
----
1092
480
754

query I rowsort
SELECT + tab0.col0 - col1 AS col0 FROM tab0
----
-2
-62
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT + col1 DIV + col0 FROM tab2 cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-2568
SELECT + col1 / + col0 FROM tab2 cor0
----
0
0
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT DISTINCT + + col1 DIV ( - col2 ) + col0 * ( + 38 ) * col2 FROM tab0 AS cor0
----
1233
277323
30094

skipif mysql # not compatible
query I rowsort label-2569
SELECT DISTINCT + + col1 / ( - col2 ) + col0 * ( + 38 ) * col2 FROM tab0 AS cor0
----
1233
277323
30094

query I rowsort
SELECT ALL - - cor0.col0 * 15 FROM tab0 AS cor0
----
1335
360
525

query I rowsort
SELECT ALL + + col0 + 88 * - col1 * col1 FROM tab2 AS cor0
----
-25353
-306250
-84561

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2572
SELECT col0 * CAST( NULL AS SIGNED ) * 72 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2572
SELECT col0 * CAST ( NULL AS INTEGER ) * 72 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 50 + - 36 FROM tab2 AS cor0
----
-1586
-2986
-886

query I rowsort
SELECT ALL + col1 * 89 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1592
2766
5329

onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT ALL col2 + col1 DIV 67 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL col2 + col1 / 67 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + - col1 * + col1 + 13 - col0 * 1 FROM tab2 AS cor0
----
-3546
-355
-955

query I rowsort
SELECT col0 + 26 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT col0 * - 77 FROM tab1 AS cor0
----
-231
-4928
-6160

query I rowsort
SELECT DISTINCT + ( 84 ) FROM tab0 AS cor0
----
84

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2580
SELECT DISTINCT col1 + ( col1 ) * CAST( col1 * col1 + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1110
18278
2379

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT col1 + ( col1 ) * CAST ( col1 * col1 + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1110
18278
2379

onlyif mysql # use DIV operator for integer division
query I rowsort label-2581
SELECT - - col1 DIV + 56 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2581
SELECT - - col1 / + 56 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 88 * + col1 FROM tab2 AS cor0
----
1496
2728
5192

query I rowsort
SELECT + - cor0.col0 + + col2 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 97 * 54 FROM tab2 cor0
----
5238

query I rowsort
SELECT ALL - + cor0.col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT - - 78 + col0 AS col2 FROM tab0 AS cor0
----
102
113
167

onlyif mysql # use DIV operator for integer division
query I rowsort label-2587
SELECT DISTINCT - - col2 DIV - col0 + col1 AS col2 FROM tab0 cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-2587
SELECT DISTINCT - - col2 / - col0 + col1 AS col2 FROM tab0 cor0
----
85
91
97

query I rowsort
SELECT + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + - ( + ( cor0.col0 ) ) * ( col2 ) + - cor0.col1 FROM tab2 AS cor0
----
-2087
-220
-3019

query I rowsort
SELECT ALL - 19 FROM tab0 cor0
----
-19
-19
-19

query I rowsort
SELECT - - col1 * 54 FROM tab2 AS cor0
----
1674
3186
918

query I rowsort
SELECT ALL 24 + col2 AS col1 FROM tab2 AS cor0
----
50
51
62

query I rowsort
SELECT DISTINCT + col2 + 67 + + col2 FROM tab1 AS cor0
----
175
181
259

query I rowsort
SELECT DISTINCT - col0 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + cor0.col1 + + 56 AS col1 FROM tab2 AS cor0
----
115
73
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ALL col2 * cor0.col2 + - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2598
SELECT ALL + - CAST( NULL AS DECIMAL ) + + col0 * - 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-2598
SELECT ALL + - CAST ( NULL AS REAL ) + + col0 * - col2 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 15 * + col0 AS col2 FROM tab1 AS cor0
----
1200
45
960

query I rowsort
SELECT ALL + ( + cor0.col1 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + 97 col1 FROM tab1 AS cor0
----
151
154
193

query I rowsort
SELECT ALL + cor0.col1 + + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - col1 * + 56 + col1 AS col2 FROM tab2 cor0
----
-1705
-3245
-935

onlyif mysql # use DIV operator for integer division
query I rowsort label-2604
SELECT - col1 * ( - 16 ) + col1 DIV - col1 FROM tab1 AS cor0
----
159
207
415

skipif mysql # not compatible
query I rowsort label-2604
SELECT - col1 * ( - 16 ) + col1 / - col1 FROM tab1 AS cor0
----
159
207
415

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2605
SELECT + col1 * - 41 / - col1 + tab2.col1 * + CAST( NULL AS SIGNED ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT + col1 * - 41 / - col1 + tab2.col1 * + CAST ( NULL AS INTEGER ) / + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + tab0.col2 * 14 FROM tab0, tab1, tab2 AS cor0
----
1148
14
462

query I rowsort
SELECT DISTINCT 56 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
56

query I rowsort
SELECT ALL - + col1 * - 19 + + col2 * col1 FROM tab2 AS cor0
----
1426
2655
969

query I rowsort
SELECT DISTINCT - cor0.col2 + 5 FROM tab1 cor0
----
-49
-52
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * 33 * col2 + col0 * + col0 col1 FROM tab1 AS cor0
----
-14714
-34784
-46323

query I rowsort
SELECT ALL + - cor0.col0 * + cor0.col2 - + 99 * - col2 FROM tab1 AS cor0
----
1824
1995
5184

query I rowsort
SELECT DISTINCT + - col0 * + 40 + 73 FROM tab1 AS cor0
----
-2487
-3127
-47

query I rowsort
SELECT - col2 * col1 + + 58 FROM tab0 AS cor0
----
-2780
-39
-7404

query I rowsort
SELECT 15 - cor0.col1 * + 99 AS col1 FROM tab2 AS cor0
----
-1668
-3054
-5826

query I rowsort
SELECT 28 * col2 FROM tab1 cor0
----
1512
1596
2688

query I rowsort
SELECT - 80 - col0 AS col0 FROM tab0 AS cor0
----
-104
-115
-169

onlyif mysql # use DIV operator for integer division
query I rowsort label-2617
SELECT col0 DIV 74 col0 FROM tab1
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2617
SELECT col0 / 74 col0 FROM tab1
----
0
0
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab2
----
1534
646
837

skipif mysql # not compatible
query I rowsort label-2618
SELECT CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab2
----
1534
646
837

query I rowsort
SELECT - 53 * tab0.col2 FROM tab0
----
-1749
-4346
-53

query I rowsort
SELECT ALL ( - col2 + + col2 ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT 38 DIV + 65 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2621
SELECT 38 / + 65 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT cor0.col2 * col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT DISTINCT - 86 FROM tab2 cor0
----
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-2624
SELECT + 56 DIV 1 AS col0 FROM tab2
----
56
56
56

skipif mysql # not compatible
query I rowsort label-2624
SELECT + 56 / 1 AS col0 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT + + 79 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col2 FROM tab0
----
-47
-47
-47

onlyif mysql # use DIV operator for integer division
query I rowsort label-2627
SELECT + col1 + col0 DIV - ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
66
79

skipif mysql # not compatible
query I rowsort label-2627
SELECT + col1 + col0 / - ( col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
108
66
79

query I rowsort
SELECT DISTINCT - col1 + - 94 * - col2 AS col0 FROM tab0 cor0
----
-3
3016
7617

query I rowsort
SELECT ALL - cor2.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to dba0629212dd6bf03c2834a27d0b07fb

query I rowsort
SELECT - col0 * - ( col1 ) AS col1 FROM tab2
----
1343
217
4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2631
SELECT CAST( 15 AS SIGNED ) + + tab0.col1 FROM tab0
----
101
106
112

skipif mysql # not compatible
query I rowsort label-2631
SELECT CAST ( 15 AS INTEGER ) + + tab0.col1 FROM tab0
----
101
106
112

query I rowsort
SELECT DISTINCT - col2 * 66 FROM tab1
----
-3564
-3762
-6336

query I rowsort
SELECT + - col2 + 67 * col1 AS col1 FROM tab1 AS cor0
----
1688
613
775

query I rowsort
SELECT tab1.col2 + + 93 AS col0 FROM tab1
----
147
150
189

query I rowsort
SELECT - ( - ( col0 ) ) AS col2 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 + col2 * - 18 col2 FROM tab0
----
-17
495
5248

onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT DISTINCT + col1 * col0 DIV + col0 col1 FROM tab2 cor0
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT + col1 * col0 / + col0 col1 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * - 7 AS col0 FROM tab0 AS cor0
----
-602
-637
-679

onlyif mysql # use DIV operator for integer division
query I rowsort label-2639
SELECT ALL + ( + col0 ) * col2 DIV + 48 FROM tab0 AS cor0
----
0
152
16

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + ( + col0 ) * col2 / + 48 FROM tab0 AS cor0
----
0
152
16

query I rowsort
SELECT + 88 - - col2 AS col1 FROM tab2 AS cor0
----
114
115
126

query I rowsort
SELECT - col2 * - cor0.col2 + + 86 + col0 AS col1 FROM tab2 AS cor0
----
1609
822
840

query I rowsort
SELECT DISTINCT + 91 * col0 AS col2 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT ALL tab0.col0 + + col2 + 67 AS col1 FROM tab0
----
103
124
238

onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - col0 DIV tab1.col2 + + col0 AS col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-2644
SELECT - col0 / tab1.col2 + + col0 AS col2 FROM tab1
----
3
63
80

query I rowsort
SELECT ALL - + col1 + ( col0 ) * + col0 + ( 88 ) * + col0 AS col2 FROM tab0 AS cor0
----
15662
2602
4208

query I rowsort
SELECT + col1 + + 20 + + cor0.col1 FROM tab2 cor0
----
138
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 37 col1 FROM tab0 AS cor0
----
-1221
-3034
-37

query I rowsort
SELECT DISTINCT - 82 * 87 * col1 AS col2 FROM tab1 AS cor0
----
-185484
-71340
-92742

onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT DISTINCT - 29 + col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - 29 + col0 / col0 AS col2 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL ( + col1 ) AS col2 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT + col2 + + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab1, tab2, tab0 AS cor0, tab0
----
-96

query I rowsort
SELECT ALL - ( - col0 ) * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT - col1 + 74 AS col2 FROM tab0
----
-12
-17
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col1 FROM tab1, tab2 AS cor0
----
79

query I rowsort
SELECT ALL + col1 + + 44 AS col2 FROM tab2 AS cor0
----
103
61
75

query I rowsort
SELECT DISTINCT + + col0 * 54 AS col0 FROM tab2 AS cor0
----
378
4212
4266

query I rowsort
SELECT - 99 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT col1 DIV - 78 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2659
SELECT col1 / - 78 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + + ( + col2 ) * col0 AS col2 FROM tab2
----
162
2002
2964

query I rowsort
SELECT col0 + + col1 * 74 * col2 AS col2 FROM tab0
----
210036
552277
7213

onlyif mysql # use DIV operator for integer division
query I rowsort label-2662
SELECT - col0 DIV col0 col2 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2662
SELECT - col0 / col0 col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT col2 * 42 FROM tab0
----
1386
3444
42

query I rowsort
SELECT ALL - col0 - 23 FROM tab1
----
-103
-26
-87

query I rowsort
SELECT - col2 + 18 * col0 FROM tab1 AS cor0
----
0
1095
1344

query I rowsort
SELECT ALL col2 + col0 * 36 FROM tab0 AS cor0
----
1261
3286
897

query I rowsort
SELECT DISTINCT + col2 + + ( - 69 ) * + col0 - 58 AS col2 FROM tab2 AS cor0
----
-514
-5414
-5471

query I rowsort
SELECT ALL + col2 * + col0 + col1 + col0 * col2 FROM tab1 AS cor0
----
15373
350
7306

query I rowsort
SELECT DISTINCT 65 * + 97 + - col1 FROM tab1
----
6279
6292
6295

query I rowsort
SELECT 70 + + tab2.col1 * + tab2.col1 AS col2 FROM tab2
----
1031
3551
359

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-2672
SELECT ALL ( + col2 ) DIV + col2 + + col0 + + 81 * + tab1.col2 FROM tab1
----
4378
4682
7857

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL ( + col2 ) / + col2 + + col0 + + 81 * + tab1.col2 FROM tab1
----
4378
4682
7857

query I rowsort
SELECT ALL + 92 + 48 FROM tab2
----
140
140
140

query I rowsort
SELECT DISTINCT - + col1 * col2 - col2 FROM tab0 AS cor0
----
-2871
-7544
-98

query I rowsort
SELECT DISTINCT - + 20 + col1 * cor0.col1 FROM tab1 AS cor0
----
149
656
80

query I rowsort
SELECT + 39 * col0 FROM tab0 cor0
----
1365
3471
936

query I rowsort
SELECT DISTINCT - col1 + - col0 + col2 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT ALL + + 34 * + cor0.col1 - ( col1 ) FROM tab2 AS cor0
----
1023
1947
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * - 30 + - col0 col1 FROM tab0 cor0
----
-223949
-2945
-85164

query I rowsort
SELECT ALL + col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT ALL - 79 * col1 + ( + col1 ) FROM tab0 AS cor0
----
-6708
-7098
-7566

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2682
SELECT DISTINCT + + ( - cor0.col2 ) + - CAST( NULL AS SIGNED ) * 76 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT + + ( - cor0.col2 ) + - CAST ( NULL AS INTEGER ) * 76 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 + - col1 * cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
244035
678960
9408

query I rowsort
SELECT ALL + col2 * - tab2.col2 AS col2 FROM tab2
----
-1444
-676
-729

query I rowsort
SELECT 57 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5

query I rowsort
SELECT ALL 61 * + col0 AS col0 FROM tab2 AS cor0
----
427
4758
4819

onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT - col0 DIV + col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2687
SELECT - col0 / + col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - - 1 AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT - + col0 * col1 * CAST( + col0 + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-2262
-47360
-96720

skipif mysql # not compatible
query I rowsort label-2689
SELECT - + col0 * col1 * CAST ( + col0 + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-2262
-47360
-96720

query I rowsort
SELECT DISTINCT - 60 + col2 AS col0 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT + col0 * ( 31 ) FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT col0 * - cor0.col2 + col2 FROM tab1 cor0
----
-108
-3591
-7584

query I rowsort
SELECT col0 * - ( col1 ) AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT - cor0.col0 + - col2 * - col2 FROM tab0 AS cor0
----
-34
1065
6635

query I rowsort
SELECT - col1 * col1 + - cor0.col0 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL + cor0.col1 + col0 - col2 AS col1 FROM tab1 AS cor0
----
-25
-3
17

query I rowsort
SELECT ALL + + col2 - - col1 * col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT ALL - cor0.col2 DIV 35 + + col0 FROM tab2 AS cor0
----
7
78
78

skipif mysql # not compatible
query I rowsort label-2698
SELECT ALL - cor0.col2 / 35 + + col0 FROM tab2 AS cor0
----
7
78
78

query I rowsort
SELECT - 49 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to adfccb10c9468825d9961e3613140f89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col1 FROM tab0
----
1
33
82

query I rowsort
SELECT + cor1.col0 FROM tab0, tab1, tab0 cor0, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6

query I rowsort
SELECT - - col1 * ( 34 ) FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT ALL - + col0 * - 30 FROM tab2 cor0
----
210
2340
2370

query I rowsort
SELECT - - col1 * col1 + cor0.col0 - - col1 FROM tab1 AS cor0
----
174
262
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 * 63 col1 FROM tab1 AS cor0
----
-1071
-1071
-1071

query I rowsort
SELECT DISTINCT - + 35 + col1 AS col1 FROM tab0 AS cor0
----
51
56
62

query I rowsort
SELECT + ( - col1 ) * col0 + + col2 FROM tab1 AS cor0
----
-24
-583
-944

onlyif mysql # use DIV operator for integer division
query I rowsort label-2708
SELECT col2 + - 7 DIV col1 AS col0 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2708
SELECT col2 + - 7 / col1 AS col0 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 52 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1586
-698
-889

query I rowsort
SELECT DISTINCT + + ( + 33 ) AS col2 FROM tab0 AS cor0
----
33

query I rowsort
SELECT - 72 * + col0 FROM tab1 AS cor0
----
-216
-4608
-5760

query I rowsort
SELECT ALL + col1 * - cor0.col1 * + col0 FROM tab0 cor0
----
-177504
-329315
-737009

query I rowsort
SELECT ALL + 20 AS col1 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT + - cor0.col0 - 44 FROM tab2 AS cor0
----
-122
-123
-51

query I rowsort
SELECT + - col0 * + col2 - + cor0.col0 FROM tab1 AS cor0
----
-165
-3712
-7760

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2716
SELECT ALL - col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL - col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - 91 AS col0 FROM tab2
----
-53
-64
-65

query I rowsort
SELECT DISTINCT tab2.col0 + 31 - - 70 FROM tab2
----
108
179
180

query I rowsort
SELECT ALL + - col1 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2720
SELECT + CAST( + col2 AS SIGNED ) + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-2720
SELECT + CAST ( + col2 AS INTEGER ) + col1 * col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - 26 * - col1 + - col0 FROM tab1 AS cor0
----
196
258
673

query I rowsort
SELECT DISTINCT col1 * - 39 FROM tab1 AS cor0
----
-1014
-390
-507

query I rowsort
SELECT DISTINCT + + 11 + + col2 FROM tab1 AS cor0
----
107
65
68

query I rowsort
SELECT + ( 39 ) * - tab1.col1 FROM tab1
----
-1014
-390
-507

query I rowsort
SELECT + col2 + + cor0.col1 * - col1 * col0 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343

onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT col1 + col2 * + tab0.col1 DIV col1 AS col1 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-2726
SELECT col1 + col2 * + tab0.col1 / col1 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab1
----
29
74
93

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col1 NOT IN ( - col0 * - col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2729
SELECT DISTINCT col0 * + tab0.col0 DIV col0 AS col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-2729
SELECT DISTINCT col0 * + tab0.col0 / col0 AS col1 FROM tab0
----
24
35
89

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= col2 * + col0 + - col1
----

query I rowsort
SELECT ALL - col2 * col0 - - col0 * col1 FROM tab1
----
-3008
-6640
-84

query I rowsort
SELECT col2 + col0 * col2 AS col2 FROM tab2
----
2054
216
3040

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab2 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT + col0 + + col0 * - col2 FROM tab1
----
-159
-3584
-7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - - col0 * - col1 col1 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT + col1 - col1 * + col1 FROM tab2
----
-272
-3422
-930

query I rowsort
SELECT - col2 + tab2.col1 + - col0 * col0 AS col2 FROM tab2
----
-45
-6051
-6262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col1 col0 FROM tab2
----
118
34
62

query I rowsort
SELECT ALL col0 * col1 - - col2 AS col0 FROM tab1
----
1136
132
697

query I rowsort
SELECT + col1 * col0 + + col0 AS col0 FROM tab1
----
1120
704
81

query I rowsort
SELECT + col1 * + col2 - col1 FROM tab2
----
1475
629
806

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * col1 * + col1 + cor0.col2 BETWEEN - col1 AND + col2 * col0
----

query I rowsort
SELECT col2 * + col0 + - col0 FROM tab0
----
0
7209
768

query I rowsort
SELECT + tab1.col1 * + col2 + col1 AS col1 FROM tab1
----
1261
1430
580

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1 WHERE NOT ( NULL ) < + col0 + col1
----

query I rowsort
SELECT col0 + - col2 * + col0 * col1 FROM tab1
----
-36416
-4209
-99760

query I rowsort
SELECT ALL col0 FROM tab2 WHERE ( NULL ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * tab0.col1 col1 FROM tab0
----
7396
8281
9409

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= ( + col2 )
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL IN ( + cor0.col2 * col2 )
----

query I rowsort
SELECT + col0 * - cor0.col0 FROM tab1 AS cor0 WHERE NULL > col2
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT ( - col2 ) NOT IN ( + col1 / col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT ALL - col1 DIV + col1 - col0 * col2 * col2 FROM tab0
----
-26137
-36
-598437

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL - col1 / + col1 - col0 * col2 * col2 FROM tab0
----
-26137
-36
-598437

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
-76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2758
SELECT DISTINCT + ( + 8 ) * - col2 - + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT + ( + 8 ) * - col2 - + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2759
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + 77 + - 75 AS col1 FROM tab1
----
1927
695
926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col2 FROM tab2, tab0 AS cor0
----
-29

query I rowsort
SELECT DISTINCT - + 19 + 77 * + cor0.col1 FROM tab2, tab0, tab0 AS cor0
----
6603
6988
7450

query I rowsort
SELECT ALL + 98 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT ALL + + 71 AS col2 FROM tab1 cor0
----
71
71
71

query I rowsort
SELECT ALL - 91 * - 92 + + col0 AS col1 FROM tab0 AS cor0
----
8396
8407
8461

query I rowsort
SELECT + + 58 AS col2 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT ALL + col1 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT 74 * + col2 AS col1 FROM tab1
----
3996
4218
7104

query I rowsort
SELECT col0 - col2 * 98 FROM tab1
----
-5289
-5522
-9328

query I rowsort
SELECT tab1.col2 + col1 - + col1 FROM tab1
----
54
57
96

query I rowsort
SELECT 71 * cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 01a912f8aedff52df17d72dc96dc043e

query I rowsort
SELECT col0 + ( col1 ) FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT + col1 * col0 + + col0 * col2 FROM tab0 AS cor0
----
15397
2856
3430

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT + col1 * - 3 AS col0 FROM tab2 AS cor0
----
-177
-51
-93

query I rowsort
SELECT DISTINCT + cor0.col1 + - 70 AS col2 FROM tab1 AS cor0
----
-44
-57
-60

query I rowsort
SELECT DISTINCT - + ( - 98 ) FROM tab2 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + cor0.col2 col2 FROM tab0 AS cor0
----
-34
-7
9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2779
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2780
SELECT ALL CAST( NULL AS SIGNED ) / col2 + col2 + - col0 * + col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2780
SELECT ALL CAST ( NULL AS INTEGER ) / col2 + col2 + - col0 * + col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 59 + col2 AS col2 FROM tab0 AS cor0
----
-26
-58
23

query I rowsort
SELECT - 70 * + 33 AS col1 FROM tab1 cor0
----
-2310
-2310
-2310

query I rowsort
SELECT ALL - + col2 * col0 + + col1 * + col2 + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-3718
-7472
1164

query I rowsort
SELECT DISTINCT - - 45 + + cor0.col0 + col1 FROM tab1 AS cor0
----
119
138
74

query I rowsort
SELECT + ( - col2 ) * col1 * + col2 + cor0.col1 FROM tab2 AS cor0
----
-22568
-24531
-39825

query I rowsort
SELECT DISTINCT - col2 * - cor0.col1 + + cor0.col2 * col2 FROM tab1 AS cor0
----
10464
3819
4320

query I rowsort
SELECT DISTINCT + - 67 + col1 AS col1 FROM tab0 AS cor0
----
19
24
30

query I rowsort
SELECT + cor0.col0 + 75 AS col2 FROM tab2 AS cor0
----
153
154
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT + CAST( NULL AS SIGNED ) + - tab1.col2 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + CAST ( NULL AS INTEGER ) + - tab1.col2 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + 1 * col2 + col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab1
----
-64

query I rowsort
SELECT + col0 + 4 FROM tab2
----
11
82
83

query I rowsort
SELECT DISTINCT col0 * + col0 + col1 AS col1 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2794
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) / 12 + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) / 12 + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + col0 + - col2 FROM tab2 AS cor0
----
-13
120
130

query I rowsort
SELECT ALL - col1 * - 43 AS col0 FROM tab0 AS cor0
----
3698
3913
4171

query I rowsort
SELECT DISTINCT - col0 * + col0 + cor0.col0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1155
-528
-7743

query I rowsort
SELECT + + col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 + cor0.col1 * col2 col2 FROM tab0 AS cor0
----
14924
194
5676

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2800
SELECT + col2 * CAST( cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-2800
SELECT + col2 * CAST ( cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT + + col2 * - 71 FROM tab0 cor0
----
-2343
-5822
-71

query I rowsort
SELECT - 94 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f

query I rowsort
SELECT DISTINCT - 72 + - col0 AS col0 FROM tab0
----
-107
-161
-96

query I rowsort
SELECT DISTINCT 61 + tab1.col1 AS col2 FROM tab1
----
71
74
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 + col2 * col0 * col2 + + col2 * col2 col2 FROM tab2
----
116863
58006
6049

query I rowsort
SELECT - 47 * - tab2.col0 + - col1 - col0 * + col1 AS col0 FROM tab2
----
-995
2353
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-2807
SELECT ALL tab2.col2 - + col0 DIV + col1 FROM tab2
----
25
27
34

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL tab2.col2 - + col0 / + col1 FROM tab2
----
25
27
34

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT ALL + cor0.col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2808
SELECT ALL + cor0.col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT DISTINCT + 94 DIV + col0 - - col0 FROM tab1
----
34
65
81

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + 94 / + col0 - - col0 FROM tab1
----
34
65
81

query I rowsort
SELECT col2 + + tab0.col1 * + 79 FROM tab0
----
6827
7271
7664

onlyif mysql # use DIV operator for integer division
query I rowsort label-2811
SELECT DISTINCT col2 + 17 DIV col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT col2 + 17 / col0 FROM tab0
----
1
33
82

query I rowsort
SELECT + + ( - cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba

onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT DISTINCT cor0.col2 DIV - col0 + + ( col0 ) AS col0 FROM tab0 cor0
----
23
35
89

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT cor0.col2 / - col0 + + ( col0 ) AS col0 FROM tab0 cor0
----
23
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2814
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) - + col2 * col0 * - col2 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-2814
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) - + col2 * col0 * - col2 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2815
SELECT - col2 * - cor0.col2 + 94 DIV col1 AS col1 FROM tab2 AS cor0
----
1449
677
732

skipif mysql # not compatible
query I rowsort label-2815
SELECT - col2 * - cor0.col2 + 94 / col1 AS col1 FROM tab2 AS cor0
----
1449
677
732

query I rowsort
SELECT DISTINCT + col2 + ( - col0 ) AS col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - - col2 * + ( + 67 ) FROM tab1 cor0
----
3618
3819
6432

query I rowsort
SELECT - col0 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551

query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - - col2 * + col2 + 90 * col0 AS col1 FROM tab0 AS cor0
----
14734
3151
3249

onlyif mysql # use DIV operator for integer division
query I rowsort label-2821
SELECT DISTINCT - col2 DIV + col1 + - col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - col2 / + col1 + - col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + ( - col2 ) * col1 col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT + col2 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT DISTINCT - col2 * col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT col2 * col1 DIV col1 + - col1 FROM tab2 cor0
----
-33
-4
21

skipif mysql # not compatible
query I rowsort label-2826
SELECT col2 * col1 / col1 + - col1 FROM tab2 cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 + + col0 col2 FROM tab1
----
121
176
57

query I rowsort
SELECT DISTINCT col0 * col2 + col2 * col0 * tab0.col0 AS col1 FROM tab0
----
1260
19800
656820

query I rowsort
SELECT ALL + + col2 + cor0.col1 * + cor0.col1 * - col2 FROM tab0 AS cor0
----
-244035
-678960
-9408

query I rowsort
SELECT DISTINCT + col2 * tab1.col1 + col1 + tab1.col1 AS col2 FROM tab1
----
1274
1456
590

query I rowsort
SELECT ALL - cor0.col0 - col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * + cor0.col0 col2 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT DISTINCT cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - + col2 * col1 + + col0 * col0 AS col0 FROM tab1 AS cor0
----
-1395
3526
5152

query I rowsort
SELECT + col0 * cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL + col1 + - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL 60 * + col1 FROM tab0 AS cor0
----
5160
5460
5820

query I rowsort
SELECT DISTINCT + - 31 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1279
-1435
-601

query I rowsort
SELECT 54 * col2 AS col2 FROM tab1 cor0
----
2916
3078
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col1 + - col1 col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT ALL - 39 * + cor0.col0 * - col2 FROM tab2 cor0
----
117078
7371
79092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 col2 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT - + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT - col1 * + col2 + col2 AS col0 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT - col1 + col1 - + tab1.col1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ALL - ( + tab2.col1 ) + + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 + + col1 - - col0 * - tab1.col2 col1 FROM tab1
----
-3589
-7618
-87

query I rowsort
SELECT ALL - cor0.col1 * ( + 29 ) FROM tab1, tab0 AS cor0
----
9 values hashing to d2931072f433f29dd0ee3a9dc40931eb

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL + ( 70 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32

query I rowsort
SELECT 33 * + 67 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 5e15986b7e115ff2eaca4d74ba2ea148

query I rowsort
SELECT DISTINCT + col1 * col1 * col0 AS col0 FROM tab1
----
13520
2028
6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2854
SELECT DISTINCT cor0.col2 + CAST( col1 AS SIGNED ) * col2 FROM tab1 cor0
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT cor0.col2 + CAST ( col1 AS INTEGER ) * col2 FROM tab1 cor0
----
1344
1458
627

query I rowsort
SELECT col1 * 53 AS col1 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT col1 * ( + col0 ) + - col2 FROM tab0 AS cor0
----
2031
3394
8017

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2857
SELECT - CAST( - col1 AS SIGNED ) * + col0 + - 48 AS col1 FROM tab2 AS cor0
----
1295
169
4554

skipif mysql # not compatible
query I rowsort label-2857
SELECT - CAST ( - col1 AS INTEGER ) * + col0 + - 48 AS col1 FROM tab2 AS cor0
----
1295
169
4554

query I rowsort
SELECT col2 + - col1 * col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT + ( - col1 ) * col2 + 54 - col0 FROM tab1 AS cor0
----
-1274
-1353
-580

query I rowsort
SELECT - - 94 * col2 AS col0 FROM tab2 AS cor0
----
2444
2538
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + col1 * col2 * col2 col0 FROM tab1 AS cor0
----
119795
32480
75790

query I rowsort
SELECT + col1 * 13 AS col2 FROM tab1 AS cor0
----
130
169
338

onlyif mysql # use DIV operator for integer division
query I rowsort label-2863
SELECT - col1 DIV + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-2863
SELECT - col1 / + col0 AS col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT - 96 * + col1 FROM tab1 AS cor0
----
-1248
-2496
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2865
SELECT + col0 * col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2865
SELECT + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 5 * col0 FROM tab2 AS cor0
----
-35
-390
-395

query I rowsort
SELECT DISTINCT - 6 + + col0 * - col0 FROM tab2 AS cor0
----
-55
-6090
-6247

query I rowsort
SELECT + 87 * cor0.col1 * col1 + col1 FROM tab1 AS cor0
----
14716
58838
8710

query I rowsort
SELECT - + 60 + + col1 FROM tab0 AS cor0
----
26
31
37

query I rowsort
SELECT 62 + - cor0.col1 + + col0 FROM tab1 AS cor0
----
116
129
39

query I rowsort
SELECT ALL + 13 + + col0 FROM tab0 AS cor0
----
102
37
48

query I rowsort
SELECT tab1.col2 + - col2 * + 95 * col2 FROM tab1
----
-276966
-308598
-875424

query I rowsort
SELECT + cor0.col2 + col0 * - 14 AS col1 FROM tab2 AS cor0
----
-1066
-1068
-71

query I rowsort
SELECT ALL - ( + col0 ) + col0 * - col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT + col1 + col1 * 75 DIV col1 AS col1 FROM tab0 AS cor0
----
161
166
172

skipif mysql # not compatible
query I rowsort label-2875
SELECT + col1 + col1 * 75 / col1 AS col1 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT DISTINCT col2 * col1 + - col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2877
SELECT - - 50 + + col1 DIV - col0 FROM tab2 AS cor0
----
46
50
50

skipif mysql # not compatible
query I rowsort label-2877
SELECT - - 50 + + col1 / - col0 FROM tab2 AS cor0
----
46
50
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT - col1 + col0 DIV col1 FROM tab1 AS cor0
----
-26
-4
-7

skipif mysql # not compatible
query I rowsort label-2878
SELECT - col1 + col0 / col1 FROM tab1 AS cor0
----
-26
-4
-7

onlyif mysql # use DIV operator for integer division
query I rowsort label-2879
SELECT DISTINCT - 19 * - cor0.col1 + - col2 DIV - col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-3457
-7432
333

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT - 19 * - cor0.col1 + - col2 / - col2 + - col0 * + col2 AS col1 FROM tab1 AS cor0
----
-3457
-7432
333

onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT ALL - cor0.col2 * + col0 + - cor0.col1 DIV + col0 AS col1 FROM tab1 cor0
----
-170
-3648
-7680

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - cor0.col2 * + col0 + - cor0.col1 / + col0 AS col1 FROM tab1 cor0
----
-170
-3648
-7680

query I rowsort
SELECT ALL col2 * - 42 AS col1 FROM tab2 cor0
----
-1092
-1134
-1596

query I rowsort
SELECT ALL + 82 + + 37 AS col2 FROM tab0 AS cor0
----
119
119
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-2883
SELECT + ( 51 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2883
SELECT + ( 51 ) / col0 AS col2 FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT DISTINCT ( 38 ) * + col0 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT DISTINCT + cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89

query I rowsort
SELECT col2 - - 3 FROM tab1
----
57
60
99

query I rowsort
SELECT col0 * 56 FROM tab2
----
392
4368
4424

query I rowsort
SELECT DISTINCT - 34 FROM tab0, tab1, tab2 AS cor0
----
-34

query I rowsort
SELECT + col1 * ( + col1 + 85 ) FROM tab0
----
14706
16016
17654

onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT ALL - 38 + 3 DIV + col2 - + col0 * 36 FROM tab0
----
-1295
-3242
-902

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - 38 + 3 / + col2 - + col0 * 36 FROM tab0
----
-1295
-3242
-902

query I rowsort
SELECT DISTINCT col0 * col2 * + col2 - 63 AS col1 FROM tab1
----
207873
737217
8685

query I rowsort
SELECT - ( + 40 ) - + col2 FROM tab0 AS cor0
----
-122
-41
-73

query I rowsort
SELECT - col0 * - 36 FROM tab1 AS cor0
----
108
2304
2880

query I rowsort
SELECT - col2 * + col1 + col2 * col1 AS col0 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-2895
SELECT ALL col0 + col2 DIV col2 AS col0 FROM tab0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-2895
SELECT ALL col0 + col2 / col2 AS col0 FROM tab0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 * 66 col1 FROM tab0 AS cor0
----
2310
481668
52272

query I rowsort
SELECT + cor0.col0 + + ( col2 ) + + col2 FROM tab2 AS cor0
----
130
155
61

query I rowsort
SELECT col0 * ( col0 ) + col0 AS col1 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT - + col2 + - col2 * - col1 - + col2 * - col2 FROM tab0 AS cor0
----
14104
3894
97

query I rowsort
SELECT DISTINCT + cor0.col1 + + 89 AS col0 FROM tab2 AS cor0
----
106
120
148

query I rowsort
SELECT ALL col0 * 51 AS col0 FROM tab0 AS cor0
----
1224
1785
4539

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2902
SELECT - col1 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2902
SELECT - col1 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-2903
SELECT + col1 DIV - cor0.col1 - - col0 col2 FROM tab2 AS cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2903
SELECT + col1 / - cor0.col1 - - col0 col2 FROM tab2 AS cor0
----
6
77
78

query I rowsort
SELECT DISTINCT + col2 + - col0 * - 76 FROM tab2 cor0
----
559
5954
6042

query I rowsort
SELECT + col2 * - 55 FROM tab0 cor0
----
-1815
-4510
-55

query I rowsort
SELECT DISTINCT + + col1 * 68 FROM tab2 AS cor0
----
1156
2108
4012

query I rowsort
SELECT 0 * - ( - col2 ) + 53 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT DISTINCT + + col2 * - col0 + col0 + - col0 DIV 11 AS col2 FROM tab0 AS cor0
----
-3
-7217
-770

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT + + col2 * - col0 + col0 + - col0 / 11 AS col2 FROM tab0 AS cor0
----
-3
-7217
-770

query I rowsort
SELECT DISTINCT - - ( + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT + + 3 + - col1 AS col1 FROM tab0 AS cor0
----
-83
-88
-94

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + 23 * cor0.col1 col2 FROM tab2 AS cor0
----
1390
424
746

query I rowsort
SELECT - col2 * - cor0.col1 * col1 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT ALL - - cor0.col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL col0 + col1 * cor0.col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT ALL ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT cor0.col1 * - cor0.col2 + - col1 - + col2 FROM tab0 AS cor0
----
-195
-2957
-7635

query I rowsort
SELECT DISTINCT 23 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
23

query I rowsort
SELECT - 55 * + col1 FROM tab1 AS cor0
----
-1430
-550
-715

query I rowsort
SELECT DISTINCT - col2 * col1 + + ( 2 ) FROM tab2 AS cor0
----
-1532
-644
-835

query I rowsort
SELECT - cor0.col1 * + col1 + col1 FROM tab1 cor0
----
-156
-650
-90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2922
SELECT ALL + col0 + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT cor0.col2 + - ( + 73 ) AS col2 FROM tab0 AS cor0
----
-40
-72
9

query I rowsort
SELECT - + col2 - - col2 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL + - col0 * - cor0.col1 + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT cor0.col2 + col1 - + col2 AS col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + + col0 + - col0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * + col1 + - 35 + - 87 FROM tab0
----
7274
8159
9287

query I rowsort
SELECT DISTINCT col0 + col1 * col0 FROM tab0
----
2088
3430
8188

query I rowsort
SELECT + 42 + - tab2.col0 * 24 + col1 FROM tab2
----
-1771
-1837
-95

query I rowsort
SELECT - col0 + tab1.col1 * + col0 FROM tab1
----
576
75
960

query I rowsort
SELECT 75 * - col0 AS col1 FROM tab0
----
-1800
-2625
-6675

query I rowsort
SELECT DISTINCT 95 - col2 AS col1 FROM tab1
----
-1
38
41

query I rowsort
SELECT - col2 + tab2.col0 - col2 FROM tab2
----
-47
26
3

query I rowsort
SELECT + - col1 + + 86 AS col2 FROM tab1 AS cor0
----
60
73
76

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab1, tab1 AS cor0
----
-35

onlyif mysql # use DIV operator for integer division
query I rowsort label-2937
SELECT - - col1 DIV ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2937
SELECT - - col1 / ( + col0 ) AS col2 FROM tab1 AS cor0
----
0
0
8

query I rowsort
SELECT - col0 + 60 - col2 FROM tab1 AS cor0
----
-116
-61
3

query I rowsort
SELECT + col0 * col0 + col0 AS col0 FROM tab1
----
12
4160
6480

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT col0 + + 27 * - 6 * col0 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2
----
-1120
-12480
-12640

skipif mysql # not compatible
query I rowsort label-2940
SELECT col0 + + 27 * - 6 * col0 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2
----
-1120
-12480
-12640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT - CAST( NULL AS SIGNED ) * 66 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2941
SELECT - CAST ( NULL AS INTEGER ) * 66 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + cor0.col0 - 11 AS col0 FROM tab0 AS cor0
----
13
24
78

query I rowsort
SELECT ALL - col0 * + 66 FROM tab2
----
-462
-5148
-5214

query I rowsort
SELECT - - tab2.col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - ( ( + tab0.col0 ) ) AS col0 FROM tab0
----
-24
-35
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col2 FROM tab1
----
87
87
87

query I rowsort
SELECT ALL 99 AS col2 FROM tab2
----
99
99
99

query I rowsort
SELECT + 82 AS col1 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT ALL + ( + tab1.col2 * col2 ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT - 81 FROM tab1 cor0
----
-81

query I rowsort
SELECT - col2 * - col0 * - col1 AS col1 FROM tab0 cor0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT ( col2 ) * - col1 + + 7 AS col2 FROM tab0 AS cor0
----
-2831
-7455
-90

query I rowsort
SELECT ALL - + 72 + col1 AS col2 FROM tab1 cor0
----
-46
-59
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT + 28 + 59 FROM tab2 AS cor0
----
87
87
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2956
SELECT + - CAST( NULL AS SIGNED ) + - 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2956
SELECT + - CAST ( NULL AS INTEGER ) + - 99 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - col2 ) + cor0.col1 * + col1 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

skipif mysql # not compatible
query I rowsort
SELECT + col0 * CAST ( + col1 * col2 + - 70 AS REAL ) AS col1 FROM tab2
----
114192
45504
5369

query I rowsort
SELECT + tab0.col2 + + 28 AS col0 FROM tab0
----
110
29
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
7
78
79

query I rowsort
SELECT - - col0 * - col0 + - cor0.col1 * - 97 AS col0 FROM tab1 AS cor0
----
-3126
-5139
2513

onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT col1 DIV + col1 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2963
SELECT col1 / + col1 AS col2 FROM tab2
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2964
SELECT col0 + - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2964
SELECT col0 + - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 + - col1 + - 88 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-4781
-5090
-8541

query I rowsort
SELECT + - col2 * col0 * - 22 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
168944
3513
80263

query I rowsort
SELECT + col2 + 9 * col2 AS col0 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT DISTINCT col1 + 3 AS col1 FROM tab2
----
20
34
62

query I rowsort
SELECT + - col0 + 71 * col1 AS col0 FROM tab1 AS cor0
----
1843
646
843

query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col0 FROM tab0
----
1224
543
7839

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2971
SELECT + col0 * + CAST( NULL AS SIGNED ) + + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2971
SELECT + col0 * + CAST ( NULL AS INTEGER ) + + col0 * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - 89 FROM tab1 AS cor0
----
-153
-169
-92

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2973
SELECT ALL cor0.col0 * - CAST( + cor0.col1 AS SIGNED ) + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL cor0.col0 * - CAST ( + cor0.col1 AS INTEGER ) + - col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT ALL col1 + 65 * cor0.col0 FROM tab2 AS cor0
----
486
5129
5152

query I rowsort
SELECT cor0.col0 * 92 + - col0 AS col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT + - col0 + - ( + col2 ) - cor0.col1 * + col0 FROM tab1 AS cor0
----
-1216
-135
-761

query I rowsort
SELECT DISTINCT - 49 * col1 AS col1 FROM tab1 AS cor0
----
-1274
-490
-637

onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT + col2 DIV + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36

skipif mysql # not compatible
query I rowsort label-2978
SELECT + col2 / + col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-36

query I rowsort
SELECT ALL 90 + + col1 * + col0 * - col0 FROM tab1 AS cor0
----
-144
-40870
-83110

query I rowsort
SELECT DISTINCT cor0.col1 * 43 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
3698
3913
4171

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2981
SELECT + CAST( + col1 AS SIGNED ) * + col0 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

skipif mysql # not compatible
query I rowsort label-2981
SELECT + CAST ( + col1 AS INTEGER ) * + col0 + col1 AS col0 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT - - col1 * + col0 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL - - col0 * + col0 + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT - cor2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8

query I rowsort
SELECT + + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL + 51 * col1 AS col2 FROM tab0
----
4386
4641
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - tab1.col1 col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT + col1 DIV col0 AS col0 FROM tab0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2988
SELECT + col1 / col0 AS col0 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL 81 * + col0 AS col1 FROM tab2
----
567
6318
6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 19 col2 FROM tab1
----
115
73
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-2991
SELECT ( col1 ) DIV + col1 + 98 * col0 AS col0 FROM tab1
----
295
6273
7841

skipif mysql # not compatible
query I rowsort label-2991
SELECT ( col1 ) / + col1 + 98 * col0 AS col0 FROM tab1
----
295
6273
7841

query I rowsort
SELECT ALL + col0 + + ( col0 ) * col1 FROM tab2 AS cor0
----
1422
224
4680

query I rowsort
SELECT DISTINCT - 62 * + col0 - + col0 FROM tab2 AS cor0
----
-441
-4914
-4977

query I rowsort
SELECT - - col0 * cor0.col2 - + col2 FROM tab0 AS cor0
----
34
7216
759

query I rowsort
SELECT col0 * + col2 * 79 AS col1 FROM tab1
----
12798
288192
606720

query I rowsort
SELECT DISTINCT - + 55 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
-1095
-133
-695

query I rowsort
SELECT + col2 * - cor0.col1 * 38 AS col1 FROM tab0 AS cor0
----
-107844
-283556
-3686

query I rowsort
SELECT DISTINCT ( - col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + + 25 AS col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) AS col1 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL cor0.col0 + ( - col0 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * 36 + - col0 AS col2 FROM tab1 cor0
----
-111
-2368
-2960

onlyif mysql # use DIV operator for integer division
query I rowsort label-3003
SELECT + - col1 + - ( col0 ) + col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-136
-37
-95

skipif mysql # not compatible
query I rowsort label-3003
SELECT + - col1 + - ( col0 ) + col0 / + col0 AS col1 FROM tab2 AS cor0
----
-136
-37
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + 70 col0 FROM tab1 AS cor0
----
-1820
-700
-910

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3005
SELECT DISTINCT - col1 * CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - col1 * CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL col1 * + 22 + col2 AS col0 FROM tab1 AS cor0
----
277
382
626

query I rowsort
SELECT col2 * col0 * 64 AS col0 FROM tab2 AS cor0
----
12096
129792
192128

onlyif mysql # use DIV operator for integer division
query I rowsort label-3008
SELECT ALL + 95 DIV + ( col0 * - col2 ) - ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-37
-89

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + 95 / + ( col0 * - col2 ) - ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-37
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * cor0.col0 col0 FROM tab1 AS cor0
----
-150
-3200
-4000

query I rowsort
SELECT DISTINCT - 49 + col0 * col2 FROM tab0 AS cor0
----
-14
7249
743

query I rowsort
SELECT ALL + col1 * + col1 * col0 + + 43 * 67 FROM tab2 AS cor0
----
25712
274399
9608

query I rowsort
SELECT + col2 * + 39 FROM tab0 cor0
----
1287
3198
39

query I rowsort
SELECT DISTINCT - col1 * col2 - - col0 FROM tab2 cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2 AS cor0
----
53

query I rowsort
SELECT - + 45 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + 5 * + col1 * - col1 FROM tab2 AS cor0
----
-1445
-17405
-4805

onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT DISTINCT + cor0.col1 DIV col0 + - col2 * + col2 * - 47 AS col1 FROM tab2 AS cor0
----
31772
34267
67868

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT + cor0.col1 / col0 + - col2 * + col2 * - 47 AS col1 FROM tab2 AS cor0
----
31772
34267
67868

query I rowsort
SELECT DISTINCT ( ( col2 ) ) + col2 AS col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT ALL + 27 * - col0 - + col1 * col2 AS col2 FROM tab0 AS cor0
----
-1042
-3486
-9865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3020
SELECT + + CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-3020
SELECT + + CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + - col0 * col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT + col2 * - col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3023
SELECT ALL - + 44 - + col0 DIV cor0.col0 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-3023
SELECT ALL - + 44 - + col0 / cor0.col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT - col1 * ( col2 ) + col2 FROM tab2
----
-1508
-608
-810

query I rowsort
SELECT col2 * + col2 + - ( - col2 ) AS col2 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT 84 DIV - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-3026
SELECT 84 / - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + + col2 * 44 AS col0 FROM tab2 AS cor0
----
1144
1188
1672

query I rowsort
SELECT DISTINCT - 48 FROM tab2 cor0
----
-48

query I rowsort
SELECT DISTINCT + + ( col2 ) + col0 * col2 AS col2 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT ALL 28 + + col2 AS col2 FROM tab0 AS cor0
----
110
29
61

query I rowsort
SELECT ALL + col1 * 7 AS col0 FROM tab1 AS cor0
----
182
70
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col2 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT 22 * ( + col2 ) FROM tab1 AS cor0
----
1188
1254
2112

query I rowsort
SELECT 13 * + col0 FROM tab2 AS cor0
----
1014
1027
91

query I rowsort
SELECT + col0 * cor0.col0 AS col2 FROM tab2 cor0
----
49
6084
6241

query I rowsort
SELECT cor0.col0 * - col0 + + col0 FROM tab1 cor0
----
-4032
-6
-6320

query I rowsort
SELECT ALL 7 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT - - col1 * 41 + - 12 FROM tab0 AS cor0
----
3514
3719
3965

query I rowsort
SELECT - + col0 + + 19 FROM tab0 AS cor0
----
-16
-5
-70

query I rowsort
SELECT + + col0 + ( + col2 ) + cor0.col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT ALL + + col0 + 72 * col2 FROM tab1 AS cor0
----
3891
4168
6992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT - 77 * col1 + col2 FROM tab2
----
-1271
-2360
-4517

query I rowsort
SELECT DISTINCT tab0.col1 + col1 AS col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - col0 * + col1 * + col1 + + col2 AS col2 FROM tab1
----
-13424
-1974
-6343

query I rowsort
SELECT DISTINCT col0 * + tab0.col0 * col2 + + tab0.col2 AS col2 FROM tab0
----
1226
19041
649604

query I rowsort
SELECT DISTINCT - tab2.col1 * col0 * col1 + + 56 FROM tab2
----
-22775
-271462
-6671

query I rowsort
SELECT - 10 + tab2.col1 FROM tab2, tab2 cor0
----
9 values hashing to 4e533da12d4bf65785a3ae80ee8ea05f

query I rowsort
SELECT ALL - 36 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3050
SELECT ALL col2 DIV ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL col2 / ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT ALL - - cor0.col2 DIV col2 + - ( col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-28
-73
-92

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL - - cor0.col2 / col2 + - ( col0 ) + - col1 AS col0 FROM tab1 AS cor0
----
-28
-73
-92

query I rowsort
SELECT DISTINCT + + col2 * 22 AS col2 FROM tab1 cor0
----
1188
1254
2112

query I rowsort
SELECT DISTINCT + col1 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - col1 * 54 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

query I rowsort
SELECT - - col0 * - 9 FROM tab1 AS cor0
----
-27
-576
-720

onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT ALL + col2 - - col2 DIV 52 FROM tab0 AS cor0
----
1
33
83

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + col2 - - col2 / 52 FROM tab0 AS cor0
----
1
33
83

query I rowsort
SELECT + col1 + + col2 * col0 + + col2 AS col1 FROM tab2
----
2113
247
3057

query I rowsort
SELECT + col0 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT ALL col1 * cor0.col2 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= - col2 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT DISTINCT + col0 DIV + col2 + col2 * col2 FROM tab0
----
1089
36
6725

skipif mysql # not compatible
query I rowsort label-3063
SELECT DISTINCT + col0 / + col2 + col2 * col2 FROM tab0
----
1089
36
6725

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * col0 col1 FROM tab1
----
234
40960
83200

onlyif mysql # use DIV operator for integer division
query I rowsort label-3066
SELECT tab2.col2 * col0 - - col2 DIV - col0 AS col1 FROM tab2
----
186
2028
3002

skipif mysql # not compatible
query I rowsort label-3066
SELECT tab2.col2 * col0 - - col2 / - col0 AS col1 FROM tab2
----
186
2028
3002

query I rowsort
SELECT ALL col2 + + col0 + + tab0.col2 AS col0 FROM tab0
----
253
37
90

query I rowsort
SELECT ALL col1 + - col1 * col0 - col0 * col1 AS col2 FROM tab2
----
-2669
-403
-9145

query I rowsort
SELECT ALL tab0.col2 * - col2 AS col2 FROM tab0
----
-1
-1089
-6724

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( - col0 * + col0 + - col0 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 * col2 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 * col2 * + col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-36
-36729
-558666

query I rowsort
SELECT DISTINCT - tab1.col0 * - col2 AS col1 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL - col0 * + col1 * tab1.col0 FROM tab1
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
49

query I rowsort
SELECT DISTINCT - col1 * 35 + col1 FROM tab0 AS cor0
----
-2924
-3094
-3298

query I rowsort
SELECT + + col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL - cor0.col2 - col0 * - 44 FROM tab1 AS cor0
----
2759
3424
78

query I rowsort
SELECT + 92 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT col1 * + CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3080
SELECT col1 * + CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3081
SELECT ALL + col2 * 3 * col1 + + col2 DIV + col1 col2 FROM tab1 cor0
----
1715
3751
4214

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + col2 * 3 * col1 + + col2 / + col1 col2 FROM tab1 cor0
----
1715
3751
4214

query I rowsort
SELECT ALL - - col0 + 19 FROM tab0 AS cor0
----
108
43
54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3083
SELECT - col1 + CAST( 64 AS SIGNED ) * col0 FROM tab2 AS cor0
----
417
4933
5039

skipif mysql # not compatible
query I rowsort label-3083
SELECT - col1 + CAST ( 64 AS INTEGER ) * col0 FROM tab2 AS cor0
----
417
4933
5039

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3084
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) / - 43 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) / - 43 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 - - 50 * col0 FROM tab2 AS cor0
----
377
3926
3988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3086
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) - + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * col2 + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-513
1197
1224

query I rowsort
SELECT ALL - + col2 + 6 AS col2 FROM tab1 AS cor0
----
-48
-51
-90

query I rowsort
SELECT DISTINCT col0 + + 21 AS col2 FROM tab2 AS cor0
----
100
28
99

query I rowsort
SELECT ALL + col0 + + ( + col1 ) * - col0 + - col2 * + col0 FROM tab0 AS cor0
----
-15308
-2832
-3395

onlyif mysql # use DIV operator for integer division
query I rowsort label-3091
SELECT DISTINCT cor0.col1 + - col1 DIV - col0 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT cor0.col1 + - col1 / - col0 FROM tab2 AS cor0
----
17
35
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-3092
SELECT - col2 + + col0 DIV tab1.col0 AS col2 FROM tab1
----
-53
-56
-95

skipif mysql # not compatible
query I rowsort label-3092
SELECT - col2 + + col0 / tab1.col0 AS col2 FROM tab1
----
-53
-56
-95

query I rowsort
SELECT - col0 - - col2 * - col2 AS col1 FROM tab2 WHERE + col2 + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT ALL + col2 DIV col0 + + col1 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + col2 / col0 + + col1 FROM tab2
----
17
34
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col0 FROM tab2
----
137
38
96

query I rowsort
SELECT ALL col1 * col0 * - col2 AS col1 FROM tab1
----
-36480
-4212
-99840

query I rowsort
SELECT + col0 + col2 - - col1 AS col1 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL tab0.col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 * - col1 + - col2 FROM tab1
----
-1136
-132
-697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 - - col0 * col1 * - tab1.col0 col1 FROM tab1 WHERE NOT ( col1 * col2 ) NOT IN ( + tab1.col1 * - col0 )
----

query I rowsort
SELECT col0 * - col1 + col1 * col0 AS col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col2 FROM tab0
----
-2838
-7462
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( tab1.col0 * tab1.col0 ) > ( NULL )
----

query I rowsort
SELECT DISTINCT - 9 * col1 + col2 * cor0.col1 FROM tab1 cor0
----
1131
1170
480

query I rowsort
SELECT DISTINCT + col1 * col1 + - col1 FROM tab1 AS cor0
----
156
650
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT col1 + - tab1.col2 DIV - col1 AS col1 FROM tab1
----
15
20
28

skipif mysql # not compatible
query I rowsort label-3106
SELECT col1 + - tab1.col2 / - col1 AS col1 FROM tab1
----
15
20
28

query I rowsort
SELECT ALL col2 + col1 * col1 AS col0 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT col2 - - col1 * + col0 AS col0 FROM tab1
----
1136
132
697

onlyif mysql # use DIV operator for integer division
query I rowsort label-3109
SELECT ALL - - col2 DIV col1 - col0 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-233467
-484
-614393

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL - - col2 / col1 - col0 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-233467
-484
-614393

query I rowsort
SELECT ALL + + 95 * col0 FROM tab0 AS cor0
----
2280
3325
8455

query I rowsort
SELECT ALL col1 * 48 AS col2 FROM tab0 AS cor0
----
4128
4368
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-3112
SELECT cor0.col2 DIV 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3112
SELECT cor0.col2 / 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

query I rowsort
SELECT - col1 + 44 * col2 AS col1 FROM tab0 AS cor0
----
-53
1366
3517

query I rowsort
SELECT - - col1 * 18 AS col1 FROM tab2 AS cor0
----
1062
306
558

onlyif mysql # use DIV operator for integer division
query I rowsort label-3116
SELECT - - col2 DIV 75 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3116
SELECT - - col2 / 75 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - cor0.col1 * - ( col0 ) + + col2 FROM tab1 AS cor0
----
1136
132
697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col0 * + col0 col2 FROM tab0 cor0
----
1226
609
8003

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT col0 * - col0 + + col0 AS col0 FROM tab0
----
-1190
-552
-7832

query I rowsort
SELECT - col2 * 76 FROM tab2 AS cor0
----
-1976
-2052
-2888

query I rowsort
SELECT - + col1 * 87 FROM tab0 AS cor0
----
-7482
-7917
-8439

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3123
SELECT tab1.col0 * CAST( col2 AS SIGNED ) col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3123
SELECT tab1.col0 * CAST ( col2 AS INTEGER ) col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT - col1 * 23 AS col0 FROM tab0 AS cor0
----
-1978
-2093
-2231

query I rowsort
SELECT ALL col0 * - col0 + col2 * 19 FROM tab0
----
-1206
-6363
51

query I rowsort
SELECT ALL ( - col2 ) + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT DISTINCT - col0 + col1 DIV + col1 FROM tab2
----
-6
-77
-78

skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT - col0 + col1 / + col1 FROM tab2
----
-6
-77
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT 35 DIV tab0.col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT 35 / tab0.col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL + col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT - col0 + cor0.col1 * + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
1456
567
830

skipif mysql # not compatible
query I rowsort label-3130
SELECT - col0 + cor0.col1 * + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3131
SELECT DISTINCT + + 79 DIV + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-13
-29
-58

skipif mysql # not compatible
query I rowsort label-3131
SELECT DISTINCT + + 79 / + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-13
-29
-58

query I rowsort
SELECT ALL - + 89 + + col1 + + ( - col0 ) FROM tab1 AS cor0
----
-143
-156
-66

query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT DISTINCT - 84 + + col1 AS col0 FROM tab0 cor0
----
13
2
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col1 col0 FROM tab1 AS cor0
----
29
74
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 * col2 + col1 col2 FROM tab1 AS cor0
----
1430
1492
2509

query I rowsort
SELECT 54 + col1 AS col1 FROM tab1 AS cor0
----
64
67
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 * col0 col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL ( + ( - col1 ) ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ( col2 ) * col0 * + col1 FROM tab1
----
36480
4212
99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3141
SELECT + CAST( NULL AS SIGNED ) + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT + CAST ( NULL AS INTEGER ) + col2 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 75 + - col0 AS col2 FROM tab2 AS cor0
----
-3
-4
68

query I rowsort
SELECT - cor0.col2 * - cor0.col2 + cor0.col2 FROM tab2 AS cor0
----
1482
702
756

query I rowsort
SELECT + + cor0.col2 * col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT col1 * 92 + col0 AS col1 FROM tab2
----
1643
2859
5506

query I rowsort
SELECT DISTINCT col1 + tab2.col0 AS col1 FROM tab2
----
137
38
96

query I rowsort
SELECT ( col1 ) + + col1 FROM tab0
----
172
182
194

query I rowsort
SELECT ( + tab1.col1 ) * - col2 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT 55 * - tab1.col1 * + col0 AS col1 FROM tab1
----
-35200
-4290
-57200

query I rowsort
SELECT - col1 + + col0 * + col0 * + col0 FROM tab1
----
1
262134
511987

query I rowsort
SELECT 41 * + ( - tab0.col1 * - col0 ) FROM tab0
----
139195
332059
84624

query I rowsort
SELECT + col1 + + 41 FROM tab2
----
100
58
72

query I rowsort
SELECT DISTINCT - 49 + + col0 * tab1.col0 * + col1 AS col2 FROM tab1
----
185
40911
83151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 46 col1 FROM tab2
----
-322
-3588
-3634

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT CAST( col2 AS SIGNED ) + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-3155
SELECT CAST ( col2 AS INTEGER ) + + col1 AS col1 FROM tab0 AS cor0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT ALL CAST( NULL AS SIGNED ) * 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL CAST ( NULL AS INTEGER ) * 15 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3157
SELECT + cor0.col0 DIV - 68 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-3157
SELECT + cor0.col0 / - 68 col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - 82 + + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1425
-299
-4684

query I rowsort
SELECT - 34 * + col1 + + ( col1 ) FROM tab2 AS cor0
----
-1023
-1947
-561

query I rowsort
SELECT ALL 51 * col2 + - col1 + col2 AS col2 FROM tab2 AS cor0
----
1293
1373
1959

query I rowsort
SELECT ALL + cor0.col2 * cor0.col1 * + col1 - + col1 AS col2 FROM tab1 cor0
----
16211
36478
5690

query I rowsort
SELECT DISTINCT 32 * col2 AS col2 FROM tab2 AS cor0
----
1216
832
864

query I rowsort
SELECT + col0 * - col2 + 98 FROM tab0 AS cor0
----
-694
-7200
63

query I rowsort
SELECT + ( col1 ) * tab1.col2 AS col2 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-3165
SELECT DISTINCT tab2.col1 DIV - 24 col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
-1
-2
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT tab2.col1 / - 24 col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
-1
-2
0

query I rowsort
SELECT - col0 - + col1 * - col1 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT ALL + 48 * col1 FROM tab0 AS cor0
----
4128
4368
4656

onlyif mysql # use DIV operator for integer division
query I rowsort label-3168
SELECT - col1 * cor0.col2 - ( 29 ) DIV col1 AS col2 FROM tab2 AS cor0
----
-1534
-647
-837

skipif mysql # not compatible
query I rowsort label-3168
SELECT - col1 * cor0.col2 - ( 29 ) / col1 AS col2 FROM tab2 AS cor0
----
-1534
-647
-837

query I rowsort
SELECT DISTINCT col2 * 0 * + col0 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-3170
SELECT + col2 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT + col2 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT + col1 * + col0 * col1 + + col1 + col1 FROM tab2 AS cor0
----
22865
271636
6789

query I rowsort
SELECT - + col2 + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT - - col0 DIV CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
0
6
6

skipif mysql # not compatible
query I rowsort label-3173
SELECT - - col0 / CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT - col1 + ( 14 ) AS col1 FROM tab2 AS cor0
----
-17
-3
-45

query I rowsort
SELECT 52 + - cor0.col0 * - col2 FROM tab1 AS cor0
----
214
3700
7732

query I rowsort
SELECT DISTINCT + cor0.col0 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
29
74
93

query I rowsort
SELECT ALL - + col1 * 3 + - col0 FROM tab1 AS cor0
----
-119
-81
-94

query I rowsort
SELECT DISTINCT - + 62 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
2776
35
7400

query I rowsort
SELECT DISTINCT ( + col0 ) * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 col1 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT ALL - col2 * 39 FROM tab0 AS cor0
----
-1287
-3198
-39

query I rowsort
SELECT ALL col1 + ( 27 + + col2 ) * + col2 FROM tab1
----
11821
4400
4798

query I rowsort
SELECT - col2 + col1 * + col2 AS col1 FROM tab1
----
1152
1350
513

query I rowsort
SELECT col2 + 63 AS col1 FROM tab2
----
101
89
90

query I rowsort
SELECT col0 * + tab0.col1 + + 31 FROM tab0
----
2095
3426
8130

query I rowsort
SELECT DISTINCT + ( - 88 ) * + col2 AS col1 FROM tab0
----
-2904
-7216
-88

query I rowsort
SELECT DISTINCT - 63 * col0 FROM tab2
----
-441
-4914
-4977

query I rowsort
SELECT + col0 * col1 * col2 + 49 AS col0 FROM tab2
----
119701
51083
5908

query I rowsort
SELECT ALL - 13 * + col1 FROM tab1 cor0
----
-130
-169
-338

query I rowsort
SELECT DISTINCT 30 * - col0 * + col2 + - col1 FROM tab1 AS cor0
----
-109450
-230413
-4886

query I rowsort
SELECT - 72 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - - 52 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT + - col1 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3195
SELECT - tab2.col1 - - CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3195
SELECT - tab2.col1 - - CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col1 + 9 AS col2 FROM tab0
----
100
106
95

query I rowsort
SELECT ALL col0 + - tab1.col2 * col1 AS col1 FROM tab1
----
-1168
-1401
-506

query I rowsort
SELECT col2 * ( + ( col2 ) ) FROM tab1
----
2916
3249
9216

query I rowsort
SELECT + col2 + 29 FROM tab0 AS cor0
----
111
30
62

query I rowsort
SELECT + - col0 * 63 + - col2 FROM tab2 AS cor0
----
-468
-4940
-5015

query I rowsort
SELECT ALL - + col2 * - 26 FROM tab1 cor0
----
1404
1482
2496

query I rowsort
SELECT - 25 * + col1 FROM tab1 AS cor0
----
-250
-325
-650

query I rowsort
SELECT ALL 10 * cor0.col2 AS col1 FROM tab0 AS cor0
----
10
330
820

query I rowsort
SELECT DISTINCT + ( col2 ) * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 + - col0 FROM tab1 cor0
----
-12
-4160
-6480

query I rowsort
SELECT DISTINCT - 18 * col1 AS col1 FROM tab1 AS cor0
----
-180
-234
-468

query I rowsort
SELECT + - 67 * col0 FROM tab2 AS cor0
----
-469
-5226
-5293

query I rowsort
SELECT - + 34 + + col2 * - col0 FROM tab0 AS cor0
----
-69
-7332
-826

query I rowsort
SELECT + 72 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT - col2 * ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT + 27 * 40 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4852c8ab374dbd8e2669c30ca30e2f80

query I rowsort
SELECT + + 4 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT - CAST( + col2 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
1444
676
729

skipif mysql # not compatible
query I rowsort label-3213
SELECT - CAST ( + col2 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL + + ( - col1 ) * + cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961

query I rowsort
SELECT DISTINCT - 59 AS col0 FROM tab2 AS cor0
----
-59

query I rowsort
SELECT 63 + 87 FROM tab2 AS cor0
----
150
150
150

onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT ALL - 87 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-29

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - 87 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-29

query I rowsort
SELECT ALL + 21 * - col0 AS col2 FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT ALL col0 * + 27 AS col1 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT col0 + 16 + + col0 AS col2 FROM tab2
----
172
174
30

query I rowsort
SELECT tab2.col0 + col1 - col1 FROM tab2
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - cor0.col0 * + col1 + col1 * + col1 FROM tab2 AS cor0
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT col2 - - 4 * - col2 FROM tab2
----
-114
-78
-81

query I rowsort
SELECT DISTINCT col2 * tab1.col1 + col2 * col0 * col1 + + col0 AS col1 FROM tab1
----
101168
37114
5619

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col0 FROM tab2 cor0
----
51
51
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT ALL - col1 DIV + tab2.col1 + tab2.col2 * + col0 FROM tab2
----
188
2027
3001

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - col1 / + tab2.col1 + tab2.col2 * + col0 FROM tab2
----
188
2027
3001

query I rowsort
SELECT ALL + 19 FROM tab2, tab1 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT ALL 2 + tab1.col2 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
81 values hashing to 50c4b430b1b077538663368dbf8858b2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT - cor0.col0 + col2 + - ( - cor0.col0 ) DIV + col0 FROM tab1 AS cor0
----
-6
17
52

skipif mysql # not compatible
query I rowsort label-3230
SELECT - cor0.col0 + col2 + - ( - cor0.col0 ) / + col0 FROM tab1 AS cor0
----
-6
17
52

query I rowsort
SELECT DISTINCT + - cor0.col1 + 55 * - 22 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1296
-1301
-1307

query I rowsort
SELECT ALL 21 * - tab0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 20b5bbe97c2e8407f3025bb8755b2ba0

query I rowsort
SELECT DISTINCT + + 55 FROM tab2, tab0, tab0 AS cor0
----
55

query I rowsort
SELECT - ( col0 ) + + ( 40 ) FROM tab1 AS cor0
----
-24
-40
37

query I rowsort
SELECT tab0.col2 + 83 AS col2 FROM tab0
----
116
165
84

query I rowsort
SELECT ALL 23 * cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d2d2cceaf3af38a9e0557b59f7cd6673

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 94 col2 FROM tab1 AS cor0
----
-1222
-2444
-940

query I rowsort
SELECT ALL + col1 * 66 * - col0 FROM tab0 AS cor0
----
-136224
-224070
-534534

query I rowsort
SELECT DISTINCT - - 84 AS col0 FROM tab0 AS cor0
----
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-3240
SELECT ALL - cor0.col0 + - col1 * col2 DIV + col1 FROM tab2 AS cor0
----
-104
-117
-34

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL - cor0.col0 + - col1 * col2 / + col1 FROM tab2 AS cor0
----
-104
-117
-34

query I rowsort
SELECT ALL ( col1 ) + - col0 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT 33 + col2 AS col2 FROM tab2 AS cor0
----
59
60
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3243
SELECT ALL - CAST( NULL AS SIGNED ) + - cor0.col1 * + cor0.col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3243
SELECT ALL - CAST ( NULL AS INTEGER ) + - cor0.col1 * + cor0.col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 50 * col0 + col1 * - ( col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-634856
-749121
-910923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 37 col0 FROM tab1 AS cor0
----
111
2368
2960

query I rowsort
SELECT + col2 * - 53 - col1 FROM tab1 AS cor0
----
-2888
-3031
-5101

query I rowsort
SELECT col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
1226
609
8003

onlyif mysql # use DIV operator for integer division
query I rowsort label-3248
SELECT ALL - + col0 DIV col2 + + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL - + col0 / col2 + + col1 AS col2 FROM tab0 AS cor0
----
62
86
90

query I rowsort
SELECT ALL + col1 * 62 - - 70 FROM tab2 AS cor0
----
1124
1992
3728

query I rowsort
SELECT DISTINCT - col2 + + ( col1 ) * + col2 AS col1 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3252
SELECT ALL - tab2.col0 * col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL - tab2.col0 * col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3253
SELECT ALL + col2 DIV + ( col0 ) FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3253
SELECT ALL + col2 / + ( col0 ) FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - col2 * - 29 + 0 FROM tab2 AS cor0
----
1102
754
783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col1 + 79 AS col2 FROM tab2 AS cor0
----
110
138
96

query I rowsort
SELECT DISTINCT + col1 + - 35 AS col0 FROM tab2
----
-18
-4
24

query I rowsort
SELECT DISTINCT col2 * + 41 + + col1 FROM tab2
----
1125
1138
1575

query I rowsort
SELECT + 80 * col2 + - col1 FROM tab2 AS cor0
----
2021
2129
3023

query I rowsort
SELECT - - col2 * + col1 + col2 AS col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL + - col0 * col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - col2 col0 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-3263
SELECT ALL - col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3263
SELECT ALL - col2 / - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-3264
SELECT ALL + col0 - col1 DIV - 89 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL + col0 - col1 / - 89 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-3265
SELECT - ( col1 ) DIV + ( + ( - col0 ) ) + col2 FROM tab2 AS cor0
----
26
31
38

skipif mysql # not compatible
query I rowsort label-3265
SELECT - ( col1 ) / + ( + ( - col0 ) ) + col2 FROM tab2 AS cor0
----
26
31
38

query I rowsort
SELECT ALL - - col1 * - col0 * - 83 + + 95 FROM tab1 AS cor0
----
53215
6569
86415

query I rowsort
SELECT DISTINCT col0 + col1 * col2 AS col0 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3268
SELECT - - 98 * - col0 + - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-291
-6208
-7760

skipif mysql # not compatible
query I rowsort label-3268
SELECT - - 98 * - col0 + - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT ALL 6 + - col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-283
-3475
-955

query I rowsort
SELECT - 17 * cor0.col1 + cor0.col2 FROM tab1 AS cor0
----
-113
-125
-388

query I rowsort
SELECT ALL + 84 + tab1.col1 FROM tab1
----
110
94
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3272
SELECT DISTINCT + 94 + + col1 + + CAST( 57 AS SIGNED ) * col2 AS col1 FROM tab2
----
1635
1664
2277

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT + 94 + + col1 + + CAST ( 57 AS INTEGER ) * col2 AS col1 FROM tab2
----
1635
1664
2277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 23 + - col2 * - ( + col1 ) col0 FROM tab2
----
1557
669
860

query I rowsort
SELECT col2 * col1 + tab0.col2 FROM tab0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3275
SELECT + 78 + - col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3275
SELECT + 78 + - col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3276
SELECT - col0 * + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT - col0 * + col0 * 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 ALL - - col2 * - 44 col0 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT + col0 + 87 FROM tab1 AS cor0
----
151
167
90

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 * - col2 + + col2 + cor0.col0 FROM tab0 AS cor0
----
133
612055
93711

query I rowsort
SELECT ALL + col2 * - cor0.col2 - - col0 * - col0 FROM tab1 cor0
----
-15616
-2925
-7345

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3281
SELECT DISTINCT - cor0.col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT - cor0.col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * + 91 * col1 col2 FROM tab1 AS cor0
----
58230
7072
94627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + cor0.col1 col2 FROM tab0 cor0
----
53
9
96

query I rowsort
SELECT ALL col1 * 62 AS col0 FROM tab1 AS cor0
----
1612
620
806

query I rowsort
SELECT DISTINCT + col1 * + 88 FROM tab1 AS cor0
----
1144
2288
880

query I rowsort
SELECT col0 * 31 AS col0 FROM tab0 AS cor0
----
1085
2759
744

query I rowsort
SELECT DISTINCT + 36 + col1 + - col1 AS col1 FROM tab0
----
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-3288
SELECT + 24 * - col1 + 72 DIV + col0 FROM tab0
----
-2061
-2184
-2326

skipif mysql # not compatible
query I rowsort label-3288
SELECT + 24 * - col1 + 72 / + col0 FROM tab0
----
-2061
-2184
-2326

onlyif mysql # use DIV operator for integer division
query I rowsort label-3289
SELECT + tab1.col2 DIV + col2 + - col2 * + 31 * col1 FROM tab1
----
-17669
-38687
-43523

skipif mysql # not compatible
query I rowsort label-3289
SELECT + tab1.col2 / + col2 + - col2 * + 31 * col1 FROM tab1
----
-17669
-38687
-43523

query I rowsort
SELECT + ( col0 ) * - col0 * ( - col1 ) - + tab1.col2 FROM tab1
----
180
40903
83104

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3291
SELECT ALL - col0 * - tab1.col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3291
SELECT ALL - col0 * - tab1.col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 42 + col1 FROM tab1
----
52
55
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-3293
SELECT DISTINCT - 91 + + col1 DIV + 9 FROM tab2
----
-85
-88
-90

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - 91 + + col1 / + 9 FROM tab2
----
-85
-88
-90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3294
SELECT 21 + + col2 * - col1 - + ( + col0 ) DIV + col0 AS col1 FROM tab0 AS cor0
----
-2818
-7442
-77

skipif mysql # not compatible
query I rowsort label-3294
SELECT 21 + + col2 * - col1 - + ( + col0 ) / + col0 AS col1 FROM tab0 AS cor0
----
-2818
-7442
-77

query I rowsort
SELECT + col1 * col1 + col1 * 47 AS col0 FROM tab0 AS cor0
----
11438
12558
13968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 * col1 col1 FROM tab2 AS cor0
----
-1394
-2542
-4838

query I rowsort
SELECT DISTINCT - cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 49 col2 FROM tab2 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + + col0 col2 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT ALL + - ( col1 ) * col0 + - 58 DIV col2 + cor0.col1 FROM tab1 AS cor0
----
-1027
-53
-631

skipif mysql # not compatible
query I rowsort label-3300
SELECT ALL + - ( col1 ) * col0 + - 58 / col2 + cor0.col1 FROM tab1 AS cor0
----
-1027
-53
-631

onlyif mysql # use DIV operator for integer division
query I rowsort label-3301
SELECT - + 30 DIV - 57 + col1 * + 79 FROM tab2 AS cor0
----
1343
2449
4661

skipif mysql # not compatible
query I rowsort label-3301
SELECT - + 30 / - 57 + col1 * + 79 FROM tab2 AS cor0
----
1343
2449
4661

query I rowsort
SELECT DISTINCT + ( col0 ) * col2 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + cor0.col2 * col0 + + col2 * col2 AS col1 FROM tab1 AS cor0
----
16896
3078
6897

query I rowsort
SELECT - - 67 + + cor0.col2 FROM tab0 AS cor0
----
100
149
68

query I rowsort
SELECT DISTINCT + + 3 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + - col0 col1 FROM tab1 AS cor0
----
-14
-30
47

query I rowsort
SELECT DISTINCT + + 58 * col2 AS col2 FROM tab0 AS cor0
----
1914
4756
58

query I rowsort
SELECT ALL + - ( + col0 ) * col1 FROM tab1 cor0
----
-1040
-640
-78

query I rowsort
SELECT ALL - 60 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-1021
-349
-3541

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 + cor0.col0 + - col1 * - CAST ( - 4 AS REAL ) FROM tab1 AS cor0
----
-98
108
88

onlyif mysql # use DIV operator for integer division
query I rowsort label-3311
SELECT + col2 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3311
SELECT + col2 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + cor0.col2 * tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd

query I rowsort
SELECT DISTINCT 43 - col1 AS col1 FROM tab2
----
-16
12
26

query I rowsort
SELECT ALL 74 FROM tab2, tab1 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT DISTINCT col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + col2 + - ( + col2 ) * tab0.col0 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT - col1 * ( - 39 ) AS col0 FROM tab2
----
1209
2301
663

query I rowsort
SELECT ALL + tab1.col0 + 88 AS col1 FROM tab1
----
152
168
91

query I rowsort
SELECT DISTINCT col0 * col2 * col2 + + col2 * 50 AS col1 FROM tab0
----
27786
602536
85

query I rowsort
SELECT DISTINCT + col0 * + 10 FROM tab2 cor0
----
70
780
790

query I rowsort
SELECT ALL 26 + + col1 FROM tab1 AS cor0
----
36
39
52

query I rowsort
SELECT 54 * ( col1 ) AS col1 FROM tab1 AS cor0
----
1404
540
702

query I rowsort
SELECT DISTINCT + + 88 + col2 FROM tab2 AS cor0
----
114
115
126

onlyif mysql # use DIV operator for integer division
query I rowsort label-3324
SELECT col0 + cor0.col2 + + cor0.col1 DIV col1 FROM tab0 AS cor0
----
172
37
58

skipif mysql # not compatible
query I rowsort label-3324
SELECT col0 + cor0.col2 + + cor0.col1 / col1 FROM tab0 AS cor0
----
172
37
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 49 * + 4 col0 FROM tab2 AS cor0
----
196
196
196

onlyif mysql # use DIV operator for integer division
query I rowsort label-3326
SELECT 97 DIV 38 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
243 values hashing to 6f66d58666af00861848807040f38da2

skipif mysql # not compatible
query I rowsort label-3326
SELECT 97 / 38 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
243 values hashing to 6f66d58666af00861848807040f38da2

query I rowsort
SELECT + - 18 * col2 FROM tab2 cor0
----
-468
-486
-684

query I rowsort
SELECT + 23 + cor0.col1 AS col0 FROM tab2 AS cor0
----
40
54
82

query I rowsort
SELECT DISTINCT + col1 + - cor0.col1 * col0 * 60 AS col0 FROM tab0 AS cor0
----
-123754
-203603
-485849

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + col1 col2 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3331
SELECT ALL col0 + - col1 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL col0 + - col1 / - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 * - col2 AS col1 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT + col1 * + cor0.col1 * + col0 FROM tab0 AS cor0
----
177504
329315
737009

query I rowsort
SELECT ALL col1 * cor0.col1 * + col2 FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT DISTINCT + ( col2 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - col2 * - 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col1 * ( - ( col2 ) * 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 56 * cor0.col0 col1 FROM tab2 cor0
----
423
4427
4441

query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT col2 * tab2.col0 + col2 * + 12 * + col0 + + col1 * col1 AS col1 FROM tab2
----
29845
3418
39315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * + col2 col1 FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT DISTINCT 68 DIV - col2 - - col1 AS col2 FROM tab1
----
13
25
9

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT 68 / - col2 - - col1 AS col2 FROM tab1
----
13
25
9

query I rowsort
SELECT col1 * cor0.col0 + + 34 * + col2 FROM tab0 AS cor0
----
10887
3186
3429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 6 col2 FROM tab0 AS cor0
----
144
210
534

query I rowsort
SELECT col1 + ( - 18 ) + col1 AS col0 FROM tab1
----
2
34
8

query I rowsort
SELECT cor0.col1 * col1 - - col2 AS col1 FROM tab0 AS cor0
----
7429
8363
9410

onlyif mysql # use DIV operator for integer division
query I rowsort label-3347
SELECT - - cor0.col2 + + col2 DIV 17 AS col2 FROM tab2 AS cor0
----
27
28
40

skipif mysql # not compatible
query I rowsort label-3347
SELECT - - cor0.col2 + + col2 / 17 AS col2 FROM tab2 AS cor0
----
27
28
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 col0 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT ALL col0 + 39 + col0 AS col1 FROM tab1 AS cor0
----
167
199
45

query I rowsort
SELECT cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT - - cor0.col0 + + 47 AS col0 FROM tab1 AS cor0
----
111
127
50

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
972 values hashing to f94a4a64ac54a61fc21f78e2b831ebee

query I rowsort
SELECT ALL 91 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT + 54 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a

query I rowsort
SELECT - + col0 * + col0 * col0 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT - col2 DIV col2 + col2 DIV + col2 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3356
SELECT - col2 / col2 + col2 / + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT - + cor0.col2 + + cor0.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to fe2aa4e2d3fac3ceeb710c1055a15bad

query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT + col0 + col2 * + CAST( - ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
70
7387
816

skipif mysql # not compatible
query I rowsort label-3359
SELECT + col0 + col2 * + CAST ( - ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + ( - 12 ) * + cor0.col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 09f34527cbd962b67a48195910b43aeb

query I rowsort
SELECT ALL + 72 * - 63 AS col0 FROM tab0 AS cor0
----
-4536
-4536
-4536

query I rowsort
SELECT DISTINCT col1 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2890
-3239
-9203

query I rowsort
SELECT col2 + col0 + col1 AS col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 col2 FROM tab2, tab0 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3366
SELECT ALL + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3366
SELECT ALL + col2 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3367
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + + col2 * cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

skipif mysql # not compatible
query I rowsort label-3367
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + + col2 * cor0.col2 FROM tab0 AS cor0
----
0
1056
6642

query I rowsort
SELECT DISTINCT 97 + + col1 FROM tab1
----
107
110
123

query I rowsort
SELECT DISTINCT + 29 + + col2 * + col2 * col1 + - col1 FROM tab2
----
22597
24560
39854

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3370
SELECT ALL - CAST( + 33 * tab0.col2 AS SIGNED ) FROM tab0
----
-1089
-2706
-33

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL - CAST ( + 33 * tab0.col2 AS INTEGER ) FROM tab0
----
-1089
-2706
-33

query I rowsort
SELECT DISTINCT col0 * + 13 FROM tab1
----
1040
39
832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + col2 col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT - - col1 + 65 AS col1 FROM tab1 AS cor0
----
75
78
91

query I rowsort
SELECT 14 - col0 * + col1 FROM tab0
----
-2050
-3381
-8085

onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ( - col0 ) DIV col0 - - ( + 56 ) AS col2 FROM tab2
----
55
55
55

skipif mysql # not compatible
query I rowsort label-3375
SELECT ( - col0 ) / col0 - - ( + 56 ) AS col2 FROM tab2
----
55
55
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-3376
SELECT DISTINCT - 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-3376
SELECT DISTINCT - col2 / - col0 col0 FROM tab1
----
0
1
18

query I rowsort
SELECT 66 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) AS col2 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT ALL + col0 * col2 + ( col0 ) DIV ( + 9 ) FROM tab1 AS cor0
----
162
3655
7688

skipif mysql # not compatible
query I rowsort label-3379
SELECT ALL + col0 * col2 + ( col0 ) / ( + 9 ) FROM tab1 AS cor0
----
162
3655
7688

query I rowsort
SELECT DISTINCT - col0 - ( 52 ) FROM tab1 AS cor0
----
-116
-132
-55

query I rowsort
SELECT + - col2 - + col1 AS col0 FROM tab1 AS cor0
----
-109
-67
-80

query I rowsort
SELECT + - col2 * col2 - ( cor0.col2 ) * cor0.col1 * + 50 FROM tab2 AS cor0
----
-33744
-42579
-77376

query I rowsort
SELECT DISTINCT - ( + tab1.col2 * - ( col0 ) ) AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0, tab0 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 + + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT DISTINCT col0 * col1 DIV - col0 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT col0 * col1 / - col0 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT col0 - 0 * col0 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT - + col2 + + ( col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * col2 + + 24 FROM tab1
----
186
3672
7704

query I rowsort
SELECT DISTINCT col2 * col2 + - 57 FROM tab1
----
2859
3192
9159

query I rowsort
SELECT col1 * col2 * 21 AS col1 FROM tab1
----
11970
26208
29484

query I rowsort
SELECT DISTINCT + col1 + col2 - col1 AS col0 FROM tab1
----
54
57
96

query I rowsort
SELECT DISTINCT col2 + 77 * - col0 AS col1 FROM tab1 AS cor0
----
-177
-4871
-6064

query I rowsort
SELECT + col1 + + ( + col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-3395
SELECT + col0 DIV ( - 61 ) AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3395
SELECT + col0 / ( - 61 ) AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT col0 * col2 + ( - col1 ) AS col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT ALL + col0 * + 16 + col0 FROM tab0 AS cor0
----
1513
408
595

query I rowsort
SELECT ALL + + 90 + + cor0.col2 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT ALL + 84 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT ( + col0 ) + col0 AS col0 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT - 19 + col1 * col1 FROM tab1 AS cor0
----
150
657
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT ALL 46 * col2 + col1 + 8 DIV col2 FROM tab0 AS cor0
----
151
1604
3863

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL 46 * col2 + col1 + 8 / col2 FROM tab0 AS cor0
----
151
1604
3863

onlyif mysql # use DIV operator for integer division
query I rowsort label-3403
SELECT ALL + col0 * + 70 + col1 + + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
520
5518
5546

skipif mysql # not compatible
query I rowsort label-3403
SELECT ALL + col0 * + 70 + col1 + + col0 / - col0 AS col1 FROM tab2 AS cor0
----
520
5518
5546

query I rowsort
SELECT - + 7 + ( cor0.col1 + + col1 ) AS col1 FROM tab1 AS cor0
----
13
19
45

query I rowsort
SELECT DISTINCT + + cor0.col2 + + col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - cor0.col0 - col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70

query I rowsort
SELECT ALL cor0.col2 + col1 + col1 AS col2 FROM tab1 AS cor0
----
106
122
77

query I rowsort
SELECT - col1 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT + col0 + col2 * col0 FROM tab0 AS cor0
----
70
7387
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 * col2 * col1 + ( - col0 ) * + col1 * col0 col2 FROM tab1 AS cor0
----
-17082
-47800
-98176

query I rowsort
SELECT DISTINCT ( - col0 ) - - col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23

query I rowsort
SELECT ALL + ( col2 ) * col2 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT - + 48 * col1 AS col1 FROM tab2 AS cor0
----
-1488
-2832
-816

query I rowsort
SELECT col1 + col1 * ( - 14 ) FROM tab0 cor0
----
-1118
-1183
-1261

query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + - col2 * cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
-17576
-19683
-54872

query I rowsort
SELECT ALL + + col1 + col1 * cor0.col1 * - col0 FROM tab2 AS cor0
----
-22814
-271459
-6696

query I rowsort
SELECT ALL - col2 * col2 + ( col2 ) * col1 FROM tab0 cor0
----
1749
738
96

query I rowsort
SELECT DISTINCT 91 * col0 AS col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT col2 * cor0.col0 * + cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT - col2 + cor0.col0 * - col2 FROM tab0 cor0
----
-36
-7380
-825

query I rowsort
SELECT DISTINCT - col1 + + 43 + - col2 FROM tab0 AS cor0
----
-130
-55
-76

query I rowsort
SELECT + col1 * cor0.col1 * ( cor0.col1 ) FROM tab0 AS cor0
----
636056
753571
912673

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3425
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3425
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - + col2 * + col0 - 74 AS col1 FROM tab2 cor0
----
-2102
-263
-3076

query I rowsort
SELECT ( + col2 ) + col2 * - 40 FROM tab2 AS cor0
----
-1014
-1053
-1482

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col0 ) * col1 + cor0.col2 - col2 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT - 91 * - 7 AS col2 FROM tab2
----
637
637
637

onlyif mysql # use DIV operator for integer division
query I rowsort label-3430
SELECT ALL col2 + col0 DIV + col0 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-3430
SELECT ALL col2 + col0 / + col0 FROM tab0
----
2
34
83

query I rowsort
SELECT ( 24 * col2 ) FROM tab2
----
624
648
912

query I rowsort
SELECT DISTINCT ( col0 + col0 ) FROM tab2
----
14
156
158

query I rowsort
SELECT - 63 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL 45 * - col2 + col0 AS col2 FROM tab0
----
-10
-1461
-3601

query I rowsort
SELECT col2 * tab1.col2 + - col0 FROM tab1
----
2913
3185
9136

query I rowsort
SELECT ALL cor0.col2 + - tab1.col0 * 89 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 0664f5987e223b244d2d9073c3dae7a0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + + col2 col2 FROM tab0
----
171
36
57

query I rowsort
SELECT DISTINCT - + cor1.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-10
-13
-26

query I rowsort
SELECT ALL - 89 + col1 AS col0 FROM tab2 AS cor0
----
-30
-58
-72

query I rowsort
SELECT - col2 - - col1 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT + 97 * col2 + - col2 * col0 FROM tab1 AS cor0
----
1632
1881
5076

query I rowsort
SELECT DISTINCT - + 45 * col1 FROM tab0 cor0
----
-3870
-4095
-4365

query I rowsort
SELECT - 80 * col0 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1834
-2703
-7029

query I rowsort
SELECT DISTINCT - - 8 * col2 AS col2 FROM tab2 AS cor0
----
208
216
304

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col1 FROM tab2 AS cor0
----
83

query I rowsort
SELECT - + col1 * col0 - col0 * cor0.col0 FROM tab2 AS cor0
----
-10686
-266
-7584

query I rowsort
SELECT ALL - + 35 + col0 AS col1 FROM tab1 AS cor0
----
-32
29
45

query I rowsort
SELECT DISTINCT - 73 - + cor1.col2 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
-127
-130
-169

query I rowsort
SELECT DISTINCT - 32 + 58 FROM tab2, tab1 AS cor0
----
26

query I rowsort
SELECT ALL col1 * + ( - col1 ) + - col1 AS col2 FROM tab1 cor0
----
-110
-182
-702

query I rowsort
SELECT DISTINCT - col0 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT + + col2 + - cor0.col1 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT DISTINCT - col2 * - 57 AS col0 FROM tab0 AS cor0
----
1881
4674
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3454
SELECT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3454
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + col0 * col1 AS col0 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT ALL ( + 71 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 * col2 + col2 * 13 col2 FROM tab1 AS cor0
----
2538
2679
4512

query I rowsort
SELECT DISTINCT - cor0.col2 + 95 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
13
62
94

query I rowsort
SELECT DISTINCT + 82 * + col1 + - col2 + col0 FROM tab2 AS cor0
----
1435
2522
4890

query I rowsort
SELECT DISTINCT - 85 * cor0.col1 AS col0 FROM tab1, tab2 AS cor0
----
-1445
-2635
-5015

query I rowsort
SELECT - 80 * + 27 AS col0 FROM tab1 AS cor0
----
-2160
-2160
-2160

query I rowsort
SELECT ALL - 88 * col2 AS col1 FROM tab0 AS cor0
----
-2904
-7216
-88

query I rowsort
SELECT ALL + 39 * - col0 FROM tab2 AS cor0
----
-273
-3042
-3081

query I rowsort
SELECT + 8 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL + 61 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
1884
3521
958

query I rowsort
SELECT ALL ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT + ( col1 ) + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 + + col0 - + col2 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - 8 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL + 68 * - col0 FROM tab0
----
-1632
-2380
-6052

query I rowsort
SELECT + - ( - 83 ) FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - col0 + + col2 * 16 FROM tab0 cor0
----
-19
1223
504

query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1 cor0
----
-36

query I rowsort
SELECT + + col2 + - col1 + col2 AS col2 FROM tab0 AS cor0
----
-20
-95
73

query I rowsort
SELECT 52 + + col1 + + 50 * - col1 * tab1.col1 FROM tab1
----
-33722
-4938
-8385

query I rowsort
SELECT + + col2 + + ( - 46 ) AS col0 FROM tab1 AS cor0
----
11
50
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT - cor0.col2 DIV 56 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT - cor0.col2 / 56 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + ( + col1 ) * - col1 FROM tab1
----
-13520
-2028
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3479
SELECT DISTINCT + col2 + CAST( - col2 * + col1 AS SIGNED ) FROM tab1
----
-1152
-1350
-513

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + col2 + CAST ( - col2 * + col1 AS INTEGER ) FROM tab1
----
-1152
-1350
-513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3480
SELECT ALL col0 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + ( ( col0 ) ) + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col2 * - ( col0 * + cor0.col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT col0 DIV - col0 + col0 - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2815
-63
-7374

skipif mysql # not compatible
query I rowsort label-3483
SELECT col0 / - col0 + col0 - col2 * + col1 AS col0 FROM tab0 AS cor0
----
-2815
-63
-7374

onlyif mysql # use DIV operator for integer division
query I rowsort label-3484
SELECT + + col0 + - col1 DIV col0 FROM tab2 AS cor0
----
3
78
79

skipif mysql # not compatible
query I rowsort label-3484
SELECT + + col0 + - col1 / col0 FROM tab2 AS cor0
----
3
78
79

query I rowsort
SELECT cor0.col1 + + ( - col0 ) FROM tab0 AS cor0
----
2
62
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-3486
SELECT - col1 - + col1 DIV + 18 AS col0 FROM tab0 AS cor0
----
-102
-90
-96

skipif mysql # not compatible
query I rowsort label-3486
SELECT - col1 - + col1 / + 18 AS col0 FROM tab0 AS cor0
----
-102
-90
-96

query I rowsort
SELECT ALL - - 9 AS col0 FROM tab0 AS cor0
----
9
9
9

query I rowsort
SELECT ALL cor0.col0 * 11 + cor0.col0 FROM tab0 cor0
----
1068
288
420

query I rowsort
SELECT ALL - ( - col0 ) + col1 * - ( - col2 ) FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT ALL col2 * 41 * - col2 + 19 FROM tab2 AS cor0
----
-27697
-29870
-59185

query I rowsort
SELECT + - 9 AS col2 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT ALL + - 20 * - cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
121680
124820
980

query I rowsort
SELECT col0 * + col1 + + tab2.col0 * - col1 + + 49 * - tab2.col1 * col2 AS col1 FROM tab2
----
-31654
-41013
-75166

onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT ALL - col0 DIV col2 + 32 FROM tab1
----
31
32
32

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL - col0 / col2 + 32 FROM tab1
----
31
32
32

query I rowsort
SELECT DISTINCT - 27 FROM tab2 cor0
----
-27

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3496
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 * 98 col0 FROM tab1 AS cor0
----
15876
357504
752640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 + col2 col2 FROM tab0 AS cor0
----
107
156
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-3499
SELECT + tab0.col2 DIV - col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3499
SELECT + tab0.col2 / - col2 AS col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-3501
SELECT col2 DIV col0 col1 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3501
SELECT col2 / col0 col1 FROM tab1
----
0
1
18

query I rowsort
SELECT + 64 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT ALL col2 * 71 FROM tab1 AS cor0
----
3834
4047
6816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - + col0 * + 63 + - col2 + col2 FROM tab1 cor0
----
-189
-4032
-5040

query I rowsort
SELECT DISTINCT - + col2 + ( col0 ) FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT col2 * col1 * + 73 FROM tab0
----
207174
544726
7081

query I rowsort
SELECT ALL + 4 * + col2 * - col2 FROM tab0
----
-26896
-4
-4356

query I rowsort
SELECT col0 * - col2 - col1 * - tab2.col1 FROM tab2
----
-2713
1453
772

query I rowsort
SELECT 59 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3

query I rowsort
SELECT ALL + 94 FROM tab1, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + 99 FROM tab0, tab0 cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query I rowsort
SELECT 52 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

query I rowsort
SELECT col2 * ( + 91 ) + col1 FROM tab1 cor0
----
4940
5197
8749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + + col0 col2 FROM tab1 AS cor0
----
128
160
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3516
SELECT + 88 * col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3516
SELECT + 88 * col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - ( + col0 ) AS col2 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT ALL col2 + + col0 + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - col0 * 43 + - col1 FROM tab0 AS cor0
----
-1118
-1602
-3918

query I rowsort
SELECT DISTINCT col1 * - 6 + 46 AS col0 FROM tab0 AS cor0
----
-470
-500
-536

query I rowsort
SELECT col2 * ( col2 ) AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3523
SELECT 46 DIV - 4 + col2 FROM tab0
----
-10
22
71

skipif mysql # not compatible
query I rowsort label-3523
SELECT 46 / - 4 + col2 FROM tab0
----
-10
22
71

query I rowsort
SELECT ( - col2 ) + + tab1.col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ( tab0.col0 + col2 ) * col0 FROM tab0
----
1260
1368
15219

onlyif mysql # use DIV operator for integer division
query I rowsort label-3526
SELECT DISTINCT ( - 56 ) DIV + col0 + ( - 36 * + tab1.col0 ) AS col0 FROM tab1
----
-126
-2304
-2880

skipif mysql # not compatible
query I rowsort label-3526
SELECT DISTINCT ( - 56 ) / + col0 + ( - 36 * + tab1.col0 ) AS col0 FROM tab1
----
-126
-2304
-2880

query I rowsort
SELECT - col2 + + col2 * + col1 AS col1 FROM tab2
----
1508
608
810

query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab2 cor0
----
-8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL ( + col1 * + col2 ) + + col2 AS col0 FROM tab2
----
1560
684
864

query I rowsort
SELECT ( col0 ) * col0 + - tab0.col0 FROM tab0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3532
SELECT ALL - ( col2 ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - ( col2 ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 + col2 * + col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - ( col2 ) + + ( col0 ) AS col1 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + col0 + col2 * - col0 FROM tab2 AS cor0
----
-196
-2106
-3081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 + col2 col2 FROM tab0 cor0
----
139
58
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col1 FROM tab1
----
54
57
96

query I rowsort
SELECT ALL - col0 + col1 * 39 FROM tab0 AS cor0
----
3330
3460
3748

query I rowsort
SELECT + + 49 * - col2 * - cor0.col2 + 93 * - col0 FROM tab2 AS cor0
----
25870
35070
63409

onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT DISTINCT + + 56 + col2 DIV cor0.col1 FROM tab2 cor0
----
56
58

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT + + 56 + col2 / cor0.col1 FROM tab2 cor0
----
56
58

onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL + + col0 * - col2 + col1 DIV 43 AS col2 FROM tab0 AS cor0
----
-33
-7296
-790

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL + + col0 * - col2 + col1 / 43 AS col2 FROM tab0 AS cor0
----
-33
-7296
-790

onlyif mysql # use DIV operator for integer division
query I rowsort label-3542
SELECT - + ( + col0 ) + - col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

skipif mysql # not compatible
query I rowsort label-3542
SELECT - + ( + col0 ) + - col0 / col2 AS col2 FROM tab0 AS cor0
----
-24
-70
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 * - col0 * - ( - col1 + cor0.col0 ) col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 38 + + col2 * - 83 AS col2 FROM tab0 AS cor0
----
-2701
-45
-6768

query I rowsort
SELECT ALL + 7 AS col1 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT + col1 * 34 AS col1 FROM tab2 AS cor0
----
1054
2006
578

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) * - col1 AS col2 FROM tab1
----
1040
640
78

query I rowsort
SELECT ALL + cor0.col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT col1 DIV - ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3549
SELECT col1 / - ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT col0 * col2 + + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1260
1368
15219

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3551
SELECT + 58 / col0 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3551
SELECT + 58 / col0 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3552
SELECT - 29 * - col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3552
SELECT - 29 * - col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 80 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91

query I rowsort
SELECT col0 + + 20 AS col0 FROM tab1 AS cor0
----
100
23
84

query I rowsort
SELECT ALL col0 * cor0.col2 * - 94 FROM tab2 AS cor0
----
-17766
-190632
-282188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3556
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) * - ( - cor0.col1 ) + + col1 col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) * - ( - cor0.col1 ) + + col1 col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * col1 + - 80 * col1 FROM tab1 AS cor0
----
-160
-2002
0

query I rowsort
SELECT - col1 + + 15 + col1 FROM tab0 AS cor0
----
15
15
15

query I rowsort
SELECT - 56 AS col1 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80

query I rowsort
SELECT DISTINCT 71 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT - col0 * + 75 * col2 AS col2 FROM tab1 AS cor0
----
-12150
-273600
-576000

query I rowsort
SELECT ALL - + col0 * + col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-3563
SELECT + col1 + 95 DIV + col0 + + col2 col1 FROM tab0 AS cor0
----
100
122
174

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3563
SELECT + col1 + 95 / + col0 + + col2 col1 FROM tab0 AS cor0
----
100
122
174

onlyif mysql # use DIV operator for integer division
query I rowsort label-3564
SELECT + col2 DIV + col0 + col0 * col1 col2 FROM tab0 cor0
----
2065
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3564
SELECT + col2 / + col0 + col0 * col1 col2 FROM tab0 cor0
----
2065
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3565
SELECT ALL CAST( tab2.col1 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL CAST ( tab2.col1 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ( + ( - col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ALL - 74 + - col0 FROM tab2 AS cor0
----
-152
-153
-81

query I rowsort
SELECT col2 * - col2 + + col1 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3569
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - 40 AS col2 FROM tab1 AS cor0
----
40
40
40

query I rowsort
SELECT col1 + + ( + cor0.col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229

onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT - cor0.col1 * 84 DIV + col2 FROM tab1 AS cor0
----
-11
-14
-40

skipif mysql # not compatible
query I rowsort label-3572
SELECT - cor0.col1 * 84 / + col2 FROM tab1 AS cor0
----
-11
-14
-40

query I rowsort
SELECT + 5 * ( col0 ) AS col2 FROM tab0 AS cor0
----
120
175
445

query I rowsort
SELECT 50 * + col1 FROM tab1
----
1300
500
650

query I rowsort
SELECT ( - col1 ) * - col2 + - col0 AS col1 FROM tab1 cor0
----
1168
1401
506

query I rowsort
SELECT - col1 + cor0.col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 - col0 col2 FROM tab2 AS cor0
----
1264
210
4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT + col0 + cor0.col0 DIV 57 FROM tab2 AS cor0
----
7
79
80

skipif mysql # not compatible
query I rowsort label-3578
SELECT + col0 + cor0.col0 / 57 FROM tab2 AS cor0
----
7
79
80

query I rowsort
SELECT col0 + + tab0.col2 * col2 * col0 + - 60 * - 47 AS col0 FROM tab0
----
2890
28980
601345

query I rowsort
SELECT - col1 * 42 + col1 AS col1 FROM tab1 cor0
----
-1066
-410
-533

query I rowsort
SELECT DISTINCT col0 + - 56 FROM tab2 AS cor0
----
-49
22
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( - col0 ) + col1 * 28 col2 FROM tab2 cor0
----
-2526
-376
679

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * col1 col2 FROM tab2
----
255
465
885

query I rowsort
SELECT col0 * - col1 + col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT 78 * + col1 FROM tab0
----
6708
7098
7566

query I rowsort
SELECT - - col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT - - ( + col2 ) + + col2 * ( cor0.col1 ) FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3588
SELECT CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT CAST ( NULL AS REAL ) + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL + 26 * + col1 * cor0.col2 FROM tab0 cor0
----
194012
2522
73788

onlyif mysql # use DIV operator for integer division
query I rowsort label-3591
SELECT - tab2.col0 DIV - col1 + + 99 + col2 * col0 AS col1 FROM tab2
----
2128
288
3105

skipif mysql # not compatible
query I rowsort label-3591
SELECT - tab2.col0 / - col1 + + 99 + col2 * col0 AS col1 FROM tab2
----
2128
288
3105

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col2 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL - + cor0.col0 + + col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 31 * cor0.col1 AS col2 FROM tab1 AS cor0
----
310
403
806

query I rowsort
SELECT DISTINCT + col0 * ( - col1 * col2 + - 39 ) AS col2 FROM tab0
----
-4760
-667589
-69048

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT ALL col2 DIV - ( + ( col2 ) ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL col2 / - ( + ( col2 ) ) FROM tab1
----
-1
-1
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3599
SELECT col0 * - CAST( NULL AS SIGNED ) * tab2.col1 + col0 * 48 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3599
SELECT col0 * - CAST ( NULL AS INTEGER ) * tab2.col1 + col0 * 48 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3600
SELECT - col1 + - col2 DIV - 3 AS col1 FROM tab1 cor0
----
-8
19
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT - col1 + - col2 / - 3 AS col1 FROM tab1 cor0
----
-8
19
9

query I rowsort
SELECT DISTINCT - - col2 + - col1 FROM tab0 cor0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 * + col0 * col0 col2 FROM tab1 cor0
----
-260
-40970
-83213

query I rowsort
SELECT DISTINCT - col1 + + 63 * col0 * col2 - + 28 FROM tab0 AS cor0
----
2080
459655
49782

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3604
SELECT ( + cor0.col0 ) * - col2 + - CAST( NULL AS SIGNED ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3604
SELECT ( + cor0.col0 ) * - col2 + - CAST ( NULL AS INTEGER ) * + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( col0 ) + + col0 FROM tab1 cor0
----
128
160
6

query I rowsort
SELECT ALL col0 + - 5 FROM tab2 AS cor0
----
2
73
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT ALL + col0 DIV cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-3607
SELECT ALL + col0 / cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT DISTINCT + + col1 - + 4 AS col0 FROM tab0 cor0
----
82
87
93

query I rowsort
SELECT + + col1 + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL + ( 65 ) FROM tab1 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL - - col0 * + col0 + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT - col1 - 20 * col1 AS col0 FROM tab1
----
-210
-273
-546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query I rowsort
SELECT - + col1 * 94 AS col1 FROM tab0 AS cor0
----
-8084
-8554
-9118

query I rowsort
SELECT ALL - ( + cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ALL ( col2 ) * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-3618
SELECT DISTINCT - - ( 75 ) + col0 * ( col2 ) DIV col2 AS col2 FROM tab0 cor0
----
110
164
99

skipif mysql # not compatible
query I rowsort label-3618
SELECT DISTINCT - - ( 75 ) + col0 * ( col2 ) / col2 AS col2 FROM tab0 cor0
----
110
164
99

query I rowsort
SELECT + 45 * col2 FROM tab0 AS cor0
----
1485
3690
45

query I rowsort
SELECT ALL - ( + 6 ) FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT col2 + - col2 + col1 AS col2 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT tab0.col0 + - col2 * col1 AS col1 FROM tab0
----
-2814
-62
-7373

query I rowsort
SELECT DISTINCT - + 46 * + 28 FROM tab0 cor0
----
-1288

onlyif mysql # use DIV operator for integer division
query I rowsort label-3624
SELECT + col0 + col0 DIV + col1 + 64 FROM tab2 AS cor0
----
143
147
71

skipif mysql # not compatible
query I rowsort label-3624
SELECT + col0 + col0 / + col1 + 64 FROM tab2 AS cor0
----
143
147
71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT ALL CAST( NULL AS SIGNED ) / 79 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-3625
SELECT ALL CAST ( NULL AS INTEGER ) / 79 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 29 * + col2 FROM tab2
----
1102
754
783

query I rowsort
SELECT - - 12 * + col1 * + ( 10 ) FROM tab0 AS cor0
----
10320
10920
11640

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3628
SELECT + ( + cor0.col2 ) + - CAST( NULL AS SIGNED ) * - 35 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT + ( + cor0.col2 ) + - CAST ( NULL AS INTEGER ) * - 35 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT ALL col1 DIV + tab1.col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL col1 / + tab1.col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL - tab0.col0 * - 91 FROM tab0
----
2184
3185
8099

query I rowsort
SELECT + + col2 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-3632
SELECT DISTINCT + + col2 DIV ( - cor0.col1 ) + col2 DIV col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + + col2 / ( - cor0.col1 ) + col2 / col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + + col2 * + col2 * 90 FROM tab1 AS cor0
----
262440
292410
829440

query I rowsort
SELECT + col2 + ( col0 ) FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT ALL col0 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT DISTINCT + + col0 * 6 + - ( + cor0.col2 * ( col0 ) ) + col2 FROM tab2 AS cor0
----
-120
-1534
-2490

query I rowsort
SELECT ALL + cor0.col0 + + 52 FROM tab0 AS cor0
----
141
76
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 * + 92 + - tab2.col2 * - col2 col0 FROM tab2
----
-25144
-319576
-87683

query I rowsort
SELECT col2 + tab2.col2 + - ( + col0 ) AS col0 FROM tab2
----
-26
-3
47

query I rowsort
SELECT DISTINCT col2 + - col2 * - 26 AS col1 FROM tab0
----
2214
27
891

query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab1
----
-128
-160
-6

query I rowsort
SELECT ALL + tab1.col0 - - tab1.col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT ALL - col1 + + col2 * + col1 AS col2 FROM tab1
----
1235
1378
560

query I rowsort
SELECT DISTINCT + + col0 * 20 * - col2 AS col0 FROM tab2 AS cor0
----
-3780
-40560
-60040

query I rowsort
SELECT DISTINCT + cor0.col0 * + 5 AS col1 FROM tab1 AS cor0
----
15
320
400

query I rowsort
SELECT ALL + + col2 * - col2 + ( col0 ) * - 89 AS col0 FROM tab2 AS cor0
----
-1352
-7618
-8475

query I rowsort
SELECT + + col1 + + col2 + col2 AS col1 FROM tab0 AS cor0
----
152
255
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-3648
SELECT DISTINCT cor0.col1 DIV col2 col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3648
SELECT DISTINCT cor0.col1 / col2 col0 FROM tab1 AS cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3649
SELECT + col2 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-3649
SELECT + 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-3650
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3650
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 6 AS col0 FROM tab2
----
6
6
6

query I rowsort
SELECT ALL 13 * - col2 AS col0 FROM tab1
----
-1248
-702
-741

query I rowsort
SELECT ALL + 15 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT + - 46 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1137
-1211
-1731

query I rowsort
SELECT ALL - + 6 * cor0.col2 + - col0 + col1 FROM tab1 AS cor0
----
-301
-396
-643

query I rowsort
SELECT + - cor0.col2 * ( col1 ) FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col2 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT + + col0 * + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3659
SELECT ALL - - col2 - CAST( col0 + - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-24
51
7

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL - - col2 - CAST ( col0 + - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-24
51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3660
SELECT DISTINCT - + ( cor0.col2 ) + + CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT - + ( cor0.col2 ) + + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col0 * + 74 AS col1 FROM tab0 AS cor0
----
-1776
-2590
-6586

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT - + col0 + - 65 * + col2 - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3510
-3705
-6240

skipif mysql # not compatible
query I rowsort label-3662
SELECT - + col0 + - 65 * + col2 - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3510
-3705
-6240

query I rowsort
SELECT ALL + - 78 * col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-6675
-7016
-7565

query I rowsort
SELECT + - cor0.col2 * 8 + col1 FROM tab1 AS cor0
----
-406
-446
-755

query I rowsort
SELECT DISTINCT + 76 - + col0 FROM tab0 cor0
----
-13
41
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col0 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT - - 29 * + 86 FROM tab0 AS cor0
----
2494
2494
2494

onlyif mysql # use DIV operator for integer division
query I rowsort label-3668
SELECT - + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3668
SELECT - + col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - ( ( - col1 ) ) + + 97 AS col2 FROM tab0 AS cor0
----
183
188
194

query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * cor0.col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT + col1 * + 39 + + col1 * 11 - + col1 AS col1 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT - 58 + 82 AS col1 FROM tab1 AS cor0
----
24
24
24

query I rowsort
SELECT ALL cor0.col1 + 62 * col0 AS col2 FROM tab0 cor0
----
1574
2267
5609

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col2 col2 FROM tab1 AS cor0
----
2970
3306
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + col1 col1 FROM tab2 AS cor0
----
107
135
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-3676
SELECT DISTINCT - ( 6 + + col0 ) * col2 DIV col2 FROM tab1
----
-70
-86
-9

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - ( 6 + + col0 ) * col2 / col2 FROM tab1
----
-70
-86
-9

query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - 48 AS col1 FROM tab2
----
-48

onlyif mysql # use DIV operator for integer division
query I rowsort label-3680
SELECT + col0 + col1 DIV 61 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-3680
SELECT + col0 + col1 / 61 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL - 67 + col0 FROM tab0 cor0
----
-32
-43
22

query I rowsort
SELECT - cor0.col1 * + col1 + + col1 FROM tab2 AS cor0
----
-272
-3422
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 * col0 col0 FROM tab2 AS cor0
----
-490
-5460
-5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT - 30 DIV tab0.col2 AS col0 FROM tab0
----
-30
0
0

skipif mysql # not compatible
query I rowsort label-3684
SELECT - 30 / tab0.col2 AS col0 FROM tab0
----
-30
0
0

query I rowsort
SELECT + ( - col0 + - col1 ) * - ( col0 * - 23 ) AS col0 FROM tab2
----
-174432
-245778
-6118

onlyif mysql # use DIV operator for integer division
query I rowsort label-3686
SELECT col0 + 89 DIV 45 FROM tab2 AS cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-3686
SELECT col0 + 89 / 45 FROM tab2 AS cor0
----
79
8
80

query I rowsort
SELECT + + col2 + - col0 * col1 * + 1 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT + - 94 + cor0.col0 * - col0 FROM tab0 AS cor0
----
-1319
-670
-8015

query I rowsort
SELECT DISTINCT col1 * - 1 AS col0 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ( ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 31 col1 FROM tab2
----
48
62
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-3692
SELECT col2 * col0 + col2 * - col2 - col1 * col1 DIV 18 AS col1 FROM tab2 cor0
----
-593
1159
1542

skipif mysql # not compatible
query I rowsort label-3692
SELECT col2 * col0 + col2 * - col2 - col1 * col1 / 18 AS col1 FROM tab2 cor0
----
-593
1159
1542

query I rowsort
SELECT DISTINCT + ( 77 ) FROM tab2
----
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-3694
SELECT ( col0 + col1 ) DIV - col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT ( col0 + col1 ) / - col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) + + col2 + ( ( + cor0.col1 ) ) AS col2 FROM tab2 AS cor0
----
-5999
-6186
9

query I rowsort
SELECT DISTINCT - - col2 * + col2 * col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
207872
737200
8745

query I rowsort
SELECT ALL - col0 + cor0.col1 * - 5 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1005
-3386
-628

query I rowsort
SELECT col0 * ( 23 ) AS col2 FROM tab2 AS cor0
----
161
1794
1817

query I rowsort
SELECT ALL - - 8 AS col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + tab1.col1 * 13 * tab1.col2 col2 FROM tab1
----
16320
18306
7467

query I rowsort
SELECT DISTINCT + col0 * col1 + - col0 FROM tab0
----
2040
3360
8010

query I rowsort
SELECT DISTINCT - tab1.col2 * col2 AS col0 FROM tab1
----
-2916
-3249
-9216

query I rowsort
SELECT col1 * col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # use DIV operator for integer division
query I rowsort label-3704
SELECT - col1 DIV + 69 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT - col1 / + 69 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - col1 + + 93 FROM tab1 AS cor0
----
103
106
119

onlyif mysql # use DIV operator for integer division
query I rowsort label-3706
SELECT + col2 + + col1 DIV - cor0.col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-3706
SELECT + col2 + + col1 / - cor0.col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT + + col1 * - col1 * + col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT ALL - cor0.col2 * cor0.col2 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 309d8ba6d1ea89e6795c82dda466e1ce

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3709
SELECT CAST( NULL AS DECIMAL ) * col0 * - col1 col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3709
SELECT CAST ( NULL AS REAL ) * col0 * - col1 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + tab1.col2 ) + - tab1.col0 AS col2 FROM tab1
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-3711
SELECT + ( + col2 ) DIV + col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-3711
SELECT + ( + col2 ) / + col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3712
SELECT ALL - 73 * col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL - 73 * col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 48 * col0 + 24 * 89 col2 FROM tab0 AS cor0
----
3288
3816
6408

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
36

query I rowsort
SELECT - col0 * tab0.col1 - col1 FROM tab0
----
-2150
-3492
-8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 + - col2 col0 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + - 38 * - col1 + col0 AS col0 FROM tab1 AS cor0
----
444
574
991

query I rowsort
SELECT ALL 38 AS col0 FROM tab0 cor0
----
38
38
38

query I rowsort
SELECT + col1 + - col0 + + ( + col2 ) * + col2 AS col1 FROM tab2 AS cor0
----
1382
657
753

query I rowsort
SELECT DISTINCT 99 * col1 AS col1 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT ALL + - col1 * + col2 + + 87 * + col2 AS col2 FROM tab0 AS cor0
----
-10
-328
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-3722
SELECT + + 49 + - col2 DIV col0 + col0 DIV - cor0.col0 FROM tab1 AS cor0
----
30
47
48

skipif mysql # not compatible
query I rowsort label-3722
SELECT + + 49 + - col2 / col0 + col0 / - cor0.col0 FROM tab1 AS cor0
----
30
47
48

query I rowsort
SELECT DISTINCT + 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT ALL + + cor1.col1 + cor0.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b6920525e1810523fdee3171c929510

query I rowsort
SELECT - col0 + col0 + 26 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT + 11 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-151
-3637
-7669

query I rowsort
SELECT DISTINCT + + col1 - cor0.col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 * + cor0.col1 - ( 97 ) * - col1 * ( 42 ) AS col2 FROM tab2 AS cor0
----
126511
244968
70601

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3729
SELECT ALL col2 * col0 - - CAST( + 44 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7342
79
836

skipif mysql # not compatible
query I rowsort label-3729
SELECT ALL col2 * col0 - - CAST ( + 44 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7342
79
836

onlyif mysql # use DIV operator for integer division
query I rowsort label-3730
SELECT + col0 + + col2 DIV ( - col0 ) AS col1 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-3730
SELECT + col0 + + col2 / ( - col0 ) AS col1 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT DISTINCT - 6 + col2 * - col0 FROM tab1 cor0
----
-168
-3654
-7686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * col0 + col2 col1 FROM tab0 AS cor0
----
1857
2661
6846

query I rowsort
SELECT DISTINCT - col2 * col2 + + 42 - col0 AS col0 FROM tab2 AS cor0
----
-1481
-694
-712

query I rowsort
SELECT - col0 + - 33 AS col2 FROM tab0 AS cor0
----
-122
-57
-68

query I rowsort
SELECT ALL - 85 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ALL - + col0 * - col0 + + col0 AS col0 FROM tab1 cor0
----
12
4160
6480

query I rowsort
SELECT 39 + - 67 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT ALL - 66 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3739
SELECT + + col1 / - CAST( NULL AS SIGNED ) + - 3 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3739
SELECT + + col1 / - CAST ( NULL AS INTEGER ) + - 3 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3740
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + cor0.col2 FROM tab0, tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + - ( cor0.col1 ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT - 4 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a

onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT DISTINCT col1 DIV + 76 + col2 + + col1 DIV + ( + col1 ) col2 FROM tab0
----
3
35
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3744
SELECT DISTINCT col1 / + 76 + col2 + + col1 / + ( + col1 ) col2 FROM tab0
----
3
35
84

query I rowsort
SELECT - col1 * col0 - + col2 * + col0 FROM tab1 AS cor0
----
-240
-4288
-8720

query I rowsort
SELECT DISTINCT + col2 * + col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736

query I rowsort
SELECT ALL ( ( - col2 ) ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT DISTINCT - col2 - - col0 * col1 FROM tab1 AS cor0
----
24
583
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) - col0 col2 FROM tab2 AS cor0
----
-41
-52
20

query I rowsort
SELECT 80 + col2 - col0 AS col0 FROM tab2 cor0
----
100
28
39

query I rowsort
SELECT + - 58 * - col2 + + col0 * - col2 AS col0 FROM tab0 cor0
----
-2542
1122
23

query I rowsort
SELECT ALL + - col2 - col2 * ( cor0.col1 ) * + col0 FROM tab2 AS cor0
----
-119678
-51072
-5886

query I rowsort
SELECT ALL - col0 * + col1 * + 1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL ( + 8 ) * col1 * ( + col0 ) + - col2 FROM tab2
----
10706
1709
36790

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3755
SELECT CAST( - 30 * + col1 AS SIGNED ) + + col0 AS col2 FROM tab1
----
-236
-310
-777

skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( - 30 * + col1 AS INTEGER ) + + col0 AS col2 FROM tab1
----
-236
-310
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 * tab2.col0 + - col1 col1 FROM tab2
----
1343
217
4602

query I rowsort
SELECT - - col2 * + col2 + - col2 AS col2 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT col0 + 24 AS col1 FROM tab1 AS cor0
----
104
27
88

query I rowsort
SELECT + + col0 * col2 + col1 * + ( col0 ) * + col2 FROM tab2 cor0
----
121680
54036
6048

onlyif mysql # use DIV operator for integer division
query I rowsort label-3760
SELECT ALL col1 DIV col0 col2 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL col1 / col0 col2 FROM tab0
----
1
2
3

query I rowsort
SELECT ALL + col1 * 60 FROM tab2
----
1020
1860
3540

query I rowsort
SELECT + - cor0.col0 - ( 67 * cor0.col2 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 565fdbf30bc5ba9be941ac59430018a2

query I rowsort
SELECT 41 * - 69 AS col1 FROM tab1 AS cor0
----
-2829
-2829
-2829

query I rowsort
SELECT ALL tab1.col2 * - col0 + - 73 AS col2 FROM tab1
----
-235
-3721
-7753

query I rowsort
SELECT 13 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed

query I rowsort
SELECT DISTINCT tab2.col1 + tab2.col1 AS col2 FROM tab2
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + col1 col0 FROM tab0
----
12
17
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * ( + 5 ) - - cor0.col0 * + 20 col0 FROM tab0 AS cor0
----
1220
2324
934

query I rowsort
SELECT ALL col0 * col1 + - 74 + col1 AS col0 FROM tab2 AS cor0
----
1286
174
4587

query I rowsort
SELECT ALL 75 FROM tab0, tab2 cor0, tab0 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16

query I rowsort
SELECT ALL + col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 75 * col1 col1 FROM tab0 AS cor0
----
-6536
-6916
-7372

query I rowsort
SELECT cor0.col2 + + ( col1 ) FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT - col0 + 82 FROM tab1 cor0
----
18
2
79

query I rowsort
SELECT ALL + col0 * - col0 * + col1 FROM tab1 cor0
----
-234
-40960
-83200

query I rowsort
SELECT DISTINCT + + col2 * - col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 63 col0 FROM tab0 AS cor0
----
152
87
98

query I rowsort
SELECT + col0 + + ( + ( col0 ) ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + - col0 * - col1 + - cor0.col2 * col0 FROM tab1 AS cor0
----
-3008
-6640
-84

query I rowsort
SELECT + ( col1 ) + + 47 + 92 AS col2 FROM tab2
----
156
170
198

query I rowsort
SELECT - col1 * - ( + 14 ) + + col2 FROM tab1 AS cor0
----
197
278
418

onlyif mysql # use DIV operator for integer division
query I rowsort label-3782
SELECT + - col0 DIV + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3782
SELECT + - col0 / + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-6
-6
0

query I rowsort
SELECT DISTINCT tab1.col1 - - col1 * ( + col1 + tab1.col1 ) AS col2 FROM tab1
----
1378
210
351

onlyif mysql # use DIV operator for integer division
query I rowsort label-3784
SELECT ALL + col1 * + 76 - + col1 DIV + col1 FROM tab2
----
1291
2355
4483

skipif mysql # not compatible
query I rowsort label-3784
SELECT ALL + col1 * + 76 - + col1 / + col1 FROM tab2
----
1291
2355
4483

query I rowsort
SELECT ALL col2 - ( - 42 ) FROM tab2
----
68
69
80

query I rowsort
SELECT DISTINCT 70 * 78 AS col0 FROM tab0, tab1 AS cor0
----
5460

query I rowsort
SELECT - + cor0.col0 * 46 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT DISTINCT - - 67 + - col0 + col0 * - col2 AS col1 FROM tab2 AS cor0
----
-129
-2039
-3014

query I rowsort
SELECT + - 0 * - ( + cor0.col0 ) + ( 16 * col2 ) FROM tab1 AS cor0
----
1536
864
912

query I rowsort
SELECT ALL 80 - + 32 FROM tab2 AS cor0
----
48
48
48

query I rowsort
SELECT DISTINCT ( + 97 ) * + col0 + col2 + + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
16013
3153
3431

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT ALL - CAST( col0 AS SIGNED ) * col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - CAST ( col0 AS INTEGER ) * col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969

query I rowsort
SELECT + 11 - - col1 * + col0 FROM tab2 AS cor0
----
1354
228
4613

onlyif mysql # use DIV operator for integer division
query I rowsort label-3794
SELECT + CAST( col2 AS SIGNED ) * col0 DIV + ( - 82 ) + col2 FROM tab2 AS cor0
----
2
2
25

skipif mysql # not compatible
query I rowsort label-3794
SELECT + CAST ( col2 AS INTEGER ) * col0 / + ( - 82 ) + col2 FROM tab2 AS cor0
----
2
2
25

query I rowsort
SELECT - col1 * + col2 - cor0.col0 FROM tab1 AS cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col1 * 67 AS col2 FROM tab2
----
1139
2077
3953

onlyif mysql # use DIV operator for integer division
query I rowsort label-3797
SELECT - col1 DIV - tab0.col2 AS col1 FROM tab0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-3797
SELECT - col1 / - tab0.col2 AS col1 FROM tab0
----
1
2
97

query I rowsort
SELECT + 99 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
196
3353
8209

query I rowsort
SELECT + ( 14 ) * col1 - 40 FROM tab0 AS cor0
----
1164
1234
1318

query I rowsort
SELECT - col0 * ( - ( - col0 ) ) * ( - 72 ) AS col2 FROM tab1
----
294912
460800
648

query I rowsort
SELECT + col1 + + col2 * col1 * - 81 AS col2 FROM tab2 cor0
----
-124195
-52309
-67766

query I rowsort
SELECT - ( col0 ) + + ( + col1 ) * col1 * + col0 FROM tab1 AS cor0
----
13440
2025
6336

query I rowsort
SELECT - - col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 1 col2 FROM tab2 AS cor0
----
-25
-26
-37

query I rowsort
SELECT + col0 * - 65 * + 93 AS col1 FROM tab2 AS cor0
----
-42315
-471510
-477555

query I rowsort
SELECT DISTINCT col0 + + 92 * col0 FROM tab1 AS cor0
----
279
5952
7440

query I rowsort
SELECT - + 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT col2 * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-3808
SELECT col2 * col1 / - col1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + cor0.col0 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1328
1407
634

onlyif mysql # use DIV operator for integer division
query I rowsort label-3810
SELECT ALL - cor0.col0 DIV col1 FROM tab2 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL - cor0.col0 / col1 FROM tab2 AS cor0
----
-1
-4
0

query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT + col1 * + col0 * + col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT tab0.col2 - col1 AS col0 FROM tab0
----
-53
-9
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3814
SELECT ALL col0 + - col0 * col1 DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3814
SELECT ALL col0 + - col0 * col1 / col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT ALL - col0 * col0 + + col1 FROM tab2
----
-18
-6025
-6224

query I rowsort
SELECT col1 * col0 + - col0 FROM tab1
----
576
75
960

query I rowsort
SELECT ALL col2 + + tab2.col0 AS col2 FROM tab2
----
104
117
34

onlyif mysql # use DIV operator for integer division
query I rowsort label-3819
SELECT - - col2 + - col0 DIV + col1 AS col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-3819
SELECT - - col2 + - col0 / + col1 AS col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT ALL + 87 * + col2 AS col1 FROM tab1
----
4698
4959
8352

query I rowsort
SELECT - - col0 + - col1 * + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL 38 * + tab0.col2 AS col0 FROM tab0
----
1254
3116
38

query I rowsort
SELECT ALL - col1 + col2 * tab0.col0 AS col1 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 + - col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + col0 * + col2 + + col1 FROM tab1
----
188
3658
7693

onlyif mysql # use DIV operator for integer division
query I rowsort label-3826
SELECT - col0 DIV col1 + col0 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-182
-1951
-2927

skipif mysql # not compatible
query I rowsort label-3826
SELECT - col0 / col1 + col0 - col0 * col2 AS col0 FROM tab2 AS cor0
----
-182
-1951
-2927

query I rowsort
SELECT DISTINCT col1 + col0 + - col1 FROM tab2
----
7
78
79

query I rowsort
SELECT col2 + - col0 + col2 FROM tab0
----
-33
42
75

query I rowsort
SELECT col2 FROM tab2 WHERE ( NULL ) = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT col0 DIV col2 + - col0 + col2 AS col0 FROM tab1
----
-6
16
51

skipif mysql # not compatible
query I rowsort label-3830
SELECT col0 / col2 + - col0 + col2 AS col0 FROM tab1
----
-6
16
51

query I rowsort
SELECT DISTINCT col0 + - col2 + col1 FROM tab1
----
-25
-3
17

query I rowsort
SELECT + 76 + col1 AS col2 FROM tab2 AS cor0
----
107
135
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 + col2 col0 FROM tab1
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT - col2 DIV tab1.col1 + col2 DIV + col0 AS col1 FROM tab1
----
-5
-6
16

skipif mysql # not compatible
query I rowsort label-3834
SELECT - col2 / tab1.col1 + col2 / + col0 AS col1 FROM tab1
----
-5
-6
16

query I rowsort
SELECT col0 * - col2 * - col0 FROM tab0 WHERE NOT - col2 + col0 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 + col1 * + tab1.col0 AS col1 FROM tab1
----
1136
132
697

query I rowsort
SELECT DISTINCT + col0 + col0 * - col0 * - col2 FROM tab2
----
1330
158262
237237

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT col2 + - col1 > ( col2 )
----
17
31
59

query I rowsort
SELECT ALL tab1.col2 + + tab1.col1 AS col2 FROM tab1 WHERE col0 + col0 >= NULL
----

query I rowsort
SELECT + col0 * - tab0.col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( - col1 * + col2 - col1 ) AND ( - col2 )
----

query I rowsort
SELECT col1 * col1 * + col2 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT - col2 + col1 < NULL
----

query I rowsort
SELECT + col2 * tab1.col2 * col2 FROM tab1
----
157464
185193
884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-3844
SELECT ALL 16 DIV - 16 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL 16 / - 16 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9

query I rowsort
SELECT DISTINCT + + col2 * col1 * - cor0.col0 FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT + + cor0.col1 DIV - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3846
SELECT + + cor0.col1 / - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 43 * col1 FROM tab0 AS cor0
----
3698
3913
4171

onlyif mysql # use DIV operator for integer division
query I rowsort label-3848
SELECT + 64 DIV + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3848
SELECT + 64 / + col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col1 - + col0 * - col0 AS col0 FROM tab0
----
1322
662
8012

query I rowsort
SELECT + col2 * + col0 FROM tab1 WHERE col2 <> ( - col0 )
----
162
3648
7680

query I rowsort
SELECT col2 - + col2 * + col2 FROM tab1
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL cor0.col1 - cor0.col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 - col0 * + col0 AS col2 FROM tab1 AS cor0
----
-448
1280
153

query I rowsort
SELECT ALL - col1 * + cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL + cor0.col0 * + col1 - col0 FROM tab2 cor0
----
1264
210
4524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * + tab2.col0 col1 FROM tab2
----
1360
248
4661

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE col0 > ( - col0 * + col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT DISTINCT + col2 + + col1 AS col2 FROM tab2
----
55
58
85

query I rowsort
SELECT DISTINCT col2 * + col0 + col0 FROM tab0
----
70
7387
816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 < NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT - col1 <> ( - col2 * col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT col1 + + col1 + - col2 DIV - col2 FROM tab0
----
173
183
195

skipif mysql # not compatible
query I rowsort label-3865
SELECT col1 + + col1 + - col2 / - col2 FROM tab0
----
173
183
195

query I rowsort
SELECT - + 51 * col1 AS col2 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT - 26 + col2 FROM tab1 AS cor0
----
28
31
70

query I rowsort
SELECT + + 4 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
166
3652
7684

query I rowsort
SELECT ( - col2 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL - 20 * col2 FROM tab1
----
-1080
-1140
-1920

query I rowsort
SELECT col0 + col0 + col1 FROM tab0
----
134
167
269

onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT DISTINCT - col0 * col2 DIV 6 AS col2 FROM tab0
----
-1216
-132
-5

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - col0 * col2 / 6 AS col2 FROM tab0
----
-1216
-132
-5

onlyif mysql # use DIV operator for integer division
query I rowsort label-3873
SELECT + 21 * col1 DIV 42 FROM tab2
----
15
29
8

skipif mysql # not compatible
query I rowsort label-3873
SELECT + 21 * col1 / 42 FROM tab2
----
15
29
8

query I rowsort
SELECT + ( cor0.col1 ) AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

query I rowsort
SELECT 31 * + tab2.col2 * tab2.col0 FROM tab2
----
5859
62868
93062

query I rowsort
SELECT 56 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT - - col2 + - cor0.col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT DISTINCT 28 * + tab0.col1 * ( col2 ) + + col1 + col1 AS col0 FROM tab0
----
209118
2910
79636

query I rowsort
SELECT ALL col1 * col0 * 54 AS col1 FROM tab1
----
34560
4212
56160

onlyif mysql # use DIV operator for integer division
query I rowsort label-3881
SELECT ALL - col1 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - col1 / - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col0 + + col1 * col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-3883
SELECT ALL + col0 DIV + tab2.col1 AS col2 FROM tab2
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL + col0 / + tab2.col1 AS col2 FROM tab2
----
0
1
4

query I rowsort
SELECT ALL col1 * col1 * 31 FROM tab0
----
229276
256711
291679

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3885
SELECT - CAST( 3 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-3885
SELECT - CAST ( 3 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3
-3
-3

query I rowsort
SELECT DISTINCT - + 17 * col2 FROM tab0 AS cor0
----
-1394
-17
-561

query I rowsort
SELECT - 55 * - 84 FROM tab1 AS cor0
----
4620
4620
4620

query I rowsort
SELECT DISTINCT + col1 * - 22 AS col0 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL - ( 26 ) * + cor0.col0 + ( + ( col0 ) ) FROM tab2 cor0
----
-175
-1950
-1975

query I rowsort
SELECT ( ( + col2 ) ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL cor0.col1 + + cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 993162448d72b066e1ac9ba4caa8d8d7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT + - CAST( - col0 AS SIGNED ) + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-3894
SELECT + - CAST ( - col0 AS INTEGER ) + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT CAST( NULL AS SIGNED ) * col1 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3895
SELECT CAST ( NULL AS INTEGER ) * col1 + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + 13 AS col0 FROM tab0
----
13

query I rowsort
SELECT DISTINCT + - 89 + col1 FROM tab1 AS cor0
----
-63
-76
-79

query I rowsort
SELECT ALL + + col1 + col2 * + col1 FROM tab2 cor0
----
1593
663
868

query I rowsort
SELECT ALL - col0 * - col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT DISTINCT - 99 + + col2 * + col0 + - col2 FROM tab0 AS cor0
----
-65
660
7117

query I rowsort
SELECT DISTINCT col1 * - col2 + + col1 + - col0 FROM tab1 AS cor0
----
-1315
-1381
-624

query I rowsort
SELECT ALL - col1 * + col1 + - col2 AS col1 FROM tab0 AS cor0
----
-7429
-8363
-9410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + 0 col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + + 72 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT cor0.col0 + + 89 AS col0 FROM tab2 AS cor0
----
167
168
96

query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 + - col2 AS col2 FROM tab2 cor0
----
-1560
-684
-864

query I rowsort
SELECT ALL + cor0.col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3909
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + + 69 * col0 * + ( tab1.col1 * + col0 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + + 69 * col0 * + ( tab1.col1 * + col0 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
19

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * CAST ( col1 AS REAL ) FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT + col2 * 11 + 13 FROM tab2 cor0
----
299
310
431

query I rowsort
SELECT ALL + col2 + col0 * + 82 AS col2 FROM tab1
----
300
5305
6656

query I rowsort
SELECT tab1.col1 * - 42 FROM tab1
----
-1092
-420
-546

query I rowsort
SELECT ALL + col1 * + col2 + ( col2 ) FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT col1 + 43 AS col1 FROM tab2
----
102
60
74

query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col0 + col2 + - 65 AS col1 FROM tab1 AS cor0
----
-2
4088
6431

query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col1 * - 10 ) + col0 FROM tab2 AS cor0
----
-13351
-2163
-45942

query I rowsort
SELECT ALL - - col0 * + col0 + col2 * - ( + col1 ) FROM tab0 AS cor0
----
-2262
1128
459

query I rowsort
SELECT ALL - + 31 - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-40
-4127
-6431

query I rowsort
SELECT 56 + col1 AS col2 FROM tab1
----
66
69
82

query I rowsort
SELECT + + ( + col0 ) FROM tab2 cor0
----
7
78
79

query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT + ( tab2.col1 * col1 ) FROM tab2
----
289
3481
961

query I rowsort
SELECT DISTINCT - + col1 + + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + - cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT + - ( + col0 ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3929
SELECT CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 75 + col1 * col0 FROM tab2 AS cor0
----
1418
292
4677

query I rowsort
SELECT + 83 * - ( col0 ) + - 91 * + 45 + + col0 AS col2 FROM tab0 cor0
----
-11393
-6063
-6965

query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162

query I rowsort
SELECT + 41 + 24 * - col0 FROM tab1 AS cor0
----
-1495
-1879
-31

query I rowsort
SELECT DISTINCT col0 + 56 * - col0 FROM tab0 AS cor0
----
-1320
-1925
-4895

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col1 ) * + ( - col2 ) col0 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT ALL + + 89 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT DISTINCT - 47 * + col2 + - 1 * - col0 AS col0 FROM tab2 AS cor0
----
-1144
-1262
-1707

onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT ALL - + col1 * col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1
-10
-11

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - + col1 * col0 / + col2 AS col2 FROM tab1 AS cor0
----
-1
-10
-11

query I rowsort
SELECT ALL ( + col2 ) + - ( 35 * - col1 ) FROM tab0 AS cor0
----
3043
3267
3396

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 DISTINCT + 92 + + col0 * - col0 col2 FROM tab1 AS cor0
----
-4004
-6308
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-3942
SELECT - + 8 * col1 DIV 49 AS col2 FROM tab0 AS cor0
----
-14
-14
-15

skipif mysql # not compatible
query I rowsort label-3942
SELECT - + 8 * col1 / 49 AS col2 FROM tab0 AS cor0
----
-14
-14
-15

query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + col2 - col1 * col2 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT DISTINCT - 1 * - col2 + - cor0.col2 * + col2 AS col2 FROM tab0 AS cor0
----
-1056
-6642
0

query I rowsort
SELECT + - col1 + ( cor0.col2 * + col0 ) FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL + col1 + ( col2 ) AS col0 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL - col0 * col1 * - col0 FROM tab0 AS cor0
----
118825
49536
720811

query I rowsort
SELECT ALL - col0 * 86 AS col1 FROM tab2 AS cor0
----
-602
-6708
-6794

query I rowsort
SELECT col1 - + col2 * + col0 FROM tab0
----
-706
-7207
62

skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( col2 AS REAL ) * + col1 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT col1 * - ( col1 ) + col0 FROM tab2 cor0
----
-210
-3403
-954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3953
SELECT col1 * - CAST( cor0.col2 + col0 AS SIGNED ) * + col1 col0 FROM tab2 AS cor0
----
-32674
-33813
-362024

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3953
SELECT col1 * - CAST ( cor0.col2 + col0 AS INTEGER ) * + col1 col0 FROM tab2 AS cor0
----
-32674
-33813
-362024

query I rowsort
SELECT + col1 + - col0 * ( cor0.col1 ) FROM tab2 cor0
----
-1326
-186
-4543

query I rowsort
SELECT 83 + - tab1.col2 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8cbfbb3024ec8ea86af5895edc0a21d6

query I rowsort
SELECT 52 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c

onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT + col0 DIV 26 FROM tab1
----
0
2
3

skipif mysql # not compatible
query I rowsort label-3957
SELECT + col0 / 26 FROM tab1
----
0
2
3

query I rowsort
SELECT + 31 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # use DIV operator for integer division
query I rowsort label-3959
SELECT + col0 + + col2 DIV col0 + - col0 col1 FROM tab1 AS cor0
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3959
SELECT + col0 + + col2 / col0 + - col0 col1 FROM tab1 AS cor0
----
0
1
18

query I rowsort
SELECT ALL - + col0 + + col0 * cor0.col1 FROM tab2 AS cor0
----
1264
210
4524

query I rowsort
SELECT - - 3 * + col1 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT ALL + col2 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL - - cor1.col1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3964
SELECT + + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - - col2 * - col1 * 47 FROM tab2 AS cor0
----
-30324
-39312
-72072

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT - col1 + col1 * col2 * col1 FROM tab0 AS cor0
----
243982
678951
9312

query I rowsort
SELECT + col2 * - ( + col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT - col0 + + col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT - + col1 + + col2 FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL + col1 * ( col0 ) FROM tab2
----
1343
217
4602

query I rowsort
SELECT + ( col0 ) * - col2 * + ( + col0 * + col1 ) FROM tab2 AS cor0
----
-4031686
-41013
-9332856

query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
10
13
26

query I rowsort
SELECT - col0 * 28 FROM tab0
----
-2492
-672
-980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3975
SELECT ALL CAST( NULL AS SIGNED ) + - col1 * col1 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-3975
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 * col1 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + + cor0.col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT ( col2 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT ( col2 ) / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL + + col1 + col0 + col2 FROM tab0 cor0
----
133
143
262

query I rowsort
SELECT + col0 * + 47 AS col0 FROM tab0
----
1128
1645
4183

query I rowsort
SELECT ALL ( 31 ) FROM tab0
----
31
31
31

query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT DISTINCT 79 * - tab1.col1 AS col0 FROM tab1
----
-1027
-2054
-790

query I rowsort
SELECT - col0 * + 42 + - col0 AS col0 FROM tab2
----
-301
-3354
-3397

query I rowsort
SELECT col2 * 21 + 85 * col0 FROM tab1 AS cor0
----
1389
6637
8816

query I rowsort
SELECT DISTINCT + + col2 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT - cor0.col0 - + col2 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT + 17 * - col1 AS col1 FROM tab1
----
-170
-221
-442

query I rowsort
SELECT ALL - - cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT ALL 65 + col0 - 29 FROM tab1
----
100
116
39

query I rowsort
SELECT ALL - 40 * col2 AS col2 FROM tab1
----
-2160
-2280
-3840

onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT col2 DIV 65 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3991
SELECT col2 / 65 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT + + col1 * - col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT DISTINCT 68 + col2 + - 66 FROM tab1 cor0
----
56
59
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 * col2 FROM tab0
----
NULL

query I rowsort
SELECT 82 - 71 AS col0 FROM tab2
----
11
11
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-3997
SELECT ALL col2 DIV + col0 + - col1 FROM tab2 AS cor0
----
-17
-28
-59

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL col2 / + col0 + - col1 FROM tab2 AS cor0
----
-17
-28
-59

query I rowsort
SELECT DISTINCT + col2 + col2 + cor0.col1 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT ALL + col2 + col0 + + col0 FROM tab1
----
185
256
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + 9 - 25 * - col2 col2 FROM tab0 cor0
----
10158
2898
3429

query I rowsort
SELECT DISTINCT + - cor0.col1 * - col1 FROM tab2 AS cor0
----
289
3481
961

onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT - + col0 + col1 * + 55 - + col0 DIV - col0 col0 FROM tab1 AS cor0
----
1428
487
636

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4002
SELECT - + col0 + col1 * + 55 - + col0 / - col0 col0 FROM tab1 AS cor0
----
1428
487
636

query I rowsort
SELECT - - col2 * + col2 * + col2 + - col0 AS col1 FROM tab2 AS cor0
----
17498
19676
54793

query I rowsort
SELECT 96 + - col0 * + ( 7 ) - col0 AS col2 FROM tab0 cor0
----
-184
-616
-96

query I rowsort
SELECT DISTINCT - - ( + cor0.col1 ) * 35 + - col0 FROM tab1 cor0
----
286
375
907

query I rowsort
SELECT ALL + + col0 + + col0 * 56 * col1 FROM tab2 AS cor0
----
12159
257790
75287

query I rowsort
SELECT + - col2 * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT + 51 + - cor0.col1 - 76 FROM tab1 AS cor0
----
-35
-38
-51

query I rowsort
SELECT ALL 11 * col1 AS col2 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT cor0.col1 * col2 * col1 + - col2 FROM tab1 AS cor0
----
16128
36450
5643

query I rowsort
SELECT ALL + - col0 + col1 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
36416
4209
99760

query I rowsort
SELECT col1 + 45 AS col2 FROM tab0 AS cor0
----
131
136
142

skipif mysql # not compatible
query I rowsort
SELECT ALL + + col2 * col1 + 50 * col1 * + CAST ( cor0.col1 AS REAL ) AS col2 FROM tab2 cor0
----
15096
175584
48887

query I rowsort
SELECT DISTINCT + col2 - + cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - 37 col1 FROM tab0 AS cor0
----
-2101
-3432
-8136

onlyif mysql # use DIV operator for integer division
query I rowsort label-4016
SELECT ALL - - col2 DIV CAST( + 77 AS SIGNED ) - + cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6723

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL - - col2 / CAST ( + 77 AS INTEGER ) - + cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6723

query I rowsort
SELECT DISTINCT + col0 + ( cor0.col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT 60 AS col2 FROM tab0 AS cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor2.col0 col1 FROM tab2, tab1 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-4020
SELECT cor1.col2 DIV + CAST( + 89 AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

skipif mysql # not compatible
query I rowsort label-4020
SELECT cor1.col2 / + CAST ( + 89 AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6

query I rowsort
SELECT ALL 17 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 - - 72 col1 FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL cor0.col1 * col0 * - col2 + - ( col0 ) FROM tab0 AS cor0
----
-3430
-664207
-68136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4025
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 93 + + col1 AS col2 FROM tab0 cor0
----
179
184
190

query I rowsort
SELECT DISTINCT + + col0 + col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT DISTINCT + col0 * - 58 AS col0 FROM tab1 AS cor0
----
-174
-3712
-4640

query I rowsort
SELECT ALL - 15 * col2 FROM tab0 cor0
----
-1230
-15
-495

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4030
SELECT + CAST( - col1 AS SIGNED ) + col2 * cor0.col0 FROM tab2 cor0
----
158
1969
2985

skipif mysql # not compatible
query I rowsort label-4030
SELECT + CAST ( - col1 AS INTEGER ) + col2 * cor0.col0 FROM tab2 cor0
----
158
1969
2985

query I rowsort
SELECT DISTINCT + col1 + + 39 * col1 * - 83 AS col0 FROM tab2 AS cor0
----
-100316
-190924
-55012

query I rowsort
SELECT ALL + + col1 * - 54 AS col0 FROM tab2 cor0
----
-1674
-3186
-918

query I rowsort
SELECT DISTINCT - 59 FROM tab0 cor0
----
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-4034
SELECT + col1 * col0 DIV - col1 + - ( - col1 ) FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-4034
SELECT + col1 * col0 / - col1 + - ( - col1 ) FROM tab2
----
-19
-62
24

query I rowsort
SELECT - 92 + 74 AS col2 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - - 63 * 50 FROM tab1 AS cor0
----
3150

query I rowsort
SELECT + - 36 + - cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
-2064
-225
-3038

query I rowsort
SELECT ALL + + col0 * - col2 - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

query I rowsort
SELECT ALL + col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - + 12 + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
107
161
86

query I rowsort
SELECT DISTINCT - 18 - - col2 FROM tab0 AS cor0
----
-17
15
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT - - col2 + col1 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-4042
SELECT - - col2 + col1 / col2 FROM tab1 AS cor0
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * cor0.col2 + - col2 * col0 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - + col0 + col0 * - 75 FROM tab0 AS cor0
----
-1824
-2660
-6764

query I rowsort
SELECT + col2 + + col2 * 53 - col2 * + col2 FROM tab1
----
-171
-4032
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col1 col0 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 43 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + col2 * tab1.col0 + - col2 * - tab1.col1 * - col0 AS col0 FROM tab1
----
-32832
-4050
-92160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT + ( 93 ) + col1 DIV col1 FROM tab1 AS cor0
----
94
94
94

skipif mysql # not compatible
query I rowsort label-4049
SELECT + ( 93 ) + col1 / col1 FROM tab1 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * ( + col2 + - ( + tab1.col1 ) ) col2 FROM tab1
----
110
3018
6653

query I rowsort
SELECT DISTINCT - col2 * - 63 + - col2 * col2 FROM tab0
----
-1558
62
990

query I rowsort
SELECT DISTINCT - tab1.col1 + - ( 71 * col2 ) AS col1 FROM tab1
----
-3860
-4057
-6829

query I rowsort
SELECT col1 * 91 * - 20 AS col0 FROM tab2 AS cor0
----
-107380
-30940
-56420

query I rowsort
SELECT - col1 + 9 FROM tab2
----
-22
-50
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT + - col2 * + col1 + - 83 FROM tab0 AS cor0
----
-180
-2921
-7545

query I rowsort
SELECT + + 51 * + col1 + - 62 * 79 * col1 FROM tab0 AS cor0
----
-416842
-441077
-470159

query I rowsort
SELECT ALL ( - 8 ) FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT - col1 * - 84 AS col1 FROM tab2 cor0
----
1428
2604
4956

query I rowsort
SELECT - - cor0.col1 * ( - ( + col0 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL + 19 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT + 70 * + ( - col0 ) FROM tab1
----
-210
-4480
-5600

query I rowsort
SELECT + 52 + 30 * - col2 AS col1 FROM tab0 cor0
----
-2408
-938
22

onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT + cor0.col1 * cor0.col0 + + cor0.col1 DIV ( - col0 ) FROM tab1 AS cor0
----
1040
640
70

skipif mysql # not compatible
query I rowsort label-4064
SELECT + cor0.col1 * cor0.col0 + + cor0.col1 / ( - col0 ) FROM tab1 AS cor0
----
1040
640
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT + 96 + - col0 DIV col0 AS col1 FROM tab1 cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4065
SELECT + 96 + - col0 / col0 AS col1 FROM tab1 cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col0 + - col1 * - col1 col0 FROM tab0 AS cor0
----
12384
15846
9436

query I rowsort
SELECT - col0 * - ( col1 ) * col0 FROM tab0
----
118825
49536
720811

query I rowsort
SELECT ALL - + ( 9 ) FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

query I rowsort
SELECT - col2 * - col2 * + tab0.col0 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + cor0.col0 * cor0.col0 + col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT DISTINCT col1 + 43 FROM tab2
----
102
60
74

query I rowsort
SELECT - col1 * ( + col1 ) FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT ( - 86 ) + tab1.col2 * 73 AS col1 FROM tab1
----
3856
4075
6922

onlyif mysql # use DIV operator for integer division
query I rowsort label-4074
SELECT - + col0 * col0 DIV + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif mysql # not compatible
query I rowsort label-4074
SELECT - + col0 * col0 / + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT - ( col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4076
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4076
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT col1 * col1 * col0 + col2 FROM tab0
----
177537
329316
737091

query I rowsort
SELECT ALL - col0 * col2 * col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT ALL + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL col2 + col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - col0 * col2 + ( 74 ) AS col1 FROM tab0 AS cor0
----
-718
-7224
39

query I rowsort
SELECT ALL 19 * col1 FROM tab2
----
1121
323
589

query I rowsort
SELECT + col2 * - col2 * + col1 + cor0.col1 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
-603603
-86258
9312

query I rowsort
SELECT ALL + - col1 * col0 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT col1 + 51 FROM tab0 AS cor0
----
137
142
148

query I rowsort
SELECT + + col2 + col1 * + 7 FROM tab2 cor0
----
157
244
439

query I rowsort
SELECT ALL - col0 - 10 FROM tab0 AS cor0
----
-34
-45
-99

query I rowsort
SELECT col1 * 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT DISTINCT + col0 DIV 77 AS col1 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT + col0 / 77 AS col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col0 col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 4 * - col0 + + col0 FROM tab1
----
15
320
400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4092
SELECT DISTINCT + CAST( - 91 AS SIGNED ) * cor0.col1 * + 38 FROM tab0 AS cor0
----
-297388
-314678
-335426

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT + CAST ( - 91 AS INTEGER ) * cor0.col1 * + 38 FROM tab0 AS cor0
----
-297388
-314678
-335426

query I rowsort
SELECT 14 * col1 FROM tab1 AS cor0
----
140
182
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 + 7 col1 FROM tab0 AS cor0
----
85

query I rowsort
SELECT + col0 * - 33 AS col2 FROM tab2 cor0
----
-231
-2574
-2607

query I rowsort
SELECT + - col0 + ( - cor0.col1 ) * col0 FROM tab1 AS cor0
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + col1 * + ( col1 + - col0 ) FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT DISTINCT - tab2.col0 * + col2 AS col0 FROM tab2
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT ALL + col0 DIV 41 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL + col0 / 41 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT col1 * + 0 FROM tab2
----
0

query I rowsort
SELECT - + col0 * col1 - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 1 * col1 col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-4103
SELECT + + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-4103
SELECT + + col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT ALL + + col0 * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4105
SELECT ALL col1 * col2 DIV col1 AS col0 FROM tab2 AS cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL col1 * col2 / col1 AS col0 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # use DIV operator for integer division
query I rowsort label-4106
SELECT DISTINCT - + col1 DIV col2 FROM tab0 cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - + col1 / col2 FROM tab0 cor0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT col1 * col0 * - col1 + col1 AS col1 FROM tab1
----
-13507
-2002
-6390

query I rowsort
SELECT DISTINCT - - col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT col0 - + col0 DIV col2 FROM tab1
----
3
63
80

skipif mysql # not compatible
query I rowsort label-4110
SELECT col0 - + col0 / col2 FROM tab1
----
3
63
80

query I rowsort
SELECT - col1 + col1 * col2 * col2 FROM tab0
----
0
611793
93568

query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
86
91
97

query I rowsort
SELECT col2 + - col2 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4114
SELECT - + 1 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT - + 1 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 3 col0 FROM tab2
----
-29
-30
-41

query I rowsort
SELECT - - col2 * - col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

query I rowsort
SELECT col2 * - cor0.col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
-297
34
574

query I rowsort
SELECT DISTINCT + - col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL - col1 + ( - col1 ) * + tab2.col0 * + col0 AS col2 FROM tab2
----
-106114
-1550
-359015

query I rowsort
SELECT col0 + 18 AS col0 FROM tab2
----
25
96
97

query I rowsort
SELECT DISTINCT col1 + col1 * tab1.col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT ALL ( col2 ) + + col1 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL + col0 + + 50 + tab2.col1 AS col0 FROM tab2
----
146
187
88

query I rowsort
SELECT DISTINCT - - col0 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136

query I rowsort
SELECT + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT - - 71 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
-146544
-241045
-575029

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + 39 + cor0.col1 * + col2 AS col0 FROM tab0 AS cor0
----
136
2877
7501

query I rowsort
SELECT 54 * col0 AS col1 FROM tab0 AS cor0
----
1296
1890
4806

query I rowsort
SELECT DISTINCT + 26 * cor0.col2 FROM tab2 AS cor0
----
676
702
988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * col2 col1 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL col1 * col1 - + col1 AS col1 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL - - col2 + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT tab0.col0 * col1 * tab0.col0 - col1 * - col2 FROM tab0
----
118922
52374
728273

query I rowsort
SELECT DISTINCT col0 + - col2 * - col1 * + col2 FROM tab1
----
119888
32554
75819

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 + + col1 * col0 + col2 ) > NULL
----

query I rowsort
SELECT ALL col2 * col1 * col0 - tab1.col2 FROM tab1
----
36423
4158
99744

query I rowsort
SELECT ALL - tab1.col2 * - tab1.col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2 WHERE NOT col1 + + col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col0 - - tab1.col2 * col1 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - tab0.col2 + - tab0.col2 AS col2 FROM tab0
----
-164
-2
-66

query I rowsort
SELECT tab1.col1 * col2 * + col0 - - col2 * + col2 FROM tab1
----
109056
39729
7128

query I rowsort
SELECT DISTINCT col0 * - col1 + col1 FROM tab0
----
-1978
-3298
-8008

query I rowsort
SELECT col0 - + col1 AS col1 FROM tab2
----
-24
19
62

query I rowsort
SELECT col2 * tab1.col0 + col2 * col1 AS col1 FROM tab1
----
1566
4218
8928

query I rowsort
SELECT ALL + tab2.col1 - - col2 AS col0 FROM tab2
----
55
58
85

query I rowsort
SELECT ALL col1 * tab0.col1 AS col0 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT + col1 + + col0 + + tab1.col1 AS col1 FROM tab1
----
106
55
84

query I rowsort
SELECT + tab0.col0 * - col0 * - col2 + col2 * col1 FROM tab0
----
1322
21846
656984

query I rowsort
SELECT DISTINCT + tab1.col1 + - tab1.col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT ALL + col0 + - col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT DISTINCT tab0.col1 * col0 AS col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT + + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ALL - - col1 * - col1 - + col0 FROM tab1 AS cor0
----
-164
-249
-679

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( tab1.col2 * - col2 )
----

query I rowsort
SELECT ALL + + cor0.col2 * col2 + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312

query I rowsort
SELECT ALL - col0 * col1 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + - col1 FROM tab0 AS cor0
----
0
2752
7371

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 + col0 IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 BETWEEN + col1 + - col0 * cor0.col2 AND ( + col0 * + col2 * - col2 )
----

query I rowsort
SELECT col2 + - tab2.col1 * + col2 * + col0 + col0 FROM tab2
----
-119548
-50917
-5825

query I rowsort
SELECT ALL + col0 + col2 * - col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col2 * + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col0 + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4166
SELECT ALL col1 + col2 DIV + col0 AS col2 FROM tab0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL col1 + col2 / + col0 AS col2 FROM tab0
----
87
91
97

query I rowsort
SELECT col2 + tab0.col2 * col0 * - col1 + + col1 FROM tab0
----
-3297
-663945
-67993

query I rowsort
SELECT + ( - col0 ) + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - ( col2 ) + + col0 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT 20 + + col1 - - col0 * col1 DIV col1 AS col1 FROM tab2 AS cor0
----
116
157
58

skipif mysql # not compatible
query I rowsort label-4170
SELECT 20 + + col1 - - col0 * col1 / col1 AS col1 FROM tab2 AS cor0
----
116
157
58

query I rowsort
SELECT - ( 71 ) * - col1 * 19 + - 47 * + col0 FROM tab0 AS cor0
----
114886
118576
129208

query I rowsort
SELECT + + col1 + + 71 AS col0 FROM tab0 AS cor0
----
157
162
168

query I rowsort
SELECT - cor0.col2 * - col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT + ( col2 ) * + col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ( + 10 ) + col1 * + col2 FROM tab0 AS cor0
----
107
2848
7472

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4176
SELECT + col2 * ( 12 + - tab0.col2 ) / + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4176
SELECT + col2 * ( 12 + - tab0.col2 ) / + CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 83 AS col0 FROM tab1
----
-1079
-2158
-830

onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT - tab0.col1 DIV tab0.col0 col2 FROM tab0
----
-1
-2
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4178
SELECT - tab0.col1 / tab0.col0 col2 FROM tab0
----
-1
-2
-3

query I rowsort
SELECT DISTINCT col0 * - 80 AS col0 FROM tab2
----
-560
-6240
-6320

query I rowsort
SELECT 91 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe

query I rowsort
SELECT - - col0 + - col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT - col0 DIV tab1.col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4182
SELECT - col0 / tab1.col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT - 14 FROM tab0, tab1 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT DISTINCT + - col2 * col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT 99 * - col0 FROM tab2
----
-693
-7722
-7821

query I rowsort
SELECT + tab2.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab1, tab1 AS cor0
----
96

query I rowsort
SELECT ALL col2 * + 31 FROM tab0
----
1023
2542
31

query I rowsort
SELECT col2 * - ( - col1 ) FROM tab2
----
1534
646
837

query I rowsort
SELECT col0 * - ( - col0 ) FROM tab1
----
4096
6400
9

query I rowsort
SELECT - col2 + + col1 * - 7 - - col0 AS col0 FROM tab0 AS cor0
----
-611
-630
-645

query I rowsort
SELECT DISTINCT - col2 * + col0 - - col1 AS col1 FROM tab0
----
-706
-7207
62

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to f3ede863c793df0de5c26c654290b3b7

query I rowsort
SELECT + 11 * + 23 FROM tab1, tab0 cor0
----
9 values hashing to 5ada3631bf1f07f317b9076367d43ba6

query I rowsort
SELECT DISTINCT - tab2.col2 - 10 AS col2 FROM tab2
----
-36
-37
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab1 AS cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT + col0 * 84 DIV - col2 AS col2 FROM tab0
----
-2940
-61
-91

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + col0 * 84 / - col2 AS col2 FROM tab0
----
-2940
-61
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4198
SELECT col2 DIV col0 + + col0 AS col0 FROM tab2
----
10
78
79

skipif mysql # not compatible
query I rowsort label-4198
SELECT col2 / col0 + + col0 AS col0 FROM tab2
----
10
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT col1 DIV + 64 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4199
SELECT col1 / + 64 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 34 + + ( - cor0.col0 ) * - col2 FROM tab2 AS cor0
----
155
1994
2968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4201
SELECT DISTINCT col1 DIV 19 AS col0 FROM tab2 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-4201
SELECT DISTINCT col1 / 19 AS col0 FROM tab2 AS cor0
----
0
1
3

query I rowsort
SELECT - col0 + + 41 FROM tab2
----
-37
-38
34

query I rowsort
SELECT DISTINCT + col2 * + 65 + col0 AS col1 FROM tab1
----
3513
3769
6320

query I rowsort
SELECT ALL - ( + col1 ) + col2 + + col2 * - col2 AS col1 FROM tab0
----
-1142
-6733
-97

query I rowsort
SELECT + 74 * col1 AS col1 FROM tab2
----
1258
2294
4366

query I rowsort
SELECT ALL 6 FROM tab0, tab0 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT DISTINCT - col2 + col2 DIV col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - col2 + col2 / col0 FROM tab1 AS cor0
----
-36
-57
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-4209
SELECT - col2 DIV - 48 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4209
SELECT - col2 / - 48 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT 20 + + col0 * + 42 AS col0 FROM tab2
----
314
3296
3338

query I rowsort
SELECT 18 * col1 - ( col0 ) AS col0 FROM tab1
----
116
154
465

query I rowsort
SELECT DISTINCT ( col0 ) + cor0.col0 FROM tab0 cor0
----
178
48
70

query I rowsort
SELECT DISTINCT - 59 * + col1 + 44 FROM tab1 AS cor0
----
-1490
-546
-723

query I rowsort
SELECT DISTINCT col2 * + col2 - + ( - col0 ) AS col2 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT + - col1 + - cor0.col2 * + col0 * col0 AS col2 FROM tab0 AS cor0
----
-1322
-19094
-649613

query I rowsort
SELECT + - col1 * col2 + - ( - col1 ) * col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - 75 - 74 AS col1 FROM tab2 AS cor0
----
-166
-180
-208

query I rowsort
SELECT ALL + col0 * - 39 + col1 AS col2 FROM tab1 AS cor0
----
-2486
-3107
-91

query I rowsort
SELECT DISTINCT - col1 * + 17 AS col2 FROM tab0 AS cor0
----
-1462
-1547
-1649

query I rowsort
SELECT ALL - col2 + - col1 + - col1 FROM tab1 AS cor0
----
-106
-122
-77

query I rowsort
SELECT DISTINCT cor0.col0 * ( cor0.col2 ) + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( + col0 ) col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT ALL + - col0 * col2 - + col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT + col2 DIV + col1 + - ( tab2.col0 ) FROM tab2
----
-7
-77
-78

skipif mysql # not compatible
query I rowsort label-4224
SELECT + col2 / + col1 + - ( tab2.col0 ) FROM tab2
----
-7
-77
-78

query I rowsort
SELECT DISTINCT - col2 + col1 * - ( col1 ) FROM tab1 AS cor0
----
-157
-265
-730

query I rowsort
SELECT col1 * + cor0.col2 + + col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT ALL + 11 + - col2 AS col1 FROM tab1 AS cor0
----
-43
-46
-85

query I rowsort
SELECT - + col2 * col0 + 17 AS col0 FROM tab1 AS cor0
----
-145
-3631
-7663

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT ALL - 57 * + col0 + CAST( 35 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1333
-1960
-5038

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL - 57 * + col0 + CAST ( 35 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1333
-1960
-5038

query I rowsort
SELECT ALL - col0 * - col0 * + cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
13857
42876
705051

query I rowsort
SELECT DISTINCT - - col0 + 71 AS col2 FROM tab0 AS cor0
----
106
160
95

query I rowsort
SELECT ALL + - col1 + + 66 FROM tab0 cor0
----
-20
-25
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col0 * + col2 col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT - ( - col2 ) * 44 AS col2 FROM tab0
----
1452
3608
44

query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT - ( + col1 ) + - col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT + col1 - + 84 * + col1 FROM tab1 cor0
----
-1079
-2158
-830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * ( cor0.col2 ) col0 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-4239
SELECT - col0 * col2 + - col2 + - col1 DIV 69 FROM tab1 AS cor0
----
-216
-3705
-7776

skipif mysql # not compatible
query I rowsort label-4239
SELECT - col0 * col2 + - col2 + - col1 / 69 FROM tab1 AS cor0
----
-216
-3705
-7776

query I rowsort
SELECT - col0 * 86 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-553
-553
-624

query I rowsort
SELECT ALL - 26 AS col2 FROM tab1 AS cor0
----
-26
-26
-26

query I rowsort
SELECT ALL - col1 * 27 FROM tab0 AS cor0
----
-2322
-2457
-2619

query I rowsort
SELECT DISTINCT - col0 * + 14 AS col0 FROM tab0 AS cor0
----
-1246
-336
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 * col0 col2 FROM tab2
----
49
6084
6241

query I rowsort
SELECT col1 * tab2.col1 + col2 AS col0 FROM tab2
----
327
3507
988

query I rowsort
SELECT + col1 + 19 + + col1 AS col1 FROM tab2 AS cor0
----
137
53
81

query I rowsort
SELECT ( - 94 ) + + col1 - + ( + 42 + + col1 ) FROM tab1 AS cor0
----
-136
-136
-136

query I rowsort
SELECT DISTINCT + - col0 + - col2 AS col2 FROM tab0 cor0
----
-171
-36
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 * col1 - cor0.col2 col1 FROM tab0 AS cor0
----
5213
5469
5916

query I rowsort
SELECT DISTINCT - 36 * col0 FROM tab0 AS cor0
----
-1260
-3204
-864

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT ALL + cor0.col0 * ( - col2 ) + - col1 + + col1 DIV + col1 FROM tab1 cor0
----
-187
-3657
-7692

skipif mysql # not compatible
query I rowsort label-4252
SELECT ALL + cor0.col0 * ( - col2 ) + - col1 + + col1 / + col1 FROM tab1 cor0
----
-187
-3657
-7692

query I rowsort
SELECT DISTINCT - 7 * col2 - - col2 AS col2 FROM tab2 AS cor0
----
-156
-162
-228

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4254
SELECT - CAST( 46 AS SIGNED ) * col1 + col1 * 70 FROM tab0 AS cor0
----
2064
2184
2328

skipif mysql # not compatible
query I rowsort label-4254
SELECT - CAST ( 46 AS INTEGER ) * col1 + col1 * 70 FROM tab0 AS cor0
----
2064
2184
2328

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT ALL CAST( 56 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL CAST ( 56 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4256
SELECT DISTINCT CAST( col1 AS SIGNED ) * - col1 + col2 col0 FROM tab0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - col1 + col2 col0 FROM tab0
----
-7363
-8199
-9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT + - col2 * 85 + col1 FROM tab0 AS cor0
----
-2719
-6879
12

query I rowsort
SELECT ALL + - 26 AS col0 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT col2 + + col0 DIV 99 AS col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort label-4260
SELECT col2 + + col0 / 99 AS col2 FROM tab2 cor0
----
26
27
38

skipif mysql # not compatible
query I rowsort
SELECT + col1 * + col0 + + ( - ( col2 ) * CAST ( col2 AS REAL ) + - col1 ) AS col2 FROM tab0 AS cor0
----
1284
3297
889

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + cor0.col1 col2 FROM tab2 cor0
----
118
34
62

query I rowsort
SELECT DISTINCT 47 + col2 AS col1 FROM tab0
----
129
48
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4264
SELECT ALL - CAST( NULL AS SIGNED ) + 67 / tab2.col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT ALL - CAST ( NULL AS INTEGER ) + 67 / tab2.col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT ALL 42 + - col1 DIV col0 AS col0 FROM tab0
----
39
40
41

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL 42 + - col1 / col0 AS col0 FROM tab0
----
39
40
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-4266
SELECT DISTINCT - col2 DIV col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT - col2 / col1 col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col0 FROM tab2
----
50
50
50

query I rowsort
SELECT + + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT DISTINCT - 0 * + col0 + + ( 81 ) AS col2 FROM tab1 cor0
----
81

query I rowsort
SELECT ALL + + 90 + col2 FROM tab2 AS cor0
----
116
117
128

query I rowsort
SELECT - + col1 + cor0.col0 - + col2 * + 93 FROM tab2 AS cor0
----
-2399
-2535
-3472

query I rowsort
SELECT 0 + - col1 * - 30 * 90 FROM tab2 cor0
----
159300
45900
83700

query I rowsort
SELECT col0 + ( tab1.col0 ) * col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT ALL cor0.col0 * 42 AS col0 FROM tab0 AS cor0
----
1008
1470
3738

onlyif mysql # use DIV operator for integer division
query I rowsort label-4275
SELECT DISTINCT - + col0 DIV + col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - + col0 / + col1 FROM tab1 AS cor0
----
-6
0

query I rowsort
SELECT DISTINCT - + col1 + 70 FROM tab1 cor0
----
44
57
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4277
SELECT ALL + - col2 + - CAST( NULL AS DECIMAL ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4277
SELECT ALL + - col2 + - CAST ( NULL AS REAL ) * col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT DISTINCT + col1 DIV - 33 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
1087
6722

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT + col1 / - 33 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
1087
6722

query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col0 + - ( 54 ) * - col0 AS col0 FROM tab1 AS cor0
----
396
44416
87520

query I rowsort
SELECT DISTINCT - col2 * + col2 + col0 AS col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT ALL 95 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # use DIV operator for integer division
query I rowsort label-4283
SELECT DISTINCT col0 DIV + 8 AS col0 FROM tab0
----
11
3
4

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT col0 / + 8 AS col0 FROM tab0
----
11
3
4

query I rowsort
SELECT DISTINCT 0 * + cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
0

query I rowsort
SELECT ALL - 83 FROM tab0, tab0 AS cor0
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT DISTINCT + - col1 + - col2 AS col1 FROM tab2 AS cor0
----
-55
-58
-85

query I rowsort
SELECT col1 - + 99 * - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-107725
-2
-665585

onlyif mysql # use DIV operator for integer division
query I rowsort label-4288
SELECT cor0.col1 DIV - ( + cor0.col1 ) + col1 + col0 * + ( + col0 ) FROM tab1 cor0
----
34
4105
6412

skipif mysql # not compatible
query I rowsort label-4288
SELECT cor0.col1 / - ( + cor0.col1 ) + col1 + col0 * + ( + col0 ) FROM tab1 cor0
----
34
4105
6412

query I rowsort
SELECT + col2 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT - col2 * - ( ( col2 ) ) - + 27 * - col0 AS col2 FROM tab1 AS cor0
----
11376
2997
4977

query I rowsort
SELECT ALL + + col0 - - 39 FROM tab1 AS cor0
----
103
119
42

onlyif mysql # use DIV operator for integer division
query I rowsort label-4292
SELECT DISTINCT + - 79 * - 80 + col0 DIV CAST( 93 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
6320

skipif mysql # not compatible
query I rowsort label-4292
SELECT DISTINCT + - 79 * - 80 + col0 / CAST ( 93 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
6320

query I rowsort
SELECT col1 + cor0.col2 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698

query I rowsort
SELECT DISTINCT + 41 + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
127
132
138

query I rowsort
SELECT 16 * col1 AS col2 FROM tab0 AS cor0
----
1376
1456
1552

query I rowsort
SELECT - - 5 * cor0.col1 AS col2 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT + 71 * col2 AS col2 FROM tab0 AS cor0
----
2343
5822
71

query I rowsort
SELECT ALL col2 + col1 * - tab2.col2 * + col0 AS col1 FROM tab2
----
-119626
-50996
-5832

query I rowsort
SELECT DISTINCT + 37 * + col1 FROM tab1
----
370
481
962

query I rowsort
SELECT DISTINCT - + 31 * tab2.col2 FROM tab2, tab1, tab0 AS cor0
----
-1178
-806
-837

query I rowsort
SELECT 39 + col0 FROM tab2
----
117
118
46

query I rowsort
SELECT ALL - 54 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211

onlyif mysql # use DIV operator for integer division
query I rowsort label-4303
SELECT DISTINCT col1 DIV col1 col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT col1 / col1 col0 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab1
----
93

query I rowsort
SELECT DISTINCT + col0 * - ( - 92 ) FROM tab2 AS cor0
----
644
7176
7268

query I rowsort
SELECT - cor0.col2 * + 79 AS col2 FROM tab2 AS cor0
----
-2054
-2133
-3002

query I rowsort
SELECT ALL + col1 + ( + 86 + + cor0.col0 ) * col2 FROM tab0 AS cor0
----
14441
218
3716

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4308
SELECT + + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4308
SELECT + + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - cor0.col1 * - 91 + - col1 AS col0 FROM tab2 AS cor0
----
-1564
-2852
-5428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + col1 + 7 col2 FROM tab2 AS cor0
----
296
3488
968

query I rowsort
SELECT ALL col0 * - col1 * - col2 AS col2 FROM tab0
----
3395
664118
68112

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4312
SELECT - col2 * + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-1444
-676
-729

skipif mysql # not compatible
query I rowsort label-4312
SELECT - col2 * + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL col2 * 63 AS col1 FROM tab2 AS cor0
----
1638
1701
2394

query I rowsort
SELECT cor0.col1 * + 12 AS col0 FROM tab1 AS cor0
----
120
156
312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 55 col1 FROM tab1 AS cor0
----
2970
3135
5280

query I rowsort
SELECT DISTINCT + 46 + + col1 AS col0 FROM tab0
----
132
137
143

query I rowsort
SELECT 48 * + 73 * col2 AS col0 FROM tab2
----
133152
91104
94608

query I rowsort
SELECT - col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560

query I rowsort
SELECT + - 85 * + col0 + col2 FROM tab0 AS cor0
----
-2007
-2974
-7483

query I rowsort
SELECT 52 + 19 * col2 FROM tab2 AS cor0
----
546
565
774

skipif mysql # not compatible
query I rowsort
SELECT ( - col1 ) * col2 - + CAST ( 80 AS REAL ) AS col0 FROM tab1
----
-1328
-1484
-650

query I rowsort
SELECT + ( - 78 ) + col0 * + 14 FROM tab0
----
1168
258
412

onlyif mysql # use DIV operator for integer division
query I rowsort label-4323
SELECT + 8 + col1 DIV + 39 FROM tab2 AS cor0
----
8
8
9

skipif mysql # not compatible
query I rowsort label-4323
SELECT + 8 + col1 / + 39 FROM tab2 AS cor0
----
8
8
9

query I rowsort
SELECT + col0 + col1 * - col1 + col2 FROM tab1 AS cor0
----
-619
21
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT DISTINCT + col2 DIV + col0 + 99 AS col0 FROM tab0 AS cor0
----
100
99

skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT + col2 / + col0 + 99 AS col0 FROM tab0 AS cor0
----
100
99

query I rowsort
SELECT + + col1 * - cor0.col0 * col1 AS col0 FROM tab2 cor0
----
-22831
-271518
-6727

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 AS col2 FROM tab0 cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT ALL + col0 DIV + col2 + col1 - + col2 FROM tab1 AS cor0
----
-28
-46
-83

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL + col0 / + col2 + col1 - + col2 FROM tab1 AS cor0
----
-28
-46
-83

query I rowsort
SELECT DISTINCT - + cor0.col1 * + cor0.col2 * + ( col1 ) FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL col2 * col2 * col0 AS col1 FROM tab0
----
26136
35
598436

query I rowsort
SELECT + 42 * - col0 AS col2 FROM tab1 cor0
----
-126
-2688
-3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT ( col0 ) DIV col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT ( col0 ) / col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * + 79 AS col2 FROM tab2
----
-1343
-2449
-4661

query I rowsort
SELECT ALL ( - 74 + cor0.col1 ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to d7b2aaa226bf1f89e0e41f64ca4c8cde

query I rowsort
SELECT ALL + + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921

query I rowsort
SELECT cor0.col0 * + 77 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
315392
492800
693

query I rowsort
SELECT ALL + - 98 + + col2 * - col2 AS col2 FROM tab1 cor0
----
-3014
-3347
-9314

onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT DISTINCT - + col1 DIV - col2 + col2 col2 FROM tab0 AS cor0
----
35
83
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - + col1 / - col2 + col2 col2 FROM tab0 AS cor0
----
35
83
98

query I rowsort
SELECT ALL + 20 AS col2 FROM tab2
----
20
20
20

query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) + + col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + 43 * col0 + 49 FROM tab2 AS cor0
----
3403
3446
350

query I rowsort
SELECT + 9 * - cor0.col0 FROM tab1 AS cor0
----
-27
-576
-720

query I rowsort
SELECT DISTINCT 98 * - cor0.col1 + 73 + col0 FROM tab2 AS cor0
----
-1514
-2958
-5631

query I rowsort
SELECT ALL col1 + ( col2 ) FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT DISTINCT cor0.col0 * + 98 + col0 + col0 AS col2 FROM tab0 AS cor0
----
2400
3500
8900

query I rowsort
SELECT + col2 + 70 FROM tab0 AS cor0
----
103
152
71

onlyif mysql # use DIV operator for integer division
query I rowsort label-4348
SELECT + col0 DIV col0 + - col0 - col1 FROM tab0 AS cor0
----
-109
-131
-179

skipif mysql # not compatible
query I rowsort label-4348
SELECT + col0 / col0 + - col0 - col1 FROM tab0 AS cor0
----
-109
-131
-179

query I rowsort
SELECT DISTINCT + col2 + + 85 FROM tab2 cor0
----
111
112
123

query I rowsort
SELECT - - col1 + 19 * - col2 FROM tab2 AS cor0
----
-435
-482
-705

query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT col2 + - col1 * - tab2.col0 AS col1 FROM tab2
----
1381
244
4628

query I rowsort
SELECT - col0 * - tab0.col0 + col1 AS col2 FROM tab0
----
1322
662
8012

query I rowsort
SELECT + col2 * - col1 - - 10 FROM tab0
----
-2828
-7452
-87

query I rowsort
SELECT DISTINCT col2 * 86 + col1 + + col0 AS col1 FROM tab2 cor0
----
2360
2373
3364

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4356
SELECT ALL col1 + CAST( + col2 AS SIGNED ) * col0 + + 35 AS col0 FROM tab0 AS cor0
----
167
7424
913

skipif mysql # not compatible
query I rowsort label-4356
SELECT ALL col1 + CAST ( + col2 AS INTEGER ) * col0 + + 35 AS col0 FROM tab0 AS cor0
----
167
7424
913

query I rowsort
SELECT + col1 * + col2 * + col1 AS col1 FROM tab1 AS cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT col1 DIV + 30 + col0 FROM tab2 AS cor0
----
79
79
8

skipif mysql # not compatible
query I rowsort label-4358
SELECT col1 / + 30 + col0 FROM tab2 AS cor0
----
79
79
8

query I rowsort
SELECT 54 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
151
2892
7516

query I rowsort
SELECT ALL - col2 * ( 87 ) + col0 FROM tab2
----
-2184
-2342
-3227

query I rowsort
SELECT + col2 * col0 - col2 FROM tab1 AS cor0
----
108
3591
7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT - col1 + - ( col1 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-17
-35
-59

skipif mysql # not compatible
query I rowsort label-4362
SELECT - col1 + - ( col1 ) / col0 AS col2 FROM tab2 AS cor0
----
-17
-35
-59

query I rowsort
SELECT - 13 * col2 - col0 FROM tab0 cor0
----
-1155
-453
-48

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4364
SELECT ALL + tab0.col0 + + CAST( NULL AS SIGNED ) * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4364
SELECT ALL + tab0.col0 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT - col0 * col1 * - col1 AS col0 FROM tab2 cor0
----
22831
271518
6727

query I rowsort
SELECT ALL 36 * cor0.col1 + - col0 * col1 FROM tab2 AS cor0
----
-2478
-731
899

query I rowsort
SELECT DISTINCT - 61 * - col2 - - col2 * col1 FROM tab0 AS cor0
----
12464
158
4851

query I rowsort
SELECT 2 + - col2 FROM tab2 AS cor0
----
-24
-25
-36

query I rowsort
SELECT DISTINCT ( + tab0.col0 ) FROM tab0, tab2 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT cor0.col2 + col1 DIV 51 AS col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-4371
SELECT cor0.col2 + col1 / 51 AS col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col0 + 13 FROM tab2
----
20
91
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT 86 * col2 + col1 AS col0 FROM tab1 AS cor0
----
4670
4912
8269

query I rowsort
SELECT ALL 56 * + col1 + col1 + col1 FROM tab2 AS cor0
----
1798
3422
986

query I rowsort
SELECT DISTINCT 86 - + col1 FROM tab0 AS cor0
----
-11
-5
0

query I rowsort
SELECT + - col0 * col1 * col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-106059
-1492
-358930

query I rowsort
SELECT ALL - 40 + - cor0.col1 FROM tab1 AS cor0
----
-50
-53
-66

query I rowsort
SELECT DISTINCT + 40 - - col1 * col1 AS col0 FROM tab1 AS cor0
----
140
209
716

query I rowsort
SELECT DISTINCT + col1 * col0 * 95 AS col1 FROM tab2
----
127585
20615
437190

query I rowsort
SELECT DISTINCT - 90 AS col1 FROM tab2
----
-90

query I rowsort
SELECT ( 0 + + col1 ) FROM tab2
----
17
31
59

query I rowsort
SELECT DISTINCT ( + 18 ) * - col0 AS col2 FROM tab0
----
-1602
-432
-630

query I rowsort
SELECT - cor0.col2 * cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 9bb5096fcd17e3f131152e7a67a5338f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + tab0.col2 + tab0.col2 * - 41 ) col2 FROM tab0
----
-1320
-3280
-40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4386
SELECT + col0 DIV cor0.col1 AS col1 FROM tab2 cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4386
SELECT + col0 / cor0.col1 AS col1 FROM tab2 cor0
----
0
1
4

query I rowsort
SELECT - 76 * - 85 - col0 FROM tab1
----
6380
6396
6457

query I rowsort
SELECT + ( + 24 ) + + col0 * 52 FROM tab0
----
1272
1844
4652

query I rowsort
SELECT + 60 * col1 * + col0 AS col1 FROM tab0 AS cor0
----
123840
203700
485940

onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT - 91 DIV + col0 FROM tab0 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4390
SELECT - 91 / + col0 FROM tab0 AS cor0
----
-1
-2
-3

query I rowsort
SELECT - col1 * - col2 + 9 FROM tab0 AS cor0
----
106
2847
7471

query I rowsort
SELECT ALL - 12 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT DISTINCT col2 - col0 * + col1 * + col2 FROM tab1
----
-36423
-4158
-99744

query I rowsort
SELECT ALL + col1 + + cor0.col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT ALL + ( - cor0.col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT ( - col2 ) * + 54 * - col2 FROM tab2 AS cor0
----
36504
39366
77976

query I rowsort
SELECT + col0 - - 99 * col2 * - col1 FROM tab0
----
-280938
-738649
-9568

query I rowsort
SELECT - + col2 + + 38 FROM tab0 AS cor0
----
-44
37
5

query I rowsort
SELECT 61 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT col0 + 67 AS col2 FROM tab0 AS cor0
----
102
156
91

query I rowsort
SELECT + - ( - col1 ) + + col0 FROM tab0 cor0
----
110
132
180

query I rowsort
SELECT + col0 * 98 + cor0.col2 AS col2 FROM tab2 AS cor0
----
713
7670
7780

query I rowsort
SELECT 47 * - 97 FROM tab0 cor0
----
-4559
-4559
-4559

query I rowsort
SELECT DISTINCT col1 + 85 FROM tab2 cor0
----
102
116
144

query I rowsort
SELECT ALL - 4 * - col2 FROM tab2 AS cor0
----
104
108
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-4406
SELECT DISTINCT cor0.col1 DIV + 55 AS col0 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4406
SELECT DISTINCT cor0.col1 / + 55 AS col0 FROM tab2, tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + ( 15 ) * col0 + 43 AS col1 FROM tab2 AS cor0
----
1213
1228
148

query I rowsort
SELECT DISTINCT + ( 36 ) * - cor0.col1 AS col2 FROM tab2 cor0
----
-1116
-2124
-612

onlyif mysql # use DIV operator for integer division
query I rowsort label-4409
SELECT DISTINCT + cor0.col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-8
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT + cor0.col1 / - col0 AS col0 FROM tab1 AS cor0
----
-8
0

query I rowsort
SELECT 19 * 57 + - col1 * - 10 * ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
16423
7543
9453

query I rowsort
SELECT ALL - + ( - 87 ) + + col0 * + 14 AS col2 FROM tab1 AS cor0
----
1207
129
983

query I rowsort
SELECT + col2 * col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT - + 22 + - col0 AS col0 FROM tab1 AS cor0
----
-102
-25
-86

query I rowsort
SELECT - 4 * col2 FROM tab2 AS cor0
----
-104
-108
-152

query I rowsort
SELECT DISTINCT - ( col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 29 - col0 * + col1 FROM tab1 AS cor0
----
-1011
-49
-611

query I rowsort
SELECT - 41 + + col2 AS col2 FROM tab2 AS cor0
----
-14
-15
-3

query I rowsort
SELECT ALL + col0 + - 84 FROM tab1 AS cor0
----
-20
-4
-81

query I rowsort
SELECT ALL - + 59 + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
41
617

query I rowsort
SELECT + col2 + - 95 AS col1 FROM tab2 AS cor0
----
-57
-68
-69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT ALL + - CAST( NULL AS DECIMAL ) + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL + - CAST ( NULL AS REAL ) + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4423
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-4423
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT ALL + col0 DIV + 59 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL + col0 / + 59 AS col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + cor0.col0 * - col0 * col0 + 14 FROM tab2 cor0
----
-329
-474538
-493025

onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT + + col2 DIV + 46 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4426
SELECT + + col2 / + 46 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col0 + - tab1.col1 FROM tab1
----
136
3638
7667

query I rowsort
SELECT DISTINCT 95 + cor0.col0 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
102
173
174

query I rowsort
SELECT ALL - - 40 AS col0 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT ALL - + col2 DIV col0 + + 60 FROM tab2 cor0
----
57
60
60

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL - + col2 / col0 + + 60 FROM tab2 cor0
----
57
60
60

query I rowsort
SELECT ALL 94 * - col2 - col1 FROM tab0 AS cor0
----
-191
-3188
-7799

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab0 cor1
----
243 values hashing to 2ba47a833971d4c4b0287e849fb0cfb8

query I rowsort
SELECT DISTINCT - + col2 + 31 AS col2 FROM tab1 AS cor0
----
-23
-26
-65

query I rowsort
SELECT + col0 + - ( 21 ) FROM tab1 AS cor0
----
-18
43
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be6822a5beb60dd05700c5edd2c682b6

query I rowsort
SELECT 47 + col2 + + tab1.col2 AS col0 FROM tab1
----
155
161
239

query I rowsort
SELECT - col0 - col2 * col2 * col0 AS col0 FROM tab0
----
-26160
-598525
-70

query I rowsort
SELECT DISTINCT col1 + ( - col1 ) FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT ALL tab0.col0 DIV CAST( 63 AS SIGNED ) + col2 * - ( - ( col0 ) * + 57 ) FROM tab0
----
1995
415987
45144

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL tab0.col0 / CAST ( 63 AS INTEGER ) + col2 * - ( - ( col0 ) * + 57 ) FROM tab0
----
1995
415987
45144

query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3

query I rowsort
SELECT ALL - col2 * 79 + col0 * col0 AS col1 FROM tab1 AS cor0
----
-1184
-407
-4257

onlyif mysql # use DIV operator for integer division
query I rowsort label-4442
SELECT ALL + + cor0.col1 DIV col0 FROM tab1 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-4442
SELECT ALL + + cor0.col1 / col0 FROM tab1 AS cor0
----
0
0
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT DISTINCT + col0 + - col1 * + col2 + - col0 DIV - 13 FROM tab2
----
-1450
-561
-830

skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + col0 + - col1 * + col2 + - col0 / - 13 FROM tab2
----
-1450
-561
-830

query I rowsort
SELECT + - col1 * - col1 * cor0.col0 AS col0 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT - col0 + - col2 * + ( + 61 ) AS col2 FROM tab1 AS cor0
----
-3297
-3541
-5936

query I rowsort
SELECT 29 * + col2 FROM tab1 AS cor0
----
1566
1653
2784

query I rowsort
SELECT - 20 * - col2 - col2 AS col1 FROM tab0
----
1558
19
627

query I rowsort
SELECT col1 * + col0 * - 86 FROM tab0
----
-177504
-291970
-696514

onlyif mysql # use DIV operator for integer division
query I rowsort label-4449
SELECT - cor0.col2 DIV + 40 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea

skipif mysql # not compatible
query I rowsort label-4449
SELECT - cor0.col2 / + 40 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f7964c9c62ba2640d854c2a70d834dea

query I rowsort
SELECT ALL + col1 * col0 * 74 + - col2 FROM tab1
----
47303
5718
76864

query I rowsort
SELECT ALL col1 * col0 + - 85 * + col2 AS col2 FROM tab0
----
-741
1129
3310

query I rowsort
SELECT DISTINCT - col1 * + col0 * - 54 AS col2 FROM tab1 AS cor0
----
34560
4212
56160

onlyif mysql # use DIV operator for integer division
query I rowsort label-4453
SELECT + 90 * col0 DIV + CAST( + 73 AS SIGNED ) AS col1 FROM tab0
----
109
29
43

skipif mysql # not compatible
query I rowsort label-4453
SELECT + 90 * col0 / + CAST ( + 73 AS INTEGER ) AS col1 FROM tab0
----
109
29
43

query I rowsort
SELECT col0 * + col0 * - ( + 80 * tab1.col1 ) AS col1 FROM tab1
----
-18720
-3276800
-6656000

query I rowsort
SELECT cor0.col1 - col2 FROM tab1 AS cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - + col1 - + col2 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT + col1 * + tab2.col2 + + col2 * - col1 * col0 FROM tab2
----
-118118
-5022
-50388

onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT DISTINCT + col0 + - 23 DIV - col1 FROM tab1
----
3
66
81

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT + col0 + - 23 / - col1 FROM tab1
----
3
66
81

query I rowsort
SELECT DISTINCT col1 + - ( - col1 ) AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT + col2 * ( cor0.col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT col2 * - ( 44 ) FROM tab1
----
-2376
-2508
-4224

query I rowsort
SELECT DISTINCT - 38 + + ( col2 ) FROM tab0 AS cor0
----
-37
-5
44

query I rowsort
SELECT ALL + col0 * 7 + - cor0.col0 * 78 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
-280
-4266
-936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col1 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT - + 58 + - col1 FROM tab1 AS cor0
----
-68
-71
-84

query I rowsort
SELECT DISTINCT + col0 * col0 + - cor0.col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 * - 88 FROM tab2 cor0
----
134914
56769
73649

query I rowsort
SELECT ALL + - 77 + - col0 AS col1 FROM tab2 AS cor0
----
-155
-156
-84

query I rowsort
SELECT - col2 + 55 AS col2 FROM tab1 AS cor0
----
-2
-41
1

query I rowsort
SELECT ALL 38 FROM tab2 cor0
----
38
38
38

query I rowsort
SELECT DISTINCT - - col1 * - 12 + col0 FROM tab2 AS cor0
----
-125
-365
-630

query I rowsort
SELECT + + cor0.col1 * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT tab2.col0 * col0 + col2 FROM tab2
----
6110
6279
76

query I rowsort
SELECT + - col2 * cor0.col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT col2 + col0 * 63 AS col0 FROM tab0 AS cor0
----
1545
2206
5689

query I rowsort
SELECT col0 + ( - 63 + col1 ) AS col2 FROM tab1 AS cor0
----
-34
11
30

query I rowsort
SELECT - cor0.col2 * col1 - - 33 AS col2 FROM tab1 AS cor0
----
-1215
-1371
-537

query I rowsort
SELECT ALL + col1 * ( 77 ) AS col1 FROM tab2 AS cor0
----
1309
2387
4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT DISTINCT + cor0.col0 DIV + 85 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT + cor0.col0 / + 85 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT - col1 * col0 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
-573
-931
2

query I rowsort
SELECT + cor0.col0 * 33 + col2 AS col2 FROM tab0 AS cor0
----
1156
3019
825

query I rowsort
SELECT ALL + col2 - 82 AS col1 FROM tab2 AS cor0
----
-44
-55
-56

query I rowsort
SELECT ALL + col2 * + 59 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
3264
4003
6704

query I rowsort
SELECT DISTINCT cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT + col2 + 6 FROM tab0 AS cor0
----
39
7
88

query I rowsort
SELECT ALL col0 * + tab1.col2 + col0 AS col2 FROM tab1
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-4488
SELECT col0 DIV 62 + + cor0.col0 DIV col0 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4488
SELECT col0 / 62 + + cor0.col0 / col0 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT + col0 + - cor0.col1 + col0 * - col2 FROM tab0 AS cor0
----
-7300
-854
-97

query I rowsort
SELECT DISTINCT col1 * - 65 AS col0 FROM tab2 AS cor0
----
-1105
-2015
-3835

query I rowsort
SELECT 76 * col0 FROM tab0
----
1824
2660
6764

query I rowsort
SELECT + tab0.col1 * tab0.col0 AS col2 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + - col2 * 1 + col0 FROM tab1 AS cor0
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT ALL col0 + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4494
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + cor0.col2 + + cor0.col0 FROM tab0 AS cor0
----
-29
-61
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 45 col2 FROM tab2 AS cor0
----
-1395
-2655
-765

query I rowsort
SELECT ALL - col0 * ( ( col1 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL tab2.col0 * cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to eb103eabe531563e672e54874d056f9f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4499
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * - col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813

onlyif mysql # use DIV operator for integer division
query I rowsort label-4501
SELECT - - cor0.col0 * 50 DIV + cor0.col2 FROM tab0 cor0
----
1750
36
54

skipif mysql # not compatible
query I rowsort label-4501
SELECT - - cor0.col0 * 50 / + cor0.col2 FROM tab0 cor0
----
1750
36
54

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab1
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT 23 DIV tab1.col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4503
SELECT 23 / tab1.col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL 35 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT ALL - 20 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT + CAST( NULL AS SIGNED ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4506
SELECT + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - ( - col2 ) FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - + ( + ( col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 * - tab1.col1 + col1 ) col0 FROM tab1
----
-1235
-1378
-560

onlyif mysql # use DIV operator for integer division
query I rowsort label-4510
SELECT - 11 + + col1 DIV - col0 FROM tab0 AS cor0
----
-12
-13
-14

skipif mysql # not compatible
query I rowsort label-4510
SELECT - 11 + + col1 / - col0 FROM tab0 AS cor0
----
-12
-13
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col2 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT 89 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad

onlyif mysql # use DIV operator for integer division
query I rowsort label-4513
SELECT 19 DIV col0 + - 57 AS col0 FROM tab0
----
-57
-57
-57

skipif mysql # not compatible
query I rowsort label-4513
SELECT 19 / col0 + - 57 AS col0 FROM tab0
----
-57
-57
-57

query I rowsort
SELECT ALL - col2 + + col1 * ( 14 ) AS col1 FROM tab1 AS cor0
----
310
83
86

query I rowsort
SELECT 67 + - col0 FROM tab2 AS cor0
----
-11
-12
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4516
SELECT + col2 + + col1 * - ( ( cor0.col1 ) * CAST( 43 AS SIGNED ) + - col2 ) FROM tab2 AS cor0
----
-11743
-148123
-40459

skipif mysql # not compatible
query I rowsort label-4516
SELECT + col2 + + col1 * - ( ( cor0.col1 ) * CAST ( 43 AS INTEGER ) + - col2 ) FROM tab2 AS cor0
----
-11743
-148123
-40459

onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT ALL + 18 DIV cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
18
31
59

skipif mysql # not compatible
query I rowsort label-4517
SELECT ALL + 18 / cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
18
31
59

query I rowsort
SELECT ( - col0 ) * ( - col1 ) + - col2 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
-207296
-736240
-8670

query I rowsort
SELECT DISTINCT - 80 * col0 + + 97 * 55 + + col1 FROM tab1 AS cor0
----
-1052
225
5121

onlyif mysql # use DIV operator for integer division
query I rowsort label-4520
SELECT ALL col0 * col0 + col0 DIV - 36 AS col0 FROM tab1 AS cor0
----
4095
6398
9

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL col0 * col0 + col0 / - 36 AS col0 FROM tab1 AS cor0
----
4095
6398
9

query I rowsort
SELECT + 73 + cor0.col2 FROM tab0 AS cor0
----
106
155
74

query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT DISTINCT cor0.col0 - col2 FROM tab0 cor0
----
-9
34
7

query I rowsort
SELECT col0 * col2 + - 99 AS col0 FROM tab1 AS cor0
----
3549
63
7581

query I rowsort
SELECT DISTINCT col2 + - col2 * 41 FROM tab1 AS cor0
----
-2160
-2280
-3840

query I rowsort
SELECT + col0 * - cor0.col2 + - 1 FROM tab0 AS cor0
----
-36
-7299
-793

query I rowsort
SELECT DISTINCT + - col0 * 77 + cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-151
-4861
-6051

onlyif mysql # use DIV operator for integer division
query I rowsort label-4528
SELECT DISTINCT + - cor0.col1 DIV + col0 + col1 FROM tab2 AS cor0
----
17
27
59

skipif mysql # not compatible
query I rowsort label-4528
SELECT DISTINCT + - cor0.col1 / + col0 + col1 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT col0 * - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT + + cor0.col2 + 35 * 6 AS col1 FROM tab2 AS cor0
----
236
237
248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + + 9 col0 FROM tab2 AS cor0
----
-22
-50
-8

query I rowsort
SELECT - 38 + col0 - 44 AS col2 FROM tab0
----
-47
-58
7

query I rowsort
SELECT ALL col2 + + ( col1 ) + - col2 AS col0 FROM tab2 cor0
----
17
31
59

query I rowsort
SELECT ALL + + ( col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4535
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + 25 col1 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4535
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + 25 col1 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4536
SELECT 3 DIV - ( - col0 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4536
SELECT 3 / - ( - col0 ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 35 * + 61 FROM tab1
----
-2135
-2135
-2135

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 85 * col0 FROM tab0
----
-2040
-2975
-7565

query I rowsort
SELECT ALL + cor0.col2 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT ALL - col0 * - col2 + col0 * col1 AS col0 FROM tab1 AS cor0
----
240
4288
8720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT + col0 * + col1 - - col1 * col0 AS col0 FROM tab0 cor0
----
16198
4128
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) - + col2 col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL 40 + + col0 + + col0 FROM tab2 AS cor0
----
196
198
54

query I rowsort
SELECT + 54 * col0 AS col0 FROM tab1 cor0
----
162
3456
4320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 16 + col1 + - 13 * col1 col0 FROM tab2
----
-292
404
60

query I rowsort
SELECT col1 * 78 + - col0 + col1 FROM tab2
----
1264
2442
4583

query I rowsort
SELECT + col2 - + ( col1 ) FROM tab2
----
-33
-4
21

query I rowsort
SELECT ALL + ( 2 ) + col1 AS col2 FROM tab1 AS cor0
----
12
15
28

query I rowsort
SELECT + - ( - col1 ) * - col2 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - ( ( col0 ) ) + - col0 * col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-106176
-1526
-359034

query I rowsort
SELECT DISTINCT 72 - 27 FROM tab2 AS cor0
----
45

query I rowsort
SELECT + ( 3 ) FROM tab0
----
3
3
3

query I rowsort
SELECT + 99 * col1 AS col2 FROM tab1 AS cor0
----
1287
2574
990

query I rowsort
SELECT col2 * 49 AS col0 FROM tab2 AS cor0
----
1274
1323
1862

query I rowsort
SELECT col0 * 30 FROM tab2 AS cor0
----
210
2340
2370

query I rowsort
SELECT DISTINCT - + col2 + 45 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1116
393
489

onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT + col1 DIV - col2 - col0 FROM tab0 AS cor0
----
-132
-26
-90

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + col1 / - col2 - col0 FROM tab0 AS cor0
----
-132
-26
-90

query I rowsort
SELECT ALL - + col2 * - col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4561
SELECT ALL - CAST( NULL AS SIGNED ) * + 12 - - col2 * 23 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL - CAST ( NULL AS INTEGER ) * + 12 - - col2 * 23 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * col2 * + col2 AS col2 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT - 24 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-24

query I rowsort
SELECT + cor0.col0 * + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5

query I rowsort
SELECT + - col2 * + 86 + ( - col0 ) FROM tab2 AS cor0
----
-2314
-2329
-3347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col1 col2 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT col0 * 5 + col1 FROM tab2 AS cor0
----
412
449
66

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT DISTINCT - col2 + - CAST( col2 * - col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
1406
650
702

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT - col2 + - CAST ( col2 * - col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - col2 + col2 + - col1 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT - 87 * + col0 * - col0 + 78 DIV col1 FROM tab1
----
356359
556806
786

skipif mysql # not compatible
query I rowsort label-4570
SELECT - 87 * + col0 * - col0 + 78 / col1 FROM tab1
----
356359
556806
786

query I rowsort
SELECT ( - col1 ) * col2 AS col2 FROM tab1
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4572
SELECT - col1 + ( col0 + + col2 ) DIV col1 FROM tab0
----
-86
-90
-97

skipif mysql # not compatible
query I rowsort label-4572
SELECT - col1 + ( col0 + + col2 ) / col1 FROM tab0
----
-86
-90
-97

query I rowsort
SELECT DISTINCT col2 + 1 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT + col2 + - col1 * cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4575
SELECT DISTINCT - tab0.col2 + + CAST( NULL AS SIGNED ) FROM tab0, tab1, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - tab0.col2 + + CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * ( - 75 ) col2 FROM tab0
----
6450
6825
7275

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2, tab1, tab1 AS cor0, tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2, tab1, tab1 AS cor0, tab0
----
NULL

query I rowsort
SELECT + + ( col1 ) + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT 68 DIV col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-96

skipif mysql # not compatible
query I rowsort label-4579
SELECT 68 / col0 + - col1 FROM tab0 AS cor0
----
-84
-91
-96

query I rowsort
SELECT + ( cor0.col1 ) + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-4581
SELECT ALL col0 DIV ( 73 + + tab2.col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL col0 / ( 73 + + tab2.col0 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 55 + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e4e30d5c2dfade8b541004dcf33d5bef

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4583
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4583
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
86
91
97

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE ( tab1.col0 ) < NULL
----

query I rowsort
SELECT col1 + + 4 * col1 FROM tab1 AS cor0
----
130
50
65

query I rowsort
SELECT - - col0 * 43 + - col1 AS col0 FROM tab0 cor0
----
1408
3736
946

query I rowsort
SELECT DISTINCT + 78 FROM tab2, tab1, tab2 cor0
----
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-4588
SELECT ALL + col0 + tab1.col0 + + tab1.col2 DIV col0 FROM tab1
----
128
161
24

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + col0 + tab1.col0 + + tab1.col2 / col0 FROM tab1
----
128
161
24

query I rowsort
SELECT DISTINCT col1 + - col0 * + 97 * col2 FROM tab2
----
-18302
-196657
-291177

query I rowsort
SELECT ALL + col2 + col0 * col2 AS col2 FROM tab0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 + + col1 + col0 AS col0 FROM tab1
----
138
173
32

onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT ALL - col1 * tab1.col0 + tab1.col1 DIV col1 + col0 FROM tab1
----
-575
-74
-959

skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - col1 * tab1.col0 + tab1.col1 / col1 + col0 FROM tab1
----
-575
-74
-959

query I rowsort
SELECT 62 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT DISTINCT 16 * col1 * col0 AS col2 FROM tab2 cor0
----
21488
3472
73632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-4596
SELECT ( col1 ) DIV - 26 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4596
SELECT ( col1 ) / - 26 AS col0 FROM tab0 AS cor0
----
-3
-3
-3

query I rowsort
SELECT + + col1 * + 51 + + col1 FROM tab1 AS cor0
----
1352
520
676

query I rowsort
SELECT + col1 + ( - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * + col2 + - col1 - - col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4600
SELECT ALL - - col2 * col2 DIV + cor0.col1 FROM tab1 AS cor0
----
112
324
708

skipif mysql # not compatible
query I rowsort label-4600
SELECT ALL - - col2 * col2 / + cor0.col1 FROM tab1 AS cor0
----
112
324
708

onlyif mysql # use DIV operator for integer division
query I rowsort label-4601
SELECT cor0.col1 + col2 DIV + 74 FROM tab1 AS cor0
----
10
14
26

skipif mysql # not compatible
query I rowsort label-4601
SELECT cor0.col1 + col2 / + 74 FROM tab1 AS cor0
----
10
14
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-4602
SELECT + col1 * 55 DIV + cor0.col1 FROM tab2 cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4602
SELECT + col1 * 55 / + cor0.col1 FROM tab2 cor0
----
55
55
55

query I rowsort
SELECT col2 + + 77 - - col1 * + col2 * 30 FROM tab0 AS cor0
----
224019
2988
85250

query I rowsort
SELECT + cor0.col1 - col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + cor0.col0 * - col2 + + 12 FROM tab0 AS cor0
----
-23
-7286
-780

query I rowsort
SELECT - cor0.col1 * - 37 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 94de0e41710bf3fdbda3e5ce4b23e12d

query I rowsort
SELECT ALL - col2 + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * col1 + tab1.col0 * col1 FROM tab1
----
1210
1482
2288

query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + col0 * - col0 col2 FROM tab2 AS cor0
----
-47
-6082
-6239

query I rowsort
SELECT + col2 * col2 + + 59 FROM tab2 cor0
----
1503
735
788

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col0 FROM tab1 cor0
----
19
19
19

query I rowsort
SELECT ALL col2 * - col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4615
SELECT + col2 / + CAST( NULL AS SIGNED ) + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4615
SELECT + col2 / + CAST ( NULL AS INTEGER ) + col1 / col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 + - col1 * 22 AS col0 FROM tab0 AS cor0
----
-1859
-1920
-2133

query I rowsort
SELECT DISTINCT col1 * 53 + ( col2 ) AS col0 FROM tab0 AS cor0
----
4591
4905
5142

query I rowsort
SELECT - - tab1.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT DISTINCT + - col1 + - cor0.col2 AS col0 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT ALL - col0 + - ( + col1 * + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444

query I rowsort
SELECT ALL + col2 * col0 * - ( col1 * col1 ) + col0 * 72 AS col0 FROM tab0
----
-326795
-5855904
-60428330

query I rowsort
SELECT ALL 9 + + col2 FROM tab0
----
10
42
91

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 * tab1.col2 AS col0 FROM tab1
----
119821
32500
75842

query I rowsort
SELECT 5 + tab2.col2 FROM tab2
----
31
32
43

query I rowsort
SELECT DISTINCT - col2 - - col1 * col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + col2 * col2 * - col0 AS col2 FROM tab0
----
-26136
-35
-598436

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE tab1.col2 * col1 NOT BETWEEN NULL AND - col0 * - col2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col2 FROM tab0
----
0

query I rowsort
SELECT col0 - col0 * col2 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT col2 + + col1 * tab0.col1 FROM tab0
----
7429
8363
9410

query I rowsort
SELECT col1 * col1 * col1 + col0 FROM tab0
----
636080
753660
912708

query I rowsort
SELECT DISTINCT - col2 + - col1 * + col1 FROM tab0
----
-7429
-8363
-9410

query I rowsort
SELECT col0 * col0 * col0 + - col1 * col0 FROM tab1
----
-51
261504
510960

query I rowsort
SELECT ALL col1 + col2 + + tab2.col1 FROM tab2
----
144
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 + col1 + col1 * - col1 col1 FROM tab0
----
-15488
-8102
-9347

onlyif mysql # use DIV operator for integer division
query I rowsort label-4636
SELECT - col0 DIV tab1.col0 + col0 FROM tab1
----
2
63
79

skipif mysql # not compatible
query I rowsort label-4636
SELECT - col0 / tab1.col0 + col0 FROM tab1
----
2
63
79

query I rowsort
SELECT col2 * - col1 * + col2 AS col1 FROM tab2
----
-22599
-24548
-39884

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL IN ( col0 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4639
SELECT ALL tab2.col1 DIV col1 + + col0 * + tab2.col0 + col0 FROM tab2
----
57
6163
6321

skipif mysql # not compatible
query I rowsort label-4639
SELECT ALL tab2.col1 / col1 + + col0 * + tab2.col0 + col0 FROM tab2
----
57
6163
6321

onlyif mysql # use DIV operator for integer division
query I rowsort label-4640
SELECT tab0.col1 DIV - col1 + - col1 AS col1 FROM tab0
----
-87
-92
-98

skipif mysql # not compatible
query I rowsort label-4640
SELECT tab0.col1 / - col1 + - col1 AS col1 FROM tab0
----
-87
-92
-98

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col2 * col0 + + tab2.col2 + - col0 * col0 )
----

query I rowsort
SELECT DISTINCT - col1 + col1 + col1 * col2 FROM tab1
----
1248
1404
570

query I rowsort
SELECT ALL - col0 * + col1 * col0 + - col1 + col1 FROM tab2
----
-106097
-1519
-358956

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col2 )
----

query I rowsort
SELECT - 79 * col2 + - col0 AS col1 FROM tab1
----
-4269
-4567
-7664

query I rowsort
SELECT ALL + 37 FROM tab2, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4647
SELECT - CAST( col2 AS SIGNED ) - - col0 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-4647
SELECT - CAST ( col2 AS INTEGER ) - - col0 FROM tab1
----
-16
-51
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4648
SELECT CAST( NULL AS SIGNED ) * + col1 - + col1 * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT CAST ( NULL AS INTEGER ) * + col1 - + col1 * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-157464
-185193
-884736

query I rowsort
SELECT ALL - cor0.col0 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT - col2 + - col1 * + col1 * + 2 AS col2 FROM tab1 AS cor0
----
-1406
-257
-434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 58 col2 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + col0 * 39 FROM tab1
----
117
2496
3120

query I rowsort
SELECT ALL col0 * + ( - col2 ) * + col2 AS col2 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - - 48 * cor0.col0 - + 51 AS col0 FROM tab1 AS cor0
----
3021
3789
93

query I rowsort
SELECT DISTINCT + col1 + + tab1.col2 FROM tab1
----
109
67
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4657
SELECT ALL + + CAST( NULL AS SIGNED ) * + 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + + CAST ( NULL AS INTEGER ) * + 51 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col0 + col1 * + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
237
41024
83280

query I rowsort
SELECT + col0 - - col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-4660
SELECT ALL - 34 * + cor0.col1 + + 73 DIV + 41 FROM tab1 AS cor0
----
-339
-441
-883

skipif mysql # not compatible
query I rowsort label-4660
SELECT ALL - 34 * + cor0.col1 + + 73 / + 41 FROM tab1 AS cor0
----
-339
-441
-883

query I rowsort
SELECT DISTINCT 81 + - cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
-1262
-136
-4521

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * + col0 + - col1 col2 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT - col0 + - col0 * 41 FROM tab1 cor0
----
-126
-2688
-3360

query I rowsort
SELECT + + ( col1 ) + 89 + - 62 FROM tab2 cor0
----
44
58
86

query I rowsort
SELECT ALL - 64 AS col1 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # use DIV operator for integer division
query I rowsort label-4666
SELECT + 82 * - cor0.col2 + cor0.col1 DIV + 79 + - col0 FROM tab1 AS cor0
----
-4431
-4738
-7952

skipif mysql # not compatible
query I rowsort label-4666
SELECT + 82 * - cor0.col2 + cor0.col1 / + 79 + - col0 FROM tab1 AS cor0
----
-4431
-4738
-7952

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT DISTINCT - - col1 * - CAST( NULL AS SIGNED ) + + col0 / cor0.col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) + + col0 / cor0.col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4668
SELECT ALL + col1 * col0 + + col1 * col1 DIV + 30 FROM tab1 AS cor0
----
100
1045
643

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL + col1 * col0 + + col1 * col1 / + 30 FROM tab1 AS cor0
----
100
1045
643

query I rowsort
SELECT ALL + + col0 * + 6 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-6190
-945
209

query I rowsort
SELECT DISTINCT cor0.col0 * + cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 7bf5e0e3ec1be8bea20f7ba84b6c99c3

query I rowsort
SELECT DISTINCT - 46 * ( + cor0.col1 ) + 80 * 26 FROM tab0 AS cor0
----
-1876
-2106
-2382

query I rowsort
SELECT - 34 AS col0 FROM tab0 cor0
----
-34
-34
-34

query I rowsort
SELECT + 20 * cor0.col1 FROM tab2 AS cor0
----
1180
340
620

onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT ALL cor1.col0 DIV 57 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL cor1.col0 / 57 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

query I rowsort
SELECT DISTINCT + col0 * 87 + - col1 * + col1 * cor0.col0 FROM tab0 AS cor0
----
-175416
-326270
-729266

query I rowsort
SELECT col1 * + ( col1 ) AS col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT ALL - ( cor0.col0 ) * col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - 93 + - col0 * col1 FROM tab1 cor0
----
-1133
-171
-733

onlyif mysql # use DIV operator for integer division
query I rowsort label-4680
SELECT - cor0.col2 DIV 75 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

skipif mysql # not compatible
query I rowsort label-4680
SELECT - cor0.col2 / 75 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9

query I rowsort
SELECT ALL 57 + - 89 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL + + col0 + 58 AS col2 FROM tab1 AS cor0
----
122
138
61

query I rowsort
SELECT DISTINCT + + 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT ALL - col1 * col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4685
SELECT DISTINCT - col2 DIV col0 col1 FROM tab0 AS cor0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4685
SELECT DISTINCT - col2 / col0 col1 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT ALL 91 + col2 AS col2 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT ALL - col2 * col2 + 59 FROM tab2 AS cor0
----
-1385
-617
-670

query I rowsort
SELECT ALL - col0 * + col0 * 51 + + col1 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-2685
-314827
-319617

query I rowsort
SELECT ALL col1 * 23 AS col0 FROM tab0 AS cor0
----
1978
2093
2231

query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT - 11 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4692
SELECT ALL - col1 * CAST( col1 AS SIGNED ) + col0 * - 42 FROM tab2 AS cor0
----
-1255
-3607
-6757

skipif mysql # not compatible
query I rowsort label-4692
SELECT ALL - col1 * CAST ( col1 AS INTEGER ) + col0 * - 42 FROM tab2 AS cor0
----
-1255
-3607
-6757

query I rowsort
SELECT - - col1 + + 67 * + 31 + + col0 FROM tab0 cor0
----
2187
2209
2257

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( 15 ) col2 FROM tab2
----
-105
-1170
-1185

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 AS col2 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT ALL 11 * - 39 FROM tab2 AS cor0
----
-429
-429
-429

query I rowsort
SELECT DISTINCT - + 59 * col0 - col1 AS col0 FROM tab2 AS cor0
----
-444
-4661
-4678

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4698
SELECT ALL + cor0.col2 / - CAST( NULL AS SIGNED ) col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + cor0.col2 / - CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + ( + 30 ) AS col1 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT ALL col2 + - tab0.col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + cor0.col1 * - col2 - cor0.col1 FROM tab2 AS cor0
----
1475
629
806

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * - 57 FROM tab1 AS cor0
----
-171
-3648
-4560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * 44 col2 FROM tab0 AS cor0
----
-3784
-4004
-4268

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4705
SELECT + CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4705
SELECT + CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT DISTINCT - 50 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-47
-50

skipif mysql # not compatible
query I rowsort label-4706
SELECT DISTINCT - 50 + col2 / col0 AS col0 FROM tab2 AS cor0
----
-47
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * 44 + - col1 * ( - col2 ) col2 FROM tab0 AS cor0
----
11378
1637
3894

query I rowsort
SELECT + col1 * + col0 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT col1 * - ( col0 ) - + col0 AS col2 FROM tab2
----
-1422
-224
-4680

query I rowsort
SELECT ALL - col0 + col2 * + col2 * - 32 FROM tab0 AS cor0
----
-215257
-34872
-67

query I rowsort
SELECT ALL + col1 * + cor0.col2 + + col2 + cor0.col1 AS col1 FROM tab2 cor0
----
1619
701
895

query I rowsort
SELECT DISTINCT - 76 + col2 AS col1 FROM tab2 AS cor0
----
-38
-49
-50

onlyif mysql # use DIV operator for integer division
query I rowsort label-4713
SELECT - col1 DIV - col0 + + col1 FROM tab2 AS cor0
----
17
35
59

skipif mysql # not compatible
query I rowsort label-4713
SELECT - col1 / - col0 + + col1 FROM tab2 AS cor0
----
17
35
59

query I rowsort
SELECT ALL col1 * - 47 + - tab2.col0 FROM tab2
----
-1464
-2851
-878

query I rowsort
SELECT ALL + 30 + - ( col2 ) FROM tab2
----
-8
3
4

query I rowsort
SELECT - 38 FROM tab0, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT col1 * - col0 + + col1 * col0 AS col0 FROM tab2
----
0

query I rowsort
SELECT + - col0 + + col2 * 25 * col0 AS col1 FROM tab1 AS cor0
----
191920
4047
91136

query I rowsort
SELECT DISTINCT 41 + col1 * col0 FROM tab0
----
2105
3436
8140

onlyif mysql # use DIV operator for integer division
query I rowsort label-4720
SELECT 19 DIV + col2 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-4720
SELECT 19 / + col2 FROM tab0
----
0
0
19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4721
SELECT DISTINCT - col0 + + ( + tab0.col2 ) * - col1 * ( col1 * - CAST( NULL AS SIGNED ) + - col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - col0 + + ( + tab0.col2 ) * - col1 * ( col1 * - CAST ( NULL AS INTEGER ) + - col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 41 * cor0.col0 * - col1 + - col0 + col1 FROM tab2 AS cor0
----
-188701
-55125
-8873

onlyif mysql # use DIV operator for integer division
query I rowsort label-4723
SELECT + col0 + + col1 DIV - ( col2 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-4723
SELECT + col0 + + col1 / - ( col2 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + col1 + col2 + col0 AS col2 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT ALL - col0 * + col2 - - col1 FROM tab2 cor0
----
-158
-1969
-2985

query I rowsort
SELECT col0 * 24 AS col2 FROM tab1 cor0
----
1536
1920
72

query I rowsort
SELECT - 54 * col2 FROM tab2
----
-1404
-1458
-2052

query I rowsort
SELECT - + 99 + 75 * - col0 AS col1 FROM tab0 AS cor0
----
-1899
-2724
-6774

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4729
SELECT col1 * + CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab1
----
1344
1458
627

skipif mysql # not compatible
query I rowsort label-4729
SELECT col1 * + CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col0 * col1 col0 FROM tab1 cor0
----
-104
-1053
-650

query I rowsort
SELECT + ( + col1 ) + col1 * 20 FROM tab0 AS cor0
----
1806
1911
2037

onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT ALL 97 DIV ( col0 * + col2 ) AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4732
SELECT ALL 97 / ( col0 * + col2 ) AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + ( col0 ) * + col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ( col2 ) * cor0.col0 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT ALL + col2 + 47 AS col0 FROM tab2 cor0
----
73
74
85

query I rowsort
SELECT ALL + 92 AS col0 FROM tab1 cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 81 col0 FROM tab0 AS cor0
----
6966
7371
7857

onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT DISTINCT + + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + + col0 / - cor0.col1 FROM tab1 AS cor0
----
-6
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT col1 + col1 * col0 DIV col2 FROM tab1 AS cor0
----
21
23
27

skipif mysql # not compatible
query I rowsort label-4739
SELECT col1 + col1 * col0 / col2 FROM tab1 AS cor0
----
21
23
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - + col0 * tab0.col2 col0 FROM tab0
----
1272
3360
801

query I rowsort
SELECT ALL - col1 + - 90 FROM tab2 cor0
----
-107
-121
-149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 + col2 col2 FROM tab0 AS cor0
----
-18
14
63

query I rowsort
SELECT cor0.col0 + col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-231
-40896
-83120

query I rowsort
SELECT ALL - - cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT + - col1 * col1 * col0 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727

onlyif mysql # use DIV operator for integer division
query I rowsort label-4746
SELECT + col1 + col2 DIV - col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-4746
SELECT + col1 + col2 / - col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT ALL - col0 * col0 + col1 AS col2 FROM tab2 cor0
----
-18
-6025
-6224

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4748
SELECT CAST( - 5 AS SIGNED ) FROM tab0 AS cor0
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-4748
SELECT CAST ( - 5 AS INTEGER ) FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ALL - ( - col2 ) + - col1 FROM tab1 cor0
----
28
47
83

query I rowsort
SELECT ALL 25 + - 68 AS col0 FROM tab0 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + col2 * - col0 + + 41 FROM tab1 AS cor0
----
-121
-3607
-7639

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4752
SELECT CAST( + col0 + + col2 AS SIGNED ) AS col0 FROM tab2
----
104
117
34

skipif mysql # not compatible
query I rowsort label-4752
SELECT CAST ( + col0 + + col2 AS INTEGER ) AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - 6 + + col2 AS col0 FROM tab1 AS cor0
----
48
51
90

query I rowsort
SELECT - col2 + col0 * col1 FROM tab2 cor0
----
1305
190
4576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 86 col2 FROM tab1 cor0
----
86

query I rowsort
SELECT ALL + 70 * col2 AS col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT - + cor0.col0 * - 55 FROM tab2 AS cor0
----
385
4290
4345

query I rowsort
SELECT DISTINCT + + col1 + ( + col2 ) FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + - col1 * 63 FROM tab1 cor0
----
-1638
-630
-819

query I rowsort
SELECT ALL + - cor0.col2 + + cor0.col1 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT col0 - ( + col1 ) * col0 FROM tab2 cor0
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT - col2 - + ( col2 + + col1 ) FROM tab1 AS cor0
----
-124
-134
-205

onlyif mysql # use DIV operator for integer division
query I rowsort label-4763
SELECT ALL + col0 DIV - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
26
4
7

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL + col0 / - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
26
4
7

query I rowsort
SELECT DISTINCT + - col2 * ( - col0 ) FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT tab2.col2 * 95 AS col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 712d7d2be79dbf30406889dd8b857c57

query I rowsort
SELECT + 81 + col1 * - col0 * - col2 FROM tab0
----
3476
664199
68193

query I rowsort
SELECT ALL + col1 + 13 FROM tab0 AS cor0
----
104
110
99

query I rowsort
SELECT DISTINCT + col0 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT DISTINCT + - col0 DIV - col2 col1 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + - col0 / - col2 col1 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL + - col0 * col0 + + col2 * col2 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT - col0 + + col2 * + col1 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT + tab1.col2 * + col1 AS col0 FROM tab1
----
1248
1404
570

query I rowsort
SELECT - - 81 * - col2 + + 54 * + ( + col2 ) + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1404
-1482
-2496

query I rowsort
SELECT - 32 * col0 FROM tab1
----
-2048
-2560
-96

query I rowsort
SELECT - cor0.col0 * - ( - col2 ) * + cor0.col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT + + 12 * + col2 - - cor0.col1 AS col1 FROM tab0 AS cor0
----
1075
109
482

query I rowsort
SELECT - 80 - + col2 FROM tab1
----
-134
-137
-176

query I rowsort
SELECT - col2 + + col0 AS col2 FROM tab2
----
-20
41
52

query I rowsort
SELECT col1 * col2 + ( + col1 * col2 ) FROM tab1
----
1140
2496
2808

query I rowsort
SELECT 60 + - cor0.col0 * 36 AS col2 FROM tab0 AS cor0
----
-1200
-3144
-804

query I rowsort
SELECT ALL cor0.col1 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL + 36 * - col1 AS col2 FROM tab1 AS cor0
----
-360
-468
-936

query I rowsort
SELECT DISTINCT + 69 * col2 + col0 + - col0 AS col2 FROM tab0 AS cor0
----
2277
5658
69

query I rowsort
SELECT + - ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT - - ( col0 ) * col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT + 14 + cor0.col1 FROM tab2 AS cor0
----
31
45
73

query I rowsort
SELECT - - cor0.col1 * - col1 + - col0 FROM tab2 AS cor0
----
-3559
-368
-968

onlyif mysql # use DIV operator for integer division
query I rowsort label-4788
SELECT + ( 1 ) DIV + col0 + + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4788
SELECT + ( 1 ) / + col0 + + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT DISTINCT 78 FROM tab1, tab1 cor0
----
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4790
SELECT ALL + col1 * - CAST( NULL AS SIGNED ) + 18 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL + col1 * - CAST ( NULL AS INTEGER ) + 18 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 + ( col0 * - col2 ) FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT + ( 73 ) * col0 FROM tab0
----
1752
2555
6497

query I rowsort
SELECT + 77 + 39 AS col0 FROM tab2 AS cor0
----
116
116
116

onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ALL - cor0.col2 + - 59 DIV + col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-96

skipif mysql # not compatible
query I rowsort label-4794
SELECT ALL - cor0.col2 + - 59 / + col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-96

query I rowsort
SELECT ALL - - ( col1 ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT + + 82 * + col0 AS col2 FROM tab2 AS cor0
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 * - col2 - - col1 col0 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT + ( + 90 ) FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT + ( ( - tab2.col0 ) ) FROM tab2
----
-7
-78
-79

query I rowsort
SELECT ALL + + 72 * 71 FROM tab2 AS cor0
----
5112
5112
5112

query I rowsort
SELECT - 3 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-12
-256
-320

query I rowsort
SELECT + cor0.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 5 * - col1 col1 FROM tab1 AS cor0
----
130
50
65

onlyif mysql # use DIV operator for integer division
query I rowsort label-4805
SELECT ALL - + col2 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL - + col2 / col1 AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 + + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * - col1 * + ( 1 ) + col0 + - col2 AS col0 FROM tab2 AS cor0
----
330
3533
941

query I rowsort
SELECT DISTINCT - - 34 AS col1 FROM tab2 AS cor0
----
34

query I rowsort
SELECT col1 + col1 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT DISTINCT col1 * + 11 FROM tab0
----
1001
1067
946

onlyif mysql # use DIV operator for integer division
query I rowsort label-4811
SELECT col0 DIV ( - ( col1 ) ) FROM tab1
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-4811
SELECT col0 / ( - ( col1 ) ) FROM tab1
----
-6
-6
0

query I rowsort
SELECT DISTINCT tab0.col1 * - col0 * - tab0.col0 FROM tab0
----
118825
49536
720811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + cor0.col1 * + col2 col2 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT ALL 28 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4815
SELECT + cor0.col1 + + ( + col2 ) * col2 DIV col0 AS col1 FROM tab2 AS cor0
----
135
35
67

skipif mysql # not compatible
query I rowsort label-4815
SELECT + cor0.col1 + + ( + col2 ) * col2 / col0 AS col1 FROM tab2 AS cor0
----
135
35
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT DISTINCT CAST( tab0.col2 AS SIGNED ) AS col0 FROM tab0, tab2 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT CAST ( tab0.col2 AS INTEGER ) AS col0 FROM tab0, tab2 AS cor0
----
1
33
82

query I rowsort
SELECT ALL ( - col2 ) * cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4818
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT 98 * + col2 + + col2 FROM tab1 AS cor0
----
5346
5643
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col2 col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL - ( + 4 * - col0 ) FROM tab0
----
140
356
96

query I rowsort
SELECT col0 + cor0.col0 * 60 FROM tab1 cor0
----
183
3904
4880

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4823
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-4823
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - + col1 * col2 * + 15 FROM tab0 AS cor0
----
-111930
-1455
-42570

onlyif mysql # use DIV operator for integer division
query I rowsort label-4825
SELECT cor0.col0 + col1 DIV 96 FROM tab0 cor0
----
24
36
89

skipif mysql # not compatible
query I rowsort label-4825
SELECT cor0.col0 + col1 / 96 FROM tab0 cor0
----
24
36
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4826
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4826
SELECT + col2 + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4827
SELECT + CAST( 74 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

skipif mysql # not compatible
query I rowsort label-4827
SELECT + CAST ( 74 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT ALL + 76 AS col1 FROM tab0
----
76
76
76

query I rowsort
SELECT DISTINCT + + 95 - + cor0.col0 AS col0 FROM tab2 cor0
----
16
17
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + - ( col1 ) * 43 FROM tab2 AS cor0
----
-1333
-2537
-731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97

query I rowsort
SELECT ALL - ( col2 + - ( - 90 ) ) AS col2 FROM tab0
----
-123
-172
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-4835
SELECT - 51 * col0 DIV + col0 + col1 AS col1 FROM tab1
----
-25
-38
-41

skipif mysql # not compatible
query I rowsort label-4835
SELECT - 51 * col0 / + col0 + col1 AS col1 FROM tab1
----
-25
-38
-41

query I rowsort
SELECT DISTINCT cor0.col0 - - 14 AS col0 FROM tab1, tab2 AS cor0
----
21
92
93

query I rowsort
SELECT - - col1 + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT DISTINCT - 90 * + col2 FROM tab1 cor0
----
-4860
-5130
-8640

query I rowsort
SELECT DISTINCT col1 + cor0.col2 * ( + col0 ) FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT - 53 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
15317
184493
50933

query I rowsort
SELECT ALL tab1.col0 * ( - 51 ) * - col0 + - col2 * + col1 * tab1.col0 + col1 AS col0 FROM tab1
----
-3727
172426
226573

query I rowsort
SELECT cor0.col1 * tab2.col0 FROM tab2, tab1 cor0
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23

query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT col1 + + ( tab0.col1 ) AS col0 FROM tab0
----
172
182
194

query I rowsort
SELECT ALL + col0 + col0 * 32 FROM tab2
----
231
2574
2607

query I rowsort
SELECT - + 40 * + col0 AS col0 FROM tab1 AS cor0
----
-120
-2560
-3200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4847
SELECT ALL - - CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - - CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL 54 * - col0 FROM tab1
----
-162
-3456
-4320

query I rowsort
SELECT - ( 69 ) * col1 FROM tab2 cor0
----
-1173
-2139
-4071

query I rowsort
SELECT + col0 * - 36 * col0 AS col2 FROM tab2 AS cor0
----
-1764
-219024
-224676

query I rowsort
SELECT + 8 + col0 * col0 FROM tab1 AS cor0
----
17
4104
6408

query I rowsort
SELECT + + 3 * col2 + col1 FROM tab2 cor0
----
112
131
137

query I rowsort
SELECT DISTINCT - - ( - col1 ) * cor0.col1 + + 44 AS col2 FROM tab1 AS cor0
----
-125
-56
-632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor0.col2 + ( col2 ) * + col1 FROM tab2 AS cor0
----
1560
684
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT + col2 DIV col0 AS col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4856
SELECT + col2 / col0 AS col0 FROM tab2 cor0
----
0
0
3

query I rowsort
SELECT ALL - - ( col0 ) * col2 + col2 + - ( - col0 + col2 ) * + 57 FROM tab2 AS cor0
----
-924
5018
5377

query I rowsort
SELECT DISTINCT + - 28 + col0 FROM tab0 cor0
----
-4
61
7

query I rowsort
SELECT ( + tab1.col1 * tab1.col2 ) + col2 AS col1 FROM tab1
----
1344
1458
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 * + col2 col0 FROM tab0
----
12
396
984

query I rowsort
SELECT ALL - ( + col1 ) * + col0 AS col2 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 - col0 col0 FROM tab0 AS cor0
----
-4
50
61

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4863
SELECT ALL - CAST( NULL AS SIGNED ) * - 84 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - CAST ( NULL AS INTEGER ) * - 84 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 15 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
50
7313
807

query I rowsort
SELECT DISTINCT - + col1 * 33 + col1 AS col2 FROM tab1 AS cor0
----
-320
-416
-832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 + 61 col0 FROM tab0 AS cor0
----
61
61
61

query I rowsort
SELECT col0 + - col1 * - ( + 27 + col0 ) AS col0 FROM tab0 cor0
----
10645
4410
6049

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-4869
SELECT 40 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4

skipif mysql # not compatible
query I rowsort label-4869
SELECT 40 / - col1 FROM tab1 AS cor0
----
-1
-3
-4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4870
SELECT DISTINCT ( + col2 ) * CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT ( + col2 ) * CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL 31 + + col2 * + col1 AS col1 FROM tab0
----
128
2869
7493

query I rowsort
SELECT - col1 * - ( col0 ) - 86 AS col2 FROM tab0
----
1978
3309
8013

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4873
SELECT ALL - col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL - col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4874
SELECT + col1 - - CAST( NULL AS DECIMAL ) * + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4874
SELECT + col1 - - CAST ( NULL AS REAL ) * + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4875
SELECT DISTINCT + col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT + col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 39 FROM tab1 AS cor0
----
-49
-52
-65

query I rowsort
SELECT + col1 * + 90 + + col1 AS col1 FROM tab0 AS cor0
----
7826
8281
8827

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4878
SELECT DISTINCT col2 - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4878
SELECT DISTINCT col2 - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - ( 77 ) + col0 + - 43 * + 91 * + col2 FROM tab0 AS cor0
----
-131646
-327091
-3955

query I rowsort
SELECT DISTINCT col0 * - ( 0 ) * - col2 AS col2 FROM tab1 cor0
----
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT + - col2 * + CAST( 93 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534

skipif mysql # not compatible
query I rowsort label-4881
SELECT + - col2 * + CAST ( 93 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2418
-2511
-3534

query I rowsort
SELECT DISTINCT col1 + - 15 FROM tab0 AS cor0
----
71
76
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 * - 84 + 10 * - col2 col2 FROM tab0 cor0
----
1686
2930
6656

query I rowsort
SELECT + col0 * col0 - col0 FROM tab0
----
1190
552
7832

onlyif mysql # use DIV operator for integer division
query I rowsort label-4885
SELECT - + col0 DIV ( cor0.col0 ) + + col2 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-4885
SELECT - + col0 / ( cor0.col0 ) + + col2 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-4886
SELECT DISTINCT + col0 + col1 + col0 DIV + col0 FROM tab0 AS cor0
----
111
133
181

skipif mysql # not compatible
query I rowsort label-4886
SELECT DISTINCT + col0 + col1 + col0 / + col0 FROM tab0 AS cor0
----
111
133
181

query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 - col2 * + col1 FROM tab0 cor0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-4888
SELECT ALL + + col2 DIV - 89 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4888
SELECT ALL + + col2 / - 89 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + 26 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT DISTINCT + col2 * - 71 AS col0 FROM tab2 AS cor0
----
-1846
-1917
-2698

query I rowsort
SELECT cor1.col1 + - 31 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 41eafda9cf40fd9637967a389ccfe1b2

onlyif mysql # use DIV operator for integer division
query I rowsort label-4892
SELECT col1 * 3 + + col0 - col0 DIV - 29 AS col2 FROM tab2
----
100
132
257

skipif mysql # not compatible
query I rowsort label-4892
SELECT col1 * 3 + + col0 - col0 / - 29 AS col2 FROM tab2
----
100
132
257

query I rowsort
SELECT col2 * - col2 + - 59 * - tab0.col2 FROM tab0
----
-1886
58
858

query I rowsort
SELECT + + col1 * ( - ( col0 ) ) + 97 AS col2 FROM tab0 cor0
----
-1967
-3298
-8002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4895
SELECT col0 + CAST( 80 AS SIGNED ) FROM tab2 AS cor0
----
158
159
87

skipif mysql # not compatible
query I rowsort label-4895
SELECT col0 + CAST ( 80 AS INTEGER ) FROM tab2 AS cor0
----
158
159
87

query I rowsort
SELECT ALL col0 - + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - col1 * - col1 * + cor0.col1 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT 13 + + 95 AS col0 FROM tab0
----
108
108
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col0 col1 FROM tab0 AS cor0
----
-177504
-329315
-737009

query I rowsort
SELECT + + ( + col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 0 + col1 AS col1 FROM tab2
----
17
31
59

query I rowsort
SELECT 19 * - col2 FROM tab0
----
-1558
-19
-627

onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT + col1 DIV + col2 col2 FROM tab0
----
1
2
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4903
SELECT + col1 / + col2 col2 FROM tab0
----
1
2
97

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968

query I rowsort
SELECT ALL col2 * - col1 * - col0 + + tab1.col2 AS col0 FROM tab1
----
36537
4266
99936

query I rowsort
SELECT + + 41 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4907
SELECT + CAST( - 95 AS SIGNED ) + - col2 * - col2 FROM tab2 AS cor0
----
1349
581
634

skipif mysql # not compatible
query I rowsort label-4907
SELECT + CAST ( - 95 AS INTEGER ) + - col2 * - col2 FROM tab2 AS cor0
----
1349
581
634

query I rowsort
SELECT ALL ( - col2 ) * col0 * col1 + - col2 FROM tab1 AS cor0
----
-36537
-4266
-99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT + - CAST( col2 AS SIGNED ) * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-4909
SELECT + - CAST ( col2 AS INTEGER ) * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT - 22 * - 9 AS col2 FROM tab2 AS cor0
----
198
198
198

query I rowsort
SELECT col2 * col2 + + tab0.col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2, tab2 AS cor0
----
99

query I rowsort
SELECT col2 * - 53 FROM tab2 AS cor0
----
-1378
-1431
-2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * - ( + col0 ) col2 FROM tab1 AS cor0
----
-1664
-2080
-78

query I rowsort
SELECT DISTINCT - 47 * col0 AS col1 FROM tab2 AS cor0
----
-329
-3666
-3713

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd

query I rowsort
SELECT DISTINCT + - cor0.col0 * ( + cor0.col1 ) + + col1 - col2 FROM tab2 AS cor0
----
-1364
-213
-4569

query I rowsort
SELECT ALL + + 19 * col1 AS col1 FROM tab1 AS cor0
----
190
247
494

query I rowsort
SELECT ALL + - cor0.col1 * + col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col0 + col1 * col2 * col0 AS col1 FROM tab1 AS cor0
----
36544
4215
99920

query III rowsort
SELECT * FROM tab1 WHERE tab1.col0 NOT IN ( col2 * - col0 + col0 * col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < col2 + col2
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT + col2 NOT BETWEEN col1 AND ( - col2 )
----

query I rowsort
SELECT col0 + + col0 * col0 + tab2.col0 FROM tab2
----
6240
63
6399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT col1 IN ( + tab1.col1 / + col0 )
----
54
57
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + - col1 * - col0 col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT - cor0.col1 * cor0.col1 * - col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT col1 * - tab1.col1 AS col1 FROM tab1
----
-100
-169
-676

query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT col1 DIV col1 + col1 + - col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4930
SELECT col1 / col1 + col1 + - col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * - cor0.col1 + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
-232
-2805
1155

query I rowsort
SELECT - col1 * - col2 + col0 + + col1 * + col1 AS col0 FROM tab2 AS cor0
----
1014
1805
5093

query I rowsort
SELECT col2 * col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
378
4056
6004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * col0 + - col0 + col1 col1 FROM tab2
----
6065
6179
73

query I rowsort
SELECT col1 * - col2 + - tab0.col2 AS col2 FROM tab0
----
-2871
-7544
-98

query I rowsort
SELECT col2 + - col2 + - col1 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL - col0 * + col1 - col1 AS col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT DISTINCT 58 + + cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
68
71
84

query I rowsort
SELECT + - cor0.col2 + - 96 AS col0 FROM tab2 AS cor0
----
-122
-123
-134

onlyif mysql # use DIV operator for integer division
query I rowsort label-4940
SELECT DISTINCT + + col1 - - cor0.col1 DIV + 30 FROM tab0 AS cor0
----
100
88
94

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT + + col1 - - cor0.col1 / + 30 FROM tab0 AS cor0
----
100
88
94

query I rowsort
SELECT col2 + + 51 * - ( - col0 ) AS col1 FROM tab2 AS cor0
----
384
4004
4067

query I rowsort
SELECT ALL + col1 * - ( col1 ) + - col0 * - col2 FROM tab0 AS cor0
----
-6604
-9374
-983

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col2 FROM tab1
----
-96

query I rowsort
SELECT col2 + + 78 * 17 FROM tab2 AS cor0
----
1352
1353
1364

query I rowsort
SELECT ALL col0 + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT + col1 * col0 - col0 FROM tab0
----
2040
3360
8010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + - 27 AS col2 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT + 62 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT col0 * 47 * col1 FROM tab0 AS cor0
----
159565
380653
97008

query I rowsort
SELECT - col2 * 51 + + 81 FROM tab2
----
-1245
-1296
-1857

onlyif mysql # use DIV operator for integer division
query I rowsort label-4952
SELECT col1 DIV + 54 - ( col1 ) AS col1 FROM tab0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-4952
SELECT col1 / + 54 - ( col1 ) AS col1 FROM tab0
----
-85
-90
-96

query I rowsort
SELECT 7 * ( - col0 + - 17 ) AS col2 FROM tab0
----
-287
-364
-742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + + col1 * col2 col2 FROM tab0 AS cor0
----
0
2752
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + - col0 col1 FROM tab1 AS cor0
----
-9
68
7

query I rowsort
SELECT ALL - 92 * + cor0.col2 AS col0 FROM tab0 AS cor0
----
-3036
-7544
-92

onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT + col2 DIV 59 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4957
SELECT + col2 / 59 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 29 - - col2 FROM tab2
----
-2
-3
9

query I rowsort
SELECT DISTINCT + 22 * + col1 AS col0 FROM tab0
----
1892
2002
2134

query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab2, tab0 AS cor0
----
49

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4961
SELECT + CAST( - 26 AS SIGNED ) * + col2 AS col0 FROM tab2
----
-676
-702
-988

skipif mysql # not compatible
query I rowsort label-4961
SELECT + CAST ( - 26 AS INTEGER ) * + col2 AS col0 FROM tab2
----
-676
-702
-988

query I rowsort
SELECT ALL col1 * + col1 + + col2 - 7 AS col1 FROM tab0
----
7422
8356
9403

onlyif mysql # use DIV operator for integer division
query I rowsort label-4963
SELECT - col0 + col0 DIV 44 AS col2 FROM tab1 AS cor0
----
-3
-63
-79

skipif mysql # not compatible
query I rowsort label-4963
SELECT - col0 + col0 / 44 AS col2 FROM tab1 AS cor0
----
-3
-63
-79

query I rowsort
SELECT DISTINCT + 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL - col0 + col1 + + ( col2 ) FROM tab1 AS cor0
----
29
3
77

query I rowsort
SELECT ALL + + 41 + col2 FROM tab1 AS cor0
----
137
95
98

query I rowsort
SELECT DISTINCT + col1 * - col2 - + col1 AS col0 FROM tab1 AS cor0
----
-1261
-1430
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * - col0 col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT - col0 + cor0.col0 * - 47 FROM tab2 AS cor0
----
-336
-3744
-3792

query I rowsort
SELECT ALL - tab2.col1 * tab2.col1 + + col2 + + col2 * + tab2.col0 AS col2 FROM tab2
----
-1427
-745
2751

query I rowsort
SELECT + tab0.col0 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT ALL - col0 + col2 + + tab1.col2 FROM tab1
----
105
112
50

query I rowsort
SELECT DISTINCT 46 * + col0 + - col0 FROM tab2
----
315
3510
3555

query I rowsort
SELECT ALL 68 + col0 FROM tab2
----
146
147
75

query I rowsort
SELECT ALL - 3 + - col1 AS col1 FROM tab1
----
-13
-16
-29

onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT ALL - 7 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4977
SELECT ALL - 7 / col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 6 + + col1 AS col1 FROM tab2
----
23
37
65

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7

query I rowsort
SELECT DISTINCT - tab0.col1 + col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col0 * + col1 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT DISTINCT - - cor0.col2 * cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
22599
24548
39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-4983
SELECT ALL + + cor0.col0 DIV col2 FROM tab0 AS cor0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + + cor0.col0 / col2 FROM tab0 AS cor0
----
0
1
35

query I rowsort
SELECT - col2 * - 9 AS col0 FROM tab1 AS cor0
----
486
513
864

onlyif mysql # use DIV operator for integer division
query I rowsort label-4985
SELECT - col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4985
SELECT - col1 / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT cor0.col0 * 12 + 51 FROM tab1 AS cor0
----
1011
819
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT ALL - + cor0.col0 * + CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL - + cor0.col0 * + CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4988
SELECT DISTINCT - col0 * - CAST( ( col0 ) AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

skipif mysql # not compatible
query I rowsort label-4988
SELECT DISTINCT - col0 * - CAST ( ( col0 ) AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

query I rowsort
SELECT + col0 * 88 + + col2 FROM tab2 cor0
----
643
6890
6990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT ALL col0 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * - 1 col0 FROM tab0 AS cor0
----
-53
-9
-96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4993
SELECT - - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4993
SELECT - - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + + col1 + 11 FROM tab0 AS cor0
----
102
108
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT ALL + col0 DIV ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
0
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4996
SELECT ALL + col0 / ( + cor0.col1 ) col1 FROM tab1 AS cor0
----
0
6
6

query I rowsort
SELECT + cor0.col1 * - col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702

query I rowsort
SELECT ALL ( col0 ) + - col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT ALL 73 - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1517
749
802

onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT ALL + ( + col0 ) * col2 + 58 DIV ( col2 ) AS col0 FROM tab0 AS cor0
----
7298
793
93

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + ( + col0 ) * col2 + 58 / ( col2 ) AS col0 FROM tab0 AS cor0
----
7298
793
93

skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT + col2 * + 94 AS col2 FROM tab1 AS cor0
----
5076
5358
9024

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + cor0.col0 AS REAL ) + + col1 - col2 / - col2 AS col1 FROM tab0 AS cor0
----
111
133
181

query I rowsort
SELECT ALL + 29 + 93 AS col2 FROM tab0 AS cor0
----
122
122
122

query I rowsort
SELECT ALL - 78 + - col0 AS col1 FROM tab1 AS cor0
----
-142
-158
-81

query I rowsort
SELECT DISTINCT - 31 + - col2 * - col1 AS col0 FROM tab1 AS cor0
----
1217
1373
539

query I rowsort
SELECT ALL + 90 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
157
170
199

query I rowsort
SELECT ALL + cor0.col2 + col2 * - col2 FROM tab1 cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT - col1 * col1 + col1 * + col1 - - cor0.col0 FROM tab2 AS cor0
----
7
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5010
SELECT DISTINCT + CAST( 28 AS SIGNED ) - + col2 AS col0 FROM tab0 AS cor0
----
-5
-54
27

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT + CAST ( 28 AS INTEGER ) - + col2 AS col0 FROM tab0 AS cor0
----
-5
-54
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * + col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT ALL col1 + 16 DIV col1 AS col1 FROM tab0 cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL col1 + 16 / col1 AS col1 FROM tab0 cor0
----
86
91
97

query I rowsort
SELECT DISTINCT + col0 * + col1 + + col2 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT + 4 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa

query I rowsort
SELECT DISTINCT ( col2 ) * ( + col0 * - col1 ) FROM tab0 AS cor0
----
-3395
-664118
-68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-5016
SELECT ALL - cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5016
SELECT ALL - cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT 33 * - col1 FROM tab0 AS cor0
----
-2838
-3003
-3201

query I rowsort
SELECT DISTINCT ( + col1 ) - - col1 AS col0 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT col1 * 41 FROM tab0
----
3526
3731
3977

query I rowsort
SELECT ALL - 53 AS col0 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT 91 + col2 AS col2 FROM tab1 AS cor0
----
145
148
187

onlyif mysql # use DIV operator for integer division
query I rowsort label-5022
SELECT ALL 47 + col1 DIV - cor0.col2 AS col1 FROM tab0 cor0
----
-50
45
46

skipif mysql # not compatible
query I rowsort label-5022
SELECT ALL 47 + col1 / - cor0.col2 AS col1 FROM tab0 cor0
----
-50
45
46

query I rowsort
SELECT ALL 97 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
17
33
94

query I rowsort
SELECT - col2 * + col2 + + 93 FROM tab0 AS cor0
----
-6631
-996
92

query I rowsort
SELECT + col2 * - col1 * - 84 FROM tab2 AS cor0
----
128856
54264
70308

query I rowsort
SELECT - ( col1 ) + tab0.col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 34 FROM tab2, tab0 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT DISTINCT 82 AS col1 FROM tab0
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT 20 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5029
SELECT 20 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT DISTINCT col1 + - ( + col0 ) + col0 DIV ( cor0.col2 ) FROM tab1 AS cor0
----
-53
-67
23

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT col1 + - ( + col0 ) + col0 / ( cor0.col2 ) FROM tab1 AS cor0
----
-53
-67
23

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5031
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 23 * cor0.col1 col1 FROM tab1 AS cor0
----
-220
-286
-572

query I rowsort
SELECT ALL col0 + ( + 53 ) FROM tab2 AS cor0
----
131
132
60

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5034
SELECT - + cor0.col2 + + CAST( col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2805
7380
96

skipif mysql # not compatible
query I rowsort label-5034
SELECT - + cor0.col2 + + CAST ( col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT + - col2 + 36 FROM tab0 cor0
----
-46
3
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col1 + col1 * + col0 col2 FROM tab1 AS cor0
----
1210
1482
2288

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5037
SELECT col1 * 1 * - col2 + col2 / - 80 + + ( - col0 ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5037
SELECT col1 * 1 * - col2 + col2 / - 80 + + ( - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * 41 AS col1 FROM tab2 AS cor0
----
-1271
-2419
-697

query I rowsort
SELECT DISTINCT - + col1 * 11 + ( col0 ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1031
-830
-889

query I rowsort
SELECT + + col2 * - col2 - - col1 FROM tab0 AS cor0
----
-1003
-6633
96

query I rowsort
SELECT + cor0.col2 + 56 AS col1 FROM tab1 AS cor0
----
110
113
152

query I rowsort
SELECT + cor0.col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT + + cor0.col1 * col1 + col0 + + col1 AS col1 FROM tab1 AS cor0
----
174
262
705

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 col0 FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729

query I rowsort
SELECT col0 * ( col2 ) + - col0 * - 89 FROM tab0 AS cor0
----
15219
2928
3150

query I rowsort
SELECT - - ( col2 ) * + col0 + col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5048
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5048
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-5049
SELECT + col0 * col1 DIV + col1 + 86 AS col2 FROM tab2 AS cor0
----
164
165
93

skipif mysql # not compatible
query I rowsort label-5049
SELECT + col0 * col1 / + col1 + 86 AS col2 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT ALL - 26 + 15 AS col0 FROM tab0 AS cor0
----
-11
-11
-11

query I rowsort
SELECT DISTINCT - - 80 * cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
6913
7362
7761

query I rowsort
SELECT ALL - - cor0.col1 * + 30 FROM tab0 cor0
----
2580
2730
2910

query I rowsort
SELECT DISTINCT - col1 * 48 + - col2 - + 31 AS col0 FROM tab1 AS cor0
----
-1333
-568
-751

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 162169e743caf7b1ab855c7985eb36ff

onlyif mysql # use DIV operator for integer division
query I rowsort label-5055
SELECT ALL - - col1 DIV - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL - - col1 / - col0 + + col2 FROM tab0 AS cor0
----
-1
30
81

query I rowsort
SELECT + col0 * + 21 AS col2 FROM tab0 AS cor0
----
1869
504
735

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5057
SELECT CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5057
SELECT CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80

query I rowsort
SELECT DISTINCT tab1.col2 + - 66 AS col2 FROM tab1, tab1 AS cor0
----
-12
-9
30

onlyif mysql # use DIV operator for integer division
query I rowsort label-5059
SELECT col1 DIV 77 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-5059
SELECT col1 / 77 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL + cor0.col2 + ( - col0 ) + col2 FROM tab2 AS cor0
----
-26
-3
47

query I rowsort
SELECT + col1 + tab1.col0 - col0 FROM tab1
----
10
13
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5063
SELECT + col0 * tab1.col2 DIV - 17 FROM tab1
----
-214
-451
-9

skipif mysql # not compatible
query I rowsort label-5063
SELECT + col0 * tab1.col2 / - 17 FROM tab1
----
-214
-451
-9

query I rowsort
SELECT + col1 + - ( + col2 ) AS col0 FROM tab1 cor0
----
-28
-47
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col0 FROM tab1
----
-109
-67
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT ( col2 ) DIV col0 AS col0 FROM tab2 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-5066
SELECT ( col2 ) / col0 AS col0 FROM tab2 AS cor0
----
0
0
3

query I rowsort
SELECT DISTINCT - col1 + col0 * - 19 + 58 AS col0 FROM tab1
----
-1168
-1475
-25

query I rowsort
SELECT - 42 * col2 FROM tab1 AS cor0
----
-2268
-2394
-4032

query I rowsort
SELECT + col2 + col1 * col0 AS col0 FROM tab1 cor0
----
1136
132
697

query I rowsort
SELECT ALL + + 27 AS col1 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT col0 * - col1 - + 18 FROM tab2 AS cor0
----
-1361
-235
-4620

query I rowsort
SELECT DISTINCT col2 + + col2 * - 68 FROM tab1 AS cor0
----
-3618
-3819
-6432

query I rowsort
SELECT DISTINCT + - col1 * col2 * col2 + col2 * + col2 FROM tab1 AS cor0
----
-110592
-29241
-72900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col0 * - col1 * + col1 col2 FROM tab2 AS cor0
----
-22793
-271492
-6700

query I rowsort
SELECT ALL 46 * - col0 FROM tab2 AS cor0
----
-322
-3588
-3634

query I rowsort
SELECT ALL 86 + col0 FROM tab2 AS cor0
----
164
165
93

query I rowsort
SELECT DISTINCT - + 30 * - cor0.col1 + + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-3796
-6010
771

query I rowsort
SELECT + col0 + - cor0.col2 + col1 FROM tab0 AS cor0
----
131
77
98

query I rowsort
SELECT ALL col2 + 95 * + col0 FROM tab2 AS cor0
----
692
7436
7543

query I rowsort
SELECT DISTINCT - col2 * + 91 * 96 + col0 AS col2 FROM tab2 AS cor0
----
-227058
-235865
-331889

query I rowsort
SELECT + col1 * col1 * - 25 + - cor0.col2 + + ( + col0 * col1 + - ( 47 ) ) AS col1 FROM tab0 AS cor0
----
-182916
-199055
-231878

query I rowsort
SELECT - col2 * 65 FROM tab2 AS cor0
----
-1690
-1755
-2470

query I rowsort
SELECT DISTINCT - col1 * + 6 * col0 AS col0 FROM tab1 cor0
----
-3840
-468
-6240

onlyif mysql # use DIV operator for integer division
query I rowsort label-5084
SELECT DISTINCT - 77 DIV col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT - 77 / col2 FROM tab1
----
-1
0

query I rowsort
SELECT - ( - col1 ) + - col2 + - col1 AS col1 FROM tab2
----
-26
-27
-38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5086
SELECT CAST( NULL AS SIGNED ) + + col0 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-5086
SELECT CAST ( NULL AS INTEGER ) + + col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 + col0 + - col0 * - 24 FROM tab0 cor0
----
2314
624
910

query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 FROM tab2 cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + ( col0 ) - + col1 AS col2 FROM tab1 AS cor0
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT DISTINCT - col2 * 80 AS col1 FROM tab0
----
-2640
-6560
-80

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + 26 FROM tab0 AS cor0
----
108
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 52 col2 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5096
SELECT ( col0 ) DIV + col1 FROM tab1
----
0
6
6

skipif mysql # not compatible
query I rowsort label-5096
SELECT ( col0 ) / + col1 FROM tab1
----
0
6
6

query I rowsort
SELECT DISTINCT 3 * + 39 - col2 * tab2.col2 FROM tab2
----
-1327
-559
-612

query I rowsort
SELECT DISTINCT + col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT + - cor0.col1 - col1 FROM tab2 AS cor0
----
-118
-34
-62

onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT ALL - 26 DIV col0 FROM tab1 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT ALL - 26 / col0 FROM tab1 AS cor0
----
-8
0
0

query I rowsort
SELECT - + 89 * + col0 - col2 FROM tab1 AS cor0
----
-321
-5753
-7216

query I rowsort
SELECT DISTINCT + 30 + - col0 AS col2 FROM tab2 AS cor0
----
-48
-49
23

query I rowsort
SELECT DISTINCT ( - 12 * col1 ) - 25 AS col1 FROM tab2
----
-229
-397
-733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 27 * - tab0.col0 - col1 col0 FROM tab0
----
-1042
-2494
-734

query I rowsort
SELECT ALL - col2 - - ( col2 ) * + 38 AS col1 FROM tab1
----
1998
2109
3552

query I rowsort
SELECT 52 * - col1 - - col1 FROM tab1
----
-1326
-510
-663

query I rowsort
SELECT - 84 + 85 AS col1 FROM tab1
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT ALL - + col2 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL - + col2 / cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 98 * + col2 FROM tab0 AS cor0
----
3234
8036
98

query I rowsort
SELECT ( 25 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT ALL cor0.col0 DIV cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL cor0.col0 / cor0.col1 AS col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5112
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - 92 * - col1 AS col0 FROM tab1
----
1196
2392
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + col2 col2 FROM tab1
----
138
141
180

query I rowsort
SELECT ALL + col2 * col1 * - 78 AS col2 FROM tab1 AS cor0
----
-109512
-44460
-97344

onlyif mysql # use DIV operator for integer division
query I rowsort label-5116
SELECT ALL + tab1.col1 + + col1 DIV - col2 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-5116
SELECT ALL + tab1.col1 + + col1 / - col2 AS col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + col1 col0 FROM tab0
----
-2838
-3003
-3201

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT col0 * col2 + ( tab2.col1 + col2 ) AS col2 FROM tab2
----
2113
247
3057

query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0, tab0 cor0
----
1
33
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 3 * col2 col0 FROM tab1
----
181
188
301

query I rowsort
SELECT DISTINCT + ( 96 ) FROM tab2, tab1 AS cor0
----
96

query I rowsort
SELECT col2 * col1 + 69 FROM tab1
----
1317
1473
639

query I rowsort
SELECT + col1 + ( - 36 ) FROM tab0
----
50
55
61

query I rowsort
SELECT DISTINCT + - 25 - + 17 FROM tab1 AS cor0
----
-42

onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT ALL ( col0 ) DIV - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL ( col0 ) / - col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 9 col1 FROM tab0 cor0
----
-9
-9
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5128
SELECT DISTINCT + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT DISTINCT - col0 + + ( col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT + ( col1 ) DIV + col2 AS col0 FROM tab0 AS cor0
----
1
2
97

skipif mysql # not compatible
query I rowsort label-5130
SELECT + ( col1 ) / + col2 AS col0 FROM tab0 AS cor0
----
1
2
97

query I rowsort
SELECT cor0.col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT - ( col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT 21 * 9 FROM tab1 AS cor0
----
189
189
189

query I rowsort
SELECT ALL - 98 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
686
7644
7742

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT + + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5135
SELECT + + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + - 51 * col1 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT ALL - + col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT col1 + - 33 * col0 AS col0 FROM tab2 AS cor0
----
-200
-2515
-2590

onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT + 58 DIV + col1 + + col1 * + tab2.col0 AS col2 FROM tab2
----
1346
218
4602

skipif mysql # not compatible
query I rowsort label-5139
SELECT + 58 / + col1 + + col1 * + tab2.col0 AS col2 FROM tab2
----
1346
218
4602

query I rowsort
SELECT col0 + - ( + col0 * - col0 ) AS col0 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * + col1 col0 FROM tab2
----
1224
2232
4248

onlyif mysql # use DIV operator for integer division
query I rowsort label-5142
SELECT DISTINCT + col2 DIV tab0.col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT + col2 / tab0.col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col2 col1 FROM tab0
----
-1
-1089
-6724

query I rowsort
SELECT ALL + 77 * + col1 * - col2 FROM tab2
----
-118118
-49742
-64449

query I rowsort
SELECT - cor0.col0 * 36 AS col1 FROM tab2 cor0
----
-252
-2808
-2844

query I rowsort
SELECT - cor0.col1 + - ( + 25 * col1 ) FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT - + cor0.col0 * col1 * col2 + col0 * ( 48 ) AS col2 FROM tab2 AS cor0
----
-115908
-47242
-5523

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5148
SELECT - col0 + + CAST( NULL AS DECIMAL ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5148
SELECT - col0 + + CAST ( NULL AS REAL ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5149
SELECT DISTINCT + ( - cor0.col0 ) DIV col1 + col1 * + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
106093
1519
358955

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + ( - cor0.col0 ) / col1 + col1 * + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
106093
1519
358955

query I rowsort
SELECT ALL + col1 * + col2 - col0 FROM tab0 cor0
----
2814
62
7373

query I rowsort
SELECT col0 * 24 + + col1 AS col2 FROM tab1 AS cor0
----
1546
1933
98

query I rowsort
SELECT - 40 - 0 AS col0 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT + ( col0 ) * col0 + 44 AS col2 FROM tab1 AS cor0
----
4140
53
6444

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - col2 AS REAL ) - + col2 col1 FROM tab1 AS cor0
----
-108
-114
-192

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5155
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + col1 * + ( col0 ) ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + col1 * + ( col0 ) ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col2 + - 44 AS col1 FROM tab1 AS cor0
----
-37
-60
-95

query I rowsort
SELECT ALL - - 96 + col0 AS col2 FROM tab0 AS cor0
----
120
131
185

onlyif mysql # use DIV operator for integer division
query I rowsort label-5158
SELECT + cor0.col2 * + col1 + + col2 DIV + col1 FROM tab2 AS cor0
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-5158
SELECT + cor0.col2 * + col1 + + col2 / + col1 FROM tab2 AS cor0
----
1534
648
837

query I rowsort
SELECT DISTINCT + col1 * - col0 + col0 * + 13 * - col1 AS col0 FROM tab1
----
-1092
-14560
-8960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT col2 + cor0.col0 DIV - ( 65 * + cor0.col0 ) FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-5160
SELECT col2 + cor0.col0 / - ( 65 * + cor0.col0 ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5161
SELECT - 8 + col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-7
-8
27

skipif mysql # not compatible
query I rowsort label-5161
SELECT - 8 + col0 / + cor0.col2 FROM tab0 AS cor0
----
-7
-8
27

query I rowsort
SELECT + col1 * + col2 * + 27 - col2 FROM tab1
----
15333
33600
37854

query I rowsort
SELECT DISTINCT + 84 * col1 - - col2 FROM tab2
----
1466
2631
4982

query I rowsort
SELECT 17 + col0 FROM tab1 AS cor0
----
20
81
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 - + col2 * 39 col1 FROM tab0 AS cor0
----
3356
4901
777

query I rowsort
SELECT ALL + col0 * - col1 + ( - col2 ) FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL - + 46 * + col0 FROM tab0 AS cor0
----
-1104
-1610
-4094

onlyif mysql # use DIV operator for integer division
query I rowsort label-5168
SELECT + - col1 DIV - col1 - - col0 col2 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5168
SELECT + - col1 / - col1 - - col0 col2 FROM tab0 AS cor0
----
25
36
90

query I rowsort
SELECT - col0 * + cor0.col0 * 85 + col2 * col0 + + col2 * - col0 FROM tab1 AS cor0
----
-348160
-544000
-765

query I rowsort
SELECT DISTINCT - cor0.col2 + ( - 48 ) AS col1 FROM tab1 AS cor0
----
-102
-105
-144

onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT DISTINCT + + col0 + - 76 DIV + 14 FROM tab0 AS cor0
----
19
30
84

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT + + col0 + - 76 / + 14 FROM tab0 AS cor0
----
19
30
84

query I rowsort
SELECT - col2 * ( - col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513

query I rowsort
SELECT DISTINCT col0 + 8 FROM tab1 AS cor0
----
11
72
88

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 77 AS REAL ) FROM tab2 AS cor0
----
77
77
77

query I rowsort
SELECT 38 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT - ( col2 + col1 ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT + col2 + 36 * col0 FROM tab0 AS cor0
----
1261
3286
897

query I rowsort
SELECT + - col1 * - 91 FROM tab2 AS cor0
----
1547
2821
5369

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca

onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT - col2 * 39 DIV cor0.col1 FROM tab2 AS cor0
----
-17
-33
-87

skipif mysql # not compatible
query I rowsort label-5181
SELECT - col2 * 39 / cor0.col1 FROM tab2 AS cor0
----
-17
-33
-87

query I rowsort
SELECT col2 * + ( col2 ) + col2 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT + ( cor0.col2 ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT - ( - col2 ) * col2 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT 46 * - col0 AS col2 FROM tab1 AS cor0
----
-138
-2944
-3680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab0 cor0
----
39

query I rowsort
SELECT - 5 + - cor0.col0 FROM tab2 cor0
----
-12
-83
-84

query I rowsort
SELECT ALL + col1 * + 23 + - col1 * ( cor0.col2 ) * col1 FROM tab2 cor0
----
-10591
-25234
-89149

query I rowsort
SELECT DISTINCT + col2 + - ( + col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + 55 AS col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT - col0 + + 44 * cor0.col2 FROM tab2 AS cor0
----
1066
1181
1593

query I rowsort
SELECT - - col1 + 28 * col1 AS col1 FROM tab0 AS cor0
----
2494
2639
2813

query I rowsort
SELECT - 66 * tab2.col0 + + ( tab2.col2 ) FROM tab2
----
-435
-5122
-5176

query I rowsort
SELECT ALL 45 + col0 * - ( col2 ) FROM tab0 AS cor0
----
-7253
-747
10

query I rowsort
SELECT DISTINCT + col1 * + col2 * - col0 - + ( col2 * + col0 ) FROM tab0 AS cor0
----
-3430
-671416
-68904

query I rowsort
SELECT DISTINCT 16 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 cor2
----
16

query I rowsort
SELECT DISTINCT col2 * - col0 * col0 FROM tab2 AS cor0
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + + col2 col0 FROM tab2 cor0
----
55
58
85

query I rowsort
SELECT ALL col1 + ( - ( col2 ) ) FROM tab1 cor0
----
-28
-47
-83

query I rowsort
SELECT DISTINCT - cor0.col0 * + ( 73 ) AS col0 FROM tab1 AS cor0
----
-219
-4672
-5840

query I rowsort
SELECT - col2 + col2 * 70 AS col2 FROM tab2 AS cor0
----
1794
1863
2622

query I rowsort
SELECT + col1 * + tab2.col2 + + ( - col2 ) AS col1 FROM tab2
----
1508
608
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * + col0 * cor0.col2 col2 FROM tab1 AS cor0
----
207936
737280
8748

query I rowsort
SELECT ALL - cor0.col1 + 65 + 21 FROM tab2 AS cor0
----
27
55
69

query I rowsort
SELECT + + col2 * + 96 FROM tab0 AS cor0
----
3168
7872
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5206
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) / 74 + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) / 74 + - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 * + 23 + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-2134
5369
860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - col2 col1 FROM tab0 cor0
----
-119
-173
-98

query I rowsort
SELECT - tab1.col0 + ( 18 ) * + col2 FROM tab1
----
1648
962
969

onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT + tab2.col0 DIV + 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

skipif mysql # not compatible
query I rowsort label-5210
SELECT + tab2.col0 / + 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9

query I rowsort
SELECT + + cor0.col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5212
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * ( col1 ) + col0 * col2 col2 FROM tab0
----
-1272
-3360
-801

query I rowsort
SELECT ALL 8 + + ( + tab2.col1 ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd35382df4e5aabe74fd60eb458e435c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 + col2 col2 FROM tab0 cor0
----
119
173
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5216
SELECT + + cor0.col1 DIV col0 + - CAST( col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
-33
-7297
-789

skipif mysql # not compatible
query I rowsort label-5216
SELECT + + cor0.col1 / col0 + - CAST ( col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
-33
-7297
-789

query I rowsort
SELECT DISTINCT - + 44 + col1 AS col2 FROM tab2 AS cor0
----
-13
-27
15

query I rowsort
SELECT ALL - 95 - col0 FROM tab2 AS cor0
----
-102
-173
-174

query I rowsort
SELECT - + 47 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-57
-60
-73

query I rowsort
SELECT DISTINCT ( col0 ) + - 45 AS col2 FROM tab0 cor0
----
-10
-21
44

query I rowsort
SELECT ALL + - col0 * cor0.col0 * 48 FROM tab1 AS cor0
----
-196608
-307200
-432

query I rowsort
SELECT ALL col1 + col2 * tab2.col0 + 8 FROM tab2
----
2095
228
3027

query I rowsort
SELECT ALL + ( - col2 ) + col0 * - 8 + col0 FROM tab0
----
-201
-246
-705

query I rowsort
SELECT ALL col0 + 41 + col1 FROM tab0
----
151
173
221

query I rowsort
SELECT + ( tab1.col0 ) * col2 * + tab1.col1 + col2 * + col2 AS col2 FROM tab1
----
109056
39729
7128

query I rowsort
SELECT ALL + - ( - cor0.col1 ) + ( col0 ) * + col2 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT 67 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1139
2077
3953

query I rowsort
SELECT + - col2 + col2 * ( - 74 ) * + col2 FROM tab0 AS cor0
----
-497658
-75
-80619

query I rowsort
SELECT + + ( cor0.col0 ) * + 19 + col2 FROM tab0 AS cor0
----
1773
489
666

query I rowsort
SELECT - - col1 * + col2 + 67 AS col2 FROM tab0 AS cor0
----
164
2905
7529

query I rowsort
SELECT ALL col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT - ( col1 ) + 51 FROM tab2 AS cor0
----
-8
20
34

query I rowsort
SELECT + - 66 * 42 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-2693
-2694
-2765

query I rowsort
SELECT - - col1 * + col0 + - col1 FROM tab1 cor0
----
1027
52
630

query I rowsort
SELECT col2 * 67 + - col0 FROM tab1 AS cor0
----
3615
3755
6352

query I rowsort
SELECT - 51 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query I rowsort
SELECT col1 * + 35 + col0 * + tab1.col1 + tab1.col2 AS col0 FROM tab1
----
1042
1047
1591

onlyif mysql # use DIV operator for integer division
query I rowsort label-5238
SELECT - col1 DIV 58 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5238
SELECT - col1 / 58 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 78 * - col2 + col1 AS col2 FROM tab1 cor0
----
4238
4456
7501

query I rowsort
SELECT - 77 * tab2.col0 FROM tab2
----
-539
-6006
-6083

query I rowsort
SELECT + 75 * - tab1.col2 * col2 AS col0 FROM tab1
----
-218700
-243675
-691200

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5242
SELECT DISTINCT + CAST( col1 * - col1 AS SIGNED ) AS col2 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-5242
SELECT DISTINCT + CAST ( col1 * - col1 AS INTEGER ) AS col2 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - + 95 * + col1 + - col1 FROM tab2 AS cor0
----
-1632
-2976
-5664

onlyif mysql # use DIV operator for integer division
query I rowsort label-5244
SELECT ALL + + col1 DIV - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-5244
SELECT ALL + + col1 / - col1 - + col2 AS col0 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT DISTINCT cor0.col0 * col0 + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
10686
266
7584

query I rowsort
SELECT + + col2 * - col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5247
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col0 FROM tab1
----
-4096
-6400
-9

skipif mysql # not compatible
query I rowsort label-5247
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col0 FROM tab1
----
-4096
-6400
-9

query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5249
SELECT CAST( 82 AS SIGNED ) * col0 col1 FROM tab2
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5249
SELECT CAST ( 82 AS INTEGER ) * col0 col1 FROM tab2
----
574
6396
6478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 col2 FROM tab0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * cor0.col0 col2 FROM tab1, tab0 cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52

query I rowsort
SELECT ALL + 70 * - col1 FROM tab0
----
-6020
-6370
-6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + tab0.col2 * + tab0.col0 col0 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT - col1 * - ( col2 ) * + col1 + + tab1.col2 * col2 FROM tab1
----
25440
39420
8949

query I rowsort
SELECT ALL col0 * - ( + 70 * - col0 ) AS col2 FROM tab0
----
40320
554470
85750

query I rowsort
SELECT - col1 * 42 * col1 FROM tab1 AS cor0
----
-28392
-4200
-7098

query I rowsort
SELECT + + col0 + - col0 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT + cor0.col1 * - 11 AS col2 FROM tab2 AS cor0
----
-187
-341
-649

query I rowsort
SELECT ALL + col1 * + col1 + - col0 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT ALL + col2 * + tab1.col2 AS col2 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT - + col1 * cor0.col2 * + col1 FROM tab0 cor0
----
-244068
-679042
-9409

query I rowsort
SELECT col0 * col1 - col1 AS col0 FROM tab2
----
1326
186
4543

query I rowsort
SELECT - col2 - + col0 * col2 FROM tab0
----
-36
-7380
-825

query I rowsort
SELECT - col2 * - col1 - - col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT DISTINCT - col0 * - col2 + tab2.col0 - col0 * tab2.col2 FROM tab2
----
7
78
79

query I rowsort
SELECT ALL - col0 * col1 - tab1.col0 AS col1 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT + tab0.col1 + tab0.col1 * + tab0.col0 * - tab0.col2 + - col2 FROM tab0
----
-3299
-664109
-68059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col1 col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL - + col2 + col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
36423
4158
99744

query I rowsort
SELECT + cor0.col2 * - cor0.col2 * + cor0.col0 FROM tab1 cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + col2 + + col1 * col1 AS col1 FROM tab1
----
157
265
730

query I rowsort
SELECT - 92 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-33
-61
-75

query I rowsort
SELECT col0 * + col0 + - col2 FROM tab0 cor0
----
1224
543
7839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col2 * col1 col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT DISTINCT cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 98 * - col0 + - 51 * - 80 + - col1 FROM tab1 AS cor0
----
10342
11907
4348

query I rowsort
SELECT ALL + 43 * cor0.col1 + cor0.col1 + col1 FROM tab2 AS cor0
----
1395
2655
765

query I rowsort
SELECT + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT ALL + 0 + cor0.col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT ALL - - cor0.col2 * col0 * 21 + col2 * col2 - 44 FROM tab0 AS cor0
----
159938
17677
692

query I rowsort
SELECT ( + col2 ) * + col0 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT 46 FROM tab2 cor0
----
46

onlyif mysql # use DIV operator for integer division
query I rowsort label-5283
SELECT ALL - 12 DIV col1 + col0 FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - 12 / col1 + col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + cor0.col0 * - 8 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a2b90d2ee2d9032140c4cf2956c8fc93

query I rowsort
SELECT ALL - + 65 FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT DISTINCT - col1 * - cor0.col1 - 19 AS col1 FROM tab1 cor0
----
150
657
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
1427
617
698

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 + col0 * + col0 col1 FROM tab2
----
-788
4550
5595

onlyif mysql # use DIV operator for integer division
query I rowsort label-5290
SELECT col0 * - tab1.col0 - 49 DIV col0 FROM tab1
----
-25
-4096
-6400

skipif mysql # not compatible
query I rowsort label-5290
SELECT col0 * - tab1.col0 - 49 / col0 FROM tab1
----
-25
-4096
-6400

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT DISTINCT - CAST( 85 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - CAST ( 85 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-5292
SELECT + col0 * col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
1225
17
96

skipif mysql # not compatible
query I rowsort label-5292
SELECT + col0 * col0 / + col2 AS col0 FROM tab0 AS cor0
----
1225
17
96

query I rowsort
SELECT DISTINCT col2 + - 47 AS col0 FROM tab2
----
-20
-21
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - tab1.col0 + col2 * col1 * col0 col0 FROM tab1
----
106240
40576
4221

query I rowsort
SELECT - col0 + 54 * + col1 FROM tab1 AS cor0
----
1401
476
622

onlyif mysql # use DIV operator for integer division
query I rowsort label-5296
SELECT ALL CAST( col2 AS SIGNED ) * col1 + - col0 DIV col0 FROM tab1 AS cor0
----
1247
1403
569

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL CAST ( col2 AS INTEGER ) * col1 + - col0 / col0 FROM tab1 AS cor0
----
1247
1403
569

query I rowsort
SELECT 97 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5298
SELECT DISTINCT - CAST( 27 AS SIGNED ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-5298
SELECT DISTINCT - CAST ( 27 AS INTEGER ) FROM tab2
----
-27

query I rowsort
SELECT + - ( + 18 ) * + col1 AS col1 FROM tab0 AS cor0
----
-1548
-1638
-1746

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT ALL - ( ( + cor0.col2 ) ) * + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-35
-7298
-792

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - ( ( + cor0.col2 ) ) * + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT + cor1.col2 * 83 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 89e474144eb79b3e574216fa2a4618c2

query I rowsort
SELECT DISTINCT - col1 - col1 * - col1 FROM tab1 AS cor0
----
156
650
90

query I rowsort
SELECT DISTINCT - 37 AS col0 FROM tab0, tab1 AS cor0
----
-37

query I rowsort
SELECT ALL - 98 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT + col0 + + ( col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT - col1 + - col2 + col0 FROM tab2 AS cor0
----
-51
-7
24

query I rowsort
SELECT ALL + 89 + 25 * col1 FROM tab0 AS cor0
----
2239
2364
2514

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5308
SELECT ALL CAST( 43 AS SIGNED ) col2 FROM tab2 AS cor0
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5308
SELECT ALL CAST ( 43 AS INTEGER ) col2 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT + 74 + + col2 AS col0 FROM tab0 AS cor0
----
107
156
75

query I rowsort
SELECT DISTINCT + + 37 * + col0 + + col0 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT ALL - ( + col1 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT + col1 + col0 * - 27 * 62 FROM tab0 AS cor0
----
-148895
-40090
-58493

query I rowsort
SELECT DISTINCT - + 91 * col1 AS col0 FROM tab0 AS cor0
----
-7826
-8281
-8827

query I rowsort
SELECT - ( + col1 ) * ( + col2 * - col1 ) FROM tab0 AS cor0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col0 FROM tab0 cor0
----
1
1089
6724

onlyif mysql # use DIV operator for integer division
query I rowsort label-5316
SELECT ALL - col0 DIV 43 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - col0 / 43 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL + - col0 + 7 AS col0 FROM tab2 AS cor0
----
-71
-72
0

query I rowsort
SELECT + col1 + + ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT DISTINCT - col1 + cor0.col0 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - 65 * 3 + + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 150c83191cc34d5d1b17f318dab05b6c

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5321
SELECT + - col1 * + CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT + - col1 * + CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - cor0.col0 * col2 + 3 FROM tab2 AS cor0
----
-186
-2025
-2999

query I rowsort
SELECT - 23 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

query I rowsort
SELECT ALL + + col2 + + col0 * + col0 * + col1 FROM tab0 AS cor0
----
118826
49569
720893

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT CAST( + col0 AS SIGNED ) * col2 + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
196
2106
3081

skipif mysql # not compatible
query I rowsort label-5325
SELECT CAST ( + col0 AS INTEGER ) * col2 + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
196
2106
3081

query I rowsort
SELECT + 1 + col2 * col0 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT cor0.col2 + + col1 + - col0 AS col2 FROM tab1 cor0
----
29
3
77

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT ( - cor0.col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT DISTINCT - + cor0.col0 * col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727

query I rowsort
SELECT - col1 - col0 * ( - col0 ) FROM tab2
----
18
6025
6224

query I rowsort
SELECT DISTINCT + tab2.col2 + col0 + - ( + col0 ) AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT - 29 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e

onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT - 61 + col1 * cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
-49
-60
-60

skipif mysql # not compatible
query I rowsort label-5334
SELECT - 61 + col1 * cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
-49
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + col2 + col0 col1 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT ALL tab1.col2 - - 39 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 579f07b4e4622f66a8051905a3d6c988

query I rowsort
SELECT ALL + col0 * + col0 + col0 AS col2 FROM tab2
----
56
6162
6320

query I rowsort
SELECT - col2 + 12 FROM tab0
----
-21
-70
11

query I rowsort
SELECT + 46 + col0 * + col0 AS col0 FROM tab1 cor0
----
4142
55
6446

query I rowsort
SELECT + ( + cor0.col2 ) * - cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ( 68 ) + col1 * col0 AS col0 FROM tab1
----
1108
146
708

query I rowsort
SELECT DISTINCT - 52 FROM tab1, tab2, tab0 AS cor0
----
-52

query I rowsort
SELECT DISTINCT - + 30 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-30

query I rowsort
SELECT ALL col2 * + col2 - - col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT 92 + + col0 * col0 FROM tab2 AS cor0
----
141
6176
6333

query I rowsort
SELECT ALL - col0 + + cor0.col1 + - col0 FROM tab1 cor0
----
-118
-147
20

query I rowsort
SELECT DISTINCT cor0.col2 + - col2 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL - col0 * + 64 FROM tab0 AS cor0
----
-1536
-2240
-5696

query I rowsort
SELECT DISTINCT - cor0.col2 * + col1 + 58 * - col2 + 81 FROM tab1 AS cor0
----
-3795
-4455
-6735

query I rowsort
SELECT ALL - + col1 - col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62

query I rowsort
SELECT DISTINCT col0 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT cor0.col1 * ( 3 ) FROM tab0 AS cor0
----
258
273
291

query I rowsort
SELECT ALL + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab2, tab2 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - ( col1 * + col0 ) col1 FROM tab0 AS cor0
----
118825
1634688
59106502

query I rowsort
SELECT ALL col0 * 89 AS col0 FROM tab1
----
267
5696
7120

query I rowsort
SELECT + 44 + col1 FROM tab1 AS cor0
----
54
57
70

query I rowsort
SELECT - cor0.col1 * + col0 + col0 FROM tab0 cor0
----
-2040
-3360
-8010

query I rowsort
SELECT + + ( col2 ) + + col1 * col0 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT - col0 * + 67 + - col1 AS col2 FROM tab2 AS cor0
----
-500
-5285
-5310

query I rowsort
SELECT - 23 + col0 AS col2 FROM tab0 AS cor0
----
1
12
66

query I rowsort
SELECT + tab0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT col2 * + col1 * - ( col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + - col0 * - col0 + + col1 * col2 FROM tab1 cor0
----
1413
4666
7648

query I rowsort
SELECT DISTINCT + - 50 AS col2 FROM tab2 cor0
----
-50

query I rowsort
SELECT - 31 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT col2 * tab1.col0 + + col0 AS col1 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col0 col2 FROM tab0 WHERE NOT + col0 NOT IN ( col1 * col0 )
----

query I rowsort
SELECT tab1.col0 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 / - col2 + - col2 FROM tab2 WHERE NULL >= col0
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5371
SELECT DISTINCT + col0 + - col0 DIV + col1 FROM tab0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT + col0 + - col0 / + col1 FROM tab0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT + col2 * col1 - + col0 DIV - col1 AS col0 FROM tab2
----
1535
650
837

skipif mysql # not compatible
query I rowsort label-5372
SELECT + col2 * col1 - + col0 / - col1 AS col0 FROM tab2
----
1535
650
837

query III rowsort
SELECT ALL * FROM tab2 WHERE tab2.col1 IN ( tab2.col1 * + tab2.col2 )
----

query I rowsort
SELECT DISTINCT + col0 - + col0 * col0 AS col1 FROM tab1
----
-4032
-6
-6320

query I rowsort
SELECT col2 * col1 + col1 * tab1.col1 * col1 FROM tab1
----
1570
18980
3445

query I rowsort
SELECT + tab0.col2 * + col2 + col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT tab1.col1 * + col0 AS col1 FROM tab1 WHERE col0 < ( NULL )
----

query I rowsort
SELECT ALL col1 + + col0 * tab1.col2 - col1 FROM tab1 WHERE ( NULL ) NOT IN ( + tab1.col0 * col2 )
----

query I rowsort
SELECT tab0.col1 AS col2 FROM tab0 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 NOT BETWEEN ( - col2 * + col2 ) AND NULL
----

query I rowsort
SELECT ALL col0 * col1 + - col1 FROM tab1
----
1027
52
630

query I rowsort
SELECT - 24 * col1 FROM tab2 AS cor0
----
-1416
-408
-744

query I rowsort
SELECT + + 45 + col2 * 10 AS col1 FROM tab0 AS cor0
----
375
55
865

query I rowsort
SELECT DISTINCT + 31 * col2 AS col0 FROM tab2 cor0
----
1178
806
837

query I rowsort
SELECT - 69 * + col2 * + ( + col1 * col1 ) FROM tab1 AS cor0
----
-1119456
-2518776
-393300

query I rowsort
SELECT ALL + col2 + + col0 * col0 AS col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT col0 * - col2 + - tab0.col1 AS col2 FROM tab0
----
-132
-7389
-878

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col1 * + col1 + + col1 FROM tab0
----
7482
8372
9506

onlyif mysql # use DIV operator for integer division
query I rowsort label-5391
SELECT + col2 + - col1 * col0 DIV tab2.col1 AS col1 FROM tab2
----
-41
-52
20

skipif mysql # not compatible
query I rowsort label-5391
SELECT + col2 + - col1 * col0 / tab2.col1 AS col1 FROM tab2
----
-41
-52
20

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col0 IN ( col2 / + col2 )
----
-10
-13
-26

query I rowsort
SELECT DISTINCT tab1.col0 * - col2 + - tab1.col0 AS col0 FROM tab1
----
-165
-3712
-7760

query I rowsort
SELECT tab0.col1 * + col2 AS col1 FROM tab0
----
2838
7462
97

query I rowsort
SELECT ALL + cor0.col2 + + cor0.col2 FROM tab0 cor0
----
164
2
66

onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT DISTINCT - col2 + col1 DIV col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-6
36
8

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - col2 + col1 / col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-6
36
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT col2 * cor0.col1 + col0 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT ALL cor0.col1 * col1 * col0 + - col0 + col1 * col1 FROM tab1 AS cor0
----
13609
2701
6436

query I rowsort
SELECT ALL col0 * - col2 - col1 AS col1 FROM tab1
----
-188
-3658
-7693

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * - tab0.col1 + col2 > ( col0 - - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col1 FROM tab0 WHERE NULL IN ( col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT tab0.col2 DIV + col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT tab0.col2 / + col1 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + tab0.col2 * - col1 + + tab0.col2 * + col2 FROM tab0
----
-1749
-738
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5405
SELECT ALL col1 * col1 * col2 + col2 - col2 DIV col1 AS col1 FROM tab0
----
244101
679124
9410

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL col1 * col1 * col2 + col2 - col2 / col1 AS col1 FROM tab0
----
244101
679124
9410

query I rowsort
SELECT col1 + - tab2.col2 + col0 AS col2 FROM tab2
----
11
111
58

query I rowsort
SELECT + col0 + - tab0.col1 + + col0 AS col2 FROM tab0
----
-27
-38
87

query I rowsort
SELECT DISTINCT - col2 * + col1 * - col1 FROM tab1
----
16224
36504
5700

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 * + col2 col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT - 93 + 96 FROM tab0 AS cor0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 10 col1 FROM tab0
----
-10
-330
-820

query I rowsort
SELECT ALL - + 10 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT 29 * + tab0.col2 AS col1 FROM tab0
----
2378
29
957

query I rowsort
SELECT cor0.col2 + - col1 * col0 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT DISTINCT + - col0 * + col2 + col2 * col0 FROM tab0 cor0
----
0

query I rowsort
SELECT 55 * + cor0.col0 + - col1 FROM tab0 AS cor0
----
1234
1828
4804

query I rowsort
SELECT DISTINCT ( - tab1.col2 + + col1 ) AS col2 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT DISTINCT + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL + 32 * - col2 + col0 AS col2 FROM tab1 AS cor0
----
-1725
-1760
-2992

query I rowsort
SELECT ALL col0 + cor0.col0 AS col2 FROM tab2 cor0
----
14
156
158

query I rowsort
SELECT DISTINCT + - 35 + - col0 AS col0 FROM tab0 AS cor0
----
-124
-59
-70

query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 25 + + col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1428
2065
3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5424
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) * - cor0.col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) * - cor0.col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5425
SELECT - - col0 - + cor0.col1 DIV - col2 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-5425
SELECT - - col0 - + cor0.col1 / - col2 FROM tab0 AS cor0
----
132
26
90

query I rowsort
SELECT ALL + col2 * 58 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT ALL - col1 + - col1 + + col1 FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT col0 * - 61 + col0 * col2 - col0 FROM tab2 AS cor0
----
-1896
-245
-2808

query I rowsort
SELECT ALL + col1 * + col0 AS col2 FROM tab0 cor0
----
2064
3395
8099

query I rowsort
SELECT ( + col1 ) + 65 AS col1 FROM tab0
----
151
156
162

query I rowsort
SELECT tab0.col2 + - col0 AS col1 FROM tab0
----
-34
-7
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT - col2 DIV col0 + - col0 - col0 * - col2 AS col0 FROM tab2 AS cor0
----
179
1950
2923

skipif mysql # not compatible
query I rowsort label-5432
SELECT - col2 / col0 + - col0 - col0 * - col2 AS col0 FROM tab2 AS cor0
----
179
1950
2923

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) * col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT DISTINCT + ( col1 ) * col1 + col0 * col2 + col2 AS col2 FROM tab2
----
1177
3329
5535

query I rowsort
SELECT col0 + - 52 * - col1 + + col0 * + col2 AS col0 FROM tab0 cor0
----
12119
5114
5288

query I rowsort
SELECT - tab1.col1 * - col2 * col0 + 52 AS col2 FROM tab1
----
36532
4264
99892

query I rowsort
SELECT + col0 * + col0 + col0 FROM tab1 AS cor0
----
12
4160
6480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 * + 82 col0 FROM tab0
----
-6966
-7371
-7857

query I rowsort
SELECT - 58 * col1 FROM tab1 AS cor0
----
-1508
-580
-754

query I rowsort
SELECT - ( - cor0.col0 ) * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT col2 * col0 * - 16 AS col1 FROM tab1 AS cor0
----
-122880
-2592
-58368

query I rowsort
SELECT 67 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * cor0.col0 + col1 col2 FROM tab0 cor0
----
132
7389
878

query I rowsort
SELECT DISTINCT + 1 FROM tab2, tab2 cor0
----
1

query I rowsort
SELECT + col1 + - 39 * + cor0.col0 AS col1 FROM tab2 cor0
----
-242
-2983
-3064

query I rowsort
SELECT + col0 + - ( + cor0.col1 ) FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT + + 3 + col1 * col1 FROM tab1 AS cor0
----
103
172
679

onlyif mysql # use DIV operator for integer division
query I rowsort label-5448
SELECT + col2 DIV + cor0.col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5448
SELECT + col2 / + cor0.col2 FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT - col1 + - col1 * col2 * col2 FROM tab1 AS cor0
----
-119821
-32500
-75842

query I rowsort
SELECT + col2 + col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496

query I rowsort
SELECT + + ( + ( cor0.col0 - + col0 ) ) + - col1 + cor0.col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT cor0.col0 + - col1 * - col1 FROM tab0 cor0
----
7420
8370
9444

query I rowsort
SELECT DISTINCT 99 + col0 * - col1 FROM tab1
----
-541
-941
21

query I rowsort
SELECT DISTINCT tab0.col1 * col2 * col2 + + col1 * - col2 FROM tab0
----
0
604422
90816

query I rowsort
SELECT - - ( 39 ) AS col0 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT ALL 51 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5457
SELECT ALL - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - 47 * 24 + col1 FROM tab1 cor0
----
-1102
-1115
-1118

query I rowsort
SELECT ALL + - ( col1 ) * + cor0.col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543

query I rowsort
SELECT + cor0.col2 * 14 AS col0 FROM tab2 AS cor0
----
364
378
532

query I rowsort
SELECT DISTINCT 31 AS col2 FROM tab0, tab2 AS cor0
----
31

query I rowsort
SELECT ALL - + 87 * - 79 + + col1 + + col1 * col2 FROM tab0 AS cor0
----
14426
7067
9797

query I rowsort
SELECT + 11 + col2 AS col1 FROM tab0 cor0
----
12
44
93

query I rowsort
SELECT ALL 70 + + col1 FROM tab1 AS cor0
----
80
83
96

query I rowsort
SELECT DISTINCT + 15 * col0 + + col0 FROM tab2 AS cor0
----
112
1248
1264

query I rowsort
SELECT DISTINCT + + 92 * + col0 + - col1 FROM tab0 AS cor0
----
2122
3123
8097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - cor0.col0 + + cor0.col2 col0 FROM tab0 cor0
----
-33
42
75

query I rowsort
SELECT - + col2 + - col1 * + ( ( + col2 ) ) + + ( col1 ) FROM tab2 AS cor0
----
-1501
-667
-833

query I rowsort
SELECT ALL + col0 + + ( - col1 + - col2 ) FROM tab0
----
-63
-84
-95

query I rowsort
SELECT - ( tab2.col1 ) * col1 AS col0 FROM tab2
----
-289
-3481
-961

onlyif mysql # use DIV operator for integer division
query I rowsort label-5471
SELECT + col2 DIV - col1 - - col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-5471
SELECT + col2 / - col1 - - col1 AS col2 FROM tab2 AS cor0
----
15
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * + ( + col2 ) col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + cor0.col0 + ( - col0 ) * col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT col1 + - 41 FROM tab0 AS cor0
----
45
50
56

onlyif mysql # use DIV operator for integer division
query I rowsort label-5475
SELECT ALL - col1 DIV cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL - col1 / cor0.col1 + col1 AS col0 FROM tab0 AS cor0
----
85
90
96

query I rowsort
SELECT DISTINCT - + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + col2 * - col2 + - col1 FROM tab2 cor0
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * ( col2 + col2 ) * - col1 col2 FROM tab0 AS cor0
----
-1328236
-136224
-6790

query I rowsort
SELECT col0 * - col0 + - cor0.col2 * - col2 FROM tab1 AS cor0
----
-847
2816
2907

query I rowsort
SELECT + + col0 * + col2 AS col0 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - ( tab0.col1 ) AS col1 FROM tab0
----
-86
-91
-97

query I rowsort
SELECT ALL - 71 FROM tab2
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col2 - 73 AS col0 FROM tab0
----
-106
-155
-74

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

query I rowsort
SELECT + col2 - col1 * - col2 * col0 AS col0 FROM tab1 AS cor0
----
36537
4266
99936

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT - col2 * CAST( NULL AS DECIMAL ) + - 46 * + cor0.col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT - col2 * CAST ( NULL AS REAL ) + - 46 * + cor0.col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 - col1 AS col1 FROM tab2 AS cor0
----
1475
629
806

query I rowsort
SELECT + col2 * col1 - cor0.col0 * + col0 FROM tab1 AS cor0
----
-3526
-5152
1395

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 + col2 - tab2.col0 col0 FROM tab2
----
1482
605
857

query I rowsort
SELECT ALL 50 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - col2 + + tab0.col2 * - col2 FROM tab0
----
-1122
-2
-6806

query I rowsort
SELECT ALL - col2 * + col0 + col2 AS col1 FROM tab1
----
-108
-3591
-7584

onlyif mysql # use DIV operator for integer division
query I rowsort label-5493
SELECT DISTINCT - tab2.col2 DIV col0 + - tab2.col2 FROM tab2
----
-26
-30
-38

skipif mysql # not compatible
query I rowsort label-5493
SELECT DISTINCT - tab2.col2 / col0 + - tab2.col2 FROM tab2
----
-26
-30
-38

query I rowsort
SELECT DISTINCT - col0 + col2 * 28 AS col2 FROM tab1 AS cor0
----
1509
1532
2608

query I rowsort
SELECT 97 + col0 + - 54 AS col0 FROM tab2
----
121
122
50

query I rowsort
SELECT 76 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5497
SELECT DISTINCT + col2 * CAST( NULL AS SIGNED ) + col2 * + col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT + col2 * CAST ( NULL AS INTEGER ) + col2 * + col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col2 + + col2 * + col1 FROM tab0 AS cor0
----
2805
7380
96

query I rowsort
SELECT DISTINCT col2 * 4 AS col1 FROM tab1 AS cor0
----
216
228
384

query I rowsort
SELECT ALL col1 * col1 + - 49 FROM tab1 AS cor0
----
120
51
627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col0 col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 * 89 + + cor0.col1 FROM tab0 AS cor0
----
252668
664209
8730

onlyif mysql # use DIV operator for integer division
query I rowsort label-5503
SELECT ALL col2 * CAST( - col2 AS SIGNED ) DIV + col2 FROM tab0 AS cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5503
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) / + col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT + col1 + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
20
26
52

skipif mysql # not compatible
query I rowsort label-5504
SELECT + col1 + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT + col0 + col0 * - col2 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT - col0 * + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT - col2 + + cor0.col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT ALL - col0 + + ( + 20 ) + col1 FROM tab1 AS cor0
----
-34
-47
43

query I rowsort
SELECT col2 * + col2 + + col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
15005
8485
9410

query I rowsort
SELECT DISTINCT + col1 * + col2 + 33 AS col1 FROM tab2 AS cor0
----
1567
679
870

query I rowsort
SELECT ALL col0 * 49 FROM tab2 AS cor0
----
343
3822
3871

query I rowsort
SELECT + col1 + col0 * - ( + cor0.col2 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT + - col0 + col1 * cor0.col2 FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL + 76 FROM tab2, tab0 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query I rowsort
SELECT - - 92 AS col1 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT ALL + ( cor0.col2 ) * - col0 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + + 36 FROM tab2 cor0
----
36

query I rowsort
SELECT ALL + + 66 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
125
83
97

query I rowsort
SELECT + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1534
646
837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5520
SELECT ALL - CAST( NULL AS SIGNED ) + - 25 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - CAST ( NULL AS INTEGER ) + - 25 * col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 14 + - col1 FROM tab1 AS cor0
----
-12
1
4

query I rowsort
SELECT DISTINCT - - ( col2 ) + col0 * 73 FROM tab2 AS cor0
----
538
5720
5805

onlyif mysql # use DIV operator for integer division
query I rowsort label-5523
SELECT + cor0.col0 DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5523
SELECT + cor0.col0 / col0 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL 85 AS col2 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT DISTINCT - 23 * col0 FROM tab2 AS cor0
----
-161
-1794
-1817

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 64 * + col2 col1 FROM tab2 AS cor0
----
-1638
-1701
-2394

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5527
SELECT CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 39 * - 14 AS col2 FROM tab0 AS cor0
----
546
546
546

onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT DISTINCT + col0 * + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT + col0 * + col2 / - col2 AS col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + + 47 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - - 11 * col1 + CAST ( + col1 AS REAL ) col0 FROM tab0 cor0
----
1032
1092
1164

query I rowsort
SELECT - + col0 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
2814
62
7373

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + cor0.col1 col0 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT ALL + 73 * col1 FROM tab1 AS cor0
----
1898
730
949

onlyif mysql # use DIV operator for integer division
query I rowsort label-5535
SELECT ALL col2 * tab1.col0 DIV col2 FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-5535
SELECT ALL col2 * tab1.col0 / col2 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-5536
SELECT DISTINCT + + col2 - - col0 DIV + ( - cor0.col2 ) FROM tab1 AS cor0
----
54
56
96

skipif mysql # not compatible
query I rowsort label-5536
SELECT DISTINCT + + col2 - - col0 / + ( - cor0.col2 ) FROM tab1 AS cor0
----
54
56
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT + - col0 * + col2 DIV + col2 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-5537
SELECT + - col0 * + col2 / + col2 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT ALL - - cor0.col0 + + col1 - ( col1 ) FROM tab2 AS cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-5539
SELECT DISTINCT 91 * col2 DIV 10 FROM tab1 AS cor0
----
491
518
873

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT 91 * col2 / 10 FROM tab1 AS cor0
----
491
518
873

query I rowsort
SELECT + - 66 FROM tab2 cor0
----
-66
-66
-66

query I rowsort
SELECT tab2.col2 + + 36 FROM tab2
----
62
63
74

query I rowsort
SELECT - 74 AS col0 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT DISTINCT 76 + col0 * col2 + col1 * col1 FROM tab1
----
3824
7925
914

query I rowsort
SELECT + col0 * - ( + col2 ) FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # use DIV operator for integer division
query I rowsort label-5545
SELECT + 60 DIV + tab0.col0 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 60 / + tab0.col0 AS col1 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-26
-27
-38

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 465d072d2d9eababbfc8e88b82707474

query I rowsort
SELECT 48 + tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to baa3880a16e4ff665796379a71bd1bd1

query I rowsort
SELECT col0 * col1 + + col1 * - ( 72 ) FROM tab0
----
-3589
-4128
1547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * - col1 col0 FROM tab0 AS cor0
----
-7310
-8190
-9312

query I rowsort
SELECT - - col1 + 45 * col0 FROM tab2 cor0
----
346
3569
3572

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 75 - col0 col1 FROM tab1 AS cor0
----
4047
4211
7120

query I rowsort
SELECT 38 * tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ad71c6d02c194cabb6d219a204bcb2

query I rowsort
SELECT DISTINCT - col2 + + 33 FROM tab0 AS cor0
----
-49
0
32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5555
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 - col2 * + 33 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 - col2 * + 33 col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 46 + col2 AS col1 FROM tab1 AS cor0
----
100
103
142

query I rowsort
SELECT DISTINCT - col1 * 79 * - cor0.col0 + col0 * + col1 FROM tab0 AS cor0
----
165120
271600
647920

query I rowsort
SELECT + + col2 * ( + 49 ) * col1 + + col0 FROM tab1 AS cor0
----
27994
61232
68799

query I rowsort
SELECT col2 + col2 * 72 * + col2 AS col2 FROM tab2 cor0
----
104006
48698
52515

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab1, tab0, tab1 cor0, tab2
----
57

query I rowsort
SELECT DISTINCT - ( - col1 ) * col1 FROM tab2
----
289
3481
961

query I rowsort
SELECT ALL + 41 * - 43 + - col0 FROM tab2
----
-1770
-1841
-1842

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0

query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab0, tab2, tab2 AS cor0
----
45

query I rowsort
SELECT ALL - 42 AS col2 FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT DISTINCT - + ( - 33 ) FROM tab2 AS cor0
----
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-5567
SELECT - ( col1 ) * col0 DIV ( - col0 ) FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-5567
SELECT - ( col1 ) * col0 / ( - col0 ) FROM tab0
----
86
91
97

query I rowsort
SELECT - 55 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-385
-4290
-4345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * - 50 col2 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT - col2 * + col1 + col1 * + 77 * + col1 - 93 AS col0 FROM tab0 AS cor0
----
566561
630082
724303

query I rowsort
SELECT 39 + cor0.col1 AS col1 FROM tab2 AS cor0
----
56
70
98

query I rowsort
SELECT + - 27 + cor0.col1 AS col2 FROM tab0 cor0
----
59
64
70

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 ALL - col0 + + col0 * col0 - col0 FROM tab0
----
1155
528
7743

query I rowsort
SELECT + col2 * - tab0.col1 + ( col1 ) * - col0 - + ( ( tab0.col0 ) ) * col2 AS col0 FROM tab0
----
-22859
-3527
-5694

query I rowsort
SELECT ALL 44 - - col0 FROM tab2
----
122
123
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab2, tab0, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT 63 * col1 AS col2 FROM tab0
----
5418
5733
6111

onlyif mysql # use DIV operator for integer division
query I rowsort label-5579
SELECT tab2.col1 - col1 * col0 DIV col1 FROM tab2
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-5579
SELECT tab2.col1 - col1 * col0 / col1 FROM tab2
----
-19
-62
24

query I rowsort
SELECT + 92 * col2 + + col0 AS col1 FROM tab0
----
127
3060
7633

query I rowsort
SELECT - 68 * col2 * col1 + col2 FROM tab2 AS cor0
----
-104286
-43890
-56889

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 FROM tab2, tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( cor0.col2 ) + + 11 * col1 - col0 FROM tab2 AS cor0
----
307
545
70

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5584
SELECT + col1 * - ( col1 * col0 + + CAST( - cor0.col0 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
-12480
-1950
-5760

skipif mysql # not compatible
query I rowsort label-5584
SELECT + col1 * - ( col1 * col0 + + CAST ( - cor0.col0 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
-12480
-1950
-5760

query I rowsort
SELECT ALL cor0.col0 * + 16 + col1 FROM tab0 AS cor0
----
1515
470
657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 col2 FROM tab2 cor0
----
-189
-2028
-3002

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT col0 + ( + 41 ) AS col0 FROM tab0 AS cor0
----
130
65
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col0 FROM tab1 AS cor0
----
-100
-169
-676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - ( + col0 ) * + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT - col2 + + CAST( col0 AS SIGNED ) * + col1 DIV + CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-5591
SELECT - col2 + + CAST ( col0 AS INTEGER ) * + col1 / + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-5592
SELECT DISTINCT - col0 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - col0 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL - col2 - - 15 AS col1 FROM tab1 AS cor0
----
-39
-42
-81

query I rowsort
SELECT - col0 * col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + 62 * col0 FROM tab1
----
186
3968
4960

onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT DISTINCT + tab2.col2 DIV - 30 AS col0 FROM tab2, tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT + tab2.col2 / - 30 AS col0 FROM tab2, tab2 cor0
----
-1
0

query I rowsort
SELECT col1 + + col0 - + col1 FROM tab0 cor0
----
24
35
89

query I rowsort
SELECT ALL + cor0.col1 * ( cor0.col0 + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
12804
16380
9460

skipif mysql # not compatible
query I rowsort
SELECT + col0 + + CAST ( col1 AS REAL ) * + col2 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ( 51 ) * - col1 FROM tab1 AS cor0
----
-1326
-510
-663

query I rowsort
SELECT - cor0.col0 * + 25 + col1 FROM tab1 AS cor0
----
-1590
-1987
-49

query I rowsort
SELECT ALL - - ( - cor0.col1 ) FROM tab2 cor0
----
-17
-31
-59

query I rowsort
SELECT ALL - + col1 + - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 col1 FROM tab2, tab1 AS cor0
----
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5605
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - cor0.col0 + 75 FROM tab1, tab2 cor0
----
-3
-4
68

query I rowsort
SELECT ALL - + col2 * cor0.col2 + - col1 FROM tab1 AS cor0
----
-2942
-3259
-9229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 - cor0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to a263cf71681da72376ccbd2cd01b5c06

query I rowsort
SELECT ( 63 ) FROM tab0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 - + col0 * + col1 col2 FROM tab0
----
-3298
-637
774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col0 * col1 col2 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT col2 * 39 + + col2 + - tab1.col1 FROM tab1
----
2134
2270
3827

query I rowsort
SELECT DISTINCT - col1 * + col0 - + tab2.col1 * - col1 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT ALL - 6 FROM tab1, tab2 AS cor0
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL - 6 * + col2 FROM tab1 AS cor0
----
-324
-342
-576

onlyif mysql # use DIV operator for integer division
query I rowsort label-5616
SELECT DISTINCT + - col1 + + ( col1 ) DIV - col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + - col1 + + ( col1 ) / - col0 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT ALL + - col1 + 84 * col1 * - col0 AS col0 FROM tab0 AS cor0
----
-173462
-285277
-680407

query I rowsort
SELECT + 2 * - col0 - col0 FROM tab2 AS cor0
----
-21
-234
-237

query I rowsort
SELECT + 25 - + col2 AS col0 FROM tab2 AS cor0
----
-1
-13
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT ALL + tab0.col2 DIV + tab0.col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL + tab0.col2 / + tab0.col2 FROM tab0
----
1
1
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT - col1 * 34 DIV col1 + col2 AS col0 FROM tab2
----
-7
-8
4

skipif mysql # not compatible
query I rowsort label-5621
SELECT - col1 * 34 / col1 + col2 AS col0 FROM tab2
----
-7
-8
4

query I rowsort
SELECT col0 + 45 * - tab1.col1 AS col2 FROM tab1
----
-1167
-386
-505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 * + col0 col1 FROM tab1 AS cor0
----
35
4106
6413

query I rowsort
SELECT ALL + col0 + 68 - + col2 FROM tab1 AS cor0
----
17
52
75

query I rowsort
SELECT + 59 + col0 AS col2 FROM tab1 AS cor0
----
123
139
62

query I rowsort
SELECT - col1 - + 63 FROM tab1 AS cor0
----
-73
-76
-89

query I rowsort
SELECT DISTINCT - col1 + - cor0.col2 * + col0 AS col1 FROM tab1 cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - + col2 * + cor0.col1 + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT + ( - col2 ) * col0 + CAST( - ( col1 ) + col1 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-5629
SELECT + ( - col2 ) * col0 + CAST ( - ( col1 ) + col1 AS INTEGER ) / col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - + col0 - - col0 * cor0.col2 FROM tab1 AS cor0
----
159
3584
7600

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( cor0.col0 AS REAL ) + + col0 * 58 col0 FROM tab1 AS cor0
----
177
3776
4720

query I rowsort
SELECT + col2 + cor0.col0 AS col2 FROM tab0 cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-5633
SELECT ALL - + col2 DIV cor0.col1 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL - + col2 / cor0.col1 + + col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 46 * + 64 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
2944

query I rowsort
SELECT - ( + cor1.col2 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT 37 * - cor0.col2 * - col1 + col1 + - col1 FROM tab0 AS cor0
----
105006
276094
3589

query I rowsort
SELECT - col2 + + col0 + + 49 AS col2 FROM tab1 AS cor0
----
-2
33
56

query I rowsort
SELECT + + 27 AS col0 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT ALL col1 * + 19 FROM tab2 cor0
----
1121
323
589

query I rowsort
SELECT DISTINCT + cor0.col1 - - col2 AS col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL - 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL col0 * + col2 AS col1 FROM tab2 cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT + cor0.col2 * 76 FROM tab0 AS cor0
----
2508
6232
76

query I rowsort
SELECT - col2 * 6 AS col0 FROM tab1 AS cor0
----
-324
-342
-576

query I rowsort
SELECT DISTINCT + col2 + + 80 * + 8 FROM tab0 AS cor0
----
641
673
722

query I rowsort
SELECT col2 * col0 * col1 + col0 * + ( col2 ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-171456
-4536
-637440

query I rowsort
SELECT ALL + cor0.col2 * 38 + col1 * col2 FROM tab0 AS cor0
----
10578
135
4092

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT col2 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5648
SELECT col2 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 0 + + col2 FROM tab2 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5650
SELECT - col2 * + CAST( NULL AS SIGNED ) + - 33 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5650
SELECT - col2 * + CAST ( NULL AS INTEGER ) + - 33 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 27 * 46 * cor0.col2 AS col1 FROM tab1 AS cor0
----
119232
67068
70794

query I rowsort
SELECT + ( - 43 ) FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # use DIV operator for integer division
query I rowsort label-5653
SELECT + col0 DIV col0 + col2 AS col1 FROM tab0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-5653
SELECT + col0 / col0 + col2 AS col1 FROM tab0
----
2
34
83

query I rowsort
SELECT DISTINCT - 40 + + col0 * ( col2 ) * - col0 + ( - ( col2 ) + 28 ) * col0 FROM tab1 AS cor0
----
-235368
-604
-619880

query I rowsort
SELECT - - cor0.col1 * + cor0.col0 + cor0.col0 * 32 * col1 FROM tab1 cor0
----
21120
2574
34320

query I rowsort
SELECT DISTINCT + col1 * - col1 + col2 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934

query I rowsort
SELECT DISTINCT 47 + col1 FROM tab0 AS cor0
----
133
138
144

query I rowsort
SELECT + 58 FROM tab0, tab1 cor0, tab2, tab0 AS cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed

query I rowsort
SELECT ALL - 91 + 84 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # use DIV operator for integer division
query I rowsort label-5660
SELECT + 55 + col1 DIV - col0 FROM tab2
----
51
55
55

skipif mysql # not compatible
query I rowsort label-5660
SELECT + 55 + col1 / - col0 FROM tab2
----
51
55
55

query I rowsort
SELECT - col2 * tab2.col0 * - 72 AS col0 FROM tab2
----
13608
146016
216144

query I rowsort
SELECT - col1 * ( 24 ) + - col2 * ( + 54 ) * col2 AS col2 FROM tab1 AS cor0
----
-158088
-175686
-497976

query I rowsort
SELECT + - col2 + 6 AS col2 FROM tab2 cor0
----
-20
-21
-32

query I rowsort
SELECT ALL + - 56 * + col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-365
-4342
-4386

query I rowsort
SELECT + 74 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT + 63 + + col0 FROM tab0 cor0
----
152
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT 69 * - col2 - col0 * col0 DIV + col1 AS col0 FROM tab2 cor0
----
-1864
-1897
-2989

skipif mysql # not compatible
query I rowsort label-5667
SELECT 69 * - col2 - col0 * col0 / + col1 AS col0 FROM tab2 cor0
----
-1864
-1897
-2989

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * cor0.col2 + - col2 col2 FROM tab1 AS cor0
----
-2970
-3306
-9312

onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT ALL + + col1 * col1 * 88 + + 40 * col0 DIV 99 AS col0 FROM tab1 AS cor0
----
14904
59489
8825

skipif mysql # not compatible
query I rowsort label-5669
SELECT ALL + + col1 * col1 * 88 + + 40 * col0 / 99 AS col0 FROM tab1 AS cor0
----
14904
59489
8825

query I rowsort
SELECT DISTINCT col2 * - col1 + col0 AS col1 FROM tab0 cor0
----
-2814
-62
-7373

query I rowsort
SELECT + - col2 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT col1 + + col1 * ( 40 ) - - col1 * - col1 AS col0 FROM tab2 cor0
----
-1062
310
408

query I rowsort
SELECT - col0 * col0 * + col1 + + col2 AS col0 FROM tab1 cor0
----
-180
-40903
-83104

onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT + col1 DIV + col2 + + col0 FROM tab0 AS cor0
----
132
26
90

skipif mysql # not compatible
query I rowsort label-5674
SELECT + col1 / + col2 + + col0 FROM tab0 AS cor0
----
132
26
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( + col0 ) col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - ( col1 ) + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT + - ( col1 ) + + col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT col0 * ( cor0.col2 ) + + 56 FROM tab0 AS cor0
----
7354
848
91

query I rowsort
SELECT 3 AS col0 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to c7bd37716aa9c76e684a54f53d1ee343

query I rowsort
SELECT + tab1.col2 + + 7 AS col1 FROM tab1
----
103
61
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * col2 col0 FROM tab1
----
162
3648
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 37 ) col2 FROM tab2
----
37
37
37

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT ALL CAST( col2 + + col0 AS SIGNED ) * + 84 FROM tab2
----
2856
8736
9828

skipif mysql # not compatible
query I rowsort label-5683
SELECT ALL CAST ( col2 + + col0 AS INTEGER ) * + 84 FROM tab2
----
2856
8736
9828

query I rowsort
SELECT - 44 + + cor0.col0 FROM tab1 AS cor0
----
-41
20
36

onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT ALL - col0 + col1 DIV - col1 + - ( + col0 ) * ( + 74 * - col0 ) AS col2 FROM tab0 AS cor0
----
42599
586064
90614

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL - col0 + col1 / - col1 + - ( + col0 ) * ( + 74 * - col0 ) AS col2 FROM tab0 AS cor0
----
42599
586064
90614

query I rowsort
SELECT ALL + 20 AS col0 FROM tab0
----
20
20
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-5687
SELECT col1 * + col2 + + col2 DIV - ( - 9 + + col1 ) AS col0 FROM tab0
----
2838
7461
97

skipif mysql # not compatible
query I rowsort label-5687
SELECT col1 * + col2 + + col2 / - ( - 9 + + col1 ) AS col0 FROM tab0
----
2838
7461
97

query I rowsort
SELECT DISTINCT + ( 31 ) * col0 FROM tab1
----
1984
2480
93

query I rowsort
SELECT - tab1.col0 * 73 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a54744138f40851606b28599881fb55e

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5690
SELECT CAST( NULL AS SIGNED ) - - col2 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT CAST ( NULL AS INTEGER ) - - col2 * col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 + col2 AS col0 FROM tab2
----
71
72
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-5692
SELECT ALL + 2 DIV col1 - cor0.col1 * + ( - col2 ) * 83 FROM tab0 AS cor0
----
235554
619346
8051

skipif mysql # not compatible
query I rowsort label-5692
SELECT ALL + 2 / col1 - cor0.col1 * + ( - col2 ) * 83 FROM tab0 AS cor0
----
235554
619346
8051

query I rowsort
SELECT DISTINCT 86 * col1 FROM tab2 AS cor0
----
1462
2666
5074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * - col2 col0 FROM tab1 AS cor0
----
4374
4617
7776

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5695
SELECT ALL tab1.col2 * tab1.col2 - CAST( col1 + col1 AS SIGNED ) AS col1 FROM tab1
----
2864
3229
9190

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL tab1.col2 * tab1.col2 - CAST ( col1 + col1 AS INTEGER ) AS col1 FROM tab1
----
2864
3229
9190

query I rowsort
SELECT 75 + - col2 FROM tab2
----
37
48
49

query I rowsort
SELECT + ( col0 ) + + col1 + - col1 AS col0 FROM tab1
----
3
64
80

query I rowsort
SELECT + ( col0 ) + 68 - - ( + tab0.col0 + col2 * + col1 ) FROM tab0
----
235
2954
7708

query I rowsort
SELECT 17 * col1 FROM tab2 cor0
----
1003
289
527

query I rowsort
SELECT ALL cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT 75 - cor0.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-3
-4
68

onlyif mysql # use DIV operator for integer division
query I rowsort label-5702
SELECT - col2 DIV ( - col1 ) FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-5702
SELECT - col2 / ( - col1 ) FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * + col0 + cor0.col2 + col0 FROM tab2 AS cor0
----
-15
-5980
-6124

query I rowsort
SELECT - 96 + col0 AS col1 FROM tab1 AS cor0
----
-16
-32
-93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5705
SELECT ALL - CAST( NULL AS SIGNED ) * + 58 * col2 - ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - CAST ( NULL AS INTEGER ) * + 58 * col2 - ( - col1 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * 33 * col1 AS col1 FROM tab2
----
114873
31713
9537

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) * + cor0.col0 col0 FROM tab0 AS cor0
----
1225
576
7921

query I rowsort
SELECT ALL ( + col1 ) * - cor0.col1 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1417
-2080
-670

query I rowsort
SELECT DISTINCT + 61 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-39040
-4758
-63440

onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT ALL col2 * col0 + col2 DIV - ( cor0.col1 ) FROM tab1 AS cor0
----
160
3643
7673

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL col2 * col0 + col2 / - ( cor0.col1 ) FROM tab1 AS cor0
----
160
3643
7673

onlyif mysql # use DIV operator for integer division
query I rowsort label-5711
SELECT ALL - col0 - col1 * col1 DIV col1 FROM tab1 cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - col0 - col1 * col1 / col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + + col0 + + col0 * col2 + col0 FROM tab2 AS cor0
----
203
2184
3160

onlyif mysql # use DIV operator for integer division
query I rowsort label-5713
SELECT + col2 + - 54 DIV - col2 AS col0 FROM tab1 AS cor0
----
55
57
96

skipif mysql # not compatible
query I rowsort label-5713
SELECT + col2 + - 54 / - col2 AS col0 FROM tab1 AS cor0
----
55
57
96

query I rowsort
SELECT + + ( + col2 ) * col1 FROM tab2 cor0
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT ALL - ( col2 ) * col0 + - col2 + - col2 DIV col1 FROM tab1 cor0
----
-218
-3710
-7783

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL - ( col2 ) * col0 + - col2 + - col2 / col1 FROM tab1 cor0
----
-218
-3710
-7783

query I rowsort
SELECT DISTINCT col0 * - col2 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-378
-4056
-6004

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE + col0 + col1 * col2 BETWEEN - col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + cor0.col0 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 + col0 * col1 NOT IN ( col0 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d

query I rowsort
SELECT + col2 - col0 AS col0 FROM tab0
----
-34
-7
9

query I rowsort
SELECT ALL col0 * - col1 + col1 * - col1 FROM tab1 AS cor0
----
-1209
-740
-754

query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 AS col2 FROM tab1
----
110
182
702

query I rowsort
SELECT - col2 * col1 + + tab0.col1 * + tab0.col1 FROM tab0
----
4558
819
9312

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) IN ( col1 * col1 )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + col0 AND col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT - col1 * col0 * tab1.col0 + - col2 + col1 AS col1 FROM tab1
----
-262
-41007
-83283

query I rowsort
SELECT DISTINCT tab0.col1 + + col2 * + col0 AS col0 FROM tab0
----
132
7389
878

query I rowsort
SELECT + col1 * col2 + + col0 + - col0 AS col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - col1 * + col0 + col1 AS col1 FROM tab1
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 col0 FROM tab0
----
-9
34
7

query I rowsort
SELECT ALL tab1.col2 - col0 FROM tab1
----
-7
16
51

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( tab0.col1 * col0 )
----

query I rowsort
SELECT ALL col2 * - col2 FROM tab0 WHERE NULL NOT IN ( tab0.col0 )
----

query I rowsort
SELECT ALL + col2 * - col0 * - col1 + - col0 - col1 * col2 * cor0.col0 FROM tab0 cor0
----
-24
-35
-89

query I rowsort
SELECT DISTINCT + - col2 * - col1 + - col0 AS col0 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT - - cor0.col0 * - col1 + - col1 * + col0 FROM tab1 AS cor0
----
-1280
-156
-2080

query I rowsort
SELECT + tab2.col2 * + col0 + col1 * col2 AS col0 FROM tab2
----
1026
3562
3648

query I rowsort
SELECT ALL col0 * - col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT DISTINCT + + col0 + + col2 DIV + cor0.col0 - cor0.col1 FROM tab2 AS cor0
----
-21
19
62

skipif mysql # not compatible
query I rowsort label-5740
SELECT DISTINCT + + col0 + + col2 / + cor0.col0 - cor0.col1 FROM tab2 AS cor0
----
-21
19
62

query I rowsort
SELECT DISTINCT col0 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
70
7387
816

onlyif mysql # use DIV operator for integer division
query I rowsort label-5742
SELECT col2 DIV - cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

skipif mysql # not compatible
query I rowsort label-5742
SELECT col2 / - cor0.col0 + + col0 AS col0 FROM tab2 AS cor0
----
4
78
79

query I rowsort
SELECT + col0 * + col1 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT ALL col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT ALL + tab2.col0 + - col2 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT ALL - tab0.col1 * - col0 + + col1 DIV + col1 AS col0 FROM tab0
----
2065
3396
8100

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL - tab0.col1 * - col0 + + col1 / + col1 AS col0 FROM tab0
----
2065
3396
8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col1 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT ALL col2 + - col0 * - col0 FROM tab0
----
1226
609
8003

query I rowsort
SELECT DISTINCT + col2 * col0 - col0 FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-5751
SELECT ALL - + col0 DIV - cor0.col1 + - cor0.col2 * + col0 * - col0 col0 FROM tab0 cor0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL - + col0 / - cor0.col1 + - cor0.col2 * + col0 * - col0 col0 FROM tab0 cor0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col1 FROM tab1 WHERE NULL BETWEEN + col0 / col2 + + col2 AND ( col2 / col2 )
----

query I rowsort
SELECT ALL - + col1 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT DISTINCT - col1 * - col2 + cor0.col0 * col0 FROM tab0 AS cor0
----
1322
15383
3414

query I rowsort
SELECT ALL - 16 AS col1 FROM tab0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 FROM tab2, tab1, tab1 AS cor0, tab0
----
-1040
-640
-78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5757
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5757
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5758
SELECT - - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT - - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT tab1.col0 * - ( 84 ) FROM tab1, tab2 cor0
----
9 values hashing to 0e0079a803d9d8db2f9ce41d13018027

query I rowsort
SELECT col1 + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT ALL - cor0.col2 * - col1 + cor0.col0 * + col0 FROM tab1 cor0
----
1413
4666
7648

query I rowsort
SELECT + - 18 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - col1 * 38 AS col0 FROM tab2 AS cor0
----
-1178
-2242
-646

query I rowsort
SELECT + + col2 + - 55 AS col0 FROM tab2 AS cor0
----
-17
-28
-29

query I rowsort
SELECT ALL - col2 + col2 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + tab2.col1 * + col0 * tab2.col2 AS col1 FROM tab2
----
119711
51051
5890

onlyif mysql # use DIV operator for integer division
query I rowsort label-5767
SELECT - col0 DIV col1 - - col1 * - col0 FROM tab1
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-5767
SELECT - col0 / col1 - - col1 * - col0 FROM tab1
----
-1046
-646
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 - col1 col1 FROM tab2
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT - col0 DIV - col2 + - col0 FROM tab0
----
-24
-88
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT - col0 / - col2 + - col0 FROM tab0
----
-24
-88
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - tab1.col1 col2 FROM tab1
----
28
47
83

query I rowsort
SELECT + tab0.col2 * - tab0.col1 FROM tab0 WHERE NOT tab0.col2 <= ( - col1 / col2 )
----
-2838
-7462
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT col0 + - tab1.col1 + - col2 FROM tab1 WHERE ( col2 + - col2 * col2 ) < NULL
----

query I rowsort
SELECT DISTINCT - 38 * 45 FROM tab1, tab1 AS cor0
----
-1710

query I rowsort
SELECT col0 + ( - col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # use DIV operator for integer division
query I rowsort label-5776
SELECT + + col2 DIV ( 13 ) AS col0 FROM tab0 cor0
----
0
2
6

skipif mysql # not compatible
query I rowsort label-5776
SELECT + + col2 / ( 13 ) AS col0 FROM tab0 cor0
----
0
2
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 col2 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT + + ( - 23 ) AS col2 FROM tab2 AS cor0
----
-23
-23
-23

query I rowsort
SELECT - - 81 * - 7 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
270
79
967

query I rowsort
SELECT ALL - + 90 AS col2 FROM tab0 AS cor0
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - 55 * - col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT 37 * - col2 + 74 + col1 AS col1 FROM tab0 AS cor0
----
-1061
-2869
134

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5783
SELECT - CAST( cor1.col2 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif mysql # not compatible
query I rowsort label-5783
SELECT - CAST ( cor1.col2 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + tab1.col0 col0 FROM tab1
----
165
3712
7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + col1 ) + + 48 col0 FROM tab0 AS cor0
----
134
139
145

query I rowsort
SELECT ALL + - col0 * ( cor0.col0 ) * col1 + col2 * col2 FROM tab0 cor0
----
-118824
-48447
-714087

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5787
SELECT DISTINCT ( - col1 * CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT ( - col1 * CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT col0 * 71 AS col2 FROM tab0 cor0
----
1704
2485
6319

query I rowsort
SELECT col0 * + col0 + + 88 AS col1 FROM tab2 AS cor0
----
137
6172
6329

onlyif mysql # use DIV operator for integer division
query I rowsort label-5790
SELECT ALL col2 + + col2 DIV - col2 col0 FROM tab0 AS cor0
----
0
32
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5790
SELECT ALL col2 + + col2 / - col2 col0 FROM tab0 AS cor0
----
0
32
81

query I rowsort
SELECT - - col1 * col2 * + col2 + - col0 FROM tab0 AS cor0
----
611795
62
93630

query I rowsort
SELECT ALL - col0 + - 91 * + col2 AS col0 FROM tab2 AS cor0
----
-2444
-2464
-3537

query I rowsort
SELECT DISTINCT - - col1 * + ( + 0 ) - + col0 FROM tab2 AS cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 94 col1 FROM tab2 AS cor0
----
1598
2914
5546

query I rowsort
SELECT - col0 + 9 AS col0 FROM tab1 AS cor0
----
-55
-71
6

query I rowsort
SELECT 53 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT ALL - 17 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT ALL - 87 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9

query I rowsort
SELECT col1 * + col0 * col1 - col2 AS col0 FROM tab0
----
177471
329314
736927

onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT + col2 + col1 DIV - col0 AS col1 FROM tab0
----
-1
30
81

skipif mysql # not compatible
query I rowsort label-5800
SELECT + col2 + col1 / - col0 AS col1 FROM tab0
----
-1
30
81

query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 FROM tab0 AS cor0
----
-9
34
7

query I rowsort
SELECT - 89 * col2 AS col2 FROM tab1 AS cor0
----
-4806
-5073
-8544

query I rowsort
SELECT + 34 * 40 AS col2 FROM tab2
----
1360
1360
1360

onlyif mysql # use DIV operator for integer division
query I rowsort label-5804
SELECT + ( 60 + col1 ) DIV - col0 FROM tab1
----
-1
-28
0

skipif mysql # not compatible
query I rowsort label-5804
SELECT + ( 60 + col1 ) / - col0 FROM tab1
----
-1
-28
0

query I rowsort
SELECT ALL 9 - + col0 FROM tab2
----
-69
-70
2

query I rowsort
SELECT - col1 * + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT col1 + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT DISTINCT 4 * + col1 FROM tab1 AS cor0
----
104
40
52

query I rowsort
SELECT - 57 FROM tab0, tab1 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT 79 * - col0 FROM tab1
----
-237
-5056
-6320

query I rowsort
SELECT col2 + + col1 * col0 * col2 AS col0 FROM tab2 AS cor0
----
119678
51072
5886

query I rowsort
SELECT + + ( 79 ) * - col0 + col0 FROM tab0 AS cor0
----
-1872
-2730
-6942

query I rowsort
SELECT DISTINCT cor0.col2 * 76 + col0 FROM tab0 AS cor0
----
111
2532
6321

query I rowsort
SELECT - col1 * + 88 * col1 AS col0 FROM tab1 AS cor0
----
-14872
-59488
-8800

onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT ALL + col0 DIV 8 FROM tab0 AS cor0
----
11
3
4

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + col0 / 8 FROM tab0 AS cor0
----
11
3
4

query I rowsort
SELECT ALL - cor0.col0 + - col2 FROM tab0 AS cor0
----
-171
-36
-57

query I rowsort
SELECT ALL - + col1 + + col1 * 44 FROM tab1 AS cor0
----
1118
430
559

query I rowsort
SELECT DISTINCT + tab2.col2 * + ( + tab2.col0 ) AS col0 FROM tab2
----
189
2028
3002

query I rowsort
SELECT - 19 AS col1 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT - CAST( + col2 AS SIGNED ) * - col1 + tab1.col0 * - col0 AS col0 FROM tab1
----
-3526
-5152
1395

skipif mysql # not compatible
query I rowsort label-5820
SELECT - CAST ( + col2 AS INTEGER ) * - col1 + tab1.col0 * - col0 AS col0 FROM tab1
----
-3526
-5152
1395

query I rowsort
SELECT ALL + col1 - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT + - col2 + - col2 DIV - col1 FROM tab0 cor0
----
-1
-33
-82

skipif mysql # not compatible
query I rowsort label-5822
SELECT + - col2 + - col2 / - col1 FROM tab0 cor0
----
-1
-33
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT - col0 * 72 DIV ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-5823
SELECT - col0 * 72 / ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-72
-72
-72

query I rowsort
SELECT ALL + - col0 + + 5 * cor0.col0 AS col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT ALL col2 + + ( + ( - col1 ) * + cor0.col0 + + 59 ) FROM tab0 AS cor0
----
-1972
-3335
-7958

query I rowsort
SELECT - - cor0.col0 * - col0 + + col0 AS col2 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT ALL col2 * col2 - col2 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT DISTINCT - col2 * + col2 + 87 * - cor0.col1 * - col1 FROM tab1 AS cor0
----
5451
5487
55896

query I rowsort
SELECT ALL - col2 + col0 * + col1 * cor0.col1 FROM tab0 cor0
----
177471
329314
736927

query I rowsort
SELECT DISTINCT col1 * col0 * - col1 + + col2 AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927

query I rowsort
SELECT ALL 11 - tab1.col0 AS col0 FROM tab1
----
-53
-69
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT col0 + - col0 + 90 DIV col1 AS col0 FROM tab2
----
1
2
5

skipif mysql # not compatible
query I rowsort label-5832
SELECT col0 + - col0 + 90 / col1 AS col0 FROM tab2
----
1
2
5

query I rowsort
SELECT + 19 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498

query I rowsort
SELECT DISTINCT + 21 - + col1 AS col1 FROM tab0
----
-65
-70
-76

query I rowsort
SELECT ALL col0 * 16 + - col0 AS col0 FROM tab2 AS cor0
----
105
1170
1185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 98 * col2 + col0 * col1 col1 FROM tab0 cor0
----
16224
3528
5322

query I rowsort
SELECT ALL + + col0 * col0 + - col2 FROM tab0 AS cor0
----
1224
543
7839

onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT - col0 * 3 - + cor0.col2 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
-234
-235

skipif mysql # not compatible
query I rowsort label-5838
SELECT - col0 * 3 - + cor0.col2 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
-234
-235

query I rowsort
SELECT ALL + col2 * col2 + + col0 FROM tab0 AS cor0
----
1113
36
6813

query I rowsort
SELECT + col0 + col0 * + col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731

query I rowsort
SELECT + cor0.col2 * - 30 AS col1 FROM tab2 AS cor0
----
-1140
-780
-810

query I rowsort
SELECT - col0 + col0 * col1 AS col2 FROM tab1 AS cor0
----
576
75
960

query I rowsort
SELECT - - col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - + col1 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576

query I rowsort
SELECT - ( ( + cor0.col1 ) ) * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

onlyif mysql # use DIV operator for integer division
query I rowsort label-5847
SELECT + 78 DIV col1 + + col2 * - ( col2 * col2 ) FROM tab2 AS cor0
----
-17575
-19681
-54868

skipif mysql # not compatible
query I rowsort label-5847
SELECT + 78 / col1 + + col2 * - ( col2 * col2 ) FROM tab2 AS cor0
----
-17575
-19681
-54868

query I rowsort
SELECT - 22 + - cor0.col1 FROM tab0 AS cor0
----
-108
-113
-119

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 + col1 * col0 col2 FROM tab2
----
1422
224
4680

query I rowsort
SELECT ALL tab0.col2 + col1 * 16 FROM tab0
----
1409
1538
1553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5851
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5851
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT + col2 * cor0.col0 DIV - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-5852
SELECT + col2 * cor0.col0 / - col2 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - col2 - 57 FROM tab2 AS cor0
----
-83
-84
-95

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0 CROSS JOIN tab0, tab0 cor1, tab1 AS cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5855
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * + col0 * col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5855
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * + col0 * col0 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5856
SELECT - col0 * cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5856
SELECT - col0 * cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - col1 * + 39 AS col2 FROM tab1 AS cor0
----
26364
3900
6591

query I rowsort
SELECT ALL - ( cor0.col0 ) * + col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL - - cor0.col0 * - 39 + col0 FROM tab1 AS cor0
----
-114
-2432
-3040

query I rowsort
SELECT DISTINCT - col2 + 66 AS col0 FROM tab0 AS cor0
----
-16
33
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 * + 48 col0 FROM tab1 AS cor0
----
-2589
-2672
-4528

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT ALL + cor0.col1 + CAST( 75 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
106
134
92

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + cor0.col1 + CAST ( 75 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
106
134
92

onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT - cor0.col2 DIV + 50 + + 60 AS col2 FROM tab1 AS cor0
----
59
59
59

skipif mysql # not compatible
query I rowsort label-5863
SELECT - cor0.col2 / + 50 + + 60 AS col2 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab2, tab1, tab0 AS cor0, tab0 AS cor1
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + 0 * col0 col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 93 * col1 * + col2 col1 FROM tab2 cor0
----
142584
59999
77834

query I rowsort
SELECT DISTINCT - cor0.col2 - col1 FROM tab1 AS cor0
----
-109
-67
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - cor0.col1 * cor0.col2 col0 FROM tab0 AS cor0
----
-2871
-7544
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5869
SELECT ALL - + col2 * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5869
SELECT ALL - + col2 * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 90 + col2 FROM tab2 AS cor0
----
-52
-63
-64

query I rowsort
SELECT + + col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + cor0.col2 + col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL - ( - col2 ) * col1 + col0 + - cor0.col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL 24 + col0 AS col2 FROM tab2
----
102
103
31

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT ALL - CAST( NULL AS SIGNED ) + col1 / col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL - CAST ( NULL AS INTEGER ) + col1 / col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 13 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT cor0.col0 + - 97 FROM tab1, tab0 AS cor0
----
-62
-73
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 col1 FROM tab0 AS cor0
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT ALL 52 * - col2 + - cor0.col2 DIV 15 AS col0 FROM tab2 AS cor0
----
-1353
-1405
-1978

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL 52 * - col2 + - cor0.col2 / 15 AS col0 FROM tab2 AS cor0
----
-1353
-1405
-1978

query I rowsort
SELECT - 12 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT col2 + col2 * - cor0.col0 * col2 FROM tab2 AS cor0
----
-114038
-5076
-52702

query I rowsort
SELECT + cor0.col2 + ( - 62 ) FROM tab1 AS cor0
----
-5
-8
34

query I rowsort
SELECT col1 + 82 FROM tab0 cor0
----
168
173
179

query I rowsort
SELECT - tab2.col1 * tab2.col0 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT - col0 * cor0.col1 + + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010

query I rowsort
SELECT ALL - 0 * - col1 - + col0 FROM tab2 cor0
----
-7
-78
-79

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db

query I rowsort
SELECT DISTINCT - col0 + - 90 AS col0 FROM tab2 AS cor0
----
-168
-169
-97

query I rowsort
SELECT col0 * ( col0 ) + 39 * - cor0.col0 FROM tab0 AS cor0
----
-140
-360
4450

query I rowsort
SELECT + col0 * - cor0.col0 * - col1 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + ( + col2 ) + cor0.col1 * 64 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10720
-43210
-6343

query I rowsort
SELECT - cor1.col0 + 2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad0d39167de34bfb5df0707a79dd3779

query I rowsort
SELECT ALL + col0 * - 33 FROM tab2 AS cor0
----
-231
-2574
-2607

query I rowsort
SELECT - - ( + col1 ) + col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT + col2 + - 6 FROM tab0 AS cor0
----
-5
27
76

query I rowsort
SELECT ALL - - cor0.col2 + 38 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1998
-2109
-3552

query I rowsort
SELECT - - ( col1 ) * col1 * + cor0.col2 FROM tab2 AS cor0
----
10982
25947
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5899
SELECT DISTINCT CAST( - 43 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1118
-430
-559

skipif mysql # not compatible
query I rowsort label-5899
SELECT DISTINCT CAST ( - 43 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1118
-430
-559

query I rowsort
SELECT ALL + ( ( + col2 ) ) FROM tab1 AS cor0
----
54
57
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-5901
SELECT ALL - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5901
SELECT ALL - col0 / - col0 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 col1 FROM tab0 cor0
----
-34
-7
9

query I rowsort
SELECT ALL - + cor0.col0 + col0 * + 73 * col0 AS col1 FROM tab2 AS cor0
----
3570
444054
455514

onlyif mysql # use DIV operator for integer division
query I rowsort label-5905
SELECT - - col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-5905
SELECT - - col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT + col1 + + col0 * + 84 AS col2 FROM tab1 cor0
----
278
5386
6733

query I rowsort
SELECT ALL + + col1 * col2 * - 55 AS col1 FROM tab2 AS cor0
----
-35530
-46035
-84370

query I rowsort
SELECT - 16 + + col2 FROM tab1 AS cor0
----
38
41
80

query I rowsort
SELECT ALL + col2 * - col2 - - ( 11 ) AS col1 FROM tab0 cor0
----
-1078
-6713
10

query I rowsort
SELECT DISTINCT col1 + - col0 - + 21 AS col0 FROM tab1 AS cor0
----
-75
-88
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-5911
SELECT DISTINCT + col1 DIV CAST( 37 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT + col1 / CAST ( 37 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 + col1 * + 73 FROM tab0 AS cor0
----
6364
6734
7178

query I rowsort
SELECT - - col2 + cor0.col1 AS col2 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT + 24 * - 74 FROM tab0, tab2 AS cor0
----
9 values hashing to a76afcdc4e4f5f6bc103ef780b4d7941

query I rowsort
SELECT + col2 * + 17 AS col0 FROM tab0
----
1394
17
561

query I rowsort
SELECT col0 * - 71 AS col2 FROM tab1
----
-213
-4544
-5680

query I rowsort
SELECT DISTINCT - 84 * 6 AS col1 FROM tab1, tab2 AS cor0
----
-504

query I rowsort
SELECT - + 80 + + 19 AS col2 FROM tab2 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT - col0 * 64 AS col2 FROM tab1 AS cor0
----
-192
-4096
-5120

onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT col2 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
54
58
96

skipif mysql # not compatible
query I rowsort label-5920
SELECT col2 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
54
58
96

query I rowsort
SELECT DISTINCT + - cor0.col1 * col2 + + col1 FROM tab2 cor0
----
-1475
-629
-806

onlyif mysql # use DIV operator for integer division
query I rowsort label-5922
SELECT ALL col0 DIV + col0 + col0 - col2 FROM tab1
----
-15
-50
8

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL col0 / + col0 + col0 - col2 FROM tab1
----
-15
-50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + ( + 89 ) col0 FROM tab2
----
106
120
148

query I rowsort
SELECT ALL - col0 * + col0 + - col0 * col0 * col2 - col2 * + col0 AS col0 FROM tab0
----
-20376
-2485
-664741

query I rowsort
SELECT ALL col1 * 49 - col2 AS col2 FROM tab1
----
1220
433
541

query I rowsort
SELECT 68 * 73 FROM tab0, tab2 AS cor0
----
9 values hashing to 08c97086c9a35c60e53771b9efaf2c64

query I rowsort
SELECT - col2 + - 92 + - col0 * + col1 AS col1 FROM tab1
----
-1228
-224
-789

query I rowsort
SELECT - ( - col1 ) + + 4 + tab0.col2 * col2 AS col2 FROM tab0
----
102
1179
6819

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5929
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5929
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT col0 * col2 * 8 + - 89 AS col2 FROM tab2
----
1423
16135
23927

query I rowsort
SELECT - - col2 * 70 + - col1 FROM tab0 AS cor0
----
-27
2224
5649

onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT - col0 * col1 DIV 85 FROM tab2
----
-15
-2
-54

skipif mysql # not compatible
query I rowsort label-5932
SELECT - col0 * col1 / 85 FROM tab2
----
-15
-2
-54

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT ( col0 * CAST( + col1 AS SIGNED ) ) + + col1 col0 FROM tab2
----
1360
248
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5933
SELECT ( col0 * CAST ( + col1 AS INTEGER ) ) + + col1 col0 FROM tab2
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5934
SELECT - col2 * - CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT - col2 * - CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + cor0.col0 * + col2 FROM tab0 cor0
----
0
7209
768

query I rowsort
SELECT ALL + 65 + - 83 FROM tab2, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT col1 * col1 * ( + col2 ) FROM tab1
----
16224
36504
5700

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5938
SELECT ALL - col1 * 72 + + col0 * - col2 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5938
SELECT ALL - col1 * 72 + + col0 * - col2 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + + 27 * + ( + cor0.col1 ) col1 FROM tab0 AS cor0
----
2346
2546
2654

query I rowsort
SELECT - col2 * ( col0 ) + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5942
SELECT ALL + CAST( 4 AS SIGNED ) FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-5942
SELECT ALL + CAST ( 4 AS INTEGER ) FROM tab2
----
4
4
4

query I rowsort
SELECT ALL 56 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab1
----
-47

query I rowsort
SELECT ( 43 ) AS col2 FROM tab2
----
43
43
43

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5946
SELECT DISTINCT CAST( - 73 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1241
-2263
-4307

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT CAST ( - 73 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1241
-2263
-4307

query I rowsort
SELECT ALL + 90 * cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 12ef396e43fe8422942d06abd90c3d43

query I rowsort
SELECT - 25 * col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-624
-648
-912

query I rowsort
SELECT + cor0.col2 * col2 * - col2 AS col1 FROM tab1 cor0
----
-157464
-185193
-884736

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5950
SELECT DISTINCT - cor1.col2 + - CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
NULL

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - cor1.col2 + - CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col1 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT ALL - col1 + cor0.col0 * + col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667

query I rowsort
SELECT ALL - col0 * - cor0.col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
132
14760
3630

query I rowsort
SELECT ALL + col0 * + cor0.col1 AS col2 FROM tab2 cor0
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-5955
SELECT ALL - - 5 DIV - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL - - 5 / - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - cor0.col0 - + col1 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL 75 + col2 AS col0 FROM tab2 cor0
----
101
102
113

query I rowsort
SELECT DISTINCT - 63 * + col0 FROM tab1 AS cor0
----
-189
-4032
-5040

onlyif mysql # use DIV operator for integer division
query I rowsort label-5959
SELECT + col1 DIV + col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-3
-78
-79

skipif mysql # not compatible
query I rowsort label-5959
SELECT + col1 / + col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-3
-78
-79

query I rowsort
SELECT + - col1 + col1 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - ( tab0.col1 ) - + col0 col1 FROM tab0
----
-7420
-8370
-9444

query I rowsort
SELECT - col1 * - ( col2 * col0 ) + 20 FROM tab2
----
119672
51054
5879

skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + - col1 * CAST ( - col0 + col0 AS INTEGER ) * + CAST ( 77 AS REAL ) FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT + - 15 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1429
661
714

query I rowsort
SELECT - + col2 + + col0 - 18 AS col1 FROM tab2 AS cor0
----
-38
23
34

query I rowsort
SELECT + col1 * - 72 + col1 AS col2 FROM tab2 AS cor0
----
-1207
-2201
-4189

query I rowsort
SELECT + col0 * - col0 + col1 * + col0 + 74 AS col1 FROM tab0 AS cor0
----
1562
2244
252

query I rowsort
SELECT + col2 - ( col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT ALL col1 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT cor0.col1 + 1 * col0 - + col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # use DIV operator for integer division
query I rowsort label-5971
SELECT - + col2 DIV + ( + col0 * - col1 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT - + col2 / + ( + col0 * - col1 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col0 * + col0 + 78 + col1 FROM tab0 AS cor0
----
1400
740
8090

query I rowsort
SELECT col0 * col2 * 62 FROM tab0
----
2170
452476
49104

query I rowsort
SELECT - + cor0.col2 * - col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296

query I rowsort
SELECT ALL ( 82 ) AS col1 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT + col0 * 50 FROM tab1 cor0
----
150
3200
4000

query I rowsort
SELECT + col1 * col2 + col1 * - col1 FROM tab0 AS cor0
----
-4558
-819
-9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5978
SELECT + col2 * - CAST( NULL AS DECIMAL ) + col2 * tab1.col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5978
SELECT + col2 * - CAST ( NULL AS REAL ) + col2 * tab1.col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 75 + - cor0.col1 col0 FROM tab1 AS cor0
----
103
122
158

query I rowsort
SELECT - 74 - + 18 FROM tab2, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT ALL - 96 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1348
580
633

onlyif mysql # use DIV operator for integer division
query I rowsort label-5982
SELECT DISTINCT - ( - ( + col0 ) ) DIV - col2 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT - ( - ( + col0 ) ) / - col2 FROM tab0 AS cor0
----
-1
-35
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-5983
SELECT - ( 7 ) DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5983
SELECT - ( 7 ) / col2 FROM tab1 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT DISTINCT 37 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
37

query I rowsort
SELECT + ( + col0 ) * - col0 * - tab2.col1 AS col0 FROM tab2
----
106097
1519
358956

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5987
SELECT DISTINCT + col0 * CAST( 99 AS SIGNED ) FROM tab0 AS cor0
----
2376
3465
8811

skipif mysql # not compatible
query I rowsort label-5987
SELECT DISTINCT + col0 * CAST ( 99 AS INTEGER ) FROM tab0 AS cor0
----
2376
3465
8811

query I rowsort
SELECT + col1 + col2 + col0 FROM tab0 AS cor0
----
133
143
262

query I rowsort
SELECT ALL col1 + ( - col2 * - col2 ) + + col0 FROM tab0 AS cor0
----
1199
133
6904

query I rowsort
SELECT - col0 * 23 FROM tab2 cor0
----
-161
-1794
-1817

query I rowsort
SELECT ALL col1 + + 95 AS col2 FROM tab2 AS cor0
----
112
126
154

query I rowsort
SELECT + 93 * col1 + col2 + cor0.col0 FROM tab1 AS cor0
----
1051
1385
2475

query I rowsort
SELECT ALL ( + cor0.col2 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17

query I rowsort
SELECT - + col2 + - ( cor0.col2 + - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT + col0 - tab2.col2 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-5996
SELECT - col1 + + col1 DIV + 77 FROM tab2 AS cor0
----
-17
-31
-59

skipif mysql # not compatible
query I rowsort label-5996
SELECT - col1 + + col1 / + 77 FROM tab2 AS cor0
----
-17
-31
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT - col0 DIV + col0 + col0 * col0 AS col0 FROM tab1 cor0
----
4095
6399
8

skipif mysql # not compatible
query I rowsort label-5997
SELECT - col0 / + col0 + col0 * col0 AS col0 FROM tab1 cor0
----
4095
6399
8

query I rowsort
SELECT ALL 71 - - col1 FROM tab2
----
102
130
88

query I rowsort
SELECT 91 - col2 FROM tab0
----
58
9
90

query I rowsort
SELECT 54 * + col2 * - col0 FROM tab1
----
-196992
-414720
-8748

query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab1, tab2 cor0, tab2 AS cor1
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col0 FROM tab0 AS cor0
----
29
29
29

query I rowsort
SELECT + 88 * + 28 FROM tab1, tab1 AS cor0
----
9 values hashing to 7d3bf0b706033ab10b22f7bd582ec3ad

query I rowsort
SELECT - 24 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT + - 46 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7

query I rowsort
SELECT ALL - 54 * col2 FROM tab1 AS cor0
----
-2916
-3078
-5184

query I rowsort
SELECT DISTINCT tab1.col2 - tab1.col2 FROM tab1
----
0

query I rowsort
SELECT + col0 + tab2.col2 * + col2 + col0 * col2 FROM tab2
----
2782
4525
925

query I rowsort
SELECT ALL + - col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6011
SELECT ALL - col1 + cor0.col1 DIV col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-6011
SELECT ALL - col1 + cor0.col1 / col0 FROM tab2 AS cor0
----
-17
-27
-59

query I rowsort
SELECT DISTINCT col2 * col2 * col0 + - tab1.col0 AS col0 FROM tab1
----
207872
737200
8745

onlyif mysql # use DIV operator for integer division
query I rowsort label-6013
SELECT - col2 DIV + col2 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-6013
SELECT - col2 / + col2 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col0 + col2 + col0 * cor0.col1 col0 FROM tab0 AS cor0
----
15479
2889
3431

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - col2 col1 FROM tab2 AS cor0
----
-1381
-244
-4628

query I rowsort
SELECT ALL + - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col2 * + cor0.col0 + col0 * col2 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( 72 ) FROM tab0
----
72

query I rowsort
SELECT - - col2 * - 29 FROM tab1 AS cor0
----
-1566
-1653
-2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 col0 FROM tab2
----
11
11
11

query I rowsort
SELECT 17 * - col1 - + col0 FROM tab0
----
-1486
-1636
-1684

query I rowsort
SELECT DISTINCT + + ( 64 ) AS col1 FROM tab2 AS cor0
----
64

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6023
SELECT - CAST( NULL AS DECIMAL ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6023
SELECT - CAST ( NULL AS REAL ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6024
SELECT + - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-6024
SELECT + - col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT DISTINCT 79 * - col2 + + col1 FROM tab1 AS cor0
----
-4240
-4493
-7571

query I rowsort
SELECT DISTINCT + col2 * 47 * - col2 + col2 + col2 AS col1 FROM tab2 AS cor0
----
-31720
-34209
-67792

onlyif mysql # use DIV operator for integer division
query I rowsort label-6027
SELECT - + col0 DIV cor0.col1 AS col1 FROM tab1 cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT - + col0 / cor0.col1 AS col1 FROM tab1 cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col2 FROM tab1 AS cor0
----
-85
-85
-85

query I rowsort
SELECT ALL - col2 + + col0 * col2 FROM tab1 cor0
----
108
3591
7584

query I rowsort
SELECT ALL + col0 + + col1 * col1 * + col2 + col0 FROM tab1 AS cor0
----
16384
36510
5828

query I rowsort
SELECT DISTINCT 69 - col2 AS col0 FROM tab1 AS cor0
----
-27
12
15

query I rowsort
SELECT ALL + col0 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-6033
SELECT ALL - 9 * col1 DIV col0 AS col0 FROM tab2 cor0
----
-1
-39
-6

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL - 9 * col1 / col0 AS col0 FROM tab2 cor0
----
-1
-39
-6

query I rowsort
SELECT ALL + 53 * col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
1636
3049
822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 * col1 col1 FROM tab2
----
-1888
-544
-992

query I rowsort
SELECT ALL - 22 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
154
1716
1738

query I rowsort
SELECT DISTINCT + - col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT 47 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6039
SELECT + - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6039
SELECT + - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 28 + col0 AS col2 FROM tab0 AS cor0
----
117
52
63

query I rowsort
SELECT DISTINCT ( - 11 ) * col1 FROM tab1 AS cor0
----
-110
-143
-286

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT tab1.col2 * + cor0.col2 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e358219bf03c93d7085a65107d13cf1

query I rowsort
SELECT ALL + ( + 45 ) * - col1 + 39 * - col2 * + col2 FROM tab0
----
-266331
-4404
-46341

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT ALL col2 * col2 + - col1 * + CAST( + col1 * + col2 AS SIGNED ) + - col2 AS col1 FROM tab2
----
-25245
-89856
-9576

skipif mysql # not compatible
query I rowsort label-6045
SELECT ALL col2 * col2 + - col1 * + CAST ( + col1 * + col2 AS INTEGER ) + - col2 AS col1 FROM tab2
----
-25245
-89856
-9576

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6046
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL + col0 + + 72 FROM tab2
----
150
151
79

query I rowsort
SELECT DISTINCT + col0 + + 35 FROM tab1 AS cor0
----
115
38
99

query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT - 13 + - tab2.col2 FROM tab2
----
-39
-40
-51

query I rowsort
SELECT + col1 * cor0.col1 * - col0 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400

query I rowsort
SELECT DISTINCT 64 * - col2 AS col0 FROM tab0 AS cor0
----
-2112
-5248
-64

query I rowsort
SELECT DISTINCT - col2 + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1508
608
810

query I rowsort
SELECT + col2 * ( col2 + col2 ) AS col1 FROM tab2 AS cor0
----
1352
1458
2888

query I rowsort
SELECT ALL + col2 * col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
14022
1881
36

query I rowsort
SELECT ALL + - col2 + - 50 AS col0 FROM tab0 cor0
----
-132
-51
-83

query I rowsort
SELECT DISTINCT + col1 * 72 FROM tab1
----
1872
720
936

query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 + col2 * col1 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
1033
3640
3727

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6059
SELECT DISTINCT + col2 + + CAST( col1 AS SIGNED ) * - col2 + col2 FROM tab0 AS cor0
----
-2772
-7298
-95

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT + col2 + + CAST ( col1 AS INTEGER ) * - col2 + col2 FROM tab0 AS cor0
----
-2772
-7298
-95

query I rowsort
SELECT ALL - cor0.col1 * col2 * col2 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97

query I rowsort
SELECT DISTINCT + + col0 * 38 FROM tab0 AS cor0
----
1330
3382
912

query I rowsort
SELECT ALL + cor0.col2 + + col1 + col2 FROM tab2 AS cor0
----
111
85
93

query I rowsort
SELECT + + col1 + - 9 FROM tab1 AS cor0
----
1
17
4

query I rowsort
SELECT col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT ALL col1 * + col1 * col0 AS col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT - - cor0.col1 * - col0 + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-1247
-179
-4465

query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-6068
SELECT 32 * col0 DIV col1 AS col0 FROM tab2 AS cor0
----
148
42
7

skipif mysql # not compatible
query I rowsort label-6068
SELECT 32 * col0 / col1 AS col0 FROM tab2 AS cor0
----
148
42
7

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6069
SELECT - CAST( NULL AS DECIMAL ) + 50 * col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT - CAST ( NULL AS REAL ) + 50 * col0 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6070
SELECT + + CAST( + ( + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-6070
SELECT + + CAST ( + ( + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT - 37 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
1406
962
999

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab0 AS cor0
----
30
30
30

query I rowsort
SELECT ALL - cor0.col2 * - col2 + + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT - - col0 DIV col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT - - col0 / col2 + - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6075
SELECT - 29 DIV + col1 + + 39 + col2 AS col2 FROM tab1 AS cor0
----
133
92
94

skipif mysql # not compatible
query I rowsort label-6075
SELECT - 29 / + col1 + + 39 + col2 AS col2 FROM tab1 AS cor0
----
133
92
94

query I rowsort
SELECT + 33 * col1 + 33 * col0 FROM tab2 AS cor0
----
1254
3168
4521

query I rowsort
SELECT - - 59 * col2 - + 52 FROM tab0 AS cor0
----
1895
4786
7

query I rowsort
SELECT - - ( col0 ) + ( + col0 ) AS col1 FROM tab1 AS cor0
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 col1 FROM tab0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775

query I rowsort
SELECT DISTINCT ( tab2.col1 ) - 29 * + tab2.col2 * + tab2.col2 FROM tab2
----
-19545
-21110
-41859

query I rowsort
SELECT 18 * + tab1.col2 + ( 56 ) + + tab1.col2 AS col1 FROM tab1
----
1082
1139
1880

query I rowsort
SELECT 51 + col2 FROM tab0
----
133
52
84

onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT ( col1 ) DIV + col1 + col0 + tab2.col1 FROM tab2
----
138
39
97

skipif mysql # not compatible
query I rowsort label-6084
SELECT ( col1 ) / + col1 + col0 + tab2.col1 FROM tab2
----
138
39
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col0 col0 FROM tab0
----
-110
-132
-180

query I rowsort
SELECT - col1 - + col0 * - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630

onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT + + col2 * col2 + + col2 DIV + col1 FROM tab0 cor0
----
1
1089
6724

skipif mysql # not compatible
query I rowsort label-6087
SELECT + + col2 * col2 + + col2 / + col1 FROM tab0 cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT col1 * + 72 AS col0 FROM tab2 cor0
----
1224
2232
4248

query I rowsort
SELECT ALL - + col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1224
543
7839

query I rowsort
SELECT ALL - + col1 + col2 * - col2 FROM tab1 cor0
----
-2942
-3259
-9229

query I rowsort
SELECT - - col1 + col2 * - col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT DISTINCT col2 * ( - 63 ) AS col2 FROM tab2 cor0
----
-1638
-1701
-2394

query I rowsort
SELECT DISTINCT col0 * - col2 * 12 FROM tab0
----
-420
-87576
-9504

query I rowsort
SELECT ( + col0 ) * 9 AS col1 FROM tab2
----
63
702
711

query I rowsort
SELECT - 70 * + col1 AS col0 FROM tab0
----
-6020
-6370
-6790

query I rowsort
SELECT col0 + - 27 AS col2 FROM tab0 cor0
----
-3
62
8

query I rowsort
SELECT - cor0.col0 + - 12 FROM tab0 AS cor0
----
-101
-36
-47

query I rowsort
SELECT DISTINCT - col0 * + col2 + 68 FROM tab0 cor0
----
-7230
-724
33

query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 - - col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT 59 * ( - col2 ) * - col1 FROM tab2 AS cor0
----
38114
49383
90506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT ALL - CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT ( - col0 ) * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6103
SELECT ALL - - CAST( + col0 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - - CAST ( + col0 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT + col0 + + 34 FROM tab1 AS cor0
----
114
37
98

query I rowsort
SELECT DISTINCT + ( 60 ) * + cor0.col0 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT - + 63 + cor0.col1 * col1 FROM tab2 AS cor0
----
226
3418
898

query I rowsort
SELECT ( - 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT - - 69 AS col2 FROM tab2 cor0
----
69

query I rowsort
SELECT - + 27 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81

query I rowsort
SELECT DISTINCT - col0 * col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT 53 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6

query I rowsort
SELECT DISTINCT ( - col0 ) * ( col1 ) + col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + 98 + col0 FROM tab1 cor0
----
101
162
178

query I rowsort
SELECT ALL 60 - + col2 AS col0 FROM tab2 AS cor0
----
22
33
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * cor0.col0 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT DISTINCT + col1 * - col1 * 23 + - col2 + col1 AS col1 FROM tab1 AS cor0
----
-15576
-2347
-3970

query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 * + 78 FROM tab0 AS cor0
----
-6675
-7016
-7565

query I rowsort
SELECT ALL 80 * + col2 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT ALL + 2 + + col1 + + cor0.col0 FROM tab1 AS cor0
----
31
76
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT 40 * + 82 + col0 * 31 FROM tab1
----
3373
5264
5760

query I rowsort
SELECT 96 + cor0.col1 AS col2 FROM tab2 AS cor0
----
113
127
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-6123
SELECT ALL - col2 DIV col0 col0 FROM tab1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL - col2 / col0 col0 FROM tab1
----
-1
-18
0

query I rowsort
SELECT col0 + col1 * + 20 AS col0 FROM tab2 AS cor0
----
1258
419
627

onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT ALL 99 DIV - col2 FROM tab0 AS cor0
----
-1
-3
-99

skipif mysql # not compatible
query I rowsort label-6125
SELECT ALL 99 / - col2 FROM tab0 AS cor0
----
-1
-3
-99

query I rowsort
SELECT DISTINCT + + cor0.col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6127
SELECT CAST( NULL AS SIGNED ) / + 45 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

skipif mysql # not compatible
query I rowsort label-6127
SELECT CAST ( NULL AS INTEGER ) / + 45 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c

query I rowsort
SELECT DISTINCT - 5 * - col1 - - col0 AS col1 FROM tab2 AS cor0
----
162
164
373

query I rowsort
SELECT + col1 + - 72 FROM tab1 AS cor0
----
-46
-59
-62

query I rowsort
SELECT ( 4 ) + - col0 FROM tab0
----
-20
-31
-85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6131
SELECT + col1 + ( - tab1.col1 ) DIV col2 AS col2 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-6131
SELECT + col1 + ( - tab1.col1 ) / col2 AS col2 FROM tab1
----
10
13
26

query I rowsort
SELECT ALL - col1 - 44 FROM tab1 AS cor0
----
-54
-57
-70

query I rowsort
SELECT + + ( - col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * + col2 + + 90 col0 FROM tab1 AS cor0
----
-1158
-1314
-480

query I rowsort
SELECT ALL - + 50 * ( cor0.col2 ) + col0 * + 57 AS col2 FROM tab0 AS cor0
----
-282
1945
973

query I rowsort
SELECT ALL 50 + 92 FROM tab0 AS cor0
----
142
142
142

onlyif mysql # use DIV operator for integer division
query I rowsort label-6137
SELECT DISTINCT - 45 + - col2 DIV + col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT - 45 + - col2 / + col1 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT cor0.col1 * 17 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ee6cb2f8b7053d5e6b5faa7ac7ef9941

onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT - 44 DIV 54 + cor0.col1 DIV + cor0.col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT - 44 / 54 + cor0.col1 / + cor0.col2 FROM tab1 AS cor0
----
0

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6141
SELECT DISTINCT + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + cor0.col2 + 2 * col1 AS col1 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT + col1 + 38 * - col0 AS col0 FROM tab2 AS cor0
----
-235
-2905
-2985

query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
-2713
1453
772

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6145
SELECT DISTINCT + col0 * CAST( + 97 AS SIGNED ) FROM tab1 AS cor0
----
291
6208
7760

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT + col0 * CAST ( + 97 AS INTEGER ) FROM tab1 AS cor0
----
291
6208
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT col2 DIV - 27 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6146
SELECT col2 / - 27 FROM tab0 AS cor0
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + 6 col2 FROM tab1 AS cor0
----
324
342
576

onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT + col1 + col1 DIV + col0 + col1 * ( + col2 ) FROM tab0 cor0
----
196
2927
7554

skipif mysql # not compatible
query I rowsort label-6148
SELECT + col1 + col1 / + col0 + col1 * ( + col2 ) FROM tab0 cor0
----
196
2927
7554

query I rowsort
SELECT ALL + cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col1 + ( col2 + col2 ) FROM tab1 AS cor0
----
124
134
205

query I rowsort
SELECT - - col1 * 66 AS col2 FROM tab0 AS cor0
----
5676
6006
6402

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1, tab0 cor2
----
3645 values hashing to 6dd6930689f177711fda407b5ce0d072

query I rowsort
SELECT - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - cor0.col1 col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - col0 + - ( col2 ) * + col0 + - cor0.col2 FROM tab1 cor0
----
-1376
-207
391

onlyif mysql # use DIV operator for integer division
query I rowsort label-6156
SELECT DISTINCT + + cor0.col2 + col0 DIV - col0 + 65 * - col0 FROM tab0 AS cor0
----
-1528
-2275
-5704

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT + + cor0.col2 + col0 / - col0 + 65 * - col0 FROM tab0 AS cor0
----
-1528
-2275
-5704

query I rowsort
SELECT + + 20 + col1 + col1 AS col2 FROM tab2 AS cor0
----
138
54
82

query I rowsort
SELECT DISTINCT + 21 FROM tab2 cor0
----
21

query I rowsort
SELECT DISTINCT + 13 + 34 FROM tab0
----
47

query I rowsort
SELECT 3 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - 65 * + col1 + + col1 FROM tab0 AS cor0
----
-5504
-5824
-6208

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6162
SELECT + col1 * + col2 + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6162
SELECT + col1 * + col2 + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 27 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753

query I rowsort
SELECT DISTINCT ( - col1 ) * 29 FROM tab0
----
-2494
-2639
-2813

query I rowsort
SELECT - col0 * + col1 + col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524

onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT ALL - col0 * + cor0.col0 DIV - col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

skipif mysql # not compatible
query I rowsort label-6166
SELECT ALL - col0 * + cor0.col0 / - col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL col0 * 6 - col0 AS col1 FROM tab1 cor0
----
15
320
400

onlyif mysql # use DIV operator for integer division
query I rowsort label-6168
SELECT + cor0.col1 * CAST( 46 AS SIGNED ) + - col1 DIV + 3 FROM tab2 AS cor0
----
1416
2695
777

skipif mysql # not compatible
query I rowsort label-6168
SELECT + cor0.col1 * CAST ( 46 AS INTEGER ) + - col1 / + 3 FROM tab2 AS cor0
----
1416
2695
777

query I rowsort
SELECT ALL + 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - 80 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT ALL 87 FROM tab2, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab1, tab2 AS cor0
----
86

query I rowsort
SELECT ALL + col1 + - 55 AS col2 FROM tab2
----
-24
-38
4

query I rowsort
SELECT ALL - col0 + - col1 * col2 AS col0 FROM tab0
----
-132
-2862
-7551

onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT - + col2 * col0 + + col0 DIV col1 FROM tab1 AS cor0
----
-162
-3642
-7674

skipif mysql # not compatible
query I rowsort label-6175
SELECT - + col2 * col0 + + col0 / col1 FROM tab1 AS cor0
----
-162
-3642
-7674

query I rowsort
SELECT - cor0.col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + 75 + col2 * col1 FROM tab1
----
1323
1479
645

query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT 73 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - - col0 - - 51 FROM tab2 cor0
----
129
130
58

query I rowsort
SELECT - - col1 * col2 + col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + 1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT - cor0.col2 + - col1 * - 73 AS col0 FROM tab1 AS cor0
----
1844
673
853

query I rowsort
SELECT - - 92 - - col1 AS col0 FROM tab1 AS cor0
----
102
105
118

query I rowsort
SELECT + - col1 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553

query I rowsort
SELECT col0 * - col2 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964

query I rowsort
SELECT + - 80 AS col1 FROM tab0 AS cor0
----
-80
-80
-80

query I rowsort
SELECT - tab1.col1 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c6f4b0b1d1f7796b05493e23d40b0b75

query I rowsort
SELECT ALL + + 52 - + 59 AS col1 FROM tab1 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - col2 * + 16 FROM tab0
----
-1312
-16
-528

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2

query I rowsort
SELECT - col2 + 87 FROM tab0
----
5
54
86

query I rowsort
SELECT - 5 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 52 col2 FROM tab2
----
111
69
83

query I rowsort
SELECT + col2 - col2 * + col0 * + col0 FROM tab2
----
-1296
-158158
-237120

query I rowsort
SELECT DISTINCT + col2 * 97 - col0 AS col2 FROM tab0 cor0
----
3177
62
7865

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6197
SELECT CAST( + col1 AS SIGNED ) + col2 col1 FROM tab2 AS cor0
----
55
58
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6197
SELECT CAST ( + col1 AS INTEGER ) + col2 col1 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col1 * + 45 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
1167
386
505

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT - + 89 AS col2 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT ALL + col2 * col2 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-34
-574
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 + + col0 col0 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT + - col0 * col1 + col1 FROM tab1 cor0
----
-1027
-52
-630

query I rowsort
SELECT ALL 71 FROM tab0 cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + 44 + col2 AS col2 FROM tab0 AS cor0
----
126
45
77

query I rowsort
SELECT ALL - 87 * ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-582
-6760
-6835

query I rowsort
SELECT ALL - 46 + col1 FROM tab1 AS cor0
----
-20
-33
-36

query I rowsort
SELECT DISTINCT - 92 + tab0.col0 FROM tab0
----
-3
-57
-68

query I rowsort
SELECT + + 74 * cor0.col0 + cor0.col2 * - col0 FROM tab2 AS cor0
----
2844
329
3744

query I rowsort
SELECT - - 72 + + col0 + - col0 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT + 6 + col0 AS col2 FROM tab1 AS cor0
----
70
86
9

query I rowsort
SELECT + col2 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT col2 + + 2 AS col1 FROM tab0 cor0
----
3
35
84

query I rowsort
SELECT col2 * 80 AS col2 FROM tab0 AS cor0
----
2640
6560
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT DISTINCT col1 + + cor0.col0 DIV col1 - + col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-6215
SELECT DISTINCT col1 + + cor0.col0 / col1 - + col1 FROM tab1 AS cor0
----
0
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6216
SELECT ALL - col2 - CAST( + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL - col2 - CAST ( + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT DISTINCT - - col0 + col2 AS col2 FROM tab2 cor0
----
104
117
34

query I rowsort
SELECT ALL + col2 + - 60 AS col2 FROM tab1 AS cor0
----
-3
-6
36

query I rowsort
SELECT ALL - col0 + 97 * col1 * col0 AS col1 FROM tab0 AS cor0
----
200184
329280
785514

query I rowsort
SELECT ALL col0 + 59 * - 29 FROM tab0 AS cor0
----
-1622
-1676
-1687

query I rowsort
SELECT ALL + + cor0.col0 + 2 FROM tab1 AS cor0
----
5
66
82

query I rowsort
SELECT DISTINCT + - col2 + col0 * 1 AS col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL - 28 * + col1 AS col2 FROM tab1
----
-280
-364
-728

query I rowsort
SELECT + col2 * 61 + - col0 * col0 + - ( col0 ) FROM tab1 AS cor0
----
-624
-683
3282

query I rowsort
SELECT ALL + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6226
SELECT DISTINCT - col2 DIV - ( col1 * - col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT - col2 / - ( col1 * - col2 ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6227
SELECT + ( col1 ) DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6227
SELECT + ( col1 ) / + col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT col1 * + 10 * col1 - - col0 * col1 FROM tab1
----
1640
2730
6838

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab0, tab0 AS cor0
----
-69

query I rowsort
SELECT ALL + 30 * - 4 FROM tab0 AS cor0
----
-120
-120
-120

query I rowsort
SELECT DISTINCT - 67 AS col2 FROM tab1 AS cor0
----
-67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT ALL ( - col2 ) + + col0 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
34
7216
759

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL ( - col2 ) + + col0 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
34
7216
759

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e

query I rowsort
SELECT - ( 21 ) FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to cdcb40c9e1bb9a33ce9167a0d2bac0b1

query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col2 * col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT ALL + - col1 DIV cor0.col0 + 89 FROM tab0 AS cor0
----
86
87
88

skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL + - col1 / cor0.col0 + 89 FROM tab0 AS cor0
----
86
87
88

query I rowsort
SELECT DISTINCT + ( col1 ) * 9 + 22 AS col2 FROM tab2 AS cor0
----
175
301
553

query I rowsort
SELECT + + col1 * cor0.col1 + - col2 FROM tab1 AS cor0
----
43
622
73

onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT DISTINCT - 97 DIV - col1 + - ( 86 ) * col1 FROM tab1 AS cor0
----
-1111
-2233
-851

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT - 97 / - col1 + - ( 86 ) * col1 FROM tab1 AS cor0
----
-1111
-2233
-851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 * col2 + + col0 col1 FROM tab0 AS cor0
----
1377
3451
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6241
SELECT ALL - 97 DIV col1 + + col1 + + col2 * + cor0.col0 * - ( 65 ) FROM tab0 cor0
----
-2179
-474280
-51395

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - 97 / col1 + + col1 + + col2 * + cor0.col0 * - ( 65 ) FROM tab0 cor0
----
-2179
-474280
-51395

query I rowsort
SELECT 34 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1836
-1938
-3264

query I rowsort
SELECT DISTINCT ( - col2 ) - + tab2.col0 * - col2 AS col1 FROM tab2
----
162
2002
2964

query I rowsort
SELECT ALL col2 * + col1 + - ( col1 + - col2 ) * col2 AS col0 FROM tab2
----
1444
676
729

query I rowsort
SELECT ALL col2 + col2 * - ( 36 ) * col1 FROM tab0
----
-102135
-268550
-3491

query I rowsort
SELECT + col0 - col2 * - tab2.col0 * 31 FROM tab2
----
5866
62946
93141

query I rowsort
SELECT + cor0.col0 + col1 * 55 FROM tab2 AS cor0
----
1014
1712
3323

query I rowsort
SELECT ALL 98 * - col2 AS col0 FROM tab0 AS cor0
----
-3234
-8036
-98

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab1, tab1 AS cor0
----
6

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 cor2, tab0 AS cor3
----
13122 values hashing to da6fbd932cfc0a8f7e6395036121be0f

query I rowsort
SELECT DISTINCT - col0 - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081

query I rowsort
SELECT - + cor0.col2 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7363
8199
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 81 col2 FROM tab0 cor0
----
114
163
82

query I rowsort
SELECT DISTINCT - - col0 * + col2 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
2704
4446
918

query I rowsort
SELECT ALL - + 44 * + col2 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44

query I rowsort
SELECT - col2 * - ( + col1 ) * ( col1 ) FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT ALL + ( + col2 ) * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT - 27 + + 78 AS col2 FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL col0 * - 15 + + col1 + col0 FROM tab0 AS cor0
----
-1155
-250
-393

query I rowsort
SELECT col0 * col0 * ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT ( - col0 + - 4 ) AS col0 FROM tab0
----
-28
-39
-93

query I rowsort
SELECT ALL + 71 + cor0.col1 * - col1 - col0 FROM tab1 cor0
----
-178
-608
-93

query I rowsort
SELECT ( - col1 ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT 83 * col1 + col1 AS col0 FROM tab0 AS cor0
----
7224
7644
8148

query I rowsort
SELECT DISTINCT col0 + col0 * + col0 * col1 + + col0 FROM tab2 cor0
----
106255
1533
359112

query I rowsort
SELECT - cor0.col2 + col0 - + 65 FROM tab1 cor0
----
-116
-58
-81

query I rowsort
SELECT ALL - col2 * 60 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6268
SELECT col0 * ( - 90 ) DIV col1 FROM tab2
----
-118
-20
-418

skipif mysql # not compatible
query I rowsort label-6268
SELECT col0 * ( - 90 ) / col1 FROM tab2
----
-118
-20
-418

query I rowsort
SELECT + col2 * - 79 * col2 + col2 FROM tab2 AS cor0
----
-114038
-53378
-57564

query I rowsort
SELECT - - col1 + + ( col0 * + col1 ) AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT + col2 + - 9 AS col2 FROM tab2 AS cor0
----
17
18
29

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6272
SELECT - + CAST( col2 AS SIGNED ) + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

skipif mysql # not compatible
query I rowsort label-6272
SELECT - + CAST ( col2 AS INTEGER ) + col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) * 70 AS col2 FROM tab0 AS cor0
----
2310
5740
70

query I rowsort
SELECT - - ( + col1 ) * col0 * ( 43 ) FROM tab0 AS cor0
----
145985
348257
88752

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6275
SELECT CAST( NULL AS DECIMAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6275
SELECT CAST ( NULL AS REAL ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT col0 DIV - ( col1 ) + + col0 * 41 FROM tab2
----
287
3197
3235

skipif mysql # not compatible
query I rowsort label-6276
SELECT col0 / - ( col1 ) + + col0 * 41 FROM tab2
----
287
3197
3235

query I rowsort
SELECT ALL + tab0.col2 + ( - ( - tab0.col0 ) * + col2 ) AS col0 FROM tab0
----
36
7380
825

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + ( + col2 ) col0 FROM tab2
----
104
117
34

query I rowsort
SELECT - - 57 * - col0 FROM tab0 AS cor0
----
-1368
-1995
-5073

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6280
SELECT + + ( + 89 ) * - cor0.col0 + CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-5587
-6266
106

skipif mysql # not compatible
query I rowsort label-6280
SELECT + + ( + 89 ) * - cor0.col0 + CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-5587
-6266
106

query I rowsort
SELECT - - 89 * cor0.col0 * + col2 FROM tab2 AS cor0
----
16821
180492
267178

query I rowsort
SELECT - 41 + col2 + col2 FROM tab2 AS cor0
----
11
13
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-6283
SELECT ALL - - cor0.col2 DIV + col0 FROM tab2 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL - - cor0.col2 / + col0 FROM tab2 cor0
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 70 ) - col0 col0 FROM tab2
----
-8
-9
63

query I rowsort
SELECT ALL - col0 * col1 - col0 AS col0 FROM tab1
----
-1120
-704
-81

query I rowsort
SELECT DISTINCT + ( tab0.col0 ) + + tab0.col2 FROM tab0, tab1, tab0 AS cor0
----
171
36
57

query I rowsort
SELECT - ( 82 + - col1 ) * + 78 * + 48 AS col2 FROM tab1
----
-209664
-258336
-269568

onlyif mysql # use DIV operator for integer division
query I rowsort label-6288
SELECT 67 DIV + ( + tab1.col0 + col2 * - 89 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6288
SELECT 67 / + ( + tab1.col0 + col2 * - 89 ) AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ( + tab1.col1 ) * - col1 FROM tab1
----
-100
-169
-676

query I rowsort
SELECT + 28 AS col1 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT tab0.col1 + ( 61 ) * - tab0.col0 AS col0 FROM tab0, tab2 AS cor0
----
-1378
-2038
-5338

query I rowsort
SELECT ALL ( 29 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT ALL 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 78 col0 FROM tab1
----
1014
2028
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT - col1 DIV + ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6295
SELECT - col1 / + ( - col2 ) FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6296
SELECT cor0.col1 DIV + 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6296
SELECT cor0.col1 / + 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * cor0.col0 * ( - col1 ) AS col1 FROM tab0 AS cor0
----
-118825
-49536
-720811

onlyif mysql # use DIV operator for integer division
query I rowsort label-6298
SELECT - col1 DIV + cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6298
SELECT - col1 / + cor0.col2 AS col2 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * + col1 + + cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT ALL - col0 * col2 + - col2 + 46 * col2 FROM tab0 AS cor0
----
-3608
10
693

query I rowsort
SELECT ALL + cor0.col1 * + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL - 82 * + col2 AS col1 FROM tab2 AS cor0
----
-2132
-2214
-3116

query I rowsort
SELECT + - col0 + - col2 * 6 AS col1 FROM tab2 AS cor0
----
-169
-234
-307

query I rowsort
SELECT ALL - 49 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT 11 * col0 FROM tab2 cor0
----
77
858
869

query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 * + ( - 4 ) FROM tab0 cor0
----
-108
-239
31

query I rowsort
SELECT ALL - cor0.col2 + 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d3ef10aa520cfe1bda52bd54547739a9

query I rowsort
SELECT ALL + 54 AS col2 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL - ( - col2 * 95 + col2 * - col0 ) FROM tab1
----
16800
5292
9063

query I rowsort
SELECT + ( col2 ) * - 70 + - 39 AS col2 FROM tab0
----
-109
-2349
-5779

query I rowsort
SELECT ALL + ( tab0.col0 ) * ( col0 ) AS col0 FROM tab0
----
1225
576
7921

query I rowsort
SELECT + + 26 * col2 FROM tab0 AS cor0
----
2132
26
858

query I rowsort
SELECT + 87 + - col0 FROM tab2
----
8
80
9

query I rowsort
SELECT DISTINCT - 73 + col2 + col1 AS col0 FROM tab1 AS cor0
----
-6
36
7

query I rowsort
SELECT - - col0 * - 66 + col2 * col1 FROM tab1 AS cor0
----
-3654
-4032
1206

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6317
SELECT DISTINCT - + ( + cor0.col0 ) * - col2 + CAST( NULL AS DECIMAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT DISTINCT - + ( + cor0.col0 ) * - col2 + CAST ( NULL AS REAL ) * + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1 cor0
----
97
97
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6319
SELECT DISTINCT + 94 DIV - 60 AS col1 FROM tab2, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT + 94 / - 60 AS col1 FROM tab2, tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 * 78 - tab0.col1 * col1 AS col1 FROM tab0
----
-1885
-4822
-9331

query I rowsort
SELECT + col1 - - col1 AS col1 FROM tab2
----
118
34
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6322
SELECT ALL + CAST( NULL AS SIGNED ) + - 24 * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL + CAST ( NULL AS INTEGER ) + - 24 * cor0.col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( 63 ) FROM tab2 AS cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-6324
SELECT + col1 + col2 DIV - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

skipif mysql # not compatible
query I rowsort label-6324
SELECT + col1 + col2 / - col1 AS col1 FROM tab2 AS cor0
----
15
31
59

query I rowsort
SELECT - col2 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT - 92 * - col0 AS col0 FROM tab1 cor0
----
276
5888
7360

query I rowsort
SELECT - col0 * col2 - tab1.col1 AS col0 FROM tab1
----
-188
-3658
-7693

query I rowsort
SELECT DISTINCT + ( cor0.col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + + 66 + 37 AS col2 FROM tab0 AS cor0
----
103
103
103

query I rowsort
SELECT ALL + 54 FROM tab2, tab1 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

query I rowsort
SELECT col2 + - ( col1 ) AS col1 FROM tab1
----
28
47
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-6332
SELECT ALL - 50 DIV - 69 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6332
SELECT ALL - 50 / - 69 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT ALL - + col0 DIV col2 - + cor0.col1 * + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-36481
-4212
-99840

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL - + col0 / col2 - + cor0.col1 * + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-36481
-4212
-99840

query I rowsort
SELECT + col2 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT - ( col2 ) + + cor0.col2 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT DISTINCT - col0 DIV + col0 col1 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT - col0 / + col0 col1 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - + 5 + + col2 - - cor0.col0 FROM tab0 AS cor0
----
166
31
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 17 + col0 * + col0 col0 FROM tab0 AS cor0
----
1208
559
7904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + cor0.col1 col1 FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT cor0.col2 * + 20 * - col1 AS col2 FROM tab2 AS cor0
----
-12920
-16740
-30680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col2 col2 FROM tab0 AS cor0
----
164
2
66

query I rowsort
SELECT - col2 + + 43 * - col0 AS col0 FROM tab2 AS cor0
----
-328
-3380
-3435

query I rowsort
SELECT DISTINCT + col0 + - tab2.col0 + 92 AS col2 FROM tab2
----
92

query I rowsort
SELECT ALL + + col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT col1 * - 45 FROM tab0 AS cor0
----
-3870
-4095
-4365

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT DISTINCT cor0.col0 * + CAST( col0 * - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT cor0.col0 * + CAST ( col0 * - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT DISTINCT col2 * 59 FROM tab0 AS cor0
----
1947
4838
59

query I rowsort
SELECT - col0 * - cor0.col2 + - col0 FROM tab0 AS cor0
----
0
7209
768

query I rowsort
SELECT + cor0.col1 * - 6 AS col0 FROM tab0 AS cor0
----
-516
-546
-582

onlyif mysql # use DIV operator for integer division
query I rowsort label-6351
SELECT ALL + - col2 + + col1 DIV - col0 FROM tab2 AS cor0
----
-26
-31
-38

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL + - col2 + + col1 / - col0 FROM tab2 AS cor0
----
-26
-31
-38

query I rowsort
SELECT DISTINCT + col0 * + ( 89 * + cor0.col0 ) FROM tab2 cor0
----
4361
541476
555449

query I rowsort
SELECT + col2 * + 3 FROM tab1 AS cor0
----
162
171
288

query I rowsort
SELECT + col0 + 19 FROM tab1 AS cor0
----
22
83
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT ALL CAST( 99 AS SIGNED ) AS col0 FROM tab1 cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL CAST ( 99 AS INTEGER ) AS col0 FROM tab1 cor0
----
99
99
99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6356
SELECT - CAST( col2 AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6356
SELECT - CAST ( col2 AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 - 73 AS col0 FROM tab0
----
-159
-164
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + - 4 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

query I rowsort
SELECT - + col0 * col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT + col2 * 14 - col1 AS col0 FROM tab1 AS cor0
----
1331
730
788

query I rowsort
SELECT ALL + 61 + tab2.col1 AS col0 FROM tab2
----
120
78
92

query I rowsort
SELECT ALL col0 * + tab2.col2 + - col2 FROM tab2
----
162
2002
2964

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6363
SELECT DISTINCT + col0 * + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
189
2028
3002

skipif mysql # not compatible
query I rowsort label-6363
SELECT DISTINCT + col0 * + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - col2 * - 79 + + cor0.col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
273
2779
6660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * - col1 + + col1 col1 FROM tab0
----
-7310
-8190
-9312

query I rowsort
SELECT ALL - col1 * col0 * col0 AS col1 FROM tab2
----
-106097
-1519
-358956

query I rowsort
SELECT ALL + + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 * col1 + - col0 AS col1 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT DISTINCT - 20 + col1 * col0 FROM tab2 AS cor0
----
1323
197
4582

query I rowsort
SELECT + col0 - - col2 * col2 AS col1 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT DISTINCT + + col1 DIV - col1 - - cor0.col2 FROM tab2 AS cor0
----
25
26
37

skipif mysql # not compatible
query I rowsort label-6372
SELECT DISTINCT + + col1 / - col1 - - cor0.col2 FROM tab2 AS cor0
----
25
26
37

query I rowsort
SELECT ALL - + ( - cor0.col1 ) FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT - 41 + cor0.col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6374
SELECT - 41 + cor0.col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 FROM tab1 cor0
----
19

query I rowsort
SELECT cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

query I rowsort
SELECT ALL + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - cor0.col2 col1 FROM tab2 AS cor0
----
-52
-54
-76

query I rowsort
SELECT + cor0.col0 * 97 FROM tab0 AS cor0
----
2328
3395
8633

onlyif mysql # use DIV operator for integer division
query I rowsort label-6380
SELECT - col2 - - 0 DIV cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-6380
SELECT - col2 - - 0 / cor0.col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT ALL 74 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82

query I rowsort
SELECT cor0.col1 + - 67 FROM tab2 AS cor0
----
-36
-50
-8

query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT - col2 + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab1, tab0 AS cor0
----
57

query I rowsort
SELECT ALL - ( - tab2.col0 ) * - col0 + col0 + col1 * col0 AS col2 FROM tab2
----
-1404
-4819
175

query I rowsort
SELECT + 30 * - 60 + - col1 AS col2 FROM tab0 AS cor0
----
-1886
-1891
-1897

query I rowsort
SELECT - col0 + col0 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT + 24 + 4 * + col2 FROM tab0 AS cor0
----
156
28
352

onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT + - 50 + col2 DIV + 29 AS col2 FROM tab1 AS cor0
----
-47
-49
-49

skipif mysql # not compatible
query I rowsort label-6390
SELECT + - 50 + col2 / + 29 AS col2 FROM tab1 AS cor0
----
-47
-49
-49

query I rowsort
SELECT ALL - - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT - col1 + + col0 * col0 AS col2 FROM tab0 cor0
----
1128
490
7830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6393
SELECT DISTINCT CAST( 24 AS SIGNED ) * col2 FROM tab1
----
1296
1368
2304

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT CAST ( 24 AS INTEGER ) * col2 FROM tab1
----
1296
1368
2304

query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 * - 11 AS col1 FROM tab2 cor0
----
10571
3179
38291

onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT DISTINCT 4 * col2 DIV + col0 AS col1 FROM tab2
----
1
15

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT 4 * col2 / + col0 AS col1 FROM tab2
----
1
15

query I rowsort
SELECT ALL - 38 * + col2 AS col0 FROM tab0
----
-1254
-3116
-38

query I rowsort
SELECT ALL - 52 + + 76 + - col0 * + col2 FROM tab0
----
-11
-7274
-768

query I rowsort
SELECT + + tab1.col0 * tab1.col0 FROM tab0, tab2, tab0 AS cor0, tab1
----
81 values hashing to d5bb2936215e00b8ed99fa757fc90166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 + col0 col0 FROM tab1
----
138
173
32

query I rowsort
SELECT - col0 * - col2 + - cor0.col2 * - 51 * - ( col2 ) FROM tab2 AS cor0
----
-32448
-36990
-70642

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + 96 * col1 + + col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
1274
2548
980

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6403
SELECT ALL ( + col2 ) + col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT ALL ( + col2 ) + col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

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 ALL - + col2 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT - 46 * + col2 + col2 * + 52 AS col1 FROM tab1 cor0
----
324
342
576

query I rowsort
SELECT DISTINCT + ( - col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col1 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868

query I rowsort
SELECT DISTINCT + - ( col2 ) FROM tab2 cor0
----
-26
-27
-38

query I rowsort
SELECT ALL + 31 * col0 FROM tab0 AS cor0
----
1085
2759
744

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6411
SELECT CAST( NULL AS SIGNED ) * tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6411
SELECT CAST ( NULL AS INTEGER ) * tab1.col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - ( col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-6414
SELECT ALL col1 DIV + 41 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL col1 / + 41 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT + col0 * tab0.col0 + col1 AS col1 FROM tab0
----
1322
662
8012

query I rowsort
SELECT DISTINCT - col1 * col0 + + cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL + col1 * col1 + - 83 FROM tab2 AS cor0
----
206
3398
878

query I rowsort
SELECT + - col1 * - cor0.col1 - 28 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-187
1829
93

query I rowsort
SELECT DISTINCT + + col0 + ( col1 ) AS col2 FROM tab1 cor0
----
29
74
93

query I rowsort
SELECT + col0 * - col0 - 84 AS col0 FROM tab0 AS cor0
----
-1309
-660
-8005

query I rowsort
SELECT DISTINCT - col1 + + col1 - col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + - 84 * - tab1.col2 FROM tab1, tab0, tab0 cor0
----
4536
4788
8064

query I rowsort
SELECT ALL - tab0.col1 * col2 * col2 - + col2 FROM tab0
----
-611966
-93687
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT - col0 * CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
-1343
-217
-4602

skipif mysql # not compatible
query I rowsort label-6424
SELECT - col0 * CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
-1343
-217
-4602

query I rowsort
SELECT col0 + ( + col2 + col1 * + 23 ) AS col0 FROM tab1 AS cor0
----
351
475
655

onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT + tab2.col1 + + col1 DIV + 98 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6426
SELECT + tab2.col1 + + col1 / + 98 FROM tab2
----
17
31
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - col0 * col1 col0 FROM tab2
----
-1054
-1121
744

query I rowsort
SELECT col1 * col0 + + col0 * - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 * - 58 + - col0 AS col1 FROM tab0
----
4964
5189
5591

onlyif mysql # use DIV operator for integer division
query I rowsort label-6430
SELECT col0 DIV + 77 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6430
SELECT col0 / + 77 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - + ( cor0.col1 ) + col2 FROM tab1 AS cor0
----
28
47
83

query I rowsort
SELECT col0 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab1 cor0
----
-54
-57
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-6434
SELECT DISTINCT + cor0.col0 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-6434
SELECT DISTINCT + cor0.col0 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
7
77
78

query I rowsort
SELECT col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6436
SELECT DISTINCT col2 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT col2 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6437
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) - 7 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) - 7 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + 36 * + 77 FROM tab1
----
2782
2785
2798

query I rowsort
SELECT DISTINCT - col0 + 51 AS col0 FROM tab0
----
-38
16
27

query I rowsort
SELECT DISTINCT 53 * col2 + + col2 AS col2 FROM tab2 AS cor0
----
1404
1458
2052

query I rowsort
SELECT DISTINCT - 29 * 14 + - col2 + - ( + col0 ) * + col2 FROM tab0 AS cor0
----
-1231
-442
-7786

query I rowsort
SELECT col1 * col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL 27 * + col0 AS col1 FROM tab2 cor0
----
189
2106
2133

query I rowsort
SELECT 82 - 65 AS col0 FROM tab1 AS cor0
----
17
17
17

query I rowsort
SELECT ALL - col2 + 52 FROM tab2 AS cor0
----
14
25
26

query I rowsort
SELECT 97 * - col1 * - col0 FROM tab1 AS cor0
----
100880
62080
7566

query I rowsort
SELECT ALL + col0 * col2 + - col1 + 67 * + col0 FROM tab1 AS cor0
----
13027
337
7926

query I rowsort
SELECT ALL col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6449
SELECT + 81 - - cor0.col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-6449
SELECT + 81 - - cor0.col1 / - col1 AS col1 FROM tab2 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT ALL - 50 DIV col0 FROM tab1 AS cor0
----
-16
0
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL - 50 / col0 FROM tab1 AS cor0
----
-16
0
0

query I rowsort
SELECT - col1 + col0 * 5 AS col1 FROM tab0
----
34
354
78

query I rowsort
SELECT + + cor0.col0 * cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0

query I rowsort
SELECT DISTINCT col2 * + col1 + col1 * 89 - col1 AS col0 FROM tab2 cor0
----
2142
3565
6726

query I rowsort
SELECT DISTINCT 53 - - col0 FROM tab0 AS cor0
----
142
77
88

query I rowsort
SELECT + + 62 * col0 AS col0 FROM tab1 AS cor0
----
186
3968
4960

query I rowsort
SELECT ALL + col0 + cor0.col0 + col2 FROM tab0 AS cor0
----
260
71
81

query I rowsort
SELECT DISTINCT + col0 + cor0.col1 AS col0 FROM tab2 cor0
----
137
38
96

query I rowsort
SELECT col2 * 60 * - 0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6459
SELECT ALL + col0 DIV col1 - - cor0.col2 FROM tab2 cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + col0 / col1 - - cor0.col2 FROM tab2 cor0
----
27
27
42

query I rowsort
SELECT ALL - col2 * ( + ( col2 ) ) - 2 * - 79 AS col0 FROM tab1 cor0
----
-2758
-3091
-9058

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 - col1 * - ( 79 ) col0 FROM tab1
----
1111
2138
874

query I rowsort
SELECT col0 + cor0.col2 * - 40 AS col0 FROM tab0 AS cor0
----
-1296
-3191
-5

query I rowsort
SELECT DISTINCT 69 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
69

query I rowsort
SELECT - col0 + - cor0.col1 - + col2 AS col1 FROM tab2 AS cor0
----
-134
-163
-65

query I rowsort
SELECT col0 + + col1 + col1 AS col1 FROM tab2 AS cor0
----
113
196
69

query I rowsort
SELECT ALL + + col1 * - col1 * col1 AS col0 FROM tab2 AS cor0
----
-205379
-29791
-4913

query I rowsort
SELECT - col0 * + tab2.col0 / tab2.col0 AS col2 FROM tab2 WHERE NOT NULL BETWEEN + col0 AND NULL AND NOT ( + col2 * + col0 ) IN ( - col0 * col1 )
----

query I rowsort
SELECT + cor0.col0 + - col0 * + cor0.col0 FROM tab2 AS cor0
----
-42
-6006
-6162

onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT DISTINCT tab0.col0 + - col0 DIV - col1 + col1 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT tab0.col0 + - col0 / - col1 + col1 FROM tab0
----
110
132
180

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 - + col1 )
----

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + col0 + - col2 FROM tab0
----
24
35
89

query I rowsort
SELECT - col1 + tab2.col2 + tab2.col0 FROM tab2
----
100
3
45

query I rowsort
SELECT + tab1.col2 * - col2 + col0 FROM tab1
----
-2913
-3185
-9136

query I rowsort
SELECT + col1 * - col1 + - tab1.col0 FROM tab1
----
-164
-249
-679

query I rowsort
SELECT ALL - - col1 + cor0.col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT ALL + col2 + cor0.col0 * col2 FROM tab2 AS cor0
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-6478
SELECT DISTINCT + cor0.col2 + + col2 * cor0.col1 DIV + col2 FROM tab0 AS cor0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6478
SELECT DISTINCT + cor0.col2 + + col2 * cor0.col1 / + col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 - tab0.col1 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT ALL col2 + tab1.col2 * tab1.col2 AS col1 FROM tab1
----
2970
3306
9312

query I rowsort
SELECT ALL + - cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + col1 - col0 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 * col1 FROM tab2
----
-232
-2805
1155

query I rowsort
SELECT ALL col0 * + col1 + col2 AS col1 FROM tab0
----
2097
3396
8181

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( col0 + col2 / col0 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6486
SELECT col2 DIV - col2 col0 FROM tab0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6486
SELECT col2 / - col2 col0 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col1 * + col0 NOT BETWEEN col1 * + col1 AND + col1 * + col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col0 * + col0 * + col2 + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT tab0.col0 * - col0 * - col2 + - tab0.col0 FROM tab0
----
1190
18984
649433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col2 FROM tab1 AS cor0
----
-70
-70
-70

query I rowsort
SELECT col1 + col2 * col0 AS col2 FROM tab2
----
2087
220
3019

query I rowsort
SELECT DISTINCT col0 - tab0.col2 AS col1 FROM tab0
----
-9
34
7

query I rowsort
SELECT tab2.col1 + col0 AS col0 FROM tab2
----
137
38
96

query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT + col2 + col2 * - col1 * col0 FROM tab2
----
-119626
-50996
-5832

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col2 FROM tab1
----
4096
6400
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-6497
SELECT ALL + col2 DIV + col1 - - col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

skipif mysql # not compatible
query I rowsort label-6497
SELECT ALL + col2 / + col1 - - col1 * - col1 AS col0 FROM tab0
----
-7396
-8281
-9409

query I rowsort
SELECT - col0 * - col1 + col1 * - col1 AS col1 FROM tab0
----
-182
-5332
-6014

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - col0 - - col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) <> + col2 + col2 * tab1.col0
----

query I rowsort
SELECT col2 * + tab1.col0 - col0 * col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col2 * col0 + tab0.col0 FROM tab0
----
-7209
-768
0

query I rowsort
SELECT ALL + 17 - - col0 * - col2 * col2 FROM tab0
----
-18
-26119
-598419

query I rowsort
SELECT + tab0.col2 * col0 + + col0 - ( + col0 ) AS col2 FROM tab0
----
35
7298
792

query I rowsort
SELECT ALL + 90 - col1 AS col1 FROM tab1
----
64
77
80

query I rowsort
SELECT 67 - col1 FROM tab1 AS cor0
----
41
54
57

query I rowsort
SELECT DISTINCT col1 - col0 * ( col2 ) FROM tab2 AS cor0
----
-158
-1969
-2985

skipif mysql # not compatible
query I rowsort
SELECT - ( - col0 ) + - CAST ( + col0 AS REAL ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 * + col1 * + col0 FROM tab2 AS cor0
----
22831
271518
6727

query I rowsort
SELECT ALL - + col0 * - ( - col2 ) + + col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col1 * ( - cor0.col1 ) * cor0.col1 + col0 FROM tab0 cor0
----
-636032
-753482
-912638

query I rowsort
SELECT DISTINCT + col2 * + col2 + - 74 FROM tab2 AS cor0
----
1370
602
655

query I rowsort
SELECT ALL - + col1 + - 94 + + 0 FROM tab0 AS cor0
----
-180
-185
-191

query I rowsort
SELECT DISTINCT + + col1 * ( 8 ) * cor0.col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
2391
27926
7695

query I rowsort
SELECT DISTINCT 44 * + tab2.col1 FROM tab2
----
1364
2596
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT DISTINCT + ( - col1 ) * - col0 * CAST( - cor0.col2 AS SIGNED ) - - col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT + ( - col1 ) * - col0 * CAST ( - cor0.col2 AS INTEGER ) - - col0 FROM tab1 AS cor0
----
-36416
-4209
-99760

query I rowsort
SELECT DISTINCT 33 * + col2 FROM tab1 cor0
----
1782
1881
3168

query I rowsort
SELECT - col1 + 84 * - col2 FROM tab0 AS cor0
----
-181
-2858
-6979

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col0 FROM tab1 cor0
----
-16
-51
7

query I rowsort
SELECT + cor0.col2 * ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT + 71 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6522
SELECT ALL col2 * + ( col1 ) + 25 + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1274
1430
596

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL col2 * + ( col1 ) + 25 + col1 / col1 AS col0 FROM tab1 AS cor0
----
1274
1430
596

query I rowsort
SELECT ALL - + col2 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT + - 69 * col1 FROM tab1 AS cor0
----
-1794
-690
-897

query I rowsort
SELECT - cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT DISTINCT + col1 - - col0 * + col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80

query I rowsort
SELECT DISTINCT - 17 * col0 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT DISTINCT col1 * + col0 + - ( 73 ) AS col2 FROM tab0 AS cor0
----
1991
3322
8026

query I rowsort
SELECT ALL + col0 * cor0.col2 - ( + col0 ) * col0 AS col1 FROM tab1 cor0
----
-448
1280
153

query I rowsort
SELECT + + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT ALL - - cor0.col0 * col2 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
3008
6640
84

query I rowsort
SELECT DISTINCT ( - 76 ) * - col0 FROM tab1
----
228
4864
6080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + cor0.col1 * + 68 col1 FROM tab1 AS cor0
----
1822
737
980

query I rowsort
SELECT ( - cor0.col1 ) * 84 FROM tab2 AS cor0
----
-1428
-2604
-4956

query I rowsort
SELECT ALL + - 4 AS col0 FROM tab0 cor0
----
-4
-4
-4

query I rowsort
SELECT ALL - 84 + cor0.col2 FROM tab1 cor0
----
-27
-30
12

onlyif mysql # use DIV operator for integer division
query I rowsort label-6539
SELECT - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6539
SELECT - col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col1 * col1 + col0 * - col0 FROM tab0 AS cor0
----
-10634
-16202
-7972

query I rowsort
SELECT col1 + cor0.col0 * 8 FROM tab0 AS cor0
----
278
377
803

query I rowsort
SELECT col0 + + cor0.col2 * + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
2165
227
3098

query I rowsort
SELECT 33 * + 62 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 23cf61b1debbf5c74c3ed0c5b9625f76

query I rowsort
SELECT 58 * + col2 + tab2.col1 AS col2 FROM tab2
----
1567
1597
2221

query I rowsort
SELECT ALL + + col1 * cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col0 * - col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162

query I rowsort
SELECT tab0.col2 - 91 * - col2 FROM tab0
----
3036
7544
92

query I rowsort
SELECT DISTINCT - + 48 + - cor0.col2 FROM tab2 AS cor0
----
-74
-75
-86

query I rowsort
SELECT DISTINCT - 79 + 50 + col2 FROM tab0 cor0
----
-28
4
53

onlyif mysql # use DIV operator for integer division
query I rowsort label-6550
SELECT ALL - 57 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-6550
SELECT ALL - 57 / col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT DISTINCT - ( - 5 ) FROM tab2 AS cor0
----
5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6552
SELECT ALL col2 + + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 + 17 * + col1 FROM tab0
----
1548
1638
1746

skipif mysql # not compatible
query I rowsort
SELECT CAST ( 99 AS REAL ) FROM tab0
----
99
99
99

query I rowsort
SELECT + - 73 * col0 + + col2 * col0 + - col0 * col0 FROM tab1 AS cor0
----
-4560
-5120
-66

onlyif mysql # use DIV operator for integer division
query I rowsort label-6557
SELECT col2 DIV - 38 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT col2 / - 38 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6558
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 73 ) FROM tab0 cor0
----
73

query I rowsort
SELECT + + col2 + col2 + - cor0.col0 FROM tab1 AS cor0
----
105
112
50

onlyif mysql # use DIV operator for integer division
query I rowsort label-6561
SELECT + col1 + - 24 DIV col1 AS col2 FROM tab2 AS cor0
----
16
31
59

skipif mysql # not compatible
query I rowsort label-6561
SELECT + col1 + - 24 / col1 AS col2 FROM tab2 AS cor0
----
16
31
59

onlyif mysql # use DIV operator for integer division
query I rowsort label-6562
SELECT DISTINCT - CAST( + 72 AS SIGNED ) DIV + col2 + col0 * 22 FROM tab0 AS cor0
----
1958
526
698

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT - CAST ( + 72 AS INTEGER ) / + col2 + col0 * 22 FROM tab0 AS cor0
----
1958
526
698

query I rowsort
SELECT DISTINCT ( + 99 ) * + col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2462
3562
8902

query I rowsort
SELECT ALL - cor0.col1 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT + col1 + - 52 * col1 AS col2 FROM tab0
----
-4386
-4641
-4947

onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT ALL - - col1 * + col0 DIV + col0 FROM tab2 cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - - col1 * + col0 / + col0 FROM tab2 cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6567
SELECT - CAST( - col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
52
54
76

skipif mysql # not compatible
query I rowsort label-6567
SELECT - CAST ( - col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
52
54
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - 28 AS col0 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT + col2 + - 50 * col0 AS col2 FROM tab0 AS cor0
----
-1167
-1749
-4368

query I rowsort
SELECT cor0.col1 * - 27 + col1 AS col0 FROM tab0 AS cor0
----
-2236
-2366
-2522

query I rowsort
SELECT + 13 * - cor0.col1 + + col2 AS col0 FROM tab2 AS cor0
----
-183
-376
-741

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT ( col0 ) * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-6573
SELECT ( col0 ) * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 10 + col2 col2 FROM tab1 AS cor0
----
106
64
67

query I rowsort
SELECT + 27 * col0 AS col1 FROM tab2 AS cor0
----
189
2106
2133

query I rowsort
SELECT + col1 * col0 + col1 * - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT - cor0.col2 + + cor0.col1 DIV + ( + 50 ) FROM tab0 AS cor0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-6577
SELECT - cor0.col2 + + cor0.col1 / + ( + 50 ) FROM tab0 AS cor0
----
-32
-81
0

query I rowsort
SELECT - - 57 * + col0 FROM tab1 cor0
----
171
3648
4560

query I rowsort
SELECT - + col1 * cor0.col0 + cor0.col1 * + col0 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT cor0.col2 * - 83 FROM tab0 AS cor0
----
-2739
-6806
-83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6581
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6581
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT DISTINCT + + col0 DIV + col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6582
SELECT DISTINCT + + col0 / + col1 + cor0.col2 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT col0 * + 19 + col2 + col2 FROM tab1 AS cor0
----
1330
165
1712

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6584
SELECT + col2 * - CAST( 96 * - cor0.col1 + ( + 2 ) * col2 AS SIGNED ) FROM tab0 AS cor0
----
270270
702904
9310

skipif mysql # not compatible
query I rowsort label-6584
SELECT + col2 * - CAST ( 96 * - cor0.col1 + ( + 2 ) * col2 AS INTEGER ) FROM tab0 AS cor0
----
270270
702904
9310

query I rowsort
SELECT ALL cor0.col2 + 15 * - col1 FROM tab0 AS cor0
----
-1257
-1283
-1454

query I rowsort
SELECT DISTINCT + cor0.col1 + - col0 FROM tab0 cor0
----
2
62

query I rowsort
SELECT ALL - col2 * - 65 FROM tab1 AS cor0
----
3510
3705
6240

query I rowsort
SELECT - col1 + 6 * + 8 AS col1 FROM tab1 AS cor0
----
22
35
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 28 * col1 col1 FROM tab1
----
344
444
731

query I rowsort
SELECT - - col2 * + col0 + col0 + - col1 FROM tab0 AS cor0
----
-27
7296
730

query I rowsort
SELECT ALL + + cor0.col2 + - cor0.col1 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50

query I rowsort
SELECT DISTINCT + - col0 + + col0 * col2 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT ALL - 45 + cor0.col0 * + col0 FROM tab2 AS cor0
----
4
6039
6196

query I rowsort
SELECT - col0 - + 52 AS col2 FROM tab0
----
-141
-76
-87

onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ( + col0 ) DIV col0 col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6595
SELECT ( + col0 ) / col0 col0 FROM tab2
----
1
1
1

query I rowsort
SELECT - ( col1 ) + + col1 + - col2 * col0 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT ( ( col2 ) ) AS col2 FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT DISTINCT 70 * - ( - col1 ) FROM tab0 cor0
----
6020
6370
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 65 ) + col0 * - 15 col0 FROM tab2 AS cor0
----
-1105
-1120
-40

query I rowsort
SELECT ALL col1 + col0 * + col1 AS col0 FROM tab1
----
104
1053
650

query I rowsort
SELECT 20 + col0 + - col0 AS col2 FROM tab0
----
20
20
20

query I rowsort
SELECT - 97 FROM tab0, tab1, tab2 AS cor0, tab2
----
81 values hashing to a85708f93e08f0a017b33cd7912642fd

onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT + col0 DIV col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6603
SELECT + col0 / col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6604
SELECT CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-6604
SELECT CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6605
SELECT + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-86
-91
-97

skipif mysql # not compatible
query I rowsort label-6605
SELECT + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6606
SELECT 78 DIV col1 col2 FROM tab2
----
1
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6606
SELECT 78 / col1 col2 FROM tab2
----
1
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-6607
SELECT DISTINCT col1 + col1 - + col1 DIV + col2 FROM tab1
----
20
26
52

skipif mysql # not compatible
query I rowsort label-6607
SELECT DISTINCT col1 + col1 - + col1 / + col2 FROM tab1
----
20
26
52

query I rowsort
SELECT DISTINCT + 28 + - 22 FROM tab2
----
6

query I rowsort
SELECT ALL + ( + col0 ) * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - col0 + col0 * 35 * col0 AS col1 FROM tab1
----
143296
223920
312

onlyif mysql # use DIV operator for integer division
query I rowsort label-6611
SELECT col1 + col2 DIV col2 col0 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6611
SELECT col1 + col2 / col2 col0 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT 51 AS col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 * + col0 + - col1 col0 FROM tab1
----
-207946
-737293
-8774

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 15 + cor0.col1 * + col2 + + ( col1 ) col1 FROM tab2 AS cor0
----
1848
2763
973

query I rowsort
SELECT ALL + col2 + 82 + col2 FROM tab2 AS cor0
----
134
136
158

query I rowsort
SELECT DISTINCT + col2 * col0 - - cor0.col1 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT - col0 * 53 AS col0 FROM tab0 AS cor0
----
-1272
-1855
-4717

query I rowsort
SELECT DISTINCT + col2 * col1 + 61 AS col2 FROM tab1 cor0
----
1309
1465
631

query I rowsort
SELECT ALL col2 * - ( 62 ) AS col0 FROM tab2 AS cor0
----
-1612
-1674
-2356

query I rowsort
SELECT DISTINCT + - col1 + col2 + col0 * - col2 FROM tab2 AS cor0
----
-193
-2061
-2981

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6621
SELECT ALL - col1 / + CAST( NULL AS SIGNED ) - cor0.col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6621
SELECT ALL - col1 / + CAST ( NULL AS INTEGER ) - cor0.col1 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - cor0.col0 * + 6 * + 8 AS col1 FROM tab1 AS cor0
----
-144
-3072
-3840

query I rowsort
SELECT DISTINCT col2 * 46 AS col2 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT ALL + col2 + - col1 * - col0 * cor0.col2 FROM tab1 AS cor0
----
36537
4266
99936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 77 * col2 col1 FROM tab1 AS cor0
----
4132
4379
7379

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT ALL - col2 * - CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - col2 * - CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - tab0.col1 * ( col2 ) + col0 FROM tab0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-6628
SELECT col1 + + col0 DIV - 27 AS col1 FROM tab2 AS cor0
----
15
31
57

skipif mysql # not compatible
query I rowsort label-6628
SELECT col1 + + col0 / - 27 AS col1 FROM tab2 AS cor0
----
15
31
57

query I rowsort
SELECT DISTINCT + col2 + - col2 + + 58 FROM tab1 AS cor0
----
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6630
SELECT DISTINCT + col1 - ( 15 ) * - cor0.col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + col1 - ( 15 ) * - cor0.col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT col2 + cor0.col0 + + cor0.col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1561
763
780

query I rowsort
SELECT + col1 + + 21 * + col2 * + col1 FROM tab2 AS cor0
----
13583
17608
32273

query I rowsort
SELECT DISTINCT + col1 * - 70 AS col1 FROM tab0 AS cor0
----
-6020
-6370
-6790

query I rowsort
SELECT + - col2 * col1 + col0 + + col0 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1410
-4602
-7568

skipif mysql # not compatible
query I rowsort
SELECT ALL - cor0.col1 * - col0 * col0 + + cor0.col2 * CAST ( col0 * col2 AS REAL ) FROM tab2 AS cor0
----
220173
411684
6622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - 36 col0 FROM tab0 AS cor0
----
-118
-37
-69

query I rowsort
SELECT 2 AS col2 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + - col2 + + col2 * - col1 FROM tab1 AS cor0
----
-1344
-1458
-627

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col1 ) * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT col0 * col2 + + col0 * - col0 + 87 * - col0 FROM tab0 AS cor0
----
-1872
-4235
-8366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 69 ) col1 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6642
SELECT + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) + col0 FROM tab1 AS cor0
----
-1168
-1401
-506

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + - cor0.col0 + 47 AS col2 FROM tab0 AS cor0
----
-42
12
23

query I rowsort
SELECT DISTINCT - - 38 * + col1 AS col0 FROM tab0 AS cor0
----
3268
3458
3686

query I rowsort
SELECT - col0 * + col2 * 1 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - col1 * + col1 AS col2 FROM tab0 cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT + + col2 * - col2 + 75 AS col2 FROM tab2 AS cor0
----
-1369
-601
-654

query I rowsort
SELECT DISTINCT - - 3 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - ( cor0.col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT + - col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9

query I rowsort
SELECT - ( col0 ) + ( - col1 ) * col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-3430
-664207
-68136

query I rowsort
SELECT - + col1 + col0 * - cor0.col2 FROM tab1 AS cor0
----
-188
-3658
-7693

query I rowsort
SELECT ALL - col0 * cor0.col1 * ( 54 ) FROM tab0 AS cor0
----
-111456
-183330
-437346

onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT + + col1 * col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-3395
-62
-98

skipif mysql # not compatible
query I rowsort label-6656
SELECT + + col1 * col0 / - col2 AS col1 FROM tab0 AS cor0
----
-3395
-62
-98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6657
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col0 - - col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col2 + - col1 - - col1 * ( col1 + - col2 ) AS col2 FROM tab0
----
4505
810
9216

query I rowsort
SELECT DISTINCT - 95 - col1 FROM tab2
----
-112
-126
-154

query I rowsort
SELECT DISTINCT - ( col2 ) + + 59 FROM tab2 AS cor0
----
21
32
33

query I rowsort
SELECT + col1 * col1 + cor0.col1 FROM tab0 AS cor0
----
7482
8372
9506

query I rowsort
SELECT ALL - + col1 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT 24 + cor0.col1 AS col0 FROM tab2 AS cor0
----
41
55
83

query I rowsort
SELECT + - 52 + - col2 AS col2 FROM tab0 AS cor0
----
-134
-53
-85

query I rowsort
SELECT ALL - 79 * + col2 + + ( + ( - col0 ) ) * 88 FROM tab1
----
-10135
-14624
-4530

query I rowsort
SELECT col0 + - col1 + 17 * + col0 FROM tab0
----
1511
346
533

query I rowsort
SELECT ALL - + col0 * col2 * - col0 FROM tab2 AS cor0
----
1323
158184
237158

query I rowsort
SELECT 33 * - col1 + + col2 * + 50 FROM tab0
----
-1188
-3151
1097

query I rowsort
SELECT 29 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318

query I rowsort
SELECT + ( 97 ) * tab2.col1 AS col1 FROM tab2
----
1649
3007
5723

query I rowsort
SELECT + - 62 FROM tab2 cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 AS REAL ) FROM tab0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT col2 DIV - col1 col2 FROM tab2 AS cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6675
SELECT col2 / - col1 col2 FROM tab2 AS cor0
----
-2
0
0

query I rowsort
SELECT - + 82 FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # use DIV operator for integer division
query I rowsort label-6677
SELECT + + 20 + - col0 * 81 DIV 98 FROM tab0 AS cor0
----
-53
-8
1

skipif mysql # not compatible
query I rowsort label-6677
SELECT + + 20 + - col0 * 81 / 98 FROM tab0 AS cor0
----
-53
-8
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + - 74 col2 FROM tab2 AS cor0
----
-2102
-263
-3076

onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT tab2.col2 DIV col0 AS col1 FROM tab2
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6679
SELECT tab2.col2 / col0 AS col1 FROM tab2
----
0
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + ( - 50 ) col0 FROM tab1 AS cor0
----
-2700
-2850
-4800

query I rowsort
SELECT ALL + - col2 * + col1 + 58 * col0 * - col2 + + cor0.col2 * col2 FROM tab1 cor0
----
-208905
-437472
-7884

query I rowsort
SELECT ALL - - col2 * col1 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627

query I rowsort
SELECT + + col1 - - 52 AS col1 FROM tab0 AS cor0
----
138
143
149

skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col2 * - CAST ( - col1 AS REAL ) * + col1 FROM tab2 AS cor0
----
10982
25947
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + 28 col1 FROM tab1 AS cor0
----
-36
-52
25

query I rowsort
SELECT - 67 * + col1 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-1688
-613
-775

onlyif mysql # use DIV operator for integer division
query I rowsort label-6687
SELECT col2 + col0 DIV col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-6687
SELECT col2 + col0 / col1 FROM tab1 AS cor0
----
102
54
63

query I rowsort
SELECT col2 * ( col0 ) * - col2 FROM tab0
----
-26136
-35
-598436

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6690
SELECT + CAST( NULL AS SIGNED ) + col0 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT + CAST ( NULL AS INTEGER ) + col0 - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6691
SELECT - 84 + + ( col0 ) * CAST( col0 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
118741
49452
720727

skipif mysql # not compatible
query I rowsort label-6691
SELECT - 84 + + ( col0 ) * CAST ( col0 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
118741
49452
720727

onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT - - cor0.col1 * col0 + - col2 DIV ( col1 ) AS col1 FROM tab1 AS cor0
----
1033
635
76

skipif mysql # not compatible
query I rowsort label-6692
SELECT - - cor0.col1 * col0 + - col2 / ( col1 ) AS col1 FROM tab1 AS cor0
----
1033
635
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT - + col2 * - col1 + col1 - + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
192
2921
7552

skipif mysql # not compatible
query I rowsort label-6693
SELECT - + col2 * - col1 + col1 - + col1 / col0 AS col1 FROM tab0 AS cor0
----
192
2921
7552

onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT cor0.col0 + col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

skipif mysql # not compatible
query I rowsort label-6694
SELECT cor0.col0 + col1 / + col0 AS col1 FROM tab2 AS cor0
----
11
78
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6695
SELECT + 85 * ( - col2 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT + 85 * ( - col2 ) + - 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-6696
SELECT CAST( - 80 AS SIGNED ) FROM tab2 AS cor0
----
-80
-80
-80

skipif mysql # not compatible
query I rowsort label-6696
SELECT CAST ( - 80 AS INTEGER ) FROM tab2 AS cor0
----
-80
-80
-80

query I rowsort
SELECT ALL - - ( ( + col2 ) ) * ( col1 ) FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - - 82 AS col0 FROM tab0 AS cor0
----
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6699
SELECT - + CAST( NULL AS DECIMAL ) + ( - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6699
SELECT - + CAST ( NULL AS REAL ) + ( - col0 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( ( + cor0.col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # use DIV operator for integer division
query I rowsort label-6701
SELECT + ( + 0 ) DIV col0 + - cor0.col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-6701
SELECT + ( + 0 ) / col0 + - cor0.col0 * col1 FROM tab1 cor0
----
-1040
-640
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + + col1 - ( - cor0.col0 + col2 ) * col1 col0 FROM tab0 AS cor0
----
-655
3396
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 17 * cor0.col0 col2 FROM tab2 AS cor0
----
119
1326
1343

query I rowsort
SELECT + col2 * - col0 + + ( col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + - col0 * - 24 FROM tab0 AS cor0
----
10249
10417
7972

query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241

query I rowsort
SELECT ALL + col2 * col1 + + ( - col0 + col2 ) AS col1 FROM tab0 AS cor0
----
2847
63
7455

query I rowsort
SELECT DISTINCT - - col0 * - col2 - col1 * col0 * col1 AS col1 FROM tab0 AS cor0
----
-178296
-329350
-744307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 84 * + col1 + col2 col0 FROM tab0 AS cor0
----
-7191
-7562
-8147

query I rowsort
SELECT col0 * - 9 FROM tab0 AS cor0
----
-216
-315
-801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6711
SELECT + CAST( cor1.col2 AS SIGNED ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

skipif mysql # not compatible
query I rowsort label-6711
SELECT + CAST ( cor1.col2 AS INTEGER ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT DISTINCT - cor0.col1 * 54 AS col2 FROM tab0 AS cor0
----
-4644
-4914
-5238

onlyif mysql # use DIV operator for integer division
query I rowsort label-6713
SELECT ALL tab0.col2 DIV 19 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6713
SELECT ALL tab0.col2 / 19 FROM tab0
----
0
1
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - - cor0.col1 + - ( + cor0.col1 ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 * + 60 + - col1 FROM tab2 cor0
----
-1037
-1891
-3599

query I rowsort
SELECT DISTINCT - + col2 * + ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col2 col2 FROM tab2 AS cor0
----
-21
33
4

query I rowsort
SELECT ALL + cor0.col2 * - ( col0 * + col2 ) FROM tab0 cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78

query I rowsort
SELECT - col2 * + 51 AS col2 FROM tab1 AS cor0
----
-2754
-2907
-4896

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6722
SELECT col1 * CAST( - 48 * col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-32448
-4800
-8112

skipif mysql # not compatible
query I rowsort label-6722
SELECT col1 * CAST ( - 48 * col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-32448
-4800
-8112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - ( col2 ) col0 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT + col1 * - ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT DISTINCT - col2 * + col1 + + tab1.col0 * + col2 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT ALL + col0 * - 24 * - col0 FROM tab0 cor0
----
13824
190104
29400

query I rowsort
SELECT - + col1 + + cor0.col0 + - col1 FROM tab1 AS cor0
----
-49
44
54

query I rowsort
SELECT col1 + - col1 * col1 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT cor0.col1 * - 29 + col1 + cor0.col1 FROM tab0 AS cor0
----
-2322
-2457
-2619

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6730
SELECT - col2 * CAST( + col1 + col0 * - col0 AS SIGNED ) FROM tab1 AS cor0
----
-918
232902
613152

skipif mysql # not compatible
query I rowsort label-6730
SELECT - col2 * CAST ( + col1 + col0 * - col0 AS INTEGER ) FROM tab1 AS cor0
----
-918
232902
613152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 56 col1 FROM tab2 AS cor0
----
1736
3304
952

onlyif mysql # use DIV operator for integer division
query I rowsort label-6732
SELECT ALL cor0.col2 DIV 85 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL cor0.col2 / 85 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 93 + col1 AS col1 FROM tab0 AS cor0
----
179
184
190

query I rowsort
SELECT ALL + + col0 + - col1 * col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374

query I rowsort
SELECT + col0 * col0 * - col1 + - 93 FROM tab1 AS cor0
----
-327
-41053
-83293

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + + col1 * - 87 * + col2 col2 FROM tab1 AS cor0
----
-108480
-122094
-49533

query I rowsort
SELECT 86 * col2 + + 42 + + col0 AS col2 FROM tab0 AS cor0
----
163
2904
7183

onlyif mysql # use DIV operator for integer division
query I rowsort label-6738
SELECT DISTINCT col1 DIV col1 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT col1 / col1 AS col0 FROM tab0 cor0
----
1

query I rowsort
SELECT + + ( col1 ) * col1 FROM tab1 AS cor0
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT DISTINCT col2 + col2 * col0 + tab2.col0 AS col1 FROM tab2
----
2132
223
3119

onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT DISTINCT + col0 * col0 + + col1 + + col2 DIV + tab1.col2 FROM tab1
----
36
4107
6414

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT + col0 * col0 + + col1 + + col2 / + tab1.col2 FROM tab1
----
36
4107
6414

onlyif mysql # use DIV operator for integer division
query I rowsort label-6743
SELECT col1 DIV - tab1.col2 + col1 col2 FROM tab1
----
10
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6743
SELECT col1 / - tab1.col2 + col1 col2 FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-6744
SELECT + col2 DIV tab1.col1 col1 FROM tab1
----
2
5
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6744
SELECT + col2 / tab1.col1 col1 FROM tab1
----
2
5
7

query I rowsort
SELECT ALL + tab2.col1 * col1 + col2 * + col0 * + col2 + tab2.col0 AS col1 FROM tab2
----
114444
56287
6071

onlyif mysql # use DIV operator for integer division
query I rowsort label-6746
SELECT ALL col2 + - col2 DIV - col0 + tab2.col0 * + col1 FROM tab2
----
1381
247
4628

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL col2 + - col2 / - col0 + tab2.col0 * + col1 FROM tab2
----
1381
247
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab1.col0 + - col1 * tab1.col1 col0 FROM tab1
----
-670
-9
28

onlyif mysql # use DIV operator for integer division
query I rowsort label-6748
SELECT DISTINCT tab0.col0 DIV + col0 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT tab0.col0 / + col0 AS col2 FROM tab0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6749
SELECT 65 DIV col2 + 55 FROM tab1
----
55
56
56

skipif mysql # not compatible
query I rowsort label-6749
SELECT 65 / col2 + 55 FROM tab1
----
55
56
56

query I rowsort
SELECT ALL - col1 + col1 * - 45 FROM tab1
----
-1196
-460
-598

onlyif mysql # use DIV operator for integer division
query I rowsort label-6751
SELECT DISTINCT col2 + col2 * col1 DIV + col2 FROM tab0
----
119
173
98

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT col2 + col2 * col1 / + col2 FROM tab0
----
119
173
98

query I rowsort
SELECT DISTINCT - 89 * - cor0.col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
1513
2759
5251

query I rowsort
SELECT + col0 * + tab2.col1 * col1 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT + - ( col1 ) * col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT - col1 + 41 + + col0 FROM tab2 AS cor0
----
103
17
60

query I rowsort
SELECT - col0 * - ( ( col1 ) ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT col0 * - 91 * - col1 FROM tab0
----
187824
308945
737009

query I rowsort
SELECT ALL 56 FROM tab0, tab0 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - col1 * + ( col1 ) * - tab2.col0 FROM tab2
----
22831
271518
6727

query I rowsort
SELECT DISTINCT col1 * - 37 AS col2 FROM tab1
----
-370
-481
-962

query I rowsort
SELECT + + cor0.col1 * - col0 + 34 + - cor0.col1 FROM tab2 AS cor0
----
-1326
-214
-4627

query I rowsort
SELECT - col1 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - col0 + - 53 FROM tab1 AS cor0
----
-117
-133
-56

query I rowsort
SELECT ALL ( col2 * col1 ) FROM tab1
----
1248
1404
570

query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab2, tab1 AS cor0
----
3

query I rowsort
SELECT ALL + ( 53 ) AS col1 FROM tab2
----
53
53
53

query I rowsort
SELECT - 20 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 3d45fa4e6631691e5f0e0ca86982e9c2

query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + col1 * + ( 98 ) * - cor0.col0 FROM tab2 cor0
----
-131576
-21239
-450970

query I rowsort
SELECT 14 FROM tab1, tab0 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT + + 24 * + col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2218
609
841

skipif mysql # not compatible
query I rowsort label-6770
SELECT + + 24 * + col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2218
609
841

onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT DISTINCT + - col0 DIV col1 + col1 col0 FROM tab2 cor0
----
13
31
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6771
SELECT DISTINCT + - col0 / col1 + col1 col0 FROM tab2 cor0
----
13
31
58

query I rowsort
SELECT ALL + 70 * + cor0.col2 + col2 * col2 + col1 AS col1 FROM tab0 AS cor0
----
12555
168
3485

query I rowsort
SELECT - 59 * + col2 - + cor0.col0 FROM tab0 AS cor0
----
-1971
-4927
-94

query I rowsort
SELECT DISTINCT 70 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
39
53

query I rowsort
SELECT cor0.col2 - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21

query I rowsort
SELECT ALL - ( col1 ) + + 97 FROM tab2 AS cor0
----
38
66
80

query I rowsort
SELECT DISTINCT col1 * - col2 + - col2 + col1 FROM tab0 cor0
----
-1
-2785
-7453

query I rowsort
SELECT DISTINCT + 19 + - col1 FROM tab0 cor0
----
-67
-72
-78

onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT + 2 DIV - col0 col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6779
SELECT + 2 / - col0 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * col0 * col0 - - col2 AS col0 FROM tab1
----
-262087
-511904
27

query I rowsort
SELECT + 55 * - col2 AS col1 FROM tab1 AS cor0
----
-2970
-3135
-5280

onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT - - 64 DIV col0 - - col2 FROM tab2 AS cor0
----
26
36
38

skipif mysql # not compatible
query I rowsort label-6782
SELECT - - 64 / col0 - - col2 FROM tab2 AS cor0
----
26
36
38

query I rowsort
SELECT - 18 * col2 + col1 FROM tab2 AS cor0
----
-409
-455
-667

query I rowsort
SELECT - ( + col1 ) - + col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - col0 * col1 * - col1 FROM tab1 cor0
----
13520
2028
6400

query I rowsort
SELECT DISTINCT col2 + - col0 + + col2 FROM tab0
----
-33
42
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col2 FROM tab2 cor0
----
189
2028
3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * cor0.col1 col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT - col0 + - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL - cor0.col2 + col0 FROM tab2 cor0
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT col2 * tab2.col1 * col2 + col2 DIV col1 - col2 AS col1 FROM tab2
----
22572
24512
39858

skipif mysql # not compatible
query I rowsort label-6791
SELECT col2 * tab2.col1 * col2 + col2 / col1 - col2 AS col1 FROM tab2
----
22572
24512
39858

query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 - - col2 AS col0 FROM tab1
----
108
114
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * - col1 col0 FROM tab2
----
-1534
-646
-837

onlyif mysql # use DIV operator for integer division
query I rowsort label-6795
SELECT - + col0 + - col2 * col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-14
-35
21

skipif mysql # not compatible
query I rowsort label-6795
SELECT - + col0 + - col2 * col2 / - col0 AS col0 FROM tab0 AS cor0
----
-14
-35
21

onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT DISTINCT + ( 69 ) DIV col1 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + ( 69 ) / col1 AS col2 FROM tab0
----
0

query I rowsort
SELECT tab1.col1 + - ( tab1.col1 ) FROM tab1
----
0
0
0

query I rowsort
SELECT - ( col0 ) + col0 * col0 FROM tab0
----
1190
552
7832

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6799
SELECT ALL CAST( - 68 AS SIGNED ) * tab0.col0 AS col1 FROM tab0
----
-1632
-2380
-6052

skipif mysql # not compatible
query I rowsort label-6799
SELECT ALL CAST ( - 68 AS INTEGER ) * tab0.col0 AS col1 FROM tab0
----
-1632
-2380
-6052

query I rowsort
SELECT DISTINCT - ( - 99 ) FROM tab2
----
99

onlyif mysql # use DIV operator for integer division
query I rowsort label-6801
SELECT + col2 * col1 DIV col1 FROM tab1
----
54
57
96

skipif mysql # not compatible
query I rowsort label-6801
SELECT + col2 * col1 / col1 FROM tab1
----
54
57
96

query I rowsort
SELECT - + ( + col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT - cor0.col2 DIV - col1 + col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-6803
SELECT - cor0.col2 / - col1 + col1 FROM tab1 AS cor0
----
15
20
28

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 IN ( + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query III rowsort
SELECT * FROM tab0 WHERE - col1 < + tab0.col2 + + col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT ALL + col1 * col0 + + col2 FROM tab2
----
1381
244
4628

query I rowsort
SELECT DISTINCT - tab1.col1 * + col1 - + col2 FROM tab1
----
-157
-265
-730

query I rowsort
SELECT DISTINCT - col1 + - col1 * + col0 / + tab1.col1 FROM tab1 WHERE ( NULL ) < + col2
----

query I rowsort
SELECT ALL + tab2.col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL + col1 * - col1 + col0 + col1 AS col2 FROM tab0
----
-7286
-8101
-9277

query I rowsort
SELECT ALL col0 * - tab2.col2 * + col0 AS col1 FROM tab2
----
-1323
-158184
-237158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 * col2 col1 FROM tab1
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + col1 + col1 * - tab0.col0 + tab0.col1 AS col1 FROM tab0
----
-1892
-3201
-7917

query I rowsort
SELECT ALL + col2 + - col0 * col1 FROM tab1 WHERE ( col2 + tab1.col0 ) IN ( - col2 )
----

query I rowsort
SELECT - col1 * + col2 * - col1 AS col2 FROM tab0
----
244068
679042
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * tab0.col2 col0 FROM tab0
----
2838
7462
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - tab0.col0 * col1 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6818
SELECT DISTINCT - col2 DIV col2 + - col0 + tab0.col2 FROM tab0
----
-35
-8
8

skipif mysql # not compatible
query I rowsort label-6818
SELECT DISTINCT - col2 / col2 + - col0 + tab0.col2 FROM tab0
----
-35
-8
8

query I rowsort
SELECT DISTINCT - col0 + - tab2.col0 + tab2.col0 * col0 FROM tab2
----
35
5928
6083

query I rowsort
SELECT col2 * + col2 AS col1 FROM tab2 WHERE NOT NULL < ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6821
SELECT col0 DIV + col1 + tab2.col1 FROM tab2
----
21
31
60

skipif mysql # not compatible
query I rowsort label-6821
SELECT col0 / + col1 + tab2.col1 FROM tab2
----
21
31
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col1 col0 FROM tab1
----
1248
1404
570

onlyif mysql # use DIV operator for integer division
query I rowsort label-6823
SELECT + col2 - col0 * col2 DIV col1 FROM tab1
----
-307
-494
48

skipif mysql # not compatible
query I rowsort label-6823
SELECT + col2 - col0 * col2 / col1 FROM tab1
----
-307
-494
48

query I rowsort
SELECT DISTINCT - col2 * - col2 + + tab0.col0 * col2 FROM tab0
----
14022
1881
36

query I rowsort
SELECT col2 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT + col1 - - col2 DIV col0 AS col2 FROM tab2
----
17
34
59

skipif mysql # not compatible
query I rowsort label-6826
SELECT + col1 - - col2 / col0 AS col2 FROM tab2
----
17
34
59

query I rowsort
SELECT ALL + col2 * col1 + tab0.col2 AS col2 FROM tab0
----
2871
7544
98

query I rowsort
SELECT + tab2.col1 - col2 AS col0 FROM tab2
----
-21
33
4

query I rowsort
SELECT col2 * + col2 + col1 AS col2 FROM tab1
----
2942
3259
9229

query I rowsort
SELECT DISTINCT col0 * + col2 + col2 * col2 AS col2 FROM tab1
----
16896
3078
6897

query I rowsort
SELECT - + col1 + - col2 FROM tab2 cor0
----
-55
-58
-85

query I rowsort
SELECT - col1 * + col1 * - col2 FROM tab0 AS cor0
----
244068
679042
9409

query I rowsort
SELECT + + col2 * cor0.col2 * col1 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6834
SELECT DISTINCT col0 * - col0 + + cor0.col1 DIV col1 + - cor0.col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + cor0.col2 = - col1 DIV + col1
----
-6109
-6278
-75

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT col0 * - col0 + + cor0.col1 / col1 + - cor0.col2 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 * + cor0.col2 = - col1 / + col1
----
-6109
-6278
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN ( col2 + + col1 ) AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7

query I rowsort
SELECT 3 * col1 + col0 * 87 AS col1 FROM tab2
----
6924
6963
702

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6837
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 29 + + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 29 + + col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT ( - 43 ) FROM tab2 AS cor0
----
-43

query I rowsort
SELECT ALL 91 * - 64 - + col1 * - 2 AS col1 FROM tab2 AS cor0
----
-5706
-5762
-5790

query I rowsort
SELECT - - col1 * - col0 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT ALL - CAST( col0 AS SIGNED ) + - col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
36
673
89

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - CAST ( col0 AS INTEGER ) + - col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
36
673
89

query I rowsort
SELECT - col0 * col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162

query I rowsort
SELECT DISTINCT + col1 + - col0 * - col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT - 63 * - col1 FROM tab1 AS cor0
----
1638
630
819

query I rowsort
SELECT 31 + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2
-51
30

query I rowsort
SELECT DISTINCT 48 + col0 AS col2 FROM tab1 AS cor0
----
112
128
51

query I rowsort
SELECT DISTINCT - 21 + + col2 FROM tab2 AS cor0
----
17
5
6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6848
SELECT col2 + col0 * CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6848
SELECT col2 + col0 * CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * col2 + ( + 0 ) AS col2 FROM tab1 cor0
----
-2916
-3249
-9216

query I rowsort
SELECT - col0 + - cor0.col1 * col1 * col2 AS col0 FROM tab0 AS cor0
----
-244092
-679131
-9444

onlyif mysql # use DIV operator for integer division
query I rowsort label-6851
SELECT ALL + - 25 * - col2 + + col0 DIV col1 + + col0 AS col1 FROM tab2 AS cor0
----
1033
682
729

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + - 25 * - col2 + + col0 / col1 + + col0 AS col1 FROM tab2 AS cor0
----
1033
682
729

query I rowsort
SELECT - + 67 + + col0 AS col1 FROM tab2 AS cor0
----
-60
11
12

query I rowsort
SELECT ALL - 17 + - col0 FROM tab1 cor0
----
-20
-81
-97

query I rowsort
SELECT ALL + 83 + - 42 FROM tab1
----
41
41
41

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6855
SELECT ALL + - col0 * col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + - col0 * col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 62 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b

query I rowsort
SELECT ALL - cor0.col2 * + 49 FROM tab1 AS cor0
----
-2646
-2793
-4704

query I rowsort
SELECT + col1 + + col0 - col2 AS col2 FROM tab2 AS cor0
----
11
111
58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6859
SELECT - col0 * + ( - ( col1 ) * - CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6859
SELECT - col0 * + ( - ( col1 ) * - CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 10 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT DISTINCT - col0 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-14
-156
-158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 + - 40 * col0 col0 FROM tab1 AS cor0
----
-2535
-3175
-95

query I rowsort
SELECT DISTINCT + + 40 * + col2 - col0 FROM tab1 AS cor0
----
2157
2216
3760

query I rowsort
SELECT - 59 * cor0.col0 * col1 + col1 AS col1 FROM tab1 AS cor0
----
-37750
-4576
-61347

query I rowsort
SELECT + - col1 * - ( + col2 ) - 41 * col0 AS col2 FROM tab1 AS cor0
----
-2032
-2054
1281

onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT DISTINCT + col2 + - col2 * - col2 + + col0 * col0 DIV col0 AS col0 FROM tab2
----
1561
763
780

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT + col2 + - col2 * - col2 + + col0 * col0 / col0 AS col0 FROM tab2
----
1561
763
780

onlyif mysql # use DIV operator for integer division
query I rowsort label-6867
SELECT DISTINCT col0 DIV + col2 + + col1 FROM tab1
----
11
13
26

skipif mysql # not compatible
query I rowsort label-6867
SELECT DISTINCT col0 / + col2 + + col1 FROM tab1
----
11
13
26

query I rowsort
SELECT - col0 * + 8 FROM tab1
----
-24
-512
-640

query I rowsort
SELECT - tab2.col1 * - 67 AS col0 FROM tab2
----
1139
2077
3953

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT ALL CAST( NULL AS SIGNED ) * + 71 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL CAST ( NULL AS INTEGER ) * + 71 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT col0 + 57 * tab2.col2 * + col0 + - ( col2 ) DIV + col1 FROM tab2
----
10780
115674
171191

skipif mysql # not compatible
query I rowsort label-6871
SELECT col0 + 57 * tab2.col2 * + col0 + - ( col2 ) / + col1 FROM tab2
----
10780
115674
171191

query I rowsort
SELECT col2 * col2 * - cor0.col2 + col1 FROM tab1 AS cor0
----
-157438
-185183
-884723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col2 col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT + 17 * 5 AS col0 FROM tab0 AS cor0
----
85
85
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT 8 + 14 DIV - cor0.col1 AS col0 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-6875
SELECT 8 + 14 / - cor0.col1 AS col0 FROM tab2 AS cor0
----
8
8
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-6876
SELECT DISTINCT + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6876
SELECT DISTINCT + col1 / + col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab2, tab2 cor0
----
-17
-31
-59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT - col1 + CAST( + 86 AS SIGNED ) + + col0 col0 FROM tab1
----
140
153
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6878
SELECT - col1 + CAST ( + 86 AS INTEGER ) + + col0 col0 FROM tab1
----
140
153
63

query I rowsort
SELECT DISTINCT 59 AS col0 FROM tab2, tab1 AS cor0
----
59

query I rowsort
SELECT ALL - 84 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

query I rowsort
SELECT ALL tab1.col2 + 69 + - col0 FROM tab1
----
120
62
85

query I rowsort
SELECT ( ( col0 ) ) * cor0.col0 * - col1 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-128234
-56932
-729092

query I rowsort
SELECT DISTINCT - col0 + ( + col2 ) FROM tab1 AS cor0
----
-7
16
51

onlyif mysql # use DIV operator for integer division
query I rowsort label-6884
SELECT ALL - + ( 36 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6884
SELECT ALL - + ( 36 ) / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT DISTINCT - 87 DIV + 65 AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - 87 / + 65 AS col2 FROM tab2
----
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6886
SELECT tab0.col1 DIV col1 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6886
SELECT tab0.col1 / col1 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 20 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT 99 * - 95 * cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ee24e44449bcc5a28660916700f9de05

query I rowsort
SELECT ALL - - cor0.col0 + col1 * col1 FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT 58 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + + col2 col0 FROM tab0
----
120
39
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
66

query I rowsort
SELECT DISTINCT + col1 + col2 + 46 AS col0 FROM tab1 AS cor0
----
113
126
155

onlyif mysql # use DIV operator for integer division
query I rowsort label-6894
SELECT DISTINCT + col0 DIV + col1 + 35 * col0 FROM tab2 AS cor0
----
245
2731
2769

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + col0 / + col1 + 35 * col0 FROM tab2 AS cor0
----
245
2731
2769

query I rowsort
SELECT DISTINCT + col2 * - col0 + 80 AS col2 FROM tab0 AS cor0
----
-712
-7218
45

query I rowsort
SELECT ALL + col0 + ( col1 + col1 ) FROM tab0 cor0
----
196
229
271

onlyif mysql # use DIV operator for integer division
query I rowsort label-6897
SELECT ALL + cor0.col0 + + col0 DIV ( col0 * 17 ) AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-6897
SELECT ALL + cor0.col0 + + col0 / ( col0 * 17 ) AS col1 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT + col1 * 50 * ( col1 ) FROM tab0 AS cor0
----
369800
414050
470450

query I rowsort
SELECT - cor0.col1 * 57 + col2 AS col1 FROM tab0 AS cor0
----
-4869
-5105
-5528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT ALL col0 + - CAST( NULL AS DECIMAL ) * col2 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL col0 + - CAST ( NULL AS REAL ) * col2 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * ( 75 ) AS col2 FROM tab0 AS cor0
----
-1800
-2625
-6675

query I rowsort
SELECT + - col2 + 6 FROM tab0 AS cor0
----
-27
-76
5

query I rowsort
SELECT ALL + + col2 * + col1 - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6906
SELECT - - col1 * CAST( NULL AS SIGNED ) + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6906
SELECT - - col1 * CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 37 AS col1 FROM tab2 AS cor0
----
259
2886
2923

onlyif mysql # use DIV operator for integer division
query I rowsort label-6908
SELECT DISTINCT - - col1 * - col0 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603

skipif mysql # not compatible
query I rowsort label-6908
SELECT DISTINCT - - col1 * - col0 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1344
-218
-4603

onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ALL + col0 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL + col0 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + - col2 * ( + 30 * - col1 ) - - ( + 29 ) FROM tab1 AS cor0
----
17129
37469
42149

query I rowsort
SELECT + col1 + 9 FROM tab2 AS cor0
----
26
40
68

query I rowsort
SELECT + + col2 + + ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806

query I rowsort
SELECT ALL + col2 * 36 AS col0 FROM tab1 AS cor0
----
1944
2052
3456

query I rowsort
SELECT ALL col1 * col1 + - 47 FROM tab0
----
7349
8234
9362

query I rowsort
SELECT tab0.col0 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT + 76 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da

query I rowsort
SELECT 81 * col1 AS col2 FROM tab1 AS cor0
----
1053
2106
810

onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT - - col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6918
SELECT - - col2 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + + ( - col2 ) * col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT col0 * - 85 AS col2 FROM tab1 AS cor0
----
-255
-5440
-6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT + 48 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
48

skipif mysql # not compatible
query I rowsort label-6921
SELECT + 48 / col2 AS col1 FROM tab0 AS cor0
----
0
1
48

query I rowsort
SELECT - ( 93 ) AS col2 FROM tab0
----
-93
-93
-93

query I rowsort
SELECT DISTINCT cor0.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
86
91
97

query I rowsort
SELECT + cor0.col1 + - tab1.col1 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 6d41c12cb7dc2feb0f506cde1620da9c

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT - 7 * col1 AS col1 FROM tab1 AS cor0
----
-182
-70
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 * + col0 col0 FROM tab0 cor0
----
-1200
-1750
-4450

onlyif mysql # use DIV operator for integer division
query I rowsort label-6928
SELECT + ( cor0.col2 ) + col0 * 56 DIV col0 col0 FROM tab1 cor0
----
110
113
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6928
SELECT + ( cor0.col2 ) + col0 * 56 / col0 col0 FROM tab1 cor0
----
110
113
152

onlyif mysql # use DIV operator for integer division
query I rowsort label-6929
SELECT ALL + col0 DIV - col1 + - 90 * col0 DIV - col1 FROM tab1 AS cor0
----
10
547
570

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + col0 / - col1 + - 90 * col0 / - col1 FROM tab1 AS cor0
----
10
547
570

query I rowsort
SELECT ALL ( - col0 ) * - ( col2 ) FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT - ( cor0.col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT - + 52 * col1 AS col0 FROM tab1 AS cor0
----
-1352
-520
-676

query I rowsort
SELECT + 21 * cor0.col2 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d72e70f7bd7bd6904a82beaee2e45aad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 + col0 * + col2 ) col1 FROM tab1
----
108
3591
7584

query I rowsort
SELECT - 67 AS col2 FROM tab1 cor0
----
-67
-67
-67

query I rowsort
SELECT col0 * - 23 FROM tab1
----
-1472
-1840
-69

query I rowsort
SELECT cor0.col0 + 82 AS col1 FROM tab1 AS cor0
----
146
162
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-6938
SELECT + + col2 - col1 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
23
26
38

skipif mysql # not compatible
query I rowsort label-6938
SELECT + + col2 - col1 / cor0.col0 AS col2 FROM tab2 AS cor0
----
23
26
38

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 17ceecc141378b185d60a17e53464c26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
54
57
96

query I rowsort
SELECT DISTINCT ( + col2 ) - col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT ALL - - 91 * - 38 + - col2 AS col0 FROM tab2 AS cor0
----
-3484
-3485
-3496

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT col2 / - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT col2 / - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 + + col1 - - ( - col2 ) FROM tab1
----
-111
-163
-31

query I rowsort
SELECT 97 * col0 + - col1 AS col1 FROM tab1
----
265
6198
7747

query I rowsort
SELECT ALL + col2 * - 85 AS col2 FROM tab2 cor0
----
-2210
-2295
-3230

query I rowsort
SELECT - col0 + - col2 * 56 FROM tab1 cor0
----
-3027
-3256
-5456

onlyif mysql # use DIV operator for integer division
query I rowsort label-6949
SELECT col2 DIV ( - 23 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6949
SELECT col2 / ( - 23 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-6950
SELECT DISTINCT col2 DIV + col1 + col1 * - col0 * tab0.col1 AS col2 FROM tab0
----
-177504
-329315
-737009

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT col2 / + col1 + col1 * - col0 * tab0.col1 AS col2 FROM tab0
----
-177504
-329315
-737009

query I rowsort
SELECT DISTINCT 18 + + tab2.col1 AS col2 FROM tab2
----
35
49
77

query I rowsort
SELECT 99 - + col2 * - 56 FROM tab2
----
1555
1611
2227

query I rowsort
SELECT DISTINCT - col2 + + col2 * ( col0 * - col2 ) FROM tab2
----
-114114
-5130
-52754

query I rowsort
SELECT DISTINCT 75 AS col2 FROM tab2, tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + 78 col0 FROM tab1 AS cor0
----
4212
4446
7488

query I rowsort
SELECT DISTINCT + col2 + + 12 FROM tab2 AS cor0
----
38
39
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col1 col2 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT - 40 AS col0 FROM tab1, tab2 cor0, tab2 cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6

onlyif mysql # use DIV operator for integer division
query I rowsort label-6959
SELECT DISTINCT + - cor0.col2 * col1 + col1 DIV - col0 FROM tab2 AS cor0
----
-1534
-646
-841

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT + - cor0.col2 * col1 + col1 / - col0 FROM tab2 AS cor0
----
-1534
-646
-841

onlyif mysql # use DIV operator for integer division
query I rowsort label-6960
SELECT - col0 DIV ( - ( + col2 ) ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6960
SELECT - col0 / ( - ( + col2 ) ) FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - col0 + + cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600

onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT col0 + + col0 DIV col2 FROM tab0 AS cor0
----
24
70
90

skipif mysql # not compatible
query I rowsort label-6962
SELECT col0 + + col0 / col2 FROM tab0 AS cor0
----
24
70
90

query I rowsort
SELECT DISTINCT + col2 + 67 FROM tab1 AS cor0
----
121
124
163

query I rowsort
SELECT DISTINCT col0 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT 57 + tab1.col1 FROM tab1
----
67
70
83

query I rowsort
SELECT ALL cor0.col1 + ( + col1 ) * - cor0.col2 - + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
86
91
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-6967
SELECT ALL + + ( col0 ) + - cor0.col0 * col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-6967
SELECT ALL + + ( col0 ) + - cor0.col0 * col1 / col0 AS col1 FROM tab1 AS cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col0 * 22 AS col0 FROM tab2 AS cor0
----
343
3744
4740

query I rowsort
SELECT ALL + col1 * 37 + - col2 + + col1 * col0 FROM tab2 AS cor0
----
1337
1934
6759

query I rowsort
SELECT col1 * + cor0.col2 + - cor0.col2 FROM tab1 AS cor0
----
1152
1350
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT DISTINCT - cor0.col0 DIV - 59 + - col2 FROM tab2 cor0
----
-25
-27
-37

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT - cor0.col0 / - 59 + - col2 FROM tab2 cor0
----
-25
-27
-37

onlyif mysql # use DIV operator for integer division
query I rowsort label-6972
SELECT ALL + - col1 * cor0.col2 + + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-1241
-1402
-565

skipif mysql # not compatible
query I rowsort label-6972
SELECT ALL + - col1 * cor0.col2 + + col2 / + col1 AS col1 FROM tab1 AS cor0
----
-1241
-1402
-565

query I rowsort
SELECT DISTINCT + col1 + - col1 * cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-611793
-93568
0

query I rowsort
SELECT DISTINCT + 71 + 63 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
134

query I rowsort
SELECT DISTINCT - - ( col2 ) * - ( col1 ) + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL col0 * - col1 + col2 + - cor0.col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL 64 AS col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT + col0 * + cor0.col0 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT DISTINCT + col1 * col1 + col2 * ( - col0 * + col2 + - 2 ) AS col0 FROM tab2 AS cor0
----
-113863
-4196
-49299

query I rowsort
SELECT ALL - ( - col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96

query I rowsort
SELECT DISTINCT 98 - - col2 * + 8 * col1 FROM tab1 AS cor0
----
10082
11330
4658

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6982
SELECT DISTINCT + col2 / col0 + CAST( NULL AS SIGNED ) - 95 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT + col2 / col0 + CAST ( NULL AS INTEGER ) - 95 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 32 FROM tab2 cor0
----
32
32
32

query I rowsort
SELECT - 93 * col0 FROM tab0 cor0
----
-2232
-3255
-8277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col2 FROM tab2 AS cor0
----
17
31
59

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6986
SELECT ALL CAST( col2 AS SIGNED ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL CAST ( col2 AS INTEGER ) * + cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT DISTINCT + 45 + 19 AS col2 FROM tab2 cor0
----
64

query I rowsort
SELECT ALL + - 72 - + 80 AS col2 FROM tab2 AS cor0
----
-152
-152
-152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( cor0.col2 ) * + col2 col0 FROM tab2 AS cor0
----
-114076
-5103
-52728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + cor0.col0 + col2 col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd

query I rowsort
SELECT 64 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9

query I rowsort
SELECT - col0 * cor0.col2 + - 24 AS col2 FROM tab0 cor0
----
-59
-7322
-816

query I rowsort
SELECT - ( 74 ) AS col1 FROM tab2
----
-74
-74
-74

onlyif mysql # use DIV operator for integer division
query I rowsort label-6995
SELECT DISTINCT col0 * 90 DIV - col0 + + 25 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-162
1869
649

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT col0 * 90 / - col0 + + 25 * col2 + - col1 AS col1 FROM tab0 AS cor0
----
-162
1869
649

onlyif mysql # use DIV operator for integer division
query I rowsort label-6996
SELECT col2 DIV 23 + - col0 AS col1 FROM tab0
----
-23
-35
-86

skipif mysql # not compatible
query I rowsort label-6996
SELECT col2 / 23 + - col0 AS col1 FROM tab0
----
-23
-35
-86

query I rowsort
SELECT + ( ( col1 ) + - 94 ) AS col2 FROM tab2
----
-35
-63
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + tab0.col2 * - tab0.col1 col1 FROM tab0
----
-2752
-7371
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-6999
SELECT ALL col0 DIV - 8 AS col2 FROM tab2
----
-9
-9
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL col0 / - 8 AS col2 FROM tab2
----
-9
-9
0

query I rowsort
SELECT 15 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT ( 30 ) * col1 + col2 * + col2 AS col1 FROM tab1
----
3549
3696
9606

query I rowsort
SELECT 45 AS col2 FROM tab0 cor0
----
45
45
45

query I rowsort
SELECT + - col2 * 1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 cor0
----
74

query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab2 cor0, tab2 cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9

query I rowsort
SELECT - 19 * col1 AS col0 FROM tab0
----
-1634
-1729
-1843

query I rowsort
SELECT tab2.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT + cor0.col1 * col2 + col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT + col0 + ( 7 ) * + col0 FROM tab1 AS cor0
----
24
512
640

skipif mysql # not compatible
query I rowsort
SELECT + col2 * + CAST ( + 80 AS REAL ) AS col2 FROM tab1 AS cor0
----
4320
4560
7680

query I rowsort
SELECT - col2 * col1 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-611973
-93678

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 59 col1 FROM tab1 AS cor0
----
123
139
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT col1 + col0 DIV - 83 AS col2 FROM tab0 AS cor0
----
86
90
97

skipif mysql # not compatible
query I rowsort label-7013
SELECT col1 + col0 / - 83 AS col2 FROM tab0 AS cor0
----
86
90
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7014
SELECT col2 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT col2 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col0 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2814
-62
-7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT 83 DIV cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

skipif mysql # not compatible
query I rowsort label-7017
SELECT 83 / cor1.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3daf191600c64328f2c60722189235c6

query I rowsort
SELECT ALL + 73 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # use DIV operator for integer division
query I rowsort label-7019
SELECT ALL col0 DIV - 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7019
SELECT ALL col0 / - 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL cor0.col2 * 76 FROM tab2 cor0
----
1976
2052
2888

query I rowsort
SELECT 47 - + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2aef134a5f4fcd6ad7ba0f83b92a1303

query I rowsort
SELECT - col1 + ( + col0 ) AS col2 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # use DIV operator for integer division
query I rowsort label-7024
SELECT - - col2 DIV 89 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7024
SELECT - - col2 / 89 + - col2 col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + - cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT ALL + 44 * - col0 + col1 * + ( col0 ) * cor0.col1 + + ( - col1 ) FROM tab0 AS cor0
----
176362
327678
733002

query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT 33 + cor0.col2 FROM tab2 AS cor0
----
59
60
71

query I rowsort
SELECT DISTINCT - 48 * - col0 - col0 FROM tab0 AS cor0
----
1128
1645
4183

query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7031
SELECT ALL - cor0.col0 DIV + 38 + - col2 FROM tab0 AS cor0
----
-1
-33
-84

skipif mysql # not compatible
query I rowsort label-7031
SELECT ALL - cor0.col0 / + 38 + - col2 FROM tab0 AS cor0
----
-1
-33
-84

skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) * - col0 * - 14 + + col2 AS col0 FROM tab2 AS cor0
----
713
85202
87412

query I rowsort
SELECT col0 * - 96 AS col1 FROM tab0 AS cor0
----
-2304
-3360
-8544

query I rowsort
SELECT ALL - + 3 + 83 AS col2 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7035
SELECT ALL col1 + col2 DIV - tab2.col0 + col2 FROM tab2
----
55
55
85

skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL col1 + col2 / - tab2.col0 + col2 FROM tab2
----
55
55
85

onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT + col2 + - col0 DIV col1 AS col2 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7036
SELECT + col2 + - col0 / col1 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT ALL + 40 * - col2 FROM tab0 AS cor0
----
-1320
-3280
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 * cor0.col1 col2 FROM tab2 AS cor0
----
210
3403
954

onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT 93 * col1 + - 49 DIV + 42 FROM tab0 AS cor0
----
7997
8462
9020

skipif mysql # not compatible
query I rowsort label-7039
SELECT 93 * col1 + - 49 / + 42 FROM tab0 AS cor0
----
7997
8462
9020

query I rowsort
SELECT ALL ( - col0 ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7041
SELECT - ( col0 ) + + ( + 29 ) * col1 - + CAST( - col1 AS SIGNED ) * - cor0.col0 FROM tab1 cor0
----
-414
-743
673

skipif mysql # not compatible
query I rowsort label-7041
SELECT - ( col0 ) + + ( + 29 ) * col1 - + CAST ( - col1 AS INTEGER ) * - cor0.col0 FROM tab1 cor0
----
-414
-743
673

query I rowsort
SELECT cor0.col1 - col1 * ( ( - cor0.col1 ) ) FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT - - col2 + + col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT - - col1 + - col1 * - cor0.col0 AS col2 FROM tab0 cor0
----
2150
3492
8190

query I rowsort
SELECT + + col0 + col1 * col1 AS col0 FROM tab1 cor0
----
164
249
679

query I rowsort
SELECT ALL - ( col2 * col1 ) AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT ALL + 81 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT 39 * col0 AS col0 FROM tab1
----
117
2496
3120

query I rowsort
SELECT 82 AS col2 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795

query I rowsort
SELECT - ( 48 ) * - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7bd2cd19e904d35ac2146e17682727ec

query I rowsort
SELECT 5 * 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fb923e0fac95599e2321323dc1701f24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT - col2 * - col1 + cor0.col0 * 73 - col1 DIV col1 col2 FROM tab1 AS cor0
----
1622
5241
7087

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7052
SELECT - col2 * - col1 + cor0.col0 * 73 - col1 / col1 col2 FROM tab1 AS cor0
----
1622
5241
7087

query I rowsort
SELECT DISTINCT col2 * col0 * col2 + + col1 AS col0 FROM tab0
----
132
26222
598527

query I rowsort
SELECT - col0 * col0 + - 41 * 70 - col1 AS col1 FROM tab2 AS cor0
----
-2950
-9013
-9128

query I rowsort
SELECT + col1 + - col1 + col0 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT DISTINCT - - 94 + col1 AS col1 FROM tab2 AS cor0
----
111
125
153

query I rowsort
SELECT ALL 63 AS col1 FROM tab2 cor0
----
63
63
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7059
SELECT - 9 DIV ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7059
SELECT - 9 / ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT DISTINCT - ( cor0.col0 ) * + col2 DIV ( - col2 ) FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT - ( cor0.col0 ) * + col2 / ( - col2 ) FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL + + 18 * 94 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
1613
1614
1685

query I rowsort
SELECT ( col1 ) * + col2 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT ALL - col0 * 97 AS col0 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT ALL + - 84 * cor0.col0 FROM tab2 cor0
----
-588
-6552
-6636

query I rowsort
SELECT DISTINCT + ( ( col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + 9 AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL 13 * 25 AS col1 FROM tab1 AS cor0
----
325
325
325

query I rowsort
SELECT ALL col2 * + ( tab2.col0 ) AS col2 FROM tab2
----
189
2028
3002

query I rowsort
SELECT + col0 * col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-7070
SELECT + - col1 + + col1 DIV + col0 FROM tab2 AS cor0
----
-17
-27
-59

skipif mysql # not compatible
query I rowsort label-7070
SELECT + - col1 + + col1 / + col0 FROM tab2 AS cor0
----
-17
-27
-59

onlyif mysql # use DIV operator for integer division
query I rowsort label-7071
SELECT ALL + col2 DIV + 14 AS col1 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + col2 / + 14 AS col1 FROM tab1
----
3
4
6

query I rowsort
SELECT ALL + tab2.col0 - col2 AS col1 FROM tab2
----
-20
41
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT - 82 DIV col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-27

skipif mysql # not compatible
query I rowsort label-7073
SELECT - 82 / col0 AS col0 FROM tab1 AS cor0
----
-1
-1
-27

query I rowsort
SELECT DISTINCT - cor0.col0 * + 48 FROM tab2 AS cor0
----
-336
-3744
-3792

onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT DISTINCT 67 + ( col2 ) DIV ( col0 ) FROM tab1 cor0
----
67
68
85

skipif mysql # not compatible
query I rowsort label-7075
SELECT DISTINCT 67 + ( col2 ) / ( col0 ) FROM tab1 cor0
----
67
68
85

query I rowsort
SELECT ALL col0 * - 55 FROM tab2 cor0
----
-385
-4290
-4345

query I rowsort
SELECT ALL - col0 + + ( col1 ) * - col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
231
40896
83120

query I rowsort
SELECT DISTINCT - + 53 FROM tab1 AS cor0
----
-53

onlyif mysql # use DIV operator for integer division
query I rowsort label-7079
SELECT + col2 DIV col0 + - col0 AS col1 FROM tab0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-7079
SELECT + col2 / col0 + - col0 AS col1 FROM tab0
----
-23
-35
-89

query I rowsort
SELECT col2 * - col1 + + ( cor0.col0 ) * col1 FROM tab1 cor0
----
-1326
-208
70

query I rowsort
SELECT + cor0.col1 * 70 + + col1 + + cor0.col1 * 86 FROM tab0 AS cor0
----
13502
14287
15229

query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * - col1 FROM tab1 AS cor0
----
-36
-673
-89

query I rowsort
SELECT ALL cor0.col2 * + col1 * cor0.col2 FROM tab0 AS cor0
----
611884
93654
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + + col1 + + 0 col1 FROM tab1 AS cor0
----
-4086
-6387
17

query I rowsort
SELECT DISTINCT - col1 * + col1 + 41 AS col2 FROM tab1
----
-128
-59
-635

onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT col0 * + 39 + - col1 DIV col0 AS col1 FROM tab1
----
109
2496
3120

skipif mysql # not compatible
query I rowsort label-7086
SELECT col0 * + 39 + - col1 / col0 AS col1 FROM tab1
----
109
2496
3120

query I rowsort
SELECT - col2 * 89 + - ( tab0.col0 ) AS col2 FROM tab0
----
-124
-2961
-7387

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT ALL + col1 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL + col1 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT DISTINCT - col2 + - col1 * 9 AS col2 FROM tab1 AS cor0
----
-147
-213
-288

query I rowsort
SELECT DISTINCT + - col2 + + col1 * - ( + col0 ) FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7091
SELECT col1 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-7091
SELECT col1 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT ALL col2 + - 59 AS col0 FROM tab2 AS cor0
----
-21
-32
-33

query I rowsort
SELECT + col1 + ( 16 ) * + col1 AS col2 FROM tab0 AS cor0
----
1462
1547
1649

query I rowsort
SELECT DISTINCT + + col1 * 44 + - col1 * - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-64328
-660114
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + ( - 8 * - col0 + - col2 ) col1 FROM tab0
----
245
376
721

query I rowsort
SELECT ALL + + col0 + 48 AS col2 FROM tab2 cor0
----
126
127
55

query I rowsort
SELECT DISTINCT - cor0.col1 * 16 FROM tab0 cor0
----
-1376
-1456
-1552

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7098
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-19
-62
24

skipif mysql # not compatible
query I rowsort label-7098
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT - ( - col0 ) AS col1 FROM tab1
----
3
64
80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7100
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 82 * col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 82 * col1 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT + + cor0.col0 + 86 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
7420
7915
8377

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7103
SELECT CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT col2 * 28 + col2 AS col2 FROM tab2 AS cor0
----
1102
754
783

query I rowsort
SELECT ALL cor0.col2 * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - - 27 AS col0 FROM tab2 cor0
----
27

query I rowsort
SELECT - 12 + + cor0.col2 FROM tab2 AS cor0
----
14
15
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 * col1 col2 FROM tab1 AS cor0
----
1118
2236
860

query I rowsort
SELECT + 81 * - tab0.col2 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ae366fc17a941194e0d3b311f6dc7fe6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7110
SELECT + 82 DIV tab1.col0 FROM tab1
----
1
1
27

skipif mysql # not compatible
query I rowsort label-7110
SELECT + 82 / tab1.col0 FROM tab1
----
1
1
27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT - + col0 DIV cor0.col2 + + col0 + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
633

skipif mysql # not compatible
query I rowsort label-7111
SELECT - + col0 / cor0.col2 + + col0 + + col2 * col1 FROM tab1 AS cor0
----
1328
1407
633

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 57 col0 FROM tab2 cor0
----
-57

query I rowsort
SELECT - - 38 * + col1 FROM tab0 cor0
----
3268
3458
3686

query I rowsort
SELECT 39 * - col1 + col2 FROM tab1 AS cor0
----
-333
-411
-960

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7115
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7115
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL - 12 + col2 FROM tab2
----
14
15
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-7117
SELECT + + col1 DIV - 12 + + col1 FROM tab1 cor0
----
10
12
24

skipif mysql # not compatible
query I rowsort label-7117
SELECT + + col1 / - 12 + + col1 FROM tab1 cor0
----
10
12
24

query I rowsort
SELECT - col1 + ( 60 ) AS col0 FROM tab0 AS cor0
----
-26
-31
-37

query I rowsort
SELECT ALL 0 * - col2 + + 32 * col2 * tab2.col0 FROM tab2
----
6048
64896
96064

query I rowsort
SELECT ALL - col0 + + col1 + col2 * + col0 AS col2 FROM tab0
----
7300
854
97

query I rowsort
SELECT + col1 + - col2 * tab2.col2 FROM tab2
----
-1427
-617
-698

query I rowsort
SELECT - 94 * col1 + tab0.col2 FROM tab0
----
-8051
-8472
-9117

onlyif mysql # use DIV operator for integer division
query I rowsort label-7123
SELECT DISTINCT - col0 + + col0 DIV + 5 FROM tab2
----
-6
-63
-64

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - col0 + + col0 / + 5 FROM tab2
----
-6
-63
-64

query I rowsort
SELECT 85 + col1 FROM tab0
----
171
176
182

query I rowsort
SELECT DISTINCT col2 * col0 + + tab2.col0 * + 74 + + col0 * col0 AS col2 FROM tab2
----
13884
15089
756

query I rowsort
SELECT 96 * col1 FROM tab0
----
8256
8736
9312

query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT ALL - CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - CAST ( NULL AS REAL ) AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT 72 + + col1 * ( 13 ) FROM tab1 AS cor0
----
202
241
410

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7130
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7130
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + cor0.col0 + 77 FROM tab2, tab0 AS cor0
----
101
112
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col1 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f

query I rowsort
SELECT ALL col2 + - col1 * 93 AS col2 FROM tab2
----
-1543
-2856
-5461

onlyif mysql # use DIV operator for integer division
query I rowsort label-7134
SELECT ALL + col2 DIV col2 + col2 + col0 FROM tab1
----
122
177
58

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL + col2 / col2 + col2 + col0 FROM tab1
----
122
177
58

query I rowsort
SELECT ALL + col0 + col2 * + col2 AS col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT + - 65 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 62fe7b8eb6ce8c547418f08ea8ada1fc

query I rowsort
SELECT DISTINCT col2 * - tab0.col0 + col0 * + col0 FROM tab0
----
-216
1190
623

query I rowsort
SELECT - col0 * col2 * col0 AS col2 FROM tab1
----
-233472
-486
-614400

query I rowsort
SELECT + col0 + + ( + ( col1 ) ) AS col2 FROM tab0 cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab0.col2 ) col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82

query I rowsort
SELECT + col2 * + col1 * col1 AS col0 FROM tab2
----
10982
25947
90506

query I rowsort
SELECT - cor0.col0 * + cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to a95320dbb4fb4aa98e2920d866f19abe

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7143
SELECT + + CAST( 89 AS SIGNED ) + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1337
1493
659

skipif mysql # not compatible
query I rowsort label-7143
SELECT + + CAST ( 89 AS INTEGER ) + + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1337
1493
659

query I rowsort
SELECT 55 + + cor0.col2 FROM tab0 cor0
----
137
56
88

query I rowsort
SELECT + ( col2 ) + - col1 + + 63 FROM tab1 AS cor0
----
110
146
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 col2 FROM tab0 cor0
----
164
2
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 - - col1 col0 FROM tab0 AS cor0
----
166
171
177

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7148
SELECT + CAST( - 60 AS SIGNED ) * - col1 + 91 * - col2 FROM tab1 AS cor0
----
-3354
-4587
-7956

skipif mysql # not compatible
query I rowsort label-7148
SELECT + CAST ( - 60 AS INTEGER ) * - col1 + 91 * - col2 FROM tab1 AS cor0
----
-3354
-4587
-7956

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + col2 * col1 AS REAL ) + col0 FROM tab2
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - 12 + col1 FROM tab1
----
-2
1
14

query I rowsort
SELECT ALL ( col2 ) - - col1 AS col0 FROM tab0
----
119
173
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7152
SELECT CAST( - col1 * - col1 AS SIGNED ) - 16 AS col1 FROM tab0
----
7380
8265
9393

skipif mysql # not compatible
query I rowsort label-7152
SELECT CAST ( - col1 * - col1 AS INTEGER ) - 16 AS col1 FROM tab0
----
7380
8265
9393

query I rowsort
SELECT DISTINCT - col1 - col0 * col1 AS col2 FROM tab1
----
-104
-1053
-650

query I rowsort
SELECT + 41 - + tab0.col2 * + col2 FROM tab0
----
-1048
-6683
40

query I rowsort
SELECT + col1 + + col1 + tab2.col1 * 73 FROM tab2
----
1275
2325
4425

onlyif mysql # use DIV operator for integer division
query I rowsort label-7156
SELECT - + 56 * ( + col1 ) + 21 + col1 DIV col1 FROM tab0 cor0
----
-4794
-5074
-5410

skipif mysql # not compatible
query I rowsort label-7156
SELECT - + 56 * ( + col1 ) + 21 + col1 / col1 FROM tab0 cor0
----
-4794
-5074
-5410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 - col0 col1 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT col1 * col1 + col0 AS col0 FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT DISTINCT - col1 + cor0.col2 AS col2 FROM tab2 cor0
----
-33
-4
21

query I rowsort
SELECT ALL - col1 + col1 + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - cor0.col2 * + col0 - - col1 FROM tab0 AS cor0
----
-706
-7207
62

query I rowsort
SELECT + - 98 * cor0.col0 + col2 * col0 + + col0 FROM tab0 AS cor0
----
-1335
-1536
-3360

query I rowsort
SELECT DISTINCT 33 * + col1 + col2 + col2 * + col0 FROM tab0 AS cor0
----
10383
3237
3663

query I rowsort
SELECT ALL + 4 * col0 AS col2 FROM tab0 AS cor0
----
140
356
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT col1 + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
15
20
28

skipif mysql # not compatible
query I rowsort label-7165
SELECT col1 + + col2 / cor0.col1 FROM tab1 AS cor0
----
15
20
28

query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97

query I rowsort
SELECT + + col2 * + col2 * + col2 + + col1 * - col1 FROM tab0 AS cor0
----
-9408
28541
543087

query I rowsort
SELECT ALL 46 * + col2 * 13 + 72 AS col0 FROM tab2 AS cor0
----
15620
16218
22796

query I rowsort
SELECT - ( - cor0.col1 ) + - 29 * 84 AS col0 FROM tab2 AS cor0
----
-2377
-2405
-2419

query I rowsort
SELECT ALL cor0.col0 * - col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-1978
-3298
-8008

query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab1 AS cor2, tab2
----
13122 values hashing to f0ffd3c82753160c41277864f42b73c1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7172
SELECT + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7172
SELECT + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( cor0.col0 ) * + col2 * 42 + col2 FROM tab0 AS cor0
----
-1469
-306434
-33231

query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19

query I rowsort
SELECT ALL + 73 * cor0.col2 FROM tab0 AS cor0
----
2409
5986
73

query I rowsort
SELECT + 32 + + col2 AS col2 FROM tab1 AS cor0
----
128
86
89

query I rowsort
SELECT ALL + 10 AS col0 FROM tab2 cor0
----
10
10
10

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7178
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 82 FROM tab0, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT + 84 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7181
SELECT DISTINCT - col0 / ( 83 ) + cor0.col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT - col0 / ( 83 ) + cor0.col0 * CAST ( NULL AS REAL ) AS col1 FROM tab2 cor0
----
NULL

query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT col1 + + cor0.col1 DIV - 30 AS col0 FROM tab0 AS cor0
----
84
88
94

skipif mysql # not compatible
query I rowsort label-7183
SELECT col1 + + cor0.col1 / - 30 AS col0 FROM tab0 AS cor0
----
84
88
94

query I rowsort
SELECT cor0.col1 * 73 FROM tab0 AS cor0
----
6278
6643
7081

query I rowsort
SELECT DISTINCT + col1 + + ( - 71 ) FROM tab0 AS cor0
----
15
20
26

query I rowsort
SELECT + col0 * - col1 + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 9 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7188
SELECT CAST( col0 AS SIGNED ) * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7188
SELECT CAST ( col0 AS INTEGER ) * + col1 AS col2 FROM tab1 AS cor0
----
1040
640
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 * + col2 col0 FROM tab1 cor0
----
165
3712
7760

onlyif mysql # use DIV operator for integer division
query I rowsort label-7190
SELECT DISTINCT + col2 + col2 DIV cor0.col0 - - 59 * col0 FROM tab1 AS cor0
----
249
3833
4817

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT + col2 + col2 / cor0.col0 - - 59 * col0 FROM tab1 AS cor0
----
249
3833
4817

query I rowsort
SELECT ALL - ( - 71 ) * col2 + + col2 + 43 AS col2 FROM tab1 AS cor0
----
3931
4147
6955

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7192
SELECT ALL - + CAST( - 70 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
103
152
71

skipif mysql # not compatible
query I rowsort label-7192
SELECT ALL - + CAST ( - 70 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
103
152
71

query I rowsort
SELECT + col2 * - ( cor0.col0 ) FROM tab0 cor0
----
-35
-7298
-792

query I rowsort
SELECT + + 33 + - col2 AS col0 FROM tab1 AS cor0
----
-21
-24
-63

query I rowsort
SELECT ALL cor0.col2 * + col0 + - 85 AS col2 FROM tab0 AS cor0
----
-50
707
7213

query I rowsort
SELECT DISTINCT + cor0.col2 * col1 - + 88 FROM tab0 AS cor0
----
2750
7374
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT ALL + col1 + cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
83
90
95

skipif mysql # not compatible
query I rowsort label-7197
SELECT ALL + col1 + cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
83
90
95

query I rowsort
SELECT - 60 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1534
-590
-767

query I rowsort
SELECT col2 + cor0.col2 FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT 85 + - col1 FROM tab2 cor0
----
26
54
68

query I rowsort
SELECT 98 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1261
2522
970

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0 cor0
----
7

query I rowsort
SELECT ALL - + col2 * col1 * col1 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT ALL + - col1 * - col1 + ( cor0.col2 + - col1 ) AS col1 FROM tab0 AS cor0
----
7343
8272
9313

query I rowsort
SELECT ALL col2 * + col0 * - col2 + 94 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-201920
-729760
-8466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col1 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7208
SELECT - col0 * ( - col1 * CAST( col2 AS SIGNED ) ) AS col2 FROM tab0
----
3395
664118
68112

skipif mysql # not compatible
query I rowsort label-7208
SELECT - col0 * ( - col1 * CAST ( col2 AS INTEGER ) ) AS col2 FROM tab0
----
3395
664118
68112

query I rowsort
SELECT ALL + ( col1 * col2 ) - 77 * - col0 FROM tab0
----
14315
2792
4686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col2 ) col0 FROM tab2 AS cor0
----
-26
-27
-38

onlyif mysql # use DIV operator for integer division
query I rowsort label-7211
SELECT - col1 DIV + col2 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

skipif mysql # not compatible
query I rowsort label-7211
SELECT - col1 / + col2 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + 52 + 90 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c44598517721ad29c019d831d2e0959

query I rowsort
SELECT - ( + tab2.col1 ) FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT DISTINCT + col0 * + col0 + + tab1.col0 AS col2 FROM tab1
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT - - cor0.col2 - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
33
36
83

skipif mysql # not compatible
query I rowsort label-7215
SELECT - - cor0.col2 - col0 / - cor0.col2 FROM tab0 AS cor0
----
33
36
83

query I rowsort
SELECT - col0 + cor0.col1 AS col2 FROM tab2 cor0
----
-19
-62
24

query I rowsort
SELECT ALL 41 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

query I rowsort
SELECT DISTINCT + - 76 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

query I rowsort
SELECT col0 + - 3 * - col0 FROM tab0 AS cor0
----
140
356
96

query I rowsort
SELECT - col1 - + col1 * + col2 * - col1 FROM tab1 AS cor0
----
16211
36478
5690

query I rowsort
SELECT DISTINCT - col1 - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT cor0.col2 * + col1 AS col2 FROM tab1 cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * - 61 + col1 * + col0 col2 FROM tab2 AS cor0
----
-2561
-3687
698

query I rowsort
SELECT + col1 + col2 - ( ( col1 ) ) FROM tab2 AS cor0
----
26
27
38

query I rowsort
SELECT ALL 14 * col1 FROM tab2 AS cor0
----
238
434
826

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7226
SELECT ALL ( - tab0.col2 * + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL ( - tab0.col2 * + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 * col2 AS col0 FROM tab2
----
676
702
988

query I rowsort
SELECT + - cor0.col1 + - col0 AS col1 FROM tab2 cor0
----
-137
-38
-96

query I rowsort
SELECT cor0.col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7230
SELECT - - col0 DIV - col2 + + col2 DIV - ( cor0.col2 ) FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7230
SELECT - - col0 / - col2 + + col2 / - ( cor0.col2 ) FROM tab1 AS cor0
----
-1
-1
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col1 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT ALL + ( - col0 ) + - col0 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT 28 + - col2 + col0 * col0 AS col2 FROM tab1 cor0
----
-17
4067
6332

query I rowsort
SELECT ALL + + ( + col1 ) * col2 FROM tab0 cor0
----
2838
7462
97

query I rowsort
SELECT - - col2 * + cor0.col2 + - col1 * - 6 AS col2 FROM tab0 AS cor0
----
1605
583
7270

query I rowsort
SELECT DISTINCT - 81 * ( - cor0.col1 ) FROM tab2 AS cor0
----
1377
2511
4779

query I rowsort
SELECT col1 * cor0.col2 + + cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
10234
15743
9506

query I rowsort
SELECT - ( col1 ) - col1 AS col0 FROM tab1 cor0
----
-20
-26
-52

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7240
SELECT DISTINCT col2 * + col1 + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1168
1401
506

skipif mysql # not compatible
query I rowsort label-7240
SELECT DISTINCT col2 * + col1 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1168
1401
506

onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT - col0 * col2 DIV - ( + col0 ) + col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
207993
737376
8802

skipif mysql # not compatible
query I rowsort label-7241
SELECT - col0 * col2 / - ( + col0 ) + col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
207993
737376
8802

query I rowsort
SELECT DISTINCT + 74 + - col2 AS col0 FROM tab2 AS cor0
----
36
47
48

query I rowsort
SELECT 80 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 2815a2e064e1815ac3a10bcd8b0ab19c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + col2 col2 FROM tab0 AS cor0
----
119
173
98

query I rowsort
SELECT + col2 * + col0 * - col2 AS col1 FROM tab2
----
-114076
-5103
-52728

query I rowsort
SELECT + col0 * - ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT + col2 * - 55 FROM tab2 AS cor0
----
-1430
-1485
-2090

query I rowsort
SELECT DISTINCT + col1 * 98 * col0 FROM tab2 AS cor0
----
131614
21266
450996

onlyif mysql # use DIV operator for integer division
query I rowsort label-7249
SELECT ALL - + col0 DIV col2 AS col1 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - + col0 / col2 AS col1 FROM tab0 cor0
----
-1
-35
0

query I rowsort
SELECT cor0.col0 + - col2 * - col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT - cor0.col1 * 42 FROM tab2, tab0 AS cor0
----
9 values hashing to dceeea062741bb3db3b2e13a227b4d34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - 58 col0 FROM tab0 AS cor0
----
-1914
-4756
-58

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7253
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + 43 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + 43 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 65 FROM tab0 cor0
----
65

query I rowsort
SELECT ALL + 84 + col1 * + col0 FROM tab0 AS cor0
----
2148
3479
8183

query I rowsort
SELECT - - col1 + cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
106
122
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT + - ( - col0 ) * + col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 38 + - 96 + tab0.col2 AS col0 FROM tab0
----
-25
-57
24

query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col0 + ( - col0 ) * + col2 FROM tab1 AS cor0
----
-3008
-6640
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 41 ) + - col2 col1 FROM tab0 AS cor0
----
-123
-42
-74

query I rowsort
SELECT ALL ( col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7263
SELECT cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-7263
SELECT cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ALL col1 * col2 + - col0 FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL 74 + col1 AS col2 FROM tab1
----
100
84
87

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7266
SELECT - col0 + + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7266
SELECT - col0 + + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 96 FROM tab1 cor0
----
5184
5472
9216

query I rowsort
SELECT ALL - - col0 * ( col2 ) * col2 + + cor0.col1 FROM tab2 AS cor0
----
114093
5134
52787

onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT cor0.col0 DIV + 1 AS col0 FROM tab1 AS cor0
----
3
64
80

skipif mysql # not compatible
query I rowsort label-7269
SELECT cor0.col0 / + 1 AS col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + col2 * + col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT ALL col1 * CAST( 75 AS SIGNED ) + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
2542
2618
9027

skipif mysql # not compatible
query I rowsort label-7272
SELECT ALL col1 * CAST ( 75 AS INTEGER ) + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
2542
2618
9027

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7273
SELECT DISTINCT - col1 * - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78

skipif mysql # not compatible
query I rowsort label-7273
SELECT DISTINCT - col1 * - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT DISTINCT + col2 + + 41 * col0 FROM tab1 AS cor0
----
177
2681
3376

query I rowsort
SELECT DISTINCT + + cor0.col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT ALL + - col1 + ( col2 ) FROM tab0 cor0
----
-53
-9
-96

query I rowsort
SELECT ALL - col2 * + ( ( - col2 ) ) + + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7278
SELECT DISTINCT - CAST( col2 AS SIGNED ) * + col2 + - tab2.col1 col1 FROM tab2
----
-1461
-735
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7278
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * + col2 + - tab2.col1 col1 FROM tab2
----
-1461
-735
-760

query I rowsort
SELECT ALL 22 + + 63 * col1 FROM tab0
----
5440
5755
6133

query I rowsort
SELECT ( - col0 ) * + col0 * - col1 AS col1 FROM tab2
----
106097
1519
358956

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab2, tab2 AS cor0
----
-27

onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT ALL - - 39 * cor0.col0 + - CAST( 1 AS SIGNED ) DIV - col1 AS col2 FROM tab0 AS cor0
----
1365
3471
936

skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL - - 39 * cor0.col0 + - CAST ( 1 AS INTEGER ) / - col1 AS col2 FROM tab0 AS cor0
----
1365
3471
936

query I rowsort
SELECT 67 * col0 FROM tab1 AS cor0
----
201
4288
5360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7284
SELECT + ( - cor1.col2 ) DIV - cor0.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-7284
SELECT + ( - cor1.col2 ) / - cor0.col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT - + 3 * col1 + - ( + col0 ) FROM tab0 AS cor0
----
-282
-326
-362

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT + CAST( col1 AS SIGNED ) * col2 * - col1 FROM tab2
----
-10982
-25947
-90506

skipif mysql # not compatible
query I rowsort label-7286
SELECT + CAST ( col1 AS INTEGER ) * col2 * - col1 FROM tab2
----
-10982
-25947
-90506

query I rowsort
SELECT + 28 * + col2 AS col2 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT ALL - - col1 + col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT + + ( col2 ) * + 34 + col2 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT - cor0.col1 DIV + col1 + + col0 col2 FROM tab2 cor0
----
6
77
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7290
SELECT - cor0.col1 / + col1 + + col0 col2 FROM tab2 cor0
----
6
77
78

query I rowsort
SELECT ALL - col1 * + col0 + - col1 * + col1 AS col0 FROM tab0
----
-12804
-16380
-9460

query I rowsort
SELECT ALL + col0 - ( + 47 ) FROM tab0 AS cor0
----
-12
-23
42

query I rowsort
SELECT ALL col0 - ( 83 ) FROM tab1 AS cor0
----
-19
-3
-80

query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 + - CAST ( - 82 AS REAL ) FROM tab2 AS cor0
----
160
161
89

query I rowsort
SELECT ALL cor0.col2 * ( - cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7297
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7297
SELECT + col1 * - 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-7298
SELECT DISTINCT - + col1 + - col2 DIV col1 AS col2 FROM tab1 cor0
----
-15
-20
-28

skipif mysql # not compatible
query I rowsort label-7298
SELECT DISTINCT - + col1 + - col2 / col1 AS col2 FROM tab1 cor0
----
-15
-20
-28

onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT - col0 DIV 87 AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT - col0 / 87 AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 * - 87 - + col0 * + col2 FROM tab0 AS cor0
----
-164
2079
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col0 FROM tab1 AS cor0
----
1248
1404
570

query I rowsort
SELECT col1 * 23 + 12 FROM tab0 cor0
----
1990
2105
2243

onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT ALL col0 + - col0 DIV - 62 col1 FROM tab0 AS cor0
----
24
35
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7303
SELECT ALL col0 + - col0 / - 62 col1 FROM tab0 AS cor0
----
24
35
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7304
SELECT ALL - CAST( NULL AS SIGNED ) * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - CAST ( NULL AS INTEGER ) * + col2 + - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 14 * + cor0.col0 + col2 * - col2 FROM tab0 cor0
----
-1425
-491
-7970

query I rowsort
SELECT - + ( - col2 ) + col1 * col1 AS col0 FROM tab0 cor0
----
7429
8363
9410

query I rowsort
SELECT DISTINCT + + col2 + col0 * col1 FROM tab1 AS cor0
----
1136
132
697

query I rowsort
SELECT DISTINCT + ( col1 ) * + cor0.col0 + col0 + 29 FROM tab0 AS cor0
----
2117
3459
8217

query I rowsort
SELECT - 21 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT - - col2 * + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT + col1 * + col2 - + cor0.col0 * col2 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT 78 + col0 AS col2 FROM tab0 cor0
----
102
113
167

query I rowsort
SELECT DISTINCT 24 AS col1 FROM tab2 cor0
----
24

onlyif mysql # use DIV operator for integer division
query I rowsort label-7314
SELECT + 90 DIV col2 - col1 * col1 FROM tab0 cor0
----
-7394
-8280
-9319

skipif mysql # not compatible
query I rowsort label-7314
SELECT + 90 / col2 - col1 * col1 FROM tab0 cor0
----
-7394
-8280
-9319

query I rowsort
SELECT ALL - - col1 * cor0.col1 + - col0 FROM tab2 AS cor0
----
210
3403
954

query I rowsort
SELECT + + 98 + col0 AS col2 FROM tab1 AS cor0
----
101
162
178

query I rowsort
SELECT ALL + + 26 * - col2 AS col0 FROM tab0 AS cor0
----
-2132
-26
-858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7318
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 4 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 4 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + ( - 26 ) + + col0 AS col2 FROM tab1 AS cor0
----
106
29
90

query I rowsort
SELECT - col1 + 1 * cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 * + col1 + col0 col2 FROM tab1
----
1159
2161
894

query I rowsort
SELECT DISTINCT - cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7323
SELECT col1 DIV - col1 + col0 + col0 FROM tab0
----
177
47
69

skipif mysql # not compatible
query I rowsort label-7323
SELECT col1 / - col1 + col0 + col0 FROM tab0
----
177
47
69

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7324
SELECT ALL + cor0.col0 + - CAST( NULL AS DECIMAL ) + - 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + cor0.col0 + - CAST ( NULL AS REAL ) + - 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 94 AS col0 FROM tab0
----
94

query I rowsort
SELECT - col2 + - col1 * + cor0.col2 FROM tab2 AS cor0
----
-1560
-684
-864

query I rowsort
SELECT + 56 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT + col2 + col2 * + 71 FROM tab1 AS cor0
----
3888
4104
6912

query I rowsort
SELECT 23 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658

onlyif mysql # use DIV operator for integer division
query I rowsort label-7330
SELECT 63 * cor1.col1 DIV + 22 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d4ac452b1fb3d001ff9e9f35cf637f92

skipif mysql # not compatible
query I rowsort label-7330
SELECT 63 * cor1.col1 / + 22 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d4ac452b1fb3d001ff9e9f35cf637f92

onlyif mysql # use DIV operator for integer division
query I rowsort label-7331
SELECT DISTINCT - + col2 + + col1 DIV + 64 FROM tab2 AS cor0
----
-26
-27
-38

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - + col2 + + col1 / + 64 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
1593
663
868

onlyif mysql # use DIV operator for integer division
query I rowsort label-7333
SELECT + ( - col2 ) DIV + col0 AS col1 FROM tab2
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-7333
SELECT + ( - col2 ) / + col0 AS col1 FROM tab2
----
-3
0
0

query I rowsort
SELECT col0 * cor0.col0 * - col0 FROM tab2 cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-7335
SELECT + col2 + - 66 DIV col0 AS col1 FROM tab1 AS cor0
----
32
56
96

skipif mysql # not compatible
query I rowsort label-7335
SELECT + col2 + - 66 / col0 AS col1 FROM tab1 AS cor0
----
32
56
96

query I rowsort
SELECT col2 * + ( - 98 ) * col2 + + 8 + col2 * + col2 FROM tab1
----
-282844
-315145
-893944

query I rowsort
SELECT - - col1 + - col0 * + col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-133
-3574
-7587

onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT DISTINCT + col1 + + col1 DIV + col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-7338
SELECT DISTINCT + col1 + + col1 / + col1 FROM tab0 AS cor0
----
87
92
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 * col2 + 89 col2 FROM tab1 AS cor0
----
3005
3338
9305

query I rowsort
SELECT ALL - col1 * - 53 AS col1 FROM tab0 AS cor0
----
4558
4823
5141

query I rowsort
SELECT DISTINCT col0 + 72 * 95 FROM tab0 AS cor0
----
6864
6875
6929

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab0, tab2 AS cor0
----
84

query I rowsort
SELECT col0 * 31 * cor0.col0 + col1 * 58 AS col0 FROM tab2 AS cor0
----
192026
194457
3317

query I rowsort
SELECT - + col2 * cor0.col2 + cor0.col0 * + cor0.col2 FROM tab1 AS cor0
----
-1536
-2754
399

query I rowsort
SELECT col0 - + 1 AS col0 FROM tab1
----
2
63
79

query I rowsort
SELECT - - ( - cor0.col1 ) FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - 82 col1 FROM tab2 AS cor0
----
2132
2214
3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * - 18 - + col1 col0 FROM tab2 AS cor0
----
-1150
2018
804

query I rowsort
SELECT ALL + ( + col1 ) * 17 + + col1 AS col2 FROM tab0 AS cor0
----
1548
1638
1746

query I rowsort
SELECT + col0 * - col2 * - col2 AS col2 FROM tab0 AS cor0
----
26136
35
598436

query I rowsort
SELECT ALL 78 + col2 AS col1 FROM tab0 AS cor0
----
111
160
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7352
SELECT DISTINCT + cor0.col1 DIV col1 col2 FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7352
SELECT DISTINCT + cor0.col1 / col1 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 92 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT ALL - 41 * col1 FROM tab0 AS cor0
----
-3526
-3731
-3977

query I rowsort
SELECT - + col0 * - cor0.col1 + 86 * 85 + + col0 FROM tab1 AS cor0
----
7391
8014
8430

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 - + col2 * col0 col2 FROM tab0 AS cor0
----
1272
3360
801

query I rowsort
SELECT + 10 * - col2 FROM tab2 AS cor0
----
-260
-270
-380

query I rowsort
SELECT DISTINCT + 38 + col1 FROM tab2 AS cor0
----
55
69
97

query I rowsort
SELECT ALL + col1 * + col0 * col0 FROM tab2 AS cor0
----
106097
1519
358956

query I rowsort
SELECT + 8 * tab2.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 09b2dcb3100b991b64e9fe045cd5042f

query I rowsort
SELECT DISTINCT - + cor0.col0 * + col2 * col2 FROM tab2 AS cor0
----
-114076
-5103
-52728

query I rowsort
SELECT ALL + 83 AS col2 FROM tab1 cor0
----
83
83
83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT - col0 + + col2 * + CAST( NULL AS SIGNED ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7364
SELECT - col0 + + col2 * + CAST ( NULL AS INTEGER ) + 78 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab1, tab2, tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + + 75 * col0 AS col0 FROM tab1 AS cor0
----
303
5440
7040

query I rowsort
SELECT ALL - col1 * ( tab0.col1 ) * tab0.col1 FROM tab0
----
-636056
-753571
-912673

onlyif mysql # use DIV operator for integer division
query I rowsort label-7368
SELECT ALL col2 DIV + col1 AS col0 FROM tab1
----
2
5
7

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL col2 / + col1 AS col0 FROM tab1
----
2
5
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7369
SELECT DISTINCT - col2 DIV + tab0.col2 col1 FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT - col2 / + tab0.col2 col1 FROM tab0
----
-1

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7370
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 79 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 79 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7371
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 / - col0 + - ( - col0 ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 / - col0 + - ( - col0 ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col1 ) * col1 AS col1 FROM tab2 AS cor0
----
289
3481
961

query I rowsort
SELECT + col2 * + col1 + col2 + - col2 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT 32 * col0 FROM tab2 AS cor0
----
224
2496
2528

query I rowsort
SELECT DISTINCT + col1 + + col2 * - col1 AS col0 FROM tab2
----
-1475
-629
-806

query I rowsort
SELECT col2 + 60 AS col0 FROM tab2
----
86
87
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT DISTINCT - col0 + - 24 DIV + col1 FROM tab0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT - col0 + - 24 / + col1 FROM tab0
----
-24
-35
-89

query I rowsort
SELECT col0 * 63 FROM tab0
----
1512
2205
5607

query I rowsort
SELECT 34 * + col2 - + tab2.col0 FROM tab2
----
1213
806
911

query I rowsort
SELECT - ( + ( - col2 ) * ( 47 ) ) AS col1 FROM tab0
----
1551
3854
47

query I rowsort
SELECT DISTINCT 44 * + 79 + - col0 AS col1 FROM tab1
----
3396
3412
3473

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
24
35
89

query I rowsort
SELECT DISTINCT + ( - col0 * col0 ) + - col2 * tab1.col2 AS col1 FROM tab1
----
-15616
-2925
-7345

query I rowsort
SELECT DISTINCT + - cor0.col2 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT ALL + - ( col2 ) + + col0 + 51 AS col0 FROM tab1 cor0
----
0
35
58

query I rowsort
SELECT DISTINCT 71 * + col2 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
1820
1890
2660

query I rowsort
SELECT ALL + - col0 * - 9 + + col2 AS col0 FROM tab2 AS cor0
----
728
749
90

query I rowsort
SELECT ALL ( 74 ) + col0 FROM tab1 cor0
----
138
154
77

query I rowsort
SELECT - - ( col0 ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT - - col2 * col1 + cor0.col0 + + CAST( + 95 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1707
820
939

skipif mysql # not compatible
query I rowsort label-7390
SELECT - - col2 * col1 + cor0.col0 + + CAST ( + 95 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1707
820
939

query I rowsort
SELECT - + col1 * + col2 + ( col2 * - cor0.col2 ) FROM tab0 cor0
----
-14186
-3927
-98

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab2, tab1 AS cor0
----
74

onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT col2 + 37 DIV - 69 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7393
SELECT col2 + 37 / - 69 AS col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - - 14 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( 68 ) + + col1 col2 FROM tab1
----
230
4362
5453

query I rowsort
SELECT - col2 * + 6 FROM tab0
----
-198
-492
-6

onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT DISTINCT + col2 * ( 64 ) + - col1 + - ( 1 ) DIV col1 FROM tab0
----
-33
2026
5157

skipif mysql # not compatible
query I rowsort label-7397
SELECT DISTINCT + col2 * ( 64 ) + - col1 + - ( 1 ) / col1 FROM tab0
----
-33
2026
5157

onlyif mysql # use DIV operator for integer division
query I rowsort label-7398
SELECT tab2.col0 DIV - ( + col1 + - col2 ) AS col1 FROM tab2
----
-1
-2
3

skipif mysql # not compatible
query I rowsort label-7398
SELECT tab2.col0 / - ( + col1 + - col2 ) AS col1 FROM tab2
----
-1
-2
3

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT - col0 + + CAST( NULL AS DECIMAL ) * + 13 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7399
SELECT - col0 + + CAST ( NULL AS REAL ) * + 13 + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + 92 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT + cor0.col2 + + 91 DIV + col1 FROM tab0 AS cor0
----
1
34
83

skipif mysql # not compatible
query I rowsort label-7401
SELECT + cor0.col2 + + 91 / + col1 FROM tab0 AS cor0
----
1
34
83

query I rowsort
SELECT ALL + col0 * 7 * - 96 AS col2 FROM tab0
----
-16128
-23520
-59808

query I rowsort
SELECT ALL col1 * ( + col1 ) FROM tab1
----
100
169
676

query I rowsort
SELECT - ( + ( col2 ) ) + 98 AS col0 FROM tab1
----
2
41
44

query I rowsort
SELECT DISTINCT + ( 24 * + col1 ) FROM tab1
----
240
312
624

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1322
-662
-8012

onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT - col1 + - col2 DIV - col0 AS col2 FROM tab1
----
-10
-12
-8

skipif mysql # not compatible
query I rowsort label-7407
SELECT - col1 + - col2 / - col0 AS col2 FROM tab1
----
-10
-12
-8

query I rowsort
SELECT + 97 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

query I rowsort
SELECT 93 + 19 * - col2 AS col0 FROM tab2
----
-401
-420
-629

query I rowsort
SELECT - 90 AS col1 FROM tab2
----
-90
-90
-90

query I rowsort
SELECT DISTINCT - + 75 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 col1 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-7413
SELECT ALL - 10 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT ALL - 10 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT ALL - tab1.col1 DIV col0 FROM tab1
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL - tab1.col1 / col0 FROM tab1
----
-8
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT ALL + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7415
SELECT ALL + col0 / + col2 AS col1 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - - ( col1 ) + + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 * cor0.col2 AS col0 FROM tab0 cor0
----
14022
1881
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col0 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT DISTINCT - - col0 * + col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522

query I rowsort
SELECT + col2 * col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT ALL - col0 + - col2 * ( + 88 ) AS col1 FROM tab0 AS cor0
----
-123
-2928
-7305

query I rowsort
SELECT DISTINCT - 45 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT cor0.col1 + 77 FROM tab0, tab2 AS cor0
----
9 values hashing to 2df140f438955d543fad7f3794a2bdc5

onlyif mysql # use DIV operator for integer division
query I rowsort label-7424
SELECT col0 + - col1 DIV + col1 FROM tab2 cor0
----
6
77
78

skipif mysql # not compatible
query I rowsort label-7424
SELECT col0 + - col1 / + col1 FROM tab2 cor0
----
6
77
78

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7425
SELECT ALL + tab2.col1 / CAST( NULL AS SIGNED ) - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + tab2.col1 / CAST ( NULL AS INTEGER ) - - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL + col0 DIV - col2 + + 8 * + col2 + + col2 FROM tab0 AS cor0
----
-26
297
737

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + col0 / - col2 + + 8 * + col2 + + col2 FROM tab0 AS cor0
----
-26
297
737

query I rowsort
SELECT ALL - col2 * - 44 + + ( col1 ) FROM tab1 AS cor0
----
2402
2518
4237

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7428
SELECT - col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7428
SELECT - col0 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab0 AS cor0
----
-96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7430
SELECT col2 DIV - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort label-7430
SELECT col2 / - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-10
-14
-44

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 54 AS REAL ) * col0 + 86 * - cor0.col1 FROM tab1 AS cor0
----
-2074
2596
3202

query I rowsort
SELECT ALL + - cor0.col0 * - col1 * - col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + cor0.col2 * 2 + col0 AS col0 FROM tab1 cor0
----
111
178
272

query I rowsort
SELECT - 2 + + col0 * cor0.col0 * + 33 FROM tab1 AS cor0
----
135166
211198
295

query I rowsort
SELECT - + col1 + 6 * - col2 FROM tab0 AS cor0
----
-103
-284
-583

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7436
SELECT CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 11 + - col1 * + col0 FROM tab0 AS cor0
----
-2053
-3384
-8088

query I rowsort
SELECT ( - col0 ) * col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT ALL - col2 + - col1 * col1 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # use DIV operator for integer division
query I rowsort label-7440
SELECT DISTINCT - + col2 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT - + col2 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-7441
SELECT + col2 + ( - col0 ) DIV - 41 FROM tab2 AS cor0
----
27
27
39

skipif mysql # not compatible
query I rowsort label-7441
SELECT + col2 + ( - col0 ) / - 41 FROM tab2 AS cor0
----
27
27
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT ALL - ( 92 ) + - col1 DIV ( + col2 * col1 ) col0 FROM tab0 AS cor0
----
-92
-92
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL - ( 92 ) + - col1 / ( + col2 * col1 ) col0 FROM tab0 AS cor0
----
-92
-92
-93

query I rowsort
SELECT col2 * 7 AS col1 FROM tab0 AS cor0
----
231
574
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-7444
SELECT col0 DIV + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7444
SELECT col0 / + cor0.col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT ALL ( 64 ) + col2 FROM tab1 AS cor0
----
118
121
160

query I rowsort
SELECT DISTINCT + - ( - 15 ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - col0 * - col0 + - 71 AS col1 FROM tab0
----
1154
505
7850

query I rowsort
SELECT DISTINCT ( ( col2 ) ) * - 77 AS col2 FROM tab0
----
-2541
-6314
-77

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 9d97dc3cb0a2d1eacd2afa977bf02f33

query I rowsort
SELECT - col1 + + 1 FROM tab1 AS cor0
----
-12
-25
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7451
SELECT DISTINCT - - CAST( ( col1 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7451
SELECT DISTINCT - - CAST ( ( col1 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT + 93 + - 90 * - col1 FROM tab1 cor0
----
1263
2433
993

query I rowsort
SELECT - 55 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde

onlyif mysql # use DIV operator for integer division
query I rowsort label-7454
SELECT ALL col1 + 89 DIV - col2 FROM tab0
----
8
84
90

skipif mysql # not compatible
query I rowsort label-7454
SELECT ALL col1 + 89 / - col2 FROM tab0
----
8
84
90

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7455
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7455
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + ( ( - col0 ) ) + ( 72 ) * col0 FROM tab0 cor0
----
1790
2582
6410

query I rowsort
SELECT - col0 + - 42 AS col0 FROM tab1 AS cor0
----
-106
-122
-45

query I rowsort
SELECT DISTINCT + cor0.col2 * - ( - cor0.col0 ) * col0 + 5 AS col1 FROM tab2 AS cor0
----
1328
158189
237163

query I rowsort
SELECT + col2 + col0 * + col0 + col0 AS col2 FROM tab0 AS cor0
----
1261
633
8092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 90 * - col1 + col0 col1 FROM tab2 AS cor0
----
1530
2790
5310

onlyif mysql # use DIV operator for integer division
query I rowsort label-7461
SELECT + + col1 + + cor0.col0 DIV + col2 col1 FROM tab1 AS cor0
----
11
13
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7461
SELECT + + col1 + + cor0.col0 / + col2 col1 FROM tab1 AS cor0
----
11
13
26

query I rowsort
SELECT DISTINCT - - col0 + - ( ( - col2 ) ) FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + - col2 + cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT DISTINCT + + col2 * ( - col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT col2 - - col2 AS col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT ALL col1 * - col2 - ( + cor0.col0 ) AS col2 FROM tab1 cor0
----
-1328
-1407
-634

query I rowsort
SELECT + col1 * col1 + - 83 AS col0 FROM tab2 AS cor0
----
206
3398
878

query I rowsort
SELECT DISTINCT - col0 + 96 AS col0 FROM tab2 AS cor0
----
17
18
89

query I rowsort
SELECT ALL + + col0 * - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT - col2 * 67 FROM tab0 AS cor0
----
-2211
-5494
-67

query I rowsort
SELECT + + col2 * - 33 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-1808
-1891
-3181

query I rowsort
SELECT ALL col1 + 94 AS col0 FROM tab0 cor0
----
180
185
191

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7473
SELECT DISTINCT + col2 - ( - col2 ) * col1 * 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-7473
SELECT DISTINCT + col2 - ( - col2 ) * col1 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840

query I rowsort
SELECT + ( - 45 ) + col2 * ( ( col2 ) ) FROM tab0 AS cor0
----
-44
1044
6679

query I rowsort
SELECT ALL + + 5 * + 9 + + cor0.col1 FROM tab0 cor0
----
131
136
142

query I rowsort
SELECT DISTINCT - - ( col1 ) * - col2 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
22606
24627
39962

onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT ALL - - col1 * + 26 + + col0 DIV ( + col1 ) FROM tab2 AS cor0
----
1535
446
806

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL - - col1 * + 26 + + col0 / ( + col1 ) FROM tab2 AS cor0
----
1535
446
806

query I rowsort
SELECT DISTINCT - + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL + - cor0.col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + 27 AS col0 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT ALL col1 * - 68 + - col0 FROM tab2
----
-1235
-2115
-4090

onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT ALL 12 DIV + 17 + col1 FROM tab2 AS cor0
----
17
31
59

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL 12 / + 17 + col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - 34 FROM tab0, tab2 AS cor0
----
-34

query I rowsort
SELECT - 35 * - col1 + 62 FROM tab1 cor0
----
412
517
972

query I rowsort
SELECT DISTINCT - col0 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT DISTINCT - col0 + col2 * ( col1 + col1 ) FROM tab2 AS cor0
----
1213
1667
2990

query I rowsort
SELECT ( + col1 * tab0.col1 ) AS col2 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - cor0.col0 + - ( + col1 ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT - tab2.col1 + + tab2.col2 FROM tab2
----
-33
-4
21

query I rowsort
SELECT tab1.col1 + tab1.col0 + + ( 82 ) AS col0 FROM tab1
----
111
156
175

query I rowsort
SELECT ALL + col0 * - 66 AS col0 FROM tab2 cor0
----
-462
-5148
-5214

query I rowsort
SELECT ALL + col1 * + 7 FROM tab1 AS cor0
----
182
70
91

query I rowsort
SELECT ALL - + cor0.col2 + + col1 FROM tab2 cor0
----
-21
33
4

query I rowsort
SELECT DISTINCT - cor0.col2 + + 60 + col1 FROM tab1 AS cor0
----
-23
13
32

query I rowsort
SELECT DISTINCT col0 * - col0 + - col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT + ( - col2 ) + + 87 + - col1 FROM tab1
----
-22
20
7

query I rowsort
SELECT + 36 * col1 + - tab2.col2 * + col0 * col0 + - tab2.col0 AS col0 FROM tab2
----
-156138
-214
-236625

query I rowsort
SELECT DISTINCT + col0 * + col2 - col1 * 97 * - col2 FROM tab0
----
276078
731112
9444

query I rowsort
SELECT DISTINCT 94 - col0 AS col0 FROM tab0
----
5
59
70

query I rowsort
SELECT ALL - tab1.col0 * - tab0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0, tab1
----
81 values hashing to 9d0f89f9a455191691f6a03d9b51d17f

query I rowsort
SELECT ALL - 22 * + col1 - - ( - col1 * col1 ) AS col2 FROM tab0 AS cor0
----
-10283
-11543
-9288

query I rowsort
SELECT ALL - 49 - col0 * 2 AS col1 FROM tab0 AS cor0
----
-119
-227
-97

query I rowsort
SELECT DISTINCT + 50 * col2 AS col2 FROM tab0 AS cor0
----
1650
4100
50

query I rowsort
SELECT tab2.col1 * - col1 AS col0 FROM tab2
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - tab0.col0 )
----

query I rowsort
SELECT ALL col2 * tab0.col1 + - tab0.col1 AS col1 FROM tab0
----
0
2752
7371

query I rowsort
SELECT + col0 + - tab2.col0 + col2 AS col0 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT + col1 * cor0.col0 - col2 FROM tab1 AS cor0
----
24
583
944

query I rowsort
SELECT ALL + 16 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + cor0.col2 col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT + col2 + + tab0.col1 + col0 AS col0 FROM tab0
----
133
143
262

query I rowsort
SELECT col0 * + col1 + - 69 FROM tab1
----
571
9
971

onlyif mysql # use DIV operator for integer division
query I rowsort label-7514
SELECT col1 DIV ( ( col0 ) ) + ( col1 ) DIV col0 FROM tab1 AS cor0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-7514
SELECT col1 / ( ( col0 ) ) + ( col1 ) / col0 FROM tab1 AS cor0
----
0
0
16

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT + col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + col1 * 32 AS col2 FROM tab1
----
377
512
886

query I rowsort
SELECT DISTINCT - col2 * + tab0.col0 * + tab0.col1 AS col0 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT DISTINCT col1 + col1 AS col1 FROM tab2 WHERE NOT ( NULL ) > ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + col0 / col0 NOT IN ( - col2 + col2 )
----

query I rowsort
SELECT ALL + col2 * tab0.col0 * col2 FROM tab0
----
26136
35
598436

query I rowsort
SELECT col1 * - col1 - + tab2.col1 AS col0 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab1 WHERE NOT ( - col1 * + col0 ) NOT IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col0 + tab1.col0 * + col0 FROM tab1
----
4032
6
6320

query I rowsort
SELECT + col1 * tab2.col1 - - col1 * - col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + tab1.col1 * col2 AS col2 FROM tab1
----
36480
4212
99840

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * col0 * - col2 AS col0 FROM tab0
----
1225
19008
649522

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 * col2 col0 FROM tab1 WHERE col0 * + col2 * - col2 + col0 <> NULL
----

query I rowsort
SELECT ALL - col0 * col2 + + col2 * - col1 FROM tab1
----
-1566
-4218
-8928

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col2 col0 FROM tab1
----
-108
-114
-192

onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT col0 + col0 * col1 DIV col2 FROM tab1
----
4
75
90

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT col0 + col0 * col1 / col2 FROM tab1
----
4
75
90

query I rowsort
SELECT col1 + - col0 * + col1 - tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 + col2 col2 FROM tab0
----
1226
609
8003

query I rowsort
SELECT ALL col0 * - tab1.col0 FROM tab1 WHERE NOT + col0 IN ( + col0 * + col2 )
----
-4096
-6400
-9

query I rowsort
SELECT DISTINCT - col2 + col1 * col2 FROM tab0
----
2805
7380
96

query I rowsort
SELECT - tab0.col2 + col1 * col1 AS col2 FROM tab0
----
7363
8199
9408

query I rowsort
SELECT DISTINCT - col2 * col2 + col0 AS col1 FROM tab2
----
-1365
-598
-722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * + col1 col1 FROM tab0
----
2040
3360
8010

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - col2 / - col1 < NULL
----

query I rowsort
SELECT DISTINCT - col1 * 18 AS col0 FROM tab0
----
-1548
-1638
-1746

query I rowsort
SELECT + 37 + col1 FROM tab2 AS cor0
----
54
68
96

query I rowsort
SELECT - ( + ( - col2 ) ) FROM tab2
----
26
27
38

query I rowsort
SELECT ( 74 ) * col2 AS col0 FROM tab2
----
1924
1998
2812

query I rowsort
SELECT - 10 + col1 AS col2 FROM tab1 AS cor0
----
0
16
3

query I rowsort
SELECT ALL - ( col0 ) * + col2 AS col2 FROM tab0
----
-35
-7298
-792

query I rowsort
SELECT + 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT - col2 + 79 * - col2 FROM tab0 AS cor0
----
-2640
-6560
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7550
SELECT - col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7550
SELECT - col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7551
SELECT ALL - col1 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - col1 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 35 FROM tab0 AS cor0
----
1155
2870
35

onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT DISTINCT - cor0.col2 * - 18 + - col0 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1649
963
970

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT - cor0.col2 * - 18 + - col0 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
1649
963
970

query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190

query I rowsort
SELECT DISTINCT - cor0.col0 + 32 * cor0.col1 FROM tab2 AS cor0
----
1810
465
985

query I rowsort
SELECT + col2 + col1 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7557
SELECT DISTINCT + CAST( ( + col1 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT + CAST ( ( + col1 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 + + 49 col2 FROM tab1 AS cor0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 col1 FROM tab2 cor0
----
-21
-21
-21

query I rowsort
SELECT - 96 * + col2 + cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
-2392
-2558
-3531

query I rowsort
SELECT ( + cor0.col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - col2 * + tab1.col2 * + col2 AS col1 FROM tab1
----
-157464
-185193
-884736

onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT + 66 DIV + col0 + + col2 * cor0.col0 col2 FROM tab0 AS cor0
----
36
7298
794

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7563
SELECT + 66 / + col0 + + col2 * cor0.col0 col2 FROM tab0 AS cor0
----
36
7298
794

query I rowsort
SELECT + + 79 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT col0 * + col2 - col1 * col2 FROM tab0 AS cor0
----
-164
-2046
-62

query I rowsort
SELECT ALL - col1 * col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT - - 22 + + col2 * col2 * col2 AS col2 FROM tab0 AS cor0
----
23
35959
551390

query I rowsort
SELECT DISTINCT + 15 * 16 FROM tab2
----
240

query I rowsort
SELECT ALL - - col2 * - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

query I rowsort
SELECT + ( + col1 ) * cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78

query I rowsort
SELECT ALL + 44 * + col2 AS col1 FROM tab1 AS cor0
----
2376
2508
4224

query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 + + col0 FROM tab0 cor0
----
1260
600
8010

query I rowsort
SELECT col1 * + col1 + - col0 FROM tab0 AS cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - 55 * col0 + + col1 * + tab2.col1 FROM tab2
----
-4056
-809
576

query I rowsort
SELECT - 96 * - col1 - + col0 FROM tab1
----
1168
2493
896

query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL - 98 * col0 AS col0 FROM tab0 AS cor0
----
-2352
-3430
-8722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT cor1.col2 FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8

query I rowsort
SELECT DISTINCT ( cor0.col1 ) FROM tab1, tab2 AS cor0
----
17
31
59

query I rowsort
SELECT DISTINCT - tab2.col1 + - 88 * + col2 * + col1 AS col2 FROM tab2
----
-135051
-56865
-73687

query I rowsort
SELECT - ( - col0 * col0 ) + col2 * col2 AS col0 FROM tab0
----
1226
14645
1665

query I rowsort
SELECT 22 + - col1 + - col0 AS col0 FROM tab2
----
-115
-16
-74

query I rowsort
SELECT ( col1 * col2 + col2 ) FROM tab0
----
2871
7544
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7585
SELECT ALL - CAST( + 44 * + col1 AS SIGNED ) + col0 col2 FROM tab2
----
-1357
-2518
-669

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - CAST ( + 44 * + col1 AS INTEGER ) + col0 col2 FROM tab2
----
-1357
-2518
-669

query I rowsort
SELECT col1 * 85 AS col0 FROM tab0
----
7310
7735
8245

onlyif mysql # use DIV operator for integer division
query I rowsort label-7587
SELECT 82 DIV col0 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-7587
SELECT 82 / col0 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT col0 + tab2.col0 * col1 + + tab2.col1 FROM tab2
----
1439
255
4739

query I rowsort
SELECT ALL + col0 + col0 * - tab2.col1 FROM tab2
----
-1264
-210
-4524

query I rowsort
SELECT DISTINCT col2 + col0 - - col1 FROM tab2
----
134
163
65

query I rowsort
SELECT ALL - - col0 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923

query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79

query I rowsort
SELECT ALL cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( cor0.col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45

query I rowsort
SELECT ALL - col2 * col2 - + col2 * + col1 AS col2 FROM tab1
----
-10464
-3819
-4320

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col0 - - col0
----

query I rowsort
SELECT col1 + col2 * col0 * col0 FROM tab1
----
233482
512
614413

query I rowsort
SELECT DISTINCT col2 + col2 + col0 * col1 FROM tab2 AS cor0
----
1419
271
4654

onlyif mysql # use DIV operator for integer division
query I rowsort label-7600
SELECT col1 + - col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
87
91
97

skipif mysql # not compatible
query I rowsort label-7600
SELECT col1 + - col2 / - col0 AS col0 FROM tab0 AS cor0
----
87
91
97

query I rowsort
SELECT ALL - col1 * cor0.col0 * - col0 FROM tab2 AS cor0
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT DISTINCT + col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6

skipif mysql # not compatible
query I rowsort label-7602
SELECT DISTINCT + col0 / cor0.col1 FROM tab1 AS cor0
----
0
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * col2 + col0 * cor0.col2 - + col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT + cor0.col1 * + cor0.col2 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947

query I rowsort
SELECT ALL + col1 + col1 - col0 FROM tab0 AS cor0
----
148
159
93

query I rowsort
SELECT - col0 * + col1 + col0 - - col0 FROM tab2 AS cor0
----
-1185
-203
-4446

onlyif mysql # use DIV operator for integer division
query I rowsort label-7608
SELECT - - col1 + - cor0.col1 DIV col1 AS col2 FROM tab2 cor0
----
16
30
58

skipif mysql # not compatible
query I rowsort label-7608
SELECT - - col1 + - cor0.col1 / col1 AS col2 FROM tab2 cor0
----
16
30
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 * col0 + col2 * col0 col2 FROM tab2 AS cor0
----
-111074
-4914
-50700

query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT ALL col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - - col0 + - cor0.col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT DISTINCT col2 - col2 * col0 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT DISTINCT - - col0 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT col1 * col1 * col0 - col0 FROM tab1 cor0
----
13440
2025
6336

onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7616
SELECT + - col2 / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + col1 * + col0 + - col2 + col1 * col0 FROM tab2 AS cor0
----
2648
407
9178

onlyif mysql # use DIV operator for integer division
query I rowsort label-7618
SELECT DISTINCT - col1 + col1 DIV col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - col1 + col1 / col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ALL + cor0.col2 + col2 * + col0 FROM tab2 AS cor0
----
2054
216
3040

query I rowsort
SELECT + col0 + - ( + col1 + - col0 ) * - col1 FROM tab0 cor0
----
271
5356
6049

query I rowsort
SELECT DISTINCT - - col2 + + ( col0 + col2 ) FROM tab2 cor0
----
130
155
61

query I rowsort
SELECT DISTINCT + cor0.col1 * 25 + 98 AS col2 FROM tab1 AS cor0
----
348
423
748

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7624
SELECT + col2 * - CAST( cor0.col1 AS SIGNED ) + + col2 * 47 AS col2 FROM tab2 AS cor0
----
-312
1140
432

skipif mysql # not compatible
query I rowsort label-7624
SELECT + col2 * - CAST ( cor0.col1 AS INTEGER ) + + col2 * 47 AS col2 FROM tab2 AS cor0
----
-312
1140
432

query I rowsort
SELECT DISTINCT + + col0 * + col2 + + 25 AS col2 FROM tab1 cor0
----
187
3673
7705

query I rowsort
SELECT DISTINCT + col1 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

query I rowsort
SELECT ALL - col1 * - 70 AS col2 FROM tab0
----
6020
6370
6790

query I rowsort
SELECT - col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80

query I rowsort
SELECT ALL - 95 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 cor1, tab1 cor2
----
972 values hashing to 980274175fafec015a83080672486a9a

query I rowsort
SELECT col1 * 75 FROM tab0 AS cor0
----
6450
6825
7275

query I rowsort
SELECT + - col1 * 11 AS col0 FROM tab0 AS cor0
----
-1001
-1067
-946

query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 3 * + col2 + - 47 AS col0 FROM tab2 AS cor0
----
31
34
67

query I rowsort
SELECT + + 7 + col0 FROM tab0 AS cor0
----
31
42
96

query I rowsort
SELECT ALL - - col2 * - cor0.col0 + col0 * - ( col1 ) FROM tab2 cor0
----
-406
-4345
-6630

query I rowsort
SELECT ALL col2 + - col0 AS col2 FROM tab2 cor0
----
-41
-52
20

query I rowsort
SELECT + + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7639
SELECT cor0.col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + col2 + col1 AS col1 FROM tab0
----
1175
6815
98

query I rowsort
SELECT ALL + 86 + + col0 * - col1 AS col1 FROM tab2
----
-1257
-131
-4516

query I rowsort
SELECT DISTINCT - 59 * + col1 + + col2 FROM tab2
----
-1802
-3455
-965

query I rowsort
SELECT ( col1 ) * - 56 FROM tab0
----
-4816
-5096
-5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col2 FROM tab2
----
137
38
96

query I rowsort
SELECT + + col1 * + cor0.col0 + - 42 AS col1 FROM tab1 AS cor0
----
36
598
998

query I rowsort
SELECT col2 + - col1 * ( col0 ) + + 22 FROM tab1
----
-2
-561
-922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - 60 ) + - cor0.col1 col1 FROM tab1 AS cor0
----
-1586
-610
-793

query I rowsort
SELECT + + col2 + 92 FROM tab2 AS cor0
----
118
119
130

query I rowsort
SELECT DISTINCT + - col0 + 11 - + 71 FROM tab2 cor0
----
-138
-139
-67

query I rowsort
SELECT - 93 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba

query I rowsort
SELECT ALL + cor0.col0 * 94 * col1 FROM tab0 AS cor0
----
194016
319130
761306

query I rowsort
SELECT + ( + 46 ) + col1 * 72 FROM tab0 cor0
----
6238
6598
7030

query I rowsort
SELECT + 99 * col2 AS col1 FROM tab2 AS cor0
----
2574
2673
3762

query I rowsort
SELECT ALL - + 4 AS col2 FROM tab0 AS cor0
----
-4
-4
-4

query I rowsort
SELECT ALL ( - 45 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT col0 * col1 - col0 AS col2 FROM tab2
----
1264
210
4524

query I rowsort
SELECT - col1 - - ( col2 ) * col1 FROM tab1
----
1235
1378
560

query I rowsort
SELECT col0 + + col2 + col2 * + col0 FROM tab2
----
2132
223
3119

query I rowsort
SELECT DISTINCT tab0.col2 * col2 + 72 FROM tab0
----
1161
6796
73

query I rowsort
SELECT ALL - 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * + col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT + 37 * + 95 AS col2 FROM tab2
----
3515

query I rowsort
SELECT + 19 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT tab2.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7665
SELECT - CAST( - col1 + col2 AS SIGNED ) FROM tab0
----
53
9
96

skipif mysql # not compatible
query I rowsort label-7665
SELECT - CAST ( - col1 + col2 AS INTEGER ) FROM tab0
----
53
9
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7666
SELECT col2 * col2 DIV + tab2.col0 col0 FROM tab2
----
104
18
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7666
SELECT col2 * col2 / + tab2.col0 col0 FROM tab2
----
104
18
8

query I rowsort
SELECT - col2 * + cor0.col2 * col1 + col1 - + col2 AS col2 FROM tab0 AS cor0
----
-1
-611875
-93601

query I rowsort
SELECT + col0 * col0 + + 95 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-121
1285
718

query I rowsort
SELECT ( col0 ) + tab0.col1 * + ( ( col2 ) ) AS col2 FROM tab0
----
132
2862
7551

query I rowsort
SELECT DISTINCT col2 * col2 + col0 FROM tab1
----
2919
3313
9296

query I rowsort
SELECT DISTINCT 85 + - col1 + + col0 FROM tab1
----
139
152
62

query I rowsort
SELECT DISTINCT - col1 - col2 * col0 AS col0 FROM tab2
----
-2087
-220
-3019

query I rowsort
SELECT ALL + ( - 28 ) - col2 FROM tab1
----
-124
-82
-85

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7674
SELECT ALL + + col1 / + ( cor0.col0 ) + + CAST( NULL AS SIGNED ) * + ( + col1 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + + col1 / + ( cor0.col0 ) + + CAST ( NULL AS INTEGER ) * + ( + col1 ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 39 ) * col0 + + 99 * col0 AS col0 FROM tab2 AS cor0
----
10764
10902
966

query I rowsort
SELECT 67 * + 40 AS col0 FROM tab2
----
2680
2680
2680

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7677
SELECT ALL CAST( NULL AS SIGNED ) + - ( col2 ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL CAST ( NULL AS INTEGER ) + - ( col2 ) * - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7678
SELECT DISTINCT - col2 * - col0 + - CAST( NULL AS SIGNED ) * + 64 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT DISTINCT - col2 * - col0 + - CAST ( NULL AS INTEGER ) * + 64 * - col2 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 63 + col1 FROM tab1 AS cor0
----
73
76
89

query I rowsort
SELECT col0 * - cor0.col0 + 90 FROM tab0 AS cor0
----
-1135
-486
-7831

query I rowsort
SELECT - 93 + - cor0.col1 AS col0 FROM tab0 cor0
----
-179
-184
-190

query I rowsort
SELECT ALL col1 + - col0 + - ( - col1 ) FROM tab1 AS cor0
----
-44
-54
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + col1 + + col0 col2 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-7684
SELECT DISTINCT 34 DIV - col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7684
SELECT DISTINCT 34 / - col2 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col0 FROM tab2 cor0
----
96
96
96

query I rowsort
SELECT - - col1 * col0 + 81 AS col1 FROM tab2 AS cor0
----
1424
298
4683

query I rowsort
SELECT DISTINCT - col2 + 42 FROM tab1 AS cor0
----
-12
-15
-54

query I rowsort
SELECT ALL + + col2 + 34 * col1 * + col2 AS col1 FROM tab2 AS cor0
----
22002
28485
52182

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7689
SELECT DISTINCT - - col1 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + - 53 * 89 col1 FROM tab1 AS cor0
----
-4771
-4774
-4813

query I rowsort
SELECT ALL + - col2 - + 93 AS col0 FROM tab2 AS cor0
----
-119
-120
-131

query I rowsort
SELECT + + cor0.col1 * - 76 FROM tab1 cor0
----
-1976
-760
-988

query I rowsort
SELECT ALL - col1 + 7 * - col0 AS col1 FROM tab0 AS cor0
----
-254
-342
-714

query I rowsort
SELECT ALL col2 * col2 * - col2 + - col2 * - col1 FROM tab1 AS cor0
----
-156060
-184623
-883488

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7695
SELECT DISTINCT - col1 * + CAST( col2 * col2 AS SIGNED ) + ( - col1 * - col0 ) AS col1 FROM tab2 cor0
----
-22382
-23205
-35282

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT - col1 * + CAST ( col2 * col2 AS INTEGER ) + ( - col1 * - col0 ) AS col1 FROM tab2 cor0
----
-22382
-23205
-35282

query I rowsort
SELECT DISTINCT + ( + col0 ) + - col0 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT + - ( - 65 ) * col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-7697
SELECT + - ( - 65 ) * col0 / + col0 AS col1 FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT DISTINCT - col2 * 41 FROM tab0 AS cor0
----
-1353
-3362
-41

query I rowsort
SELECT ALL col0 * ( col1 ) + + col1 FROM tab2 cor0
----
1360
248
4661

query I rowsort
SELECT ALL - 7 - + col1 FROM tab2 AS cor0
----
-24
-38
-66

query I rowsort
SELECT DISTINCT + - col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017

query I rowsort
SELECT ALL + - 67 * cor0.col1 + - col2 + 42 FROM tab2 cor0
----
-1135
-2062
-3937

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col1 FROM tab1 cor0
----
94
94
94

query I rowsort
SELECT DISTINCT - - 76 * + col0 FROM tab2 AS cor0
----
532
5928
6004

query I rowsort
SELECT + - cor0.col2 * 99 FROM tab1 AS cor0
----
-5346
-5643
-9504

query I rowsort
SELECT ALL - col1 + - col1 * col2 FROM tab0 AS cor0
----
-194
-2924
-7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT DISTINCT col1 + + col1 DIV cor0.col1 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif mysql # not compatible
query I rowsort label-7707
SELECT DISTINCT col1 + + col1 / cor0.col1 AS col0 FROM tab1 AS cor0
----
11
14
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * ( col2 + ( - ( col2 ) ) ) col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 93 AS col2 FROM tab1 AS cor0
----
-93
-93
-93

query I rowsort
SELECT - col2 * ( col0 ) * 76 AS col0 FROM tab1 AS cor0
----
-12312
-277248
-583680

query I rowsort
SELECT DISTINCT + 55 * - col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

onlyif mysql # use DIV operator for integer division
query I rowsort label-7712
SELECT ALL col1 DIV ( - ( - col0 ) * - 39 ) col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL col1 / ( - ( - col0 ) * - 39 ) col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * - CAST ( + 1 AS REAL ) FROM tab1
----
10
13
26

query I rowsort
SELECT 67 + + col0 + - col2 FROM tab2
----
108
119
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col2 ) col2 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT DISTINCT - + col1 * + ( + col2 ) AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # use DIV operator for integer division
query I rowsort label-7718
SELECT - tab1.col1 DIV col0 + ( + col1 ) * - 15 AS col0 FROM tab1
----
-150
-195
-398

skipif mysql # not compatible
query I rowsort label-7718
SELECT - tab1.col1 / col0 + ( + col1 ) * - 15 AS col0 FROM tab1
----
-150
-195
-398

query I rowsort
SELECT ALL - + cor0.col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7720
SELECT - col1 + CAST( + col1 AS SIGNED ) * col1 FROM tab0
----
7310
8190
9312

skipif mysql # not compatible
query I rowsort label-7720
SELECT - col1 + CAST ( + col1 AS INTEGER ) * col1 FROM tab0
----
7310
8190
9312

query I rowsort
SELECT DISTINCT tab2.col0 * 35 AS col1 FROM tab2
----
245
2730
2765

onlyif mysql # use DIV operator for integer division
query I rowsort label-7722
SELECT ALL - col1 DIV 46 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL - col1 / 46 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78

query I rowsort
SELECT ALL col0 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT col1 * 14 AS col2 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ( 5 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT - cor0.col1 * - 28 AS col2 FROM tab0, tab1 AS cor0
----
280
364
728

query I rowsort
SELECT + tab0.col2 * + tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col1 ) + + cor0.col0 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 318a6997409c5decbbc3333c9d493ad3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - cor0.col2 col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 77 * + col0 AS col0 FROM tab2
----
539
6006
6083

query I rowsort
SELECT - cor0.col0 + tab1.col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 11dda44fbebd45f5892a68d60653afd2

query I rowsort
SELECT + col2 * col2 + + ( + col2 ) + - col0 FROM tab1 AS cor0
----
2967
3242
9232

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 * col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1, tab0, tab0 AS cor0
----
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT DISTINCT - 56 DIV - col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7736
SELECT DISTINCT - 56 / - col2 FROM tab1
----
0
1

query I rowsort
SELECT + col1 * - col2 * - tab1.col0 AS col2 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab1
----
97

query I rowsort
SELECT - col0 * col0 * col0 + - col2 * col2 + col2 * ( col1 ) FROM tab0 AS cor0
----
-12075
-42779
-704231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + col0 col1 FROM tab1 AS cor0
----
159
3392
4240

query I rowsort
SELECT - col1 * 93 FROM tab2
----
-1581
-2883
-5487

query I rowsort
SELECT ( tab0.col0 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7743
SELECT - col0 DIV + col1 + col1 * tab0.col2 FROM tab0
----
2838
7462
97

skipif mysql # not compatible
query I rowsort label-7743
SELECT - col0 / + col1 + col1 * tab0.col2 FROM tab0
----
2838
7462
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-7744
SELECT + col2 DIV - tab0.col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7744
SELECT + col2 / - tab0.col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7745
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 14 + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 17caaa1fb761d5b429675eb08f912c66

query I rowsort
SELECT ALL + col2 * + 80 * col0 + - col1 AS col1 FROM tab0 AS cor0
----
2703
583749
63274

query I rowsort
SELECT ALL 97 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123

onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT + col0 + - col1 DIV col1 + + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1457
-568
-831

skipif mysql # not compatible
query I rowsort label-7749
SELECT + col0 + - col1 / col1 + + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1457
-568
-831

query I rowsort
SELECT DISTINCT 23 * + col1 AS col0 FROM tab0 cor0
----
1978
2093
2231

query I rowsort
SELECT ALL 43 + col2 FROM tab1 AS cor0
----
100
139
97

query I rowsort
SELECT - col0 * - col2 - + col0 FROM tab1 cor0
----
159
3584
7600

query I rowsort
SELECT DISTINCT + - col0 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT - ( col2 ) - col1 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL + - col0 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT + + 72 - cor0.col2 DIV + col0 FROM tab2 AS cor0
----
69
72
72

skipif mysql # not compatible
query I rowsort label-7756
SELECT + + 72 - cor0.col2 / + col0 FROM tab2 AS cor0
----
69
72
72

query I rowsort
SELECT DISTINCT - col1 + + 77 FROM tab0 AS cor0
----
-14
-20
-9

query I rowsort
SELECT DISTINCT + col2 * + col0 + col2 * 98 AS col1 FROM tab0 cor0
----
133
15334
4026

query I rowsort
SELECT - - 24 * - col2 AS col2 FROM tab1 cor0
----
-1296
-1368
-2304

query I rowsort
SELECT - col1 + - col1 - - 74 FROM tab1
----
22
48
54

query I rowsort
SELECT - + ( 5 ) + col1 * + col0 FROM tab1 AS cor0
----
1035
635
73

query I rowsort
SELECT cor0.col0 - + 81 FROM tab1 AS cor0
----
-1
-17
-78

query I rowsort
SELECT + col1 * col0 + + col2 AS col2 FROM tab1 cor0
----
1136
132
697

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7764
SELECT CAST( NULL AS SIGNED ) + col1 * col1 + - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7764
SELECT CAST ( NULL AS INTEGER ) + col1 * col1 + - col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 * col2 ) + col1 FROM tab1
----
188
3658
7693

query I rowsort
SELECT + col1 * - col0 * + col1 - - ( + col2 ) * col1 FROM tab1 AS cor0
----
-12272
-5830
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col2 FROM tab1
----
3
64
80

query I rowsort
SELECT + col2 + ( - col0 ) * - col0 FROM tab1 cor0
----
4153
63
6496

query I rowsort
SELECT ALL 94 FROM tab0, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT 11 * col0 * - 49 FROM tab0 AS cor0
----
-12936
-18865
-47971

query I rowsort
SELECT col2 + + col2 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2904
7626
99

query I rowsort
SELECT + col1 * - col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT ALL + - 35 + + col0 AS col1 FROM tab2 AS cor0
----
-28
43
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * + col2 col1 FROM tab0 AS cor0
----
264
656
8

onlyif mysql # use DIV operator for integer division
query I rowsort label-7775
SELECT 62 DIV ( - tab0.col1 ) AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT 62 / ( - tab0.col1 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT - 87 * col2 FROM tab2
----
-2262
-2349
-3306

query I rowsort
SELECT col0 * 2 * - col0 FROM tab2
----
-12168
-12482
-98

query I rowsort
SELECT + col1 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT + - col1 + + col1 * - 27 FROM tab1 AS cor0
----
-280
-364
-728

query I rowsort
SELECT + + col1 * col2 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT + - 84 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4

query I rowsort
SELECT ALL ( col2 + - col2 ) * + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * - 55 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT - col2 * 43 * col2 AS col2 FROM tab2 AS cor0
----
-29068
-31347
-62092

query I rowsort
SELECT ALL + + col2 * - ( 47 ) + - col0 FROM tab0 AS cor0
----
-1575
-3943
-82

query I rowsort
SELECT tab2.col2 * - 93 FROM tab2, tab1 AS cor0
----
9 values hashing to e94d88c9f52e0645a75ebf1ac08f05b4

query I rowsort
SELECT DISTINCT + col1 * - col2 * col2 AS col2 FROM tab2
----
-22599
-24548
-39884

onlyif mysql # use DIV operator for integer division
query I rowsort label-7788
SELECT ALL - 31 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL - 31 / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT cor0.col2 + col1 + - 25 AS col2 FROM tab1 AS cor0
----
42
55
84

query I rowsort
SELECT col2 + 7 AS col2 FROM tab0 cor0
----
40
8
89

query I rowsort
SELECT DISTINCT col0 + 52 FROM tab2 cor0
----
130
131
59

query I rowsort
SELECT + col2 + 8 * ( col1 ) AS col2 FROM tab1 cor0
----
137
200
262

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7793
SELECT ALL + col2 + col1 * cor0.col0 * - col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + col2 + col1 * cor0.col0 * - col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT - + col2 + 8 DIV cor0.col1 - col1 * + 88 FROM tab2 AS cor0
----
-1534
-2755
-5218

skipif mysql # not compatible
query I rowsort label-7794
SELECT - + col2 + 8 / cor0.col1 - col1 * + 88 FROM tab2 AS cor0
----
-1534
-2755
-5218

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7795
SELECT DISTINCT col0 + - CAST( 74 AS SIGNED ) FROM tab0 AS cor0
----
-39
-50
15

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT col0 + - CAST ( 74 AS INTEGER ) FROM tab0 AS cor0
----
-39
-50
15

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) * col0 FROM tab1 AS cor0
----
234
40960
83200

query I rowsort
SELECT + col0 + + ( tab2.col2 ) * col1 AS col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT DISTINCT + cor0.col0 - col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - cor0.col1 * 35 + + col1 FROM tab0 cor0
----
-2924
-3094
-3298

onlyif mysql # use DIV operator for integer division
query I rowsort label-7800
SELECT ALL - col0 * - col2 + col0 DIV ( + col0 ) AS col1 FROM tab2 AS cor0
----
190
2029
3003

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL - col0 * - col2 + col0 / ( + col0 ) AS col1 FROM tab2 AS cor0
----
190
2029
3003

query I rowsort
SELECT 10 * 1 + - col0 AS col0 FROM tab0 AS cor0
----
-14
-25
-79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7802
SELECT + CAST( + 24 AS SIGNED ) FROM tab2 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-7802
SELECT + CAST ( + 24 AS INTEGER ) FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT - col1 * col2 + - col1 * 31 FROM tab0 AS cor0
----
-10283
-3104
-5504

query I rowsort
SELECT DISTINCT + col2 * + col0 * col1 + - col2 FROM tab2 AS cor0
----
119626
50996
5832

query I rowsort
SELECT DISTINCT 63 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
63

query I rowsort
SELECT + ( col1 ) + + 91 * + cor0.col2 FROM tab1 AS cor0
----
4940
5197
8749

query I rowsort
SELECT ALL - col2 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT - 25 + col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1509
621
812

query I rowsort
SELECT DISTINCT cor0.col1 * - col0 + + col0 + + 90 FROM tab2 AS cor0
----
-1174
-120
-4434

query I rowsort
SELECT DISTINCT - 76 * col0 * 63 AS col1 FROM tab1 AS cor0
----
-14364
-306432
-383040

query I rowsort
SELECT + col0 + col1 * + 71 FROM tab2 AS cor0
----
1286
2208
4267

query I rowsort
SELECT - 39 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1209
-2301
-663

query I rowsort
SELECT DISTINCT + + 95 * col1 FROM tab2 AS cor0
----
1615
2945
5605

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7814
SELECT DISTINCT col1 * col1 + + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
7420
8370
9444

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT col1 * col1 + + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 71 col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT - + 3 + col0 FROM tab2 AS cor0
----
4
75
76

query I rowsort
SELECT 52 AS col0 FROM tab1 cor0
----
52
52
52

query I rowsort
SELECT DISTINCT + col0 * - col1 + 98 AS col0 FROM tab1 AS cor0
----
-542
-942
20

onlyif mysql # use DIV operator for integer division
query I rowsort label-7819
SELECT ALL - col0 DIV cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-7819
SELECT ALL - col0 / cor0.col0 - - col0 AS col0 FROM tab1 AS cor0
----
2
63
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + col1 col0 FROM tab2 AS cor0
----
1275
2325
4425

query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 + col2 AS col2 FROM tab1 cor0
----
106
122
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7822
SELECT ALL - CAST( + 60 AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL - CAST ( + 60 AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col0 col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT DISTINCT - col0 * 74 AS col1 FROM tab0 AS cor0
----
-1776
-2590
-6586

query I rowsort
SELECT DISTINCT + - ( + 98 ) * cor0.col1 - + col0 AS col0 FROM tab1 AS cor0
----
-1044
-1354
-2551

query I rowsort
SELECT + col0 + col2 * col2 AS col0 FROM tab1 cor0
----
2919
3313
9296

query I rowsort
SELECT ALL - + col2 + + col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT DISTINCT + CAST( - cor0.col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

skipif mysql # not compatible
query I rowsort label-7828
SELECT DISTINCT + CAST ( - cor0.col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT - ( + 87 ) + + cor0.col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7829
SELECT - ( + 87 ) + + cor0.col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7830
SELECT CAST( - col2 AS SIGNED ) + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

skipif mysql # not compatible
query I rowsort label-7830
SELECT CAST ( - col2 AS INTEGER ) + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT ( - col0 ) + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7832
SELECT - + 0 + - ( col2 ) * CAST( NULL AS DECIMAL ) * + ( - col1 + + CAST( - col0 AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT - + 0 + - ( col2 ) * CAST ( NULL AS REAL ) * + ( - col1 + + CAST ( - col0 AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT ALL - ( col0 ) DIV col1 FROM tab1 AS cor0
----
-6
-6
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT ALL - ( col0 ) / col1 FROM tab1 AS cor0
----
-6
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + 64 col1 FROM tab0 AS cor0
----
145

onlyif mysql # use DIV operator for integer division
query I rowsort label-7835
SELECT 3 + - col1 DIV col1 col1 FROM tab1 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7835
SELECT 3 + - col1 / col1 col1 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-7836
SELECT col2 DIV 28 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7836
SELECT col2 / 28 AS col1 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-86
-91
-97

query I rowsort
SELECT 62 + + col2 FROM tab1
----
116
119
158

query I rowsort
SELECT col0 * col0 - col1 FROM tab2
----
18
6025
6224

query I rowsort
SELECT ( col1 * + col2 ) + 69 AS col1 FROM tab1
----
1317
1473
639

query I rowsort
SELECT DISTINCT tab2.col1 + - col2 AS col1 FROM tab2
----
-21
33
4

query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 * col1 FROM tab1 AS cor0
----
-36
-673
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT ALL + col2 DIV + 2 FROM tab0 AS cor0
----
0
16
41

skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL + col2 / + 2 FROM tab0 AS cor0
----
0
16
41

onlyif mysql # use DIV operator for integer division
query I rowsort label-7844
SELECT ALL col0 + tab1.col1 DIV col0 FROM tab1
----
11
64
80

skipif mysql # not compatible
query I rowsort label-7844
SELECT ALL col0 + tab1.col1 / col0 FROM tab1
----
11
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT - col2 * - col0 DIV + col0 FROM tab0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-7845
SELECT - col2 * - col0 / + col0 FROM tab0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-7846
SELECT col2 DIV tab1.col0 + col1 AS col2 FROM tab1
----
10
14
44

skipif mysql # not compatible
query I rowsort label-7846
SELECT col2 / tab1.col0 + col1 AS col2 FROM tab1
----
10
14
44

query I rowsort
SELECT DISTINCT col2 + + col2 * + col2 - tab0.col2 * col1 * + col0 FROM tab0
----
-3393
-657312
-66990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 + col0 col1 FROM tab1
----
3
64
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT col2 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-7849
SELECT col2 / tab0.col1 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab2 WHERE NOT - col0 - col2 IN ( + col2 * col1 )
----
1343
217
4602

onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT ALL + col2 DIV + col0 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL + col2 / + col0 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 * + col2 + + tab0.col1 FROM tab0
----
-706
-7207
62

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT + col1 * col2 + + col0 <> NULL
----

query I rowsort
SELECT ALL + col2 + col0 + + col1 * + col2 AS col0 FROM tab0
----
133
2895
7633

onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT DISTINCT - col1 * col1 DIV - col1 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-7855
SELECT DISTINCT - col1 * col1 / - col1 AS col0 FROM tab1
----
10
13
26

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 - + col1 <= NULL
----

query I rowsort
SELECT DISTINCT + tab2.col0 * tab2.col0 AS col0 FROM tab2
----
49
6084
6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7858
SELECT ALL + col0 + col0 DIV col2 + tab0.col1 AS col1 FROM tab0
----
110
167
181

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL + col0 + col0 / col2 + tab0.col1 AS col1 FROM tab0
----
110
167
181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col0 FROM tab1 WHERE col1 - col2 BETWEEN + col1 AND - col0 * col2 * col2
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT tab0.col0 * col1 DIV col0 + col0 FROM tab0
----
110
132
180

skipif mysql # not compatible
query I rowsort label-7860
SELECT tab0.col0 * col1 / col0 + col0 FROM tab0
----
110
132
180

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL col1 + col0 * - col1 FROM tab1
----
-1027
-52
-630

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) IN ( - tab2.col0 / - tab2.col0 )
----

query I rowsort
SELECT ALL col2 * - col1 * col2 + + tab0.col2 * tab0.col1 AS col2 FROM tab0
----
-604422
-90816
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7865
SELECT DISTINCT + col2 DIV col0 + col0 * + tab2.col1 * - col2 FROM tab2
----
-119652
-51034
-5856

skipif mysql # not compatible
query I rowsort label-7865
SELECT DISTINCT + col2 / col0 + col0 * + tab2.col1 * - col2 FROM tab2
----
-119652
-51034
-5856

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) < NULL
----

query I rowsort
SELECT + col1 - col1 * + col1 AS col2 FROM tab1
----
-156
-650
-90

query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT col2 * col1 + + col0 FROM tab2
----
1612
725
844

query I rowsort
SELECT ALL + col1 * col2 + col1 * col2 FROM tab0
----
14924
194
5676

query I rowsort
SELECT ALL tab0.col1 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - col1 + col2 )
----

query I rowsort
SELECT col0 * + tab2.col2 * + col2 + - col1 * col0 / + col0 FROM tab2 WHERE NOT ( col1 ) < ( col2 + col1 )
----

query I rowsort
SELECT + col2 + col1 * + col1 AS col2 FROM tab2
----
327
3507
988

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN + col1 * + col2 AND col0
----

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
26
27
38

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( - col1 )
----

query I rowsort
SELECT ALL col1 / col0 FROM tab0 WHERE NOT ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT + tab2.col0 + col0 * col2 AS col1 FROM tab2
----
196
2106
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT + col0 + tab1.col2 DIV col0 AS col0 FROM tab1
----
21
64
81

skipif mysql # not compatible
query I rowsort label-7879
SELECT + col0 + tab1.col2 / col0 AS col0 FROM tab1
----
21
64
81

query I rowsort
SELECT ALL - tab2.col2 - + col0 AS col0 FROM tab2
----
-104
-117
-34

query I rowsort
SELECT DISTINCT tab1.col0 AS col1 FROM tab1 WHERE NOT ( - col2 * col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col0 + col1 * col1 AND ( + col0 )
----

query I rowsort
SELECT ALL + tab2.col0 + col1 * + col0 * col1 AS col1 FROM tab2
----
22910
271596
6734

query I rowsort
SELECT col1 + - col1 * - col1 FROM tab0
----
7482
8372
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col1 * - col0 col1 FROM tab2 AS cor0
----
1381
244
4628

query I rowsort
SELECT - col0 * + tab1.col2 FROM tab1 WHERE col1 BETWEEN - col0 + - col2 AND NULL
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-7887
SELECT - - col2 DIV col1 AS col0 FROM tab2 cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7887
SELECT - - col2 / col1 AS col0 FROM tab2 cor0
----
0
0
2

query I rowsort
SELECT ALL + 6 * col0 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT DISTINCT col0 + + 72 * + col0 FROM tab0 AS cor0
----
1752
2555
6497

query I rowsort
SELECT + ( col0 ) * col2 AS col1 FROM tab1 cor0
----
162
3648
7680

query I rowsort
SELECT - 59 + 4 FROM tab1
----
-55
-55
-55

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7892
SELECT ALL CAST( col0 * col1 AS SIGNED ) FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL CAST ( col0 * col1 AS INTEGER ) FROM tab2
----
1343
217
4602

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT - - col0 * 44 * col0 AS col2 FROM tab1 AS cor0
----
180224
281600
396

query I rowsort
SELECT - - 89 AS col0 FROM tab1 cor0
----
89
89
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7896
SELECT + CAST( col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

skipif mysql # not compatible
query I rowsort label-7896
SELECT + CAST ( col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724

query I rowsort
SELECT 67 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a

query I rowsort
SELECT + 9 + - col2 FROM tab1 AS cor0
----
-45
-48
-87

query I rowsort
SELECT + col0 * - col1 + - col2 * + col1 FROM tab0 cor0
----
-15561
-3492
-4902

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + col2 + col2 col0 FROM tab0 AS cor0
----
-1056
-6642
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-7901
SELECT ALL + 18 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL + 18 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 + col0 + + col2 * col0 AS col1 FROM tab0 AS cor0
----
71
7469
849

query I rowsort
SELECT ALL - col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633

query I rowsort
SELECT DISTINCT + - 17 * col2 AS col1 FROM tab1 AS cor0
----
-1632
-918
-969

query I rowsort
SELECT ( + 63 ) * cor0.col0 FROM tab0 cor0
----
1512
2205
5607

query I rowsort
SELECT DISTINCT + 6 * col0 - + col1 AS col2 FROM tab2 AS cor0
----
11
409
457

onlyif mysql # use DIV operator for integer division
query I rowsort label-7907
SELECT DISTINCT - + col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT DISTINCT - + col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT - - ( 78 ) + + col2 * col0 FROM tab2 AS cor0
----
2106
267
3080

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7910
SELECT - CAST( - col1 AS SIGNED ) * cor0.col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

skipif mysql # not compatible
query I rowsort label-7910
SELECT - CAST ( - col1 AS INTEGER ) * cor0.col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673

query I rowsort
SELECT DISTINCT ( - col1 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + ( col2 ) + - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT ALL col0 + - ( + tab1.col2 ) FROM tab1
----
-16
-51
7

query I rowsort
SELECT DISTINCT + col2 * col0 - - col1 * - col0 FROM tab2 cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL + 52 AS col2 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT ALL col0 * 78 AS col2 FROM tab2
----
546
6084
6162

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7917
SELECT - CAST( col1 AS SIGNED ) + col0 AS col1 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-7917
SELECT - CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT ALL - ( + 14 ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT ALL - col1 * col2 + - col0 * + col2 FROM tab2 AS cor0
----
-1026
-3562
-3648

query I rowsort
SELECT DISTINCT ( 62 ) FROM tab0
----
62

query I rowsort
SELECT + tab1.col2 + ( - 64 ) FROM tab1, tab0 AS cor0
----
9 values hashing to e085d552c93847e2c30de38eb5b10cae

query I rowsort
SELECT DISTINCT + 38 * - col0 AS col0 FROM tab0
----
-1330
-3382
-912

onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT 32 + col2 - + 15 * - col0 DIV + col0 AS col1 FROM tab0
----
129
48
80

skipif mysql # not compatible
query I rowsort label-7923
SELECT 32 + col2 - + 15 * - col0 / + col0 AS col1 FROM tab0
----
129
48
80

query I rowsort
SELECT - ( col1 ) + ( - col1 * + col1 + col2 ) FROM tab1
----
-53
-648
-86

query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col0 AS col0 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT - 4 + col1 AS col0 FROM tab0
----
82
87
93

query I rowsort
SELECT DISTINCT + 42 * - col2 * ( ( - col0 ) * + col1 ) + + col2 * col0 AS col0 FROM tab1
----
1535808
177066
4200960

query I rowsort
SELECT DISTINCT + col0 * + 84 AS col0 FROM tab2
----
588
6552
6636

query I rowsort
SELECT DISTINCT col0 * 15 * - col2 + col0 AS col0 FROM tab0
----
-109381
-11856
-490

query I rowsort
SELECT - cor0.col2 * col0 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT + col1 + + ( col0 ) * + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT + col1 * - col2 * - ( col0 ) + - col2 FROM tab0 AS cor0
----
3394
664036
68079

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7933
SELECT - col1 * CAST( col2 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

skipif mysql # not compatible
query I rowsort label-7933
SELECT - col1 * CAST ( col2 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7934
SELECT + - col1 DIV col2 + col2 DIV + cor0.col2 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7934
SELECT + - col1 / col2 + col2 / + cor0.col2 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + col2 * col2 + - col1 * + col0 AS col1 FROM tab1
----
2609
2838
8176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 + col0 + col2 col1 FROM tab1
----
219
3769
7856

query I rowsort
SELECT DISTINCT col0 + col1 + tab0.col2 * + col1 AS col1 FROM tab0
----
229
2948
7642

onlyif mysql # use DIV operator for integer division
query I rowsort label-7938
SELECT ALL + col2 * tab0.col2 DIV - tab0.col1 + + col2 * tab0.col0 FROM tab0
----
35
7225
780

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL + col2 * tab0.col2 / - tab0.col1 + + col2 * tab0.col0 FROM tab0
----
35
7225
780

query I rowsort
SELECT + tab2.col2 + + col2 * + col1 + + col0 AS col1 FROM tab2
----
1638
763
871

query I rowsort
SELECT DISTINCT cor0.col1 * + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT DISTINCT + + col1 * col2 * col1 AS col2 FROM tab1 cor0
----
16224
36504
5700

onlyif mysql # use DIV operator for integer division
query I rowsort label-7942
SELECT - + col1 + col0 DIV col2 + + col0 FROM tab1 AS cor0
----
-23
55
67

skipif mysql # not compatible
query I rowsort label-7942
SELECT - + col1 + col0 / col2 + + col0 FROM tab1 AS cor0
----
-23
55
67

onlyif mysql # use DIV operator for integer division
query I rowsort label-7943
SELECT + - col2 * cor0.col2 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-7943
SELECT + - col2 * cor0.col2 / col2 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810

onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT DISTINCT col1 + + col1 + - col1 * col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
16
51
9

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT col1 + + col1 + - col1 * col0 / + col2 AS col2 FROM tab1 AS cor0
----
16
51
9

query I rowsort
SELECT - col1 * + col0 + + col1 * cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT - + col0 + + col0 + + col0 FROM tab0 AS cor0
----
24
35
89

query I rowsort
SELECT DISTINCT - + col1 * + col0 + col2 FROM tab0 cor0
----
-2031
-3394
-8017

query I rowsort
SELECT - col1 * - col0 - + cor0.col2 FROM tab0 AS cor0
----
2031
3394
8017

query I rowsort
SELECT ALL - 39 * + col0 + col2 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1330
-144
3827

query I rowsort
SELECT ALL - - cor0.col0 + col0 AS col2 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT DISTINCT + - 97 + + col0 * - col2 FROM tab2 AS cor0
----
-2125
-286
-3099

query I rowsort
SELECT ALL - cor0.col0 + col1 - - col1 AS col1 FROM tab2 cor0
----
-45
40
55

onlyif mysql # use DIV operator for integer division
query I rowsort label-7954
SELECT ALL + - cor0.col2 DIV cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
85
91
97

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL + - cor0.col2 / cor0.col0 + + cor0.col1 FROM tab0 AS cor0
----
85
91
97

query I rowsort
SELECT DISTINCT - col0 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1365
598
722

query I rowsort
SELECT ALL - 21 * col1 * + col2 FROM tab0 cor0
----
-156702
-2037
-59598

query I rowsort
SELECT + col1 * - col0 - - col2 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + + 88 * col2 FROM tab0 AS cor0
----
2904
7216
88

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + - cor0.col0 FROM tab2 AS cor0
----
182
1950
2923

query I rowsort
SELECT + + col2 * + cor0.col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # use DIV operator for integer division
query I rowsort label-7961
SELECT - col1 * cor0.col2 - cor0.col2 DIV col0 FROM tab1 cor0
----
-1249
-1422
-570

skipif mysql # not compatible
query I rowsort label-7961
SELECT - col1 * cor0.col2 - cor0.col2 / col0 FROM tab1 cor0
----
-1249
-1422
-570

query IIIIII rowsort
SELECT * FROM tab1, tab0 cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT ALL + + col2 * - col1 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT ALL - col1 + - col0 * - col2 AS col2 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT ALL + col0 + - cor0.col1 * col0 * - col0 FROM tab0 AS cor0
----
118860
49560
720900

onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT - - col1 DIV - col1 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

skipif mysql # not compatible
query I rowsort label-7966
SELECT - - col1 / - col1 + col1 AS col2 FROM tab0 AS cor0
----
85
90
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-7967
SELECT DISTINCT 95 DIV + tab0.col1 + - col2 * + col0 - tab0.col1 AS col1 FROM tab0
----
-132
-7388
-877

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT 95 / + tab0.col1 + - col2 * + col0 - tab0.col1 AS col1 FROM tab0
----
-132
-7388
-877

query I rowsort
SELECT DISTINCT 35 * col0 + 21 FROM tab0 AS cor0
----
1246
3136
861

query I rowsort
SELECT + 39 * col0 FROM tab2 AS cor0
----
273
3042
3081

onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT ALL col0 + col0 * 52 DIV - col1 + col0 AS col0 FROM tab2 AS cor0
----
-83
3
88

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL col0 + col0 * 52 / - col1 + col0 AS col0 FROM tab2 AS cor0
----
-83
3
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - col0 + 64 col0 FROM tab2 AS cor0
----
1407
281
4666

query I rowsort
SELECT + 93 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT - cor0.col0 + + col0 * 37 AS col0 FROM tab0 AS cor0
----
1260
3204
864

query I rowsort
SELECT - ( - col1 ) + col2 AS col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT + col1 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
104
1053
650

query I rowsort
SELECT ALL - + 0 + + col0 * cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
114076
5103
52728

query I rowsort
SELECT cor0.col2 * col1 * col2 + + 38 * col0 AS col1 FROM tab2 AS cor0
----
22865
27550
42848

query I rowsort
SELECT DISTINCT + ( 31 ) * + col1 FROM tab1 cor0
----
310
403
806

query I rowsort
SELECT - cor0.col2 + 21 * col2 * - col2 FROM tab1 AS cor0
----
-193632
-61290
-68286

query I rowsort
SELECT - 23 FROM tab2, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT DISTINCT + cor0.col0 DIV 53 + 82 col1 FROM tab2, tab2 AS cor0
----
82
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + cor0.col0 / 53 + 82 col1 FROM tab2, tab2 AS cor0
----
82
83

query I rowsort
SELECT + col1 * col1 * - 91 AS col0 FROM tab2 AS cor0
----
-26299
-316771
-87451

query I rowsort
SELECT ALL + ( - col0 ) * col0 FROM tab2
----
-49
-6084
-6241

onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT ALL + col2 + - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
102
54
63

skipif mysql # not compatible
query I rowsort label-7984
SELECT ALL + col2 + - col0 / - cor0.col1 FROM tab1 AS cor0
----
102
54
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT - cor0.col1 + col0 DIV col0 + 58 AS col1 FROM tab2 cor0
----
0
28
42

skipif mysql # not compatible
query I rowsort label-7985
SELECT - cor0.col1 + col0 / col0 + 58 AS col1 FROM tab2 cor0
----
0
28
42

query I rowsort
SELECT DISTINCT - cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6

query I rowsort
SELECT + + col0 * - col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT - + col0 * - col2 - - col1 FROM tab0 AS cor0
----
132
7389
878

query I rowsort
SELECT ( + col1 ) + - ( cor0.col2 ) + - col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + cor0.col2 + + col0 AS col1 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT 50 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7992
SELECT DISTINCT ( col1 ) * CAST( col1 AS SIGNED ) col1 FROM tab0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT ( col1 ) * CAST ( col1 AS INTEGER ) col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT 10 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16

query I rowsort
SELECT DISTINCT col2 * col0 * col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT ALL + tab2.col1 * + col2 FROM tab2
----
1534
646
837

query I rowsort
SELECT DISTINCT - - cor0.col2 * + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT DISTINCT col0 + + 82 + + col0 * + col0 AS col1 FROM tab0
----
1342
682
8092

query I rowsort
SELECT ALL 28 * 36 FROM tab1 AS cor0
----
1008
1008
1008

query I rowsort
SELECT ALL - 5 + - 46 * col1 AS col1 FROM tab1 cor0
----
-1201
-465
-603

query I rowsort
SELECT DISTINCT col1 + + col2 * col1 AS col0 FROM tab0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT + col0 DIV - 23 AS col1 FROM tab0
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-8001
SELECT + col0 / - 23 AS col1 FROM tab0
----
-1
-1
-3

query I rowsort
SELECT col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT 21 DIV col0 AS col2 FROM tab1 AS cor0
----
0
0
7

skipif mysql # not compatible
query I rowsort label-8003
SELECT 21 / col0 AS col2 FROM tab1 AS cor0
----
0
0
7

query I rowsort
SELECT + + 49 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4214
4459
4753

query I rowsort
SELECT col2 * col0 - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1242
3078
6432

query I rowsort
SELECT + 73 + col0 * col0 + + 66 FROM tab1 AS cor0
----
148
4235
6539

query I rowsort
SELECT ( 39 ) * - col1 + 19 AS col2 FROM tab0 AS cor0
----
-3335
-3530
-3764

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT ALL 19 * - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 934d1dd9454bfc140d1959bcd7db01c4

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8010
SELECT - CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

skipif mysql # not compatible
query I rowsort label-8010
SELECT - CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0

query I rowsort
SELECT ALL col0 * + col0 * col1 + col2 * col1 * + 88 AS col2 FROM tab0 AS cor0
----
127361
1377467
299280

query I rowsort
SELECT - col1 * col0 + + 86 AS col2 FROM tab1 AS cor0
----
-554
-954
8

query I rowsort
SELECT col2 + - 97 FROM tab1 AS cor0
----
-1
-40
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * col1 col1 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT - + cor0.col2 * col1 + 81 * + col0 FROM tab2 AS cor0
----
-270
4784
5753

query I rowsort
SELECT ALL + col1 * + 59 + - cor0.col1 AS col2 FROM tab2 cor0
----
1798
3422
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col1 col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL - ( cor0.col2 ) + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT ALL - ( + col0 ) * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT 92 * col2 FROM tab2 AS cor0
----
2392
2484
3496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8021
SELECT DISTINCT + 43 DIV col2 FROM tab0 AS cor0
----
0
1
43

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT + 43 / col2 FROM tab0 AS cor0
----
0
1
43

query I rowsort
SELECT ALL + - ( + ( - cor0.col0 ) ) * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8023
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 AS col0 FROM tab1 cor0
----
29
74
93

skipif mysql # not compatible
query I rowsort label-8023
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 AS col0 FROM tab1 cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8024
SELECT ALL + CAST( + 21 AS SIGNED ) * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

skipif mysql # not compatible
query I rowsort label-8024
SELECT ALL + CAST ( + 21 AS INTEGER ) * - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
-140
-1560
-1580

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( col1 AS REAL ) * + col2 + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371

query I rowsort
SELECT DISTINCT col0 * tab1.col2 * col0 + - col2 * col2 * - col0 FROM tab1
----
1351680
441408
9234

query I rowsort
SELECT DISTINCT col1 * ( col0 ) + col2 FROM tab2
----
1381
244
4628

onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT + col0 - + ( col0 ) DIV col2 AS col0 FROM tab0
----
0
24
88

skipif mysql # not compatible
query I rowsort label-8028
SELECT + col0 - + ( col0 ) / col2 AS col0 FROM tab0
----
0
24
88

query I rowsort
SELECT DISTINCT col1 * col2 + - col2 FROM tab1
----
1152
1350
513

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8030
SELECT tab1.col2 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8030
SELECT tab1.col2 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * col0 - col2 AS col2 FROM tab0
----
34
7216
759

query I rowsort
SELECT DISTINCT - tab2.col1 + - ( + col1 ) * col1 AS col1 FROM tab2
----
-306
-3540
-992

query I rowsort
SELECT - 49 FROM tab0, tab0 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT - - 52 FROM tab2 AS cor0
----
52
52
52

query I rowsort
SELECT ALL - - cor0.col1 * col2 + - 65 FROM tab1 cor0
----
1183
1339
505

query I rowsort
SELECT DISTINCT - - 23 FROM tab1 AS cor0
----
23

onlyif mysql # use DIV operator for integer division
query I rowsort label-8037
SELECT DISTINCT + - 6 * cor0.col0 DIV cor0.col0 col2 FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT + - 6 * cor0.col0 / cor0.col0 col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL + 99 - - col0 AS col2 FROM tab2 AS cor0
----
106
177
178

onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT + 12 * - col0 * cor0.col1 - + col0 DIV - col1 FROM tab1 AS cor0
----
-12474
-7674
-936

skipif mysql # not compatible
query I rowsort label-8039
SELECT + 12 * - col0 * cor0.col1 - + col0 / - col1 FROM tab1 AS cor0
----
-12474
-7674
-936

query I rowsort
SELECT ALL - ( + tab1.col2 ) * - col0 * col0 FROM tab1
----
233472
486
614400

query I rowsort
SELECT DISTINCT - + col0 * + col2 * 76 + col1 FROM tab1 AS cor0
----
-12286
-277238
-583667

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab1
----
40

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8043
SELECT ALL CAST( NULL AS SIGNED ) * - 64 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL CAST ( NULL AS INTEGER ) * - 64 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT DISTINCT col1 DIV - col0 - - col0 FROM tab0
----
21
33
88

skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT col1 / - col0 - - col0 FROM tab0
----
21
33
88

query I rowsort
SELECT DISTINCT - 99 * + tab2.col2 AS col0 FROM tab2
----
-2574
-2673
-3762

query I rowsort
SELECT 0 * col1 AS col1 FROM tab0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8047
SELECT - 46 - + col0 DIV col0 AS col0 FROM tab1 cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-8047
SELECT - 46 - + col0 / col0 AS col0 FROM tab1 cor0
----
-47
-47
-47

query I rowsort
SELECT - ( + col2 ) * + col2 + - col2 FROM tab2 AS cor0
----
-1482
-702
-756

onlyif mysql # use DIV operator for integer division
query I rowsort label-8049
SELECT + cor0.col2 DIV + ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8049
SELECT + cor0.col2 / + ( + col1 ) AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - tab0.col1 - - col2 AS col1 FROM tab0
----
-53
-9
-96

query I rowsort
SELECT + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT 17 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8053
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 73 FROM tab0, tab2 cor0, tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 73 FROM tab0, tab2 cor0, tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT DISTINCT + ( + col2 ) DIV 95 + - 60 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT + ( + col2 ) / 95 + - 60 FROM tab2
----
-60

query I rowsort
SELECT + col0 * + col0 + 76 + - tab1.col1 AS col1 FROM tab1
----
4162
59
6463

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 + - col1 col1 FROM tab1
----
-10
-13
-26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT - 14 DIV col2 + CAST( col1 AS SIGNED ) + + col2 FROM tab0
----
119
173
84

skipif mysql # not compatible
query I rowsort label-8057
SELECT - 14 / col2 + CAST ( col1 AS INTEGER ) + + col2 FROM tab0
----
119
173
84

query I rowsort
SELECT tab1.col0 + tab1.col1 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT + col2 + col2 * col1 + - 84 * + tab0.col2 * 71 FROM tab0
----
-193941
-481504
-5866

query I rowsort
SELECT DISTINCT + 96 + 18 FROM tab2, tab2 cor0
----
114

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2, tab0 cor3
----
39

query I rowsort
SELECT ALL col2 * 86 + tab2.col0 * tab2.col2 FROM tab2
----
2511
4264
6270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 41 col2 FROM tab1 AS cor0
----
-2214
-2337
-3936

query I rowsort
SELECT ALL + col0 * 19 FROM tab0 AS cor0
----
1691
456
665

query I rowsort
SELECT DISTINCT + + col0 * 60 FROM tab1 AS cor0
----
180
3840
4800

query I rowsort
SELECT + - cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24

query I rowsort
SELECT DISTINCT - + col0 + + col1 * - col2 * col0 FROM tab2 AS cor0
----
-119730
-51113
-5866

query I rowsort
SELECT DISTINCT - - col2 * + col2 - 59 AS col2 FROM tab1 AS cor0
----
2857
3190
9157

query I rowsort
SELECT + col0 + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373

query I rowsort
SELECT + cor1.col1 * 62 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 097bb7376eb99e0238c70d65fe02ffb0

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36

query I rowsort
SELECT DISTINCT + 32 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-111392
-30752
-9248

query I rowsort
SELECT ALL + 68 * ( + cor0.col2 ) FROM tab1 AS cor0
----
3672
3876
6528

query I rowsort
SELECT DISTINCT + 54 * col2 + + col0 FROM tab0 AS cor0
----
1806
4517
89

query I rowsort
SELECT - 16 * ( col1 ) + + 79 AS col1 FROM tab0 AS cor0
----
-1297
-1377
-1473

query I rowsort
SELECT DISTINCT + - ( - col1 ) + - cor0.col1 FROM tab1 cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8077
SELECT ALL - CAST( col1 AS SIGNED ) DIV + col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8077
SELECT ALL - CAST ( col1 AS INTEGER ) / + col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + 9 * + col2 AS col0 FROM tab0 AS cor0
----
-297
-738
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT - 80 + col0 - - ( - col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-4112
-6400
-86

query I rowsort
SELECT ALL + - col1 + col2 * cor0.col1 * - col2 + - col1 FROM tab1 cor0
----
-119834
-32510
-75868

query I rowsort
SELECT - + col0 * - col1 + ( cor0.col0 ) * + col1 FROM tab0 AS cor0
----
16198
4128
6790

query I rowsort
SELECT ALL + col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT DISTINCT - tab0.col1 * 85 + + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cedc18962a7e72b0d5469794b78c5dd6

query I rowsort
SELECT - + col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - ( col2 ) + col2 + col2 col2 FROM tab2 cor0
----
-1482
-570
-783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

query I rowsort
SELECT DISTINCT tab0.col2 * - 5 * - 71 FROM tab0
----
11715
29110
355

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8089
SELECT + ( + tab2.col0 ) * CAST( NULL AS DECIMAL ) - 74 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8089
SELECT + ( + tab2.col0 ) * CAST ( NULL AS REAL ) - 74 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT ( + cor0.col1 ) + - col2 * + col1 * + 61 FROM tab1 AS cor0
----
-34760
-76115
-85618

query I rowsort
SELECT + col2 * - col1 * + col1 FROM tab2 AS cor0
----
-10982
-25947
-90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + cor0.col0 col0 FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT col0 * - col0 * col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000

query I rowsort
SELECT - - col2 * + 61 AS col0 FROM tab0 AS cor0
----
2013
5002
61

onlyif mysql # use DIV operator for integer division
query I rowsort label-8095
SELECT + cor0.col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

skipif mysql # not compatible
query I rowsort label-8095
SELECT + cor0.col1 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8096
SELECT + col1 * + col2 + CAST( ( col0 ) AS SIGNED ) col2 FROM tab2 cor0
----
1612
725
844

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8096
SELECT + col1 * + col2 + CAST ( ( col0 ) AS INTEGER ) col2 FROM tab2 cor0
----
1612
725
844

query I rowsort
SELECT + ( col1 ) * col0 + - col2 * - col2 + 79 FROM tab0 AS cor0
----
14902
3232
3475

query I rowsort
SELECT ALL + cor0.col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158

query I rowsort
SELECT + col1 * + 26 + col0 + + cor0.col1 FROM tab1 AS cor0
----
334
431
705

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8100
SELECT - col0 + + CAST( - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-29
-74
-93

skipif mysql # not compatible
query I rowsort label-8100
SELECT - col0 + + CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-29
-74
-93

query I rowsort
SELECT col2 + col1 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
134
163
65

query I rowsort
SELECT - - col1 * cor0.col2 + 60 FROM tab0 AS cor0
----
157
2898
7522

query I rowsort
SELECT ALL tab0.col2 + 68 * - tab0.col1 FROM tab0
----
-5815
-6106
-6595

query I rowsort
SELECT + 41 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8105
SELECT ALL col2 + col1 DIV + col2 AS col2 FROM tab0
----
35
83
98

skipif mysql # not compatible
query I rowsort label-8105
SELECT ALL col2 + col1 / + col2 AS col2 FROM tab0
----
35
83
98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8106
SELECT DISTINCT - col1 * col1 + + ( col2 ) + 86 DIV 35 AS col0 FROM tab1 AS cor0
----
-41
-620
-71

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT - col1 * col1 + + ( col2 ) + 86 / 35 AS col0 FROM tab1 AS cor0
----
-41
-620
-71

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT + + col1 + CAST( - 39 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
47
52
58

skipif mysql # not compatible
query I rowsort label-8107
SELECT + + col1 + CAST ( - 39 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
47
52
58

query I rowsort
SELECT col1 * ( col2 ) + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT + col1 * col0 + col1 * - col0 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - - col0 * + col2 * 19 - + col2 AS col1 FROM tab1 AS cor0
----
145824
3024
69255

query I rowsort
SELECT - col0 * + col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT - col0 * ( col2 ) - + col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816

onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT col2 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

skipif mysql # not compatible
query I rowsort label-8113
SELECT col2 / col0 + col0 AS col1 FROM tab1 AS cor0
----
21
64
81

query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) * - cor0.col2 + - ( col1 ) * - col1 + - 14 AS col0 FROM tab1 AS cor0
----
1403
2066
656

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 + ( col1 + col2 ) AS col2 FROM tab0 AS cor0
----
133
7471
911

onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT DISTINCT - - 63 + col2 DIV col1 FROM tab1 AS cor0
----
65
68
70

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT - - 63 + col2 / col1 FROM tab1 AS cor0
----
65
68
70

query I rowsort
SELECT - col1 * + 90 + - col2 AS col2 FROM tab2 AS cor0
----
-1568
-2817
-5336

query I rowsort
SELECT ALL - ( col1 ) * col2 + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580

query I rowsort
SELECT ALL - - 26 + + col2 * + col0 FROM tab0 AS cor0
----
61
7324
818

query I rowsort
SELECT - col0 + - 79 FROM tab2 cor0
----
-157
-158
-86

query I rowsort
SELECT ALL - + col2 * - 53 + + col0 FROM tab1 AS cor0
----
2865
3085
5168

query I rowsort
SELECT col0 * ( + 5 ) * col1 FROM tab1
----
3200
390
5200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col2 ) col0 FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT + 72 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7

query I rowsort
SELECT 31 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f1c0bd597391f53df8b2bc58a2298fce

onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT col1 DIV tab1.col0 AS col0 FROM tab1
----
0
0
8

skipif mysql # not compatible
query I rowsort label-8126
SELECT col1 / tab1.col0 AS col0 FROM tab1
----
0
0
8

query I rowsort
SELECT ALL col2 + 19 + + col0 AS col2 FROM tab0 AS cor0
----
190
55
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT 64 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8128
SELECT 64 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL col2 * col2 - + 47 AS col0 FROM tab1
----
2869
3202
9169

onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT + tab0.col2 * tab0.col1 DIV col1 + col1 DIV tab0.col0 + col2 FROM tab0
----
165
4
69

skipif mysql # not compatible
query I rowsort label-8130
SELECT + tab0.col2 * tab0.col1 / col1 + col1 / tab0.col0 + col2 FROM tab0
----
165
4
69

query I rowsort
SELECT ALL - + cor1.col2 + - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7a2e0645e15b3844a0d89b13fc219077

query I rowsort
SELECT + - 32 - col1 FROM tab1 AS cor0
----
-42
-45
-58

query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col1 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + col1 + - cor0.col1 - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38

query I rowsort
SELECT + col1 + 87 * - col2 FROM tab1 AS cor0
----
-4672
-4949
-8339

query I rowsort
SELECT ALL - - col2 + - 36 AS col1 FROM tab0 AS cor0
----
-3
-35
46

query I rowsort
SELECT DISTINCT - 6 * - col1 FROM tab0 cor0
----
516
546
582

query I rowsort
SELECT + 93 + - col2 AS col0 FROM tab2 AS cor0
----
55
66
67

query I rowsort
SELECT DISTINCT 85 * col1 + ( col2 ) * col1 AS col0 FROM tab1 AS cor0
----
1420
2353
3614

query I rowsort
SELECT DISTINCT - col2 + + 36 FROM tab0 AS cor0
----
-46
3
35

query I rowsort
SELECT + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT DISTINCT + - cor0.col0 + - ( + col2 + col2 ) FROM tab1 AS cor0
----
-111
-178
-272

query I rowsort
SELECT DISTINCT - col1 * col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8144
SELECT - 55 * col1 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8144
SELECT - 55 * col1 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 2 AS col1 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT DISTINCT + 82 + + col0 AS col2 FROM tab1 AS cor0
----
146
162
85

query I rowsort
SELECT 31 * + cor0.col1 + - col0 FROM tab2 AS cor0
----
1751
448
954

query I rowsort
SELECT - col0 + cor0.col2 * - col1 * col2 FROM tab2 cor0
----
-22606
-24627
-39962

query I rowsort
SELECT ALL + ( col2 ) + + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-24
51
7

query I rowsort
SELECT - 13 - + 97 FROM tab2 AS cor0
----
-110
-110
-110

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT ALL CAST( 21 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL CAST ( 21 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-1134
-1197
-2016

query I rowsort
SELECT DISTINCT + ( - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + + col2 * col0 + - col0 FROM tab2 AS cor0
----
182
1950
2923

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8154
SELECT + CAST( 85 AS SIGNED ) + - cor0.col1 col1 FROM tab1 AS cor0
----
59
72
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8154
SELECT + CAST ( 85 AS INTEGER ) + - cor0.col1 col1 FROM tab1 AS cor0
----
59
72
75

query I rowsort
SELECT ALL - col1 * + 22 AS col1 FROM tab2 AS cor0
----
-1298
-374
-682

query I rowsort
SELECT - col0 * 25 + col0 - col1 FROM tab1 AS cor0
----
-1546
-1933
-98

onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT ALL + + col2 + ( - cor0.col2 ) + cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

skipif mysql # not compatible
query I rowsort label-8157
SELECT ALL + + col2 + ( - cor0.col2 ) + cor0.col2 / - col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7

query I rowsort
SELECT - - 25 + + col2 FROM tab2 AS cor0
----
51
52
63

query I rowsort
SELECT DISTINCT col2 * + ( + tab1.col1 ) * col1 FROM tab1
----
16224
36504
5700

query I rowsort
SELECT cor0.col1 + 13 * col2 AS col1 FROM tab1 AS cor0
----
1261
728
751

query I rowsort
SELECT + 61 + 43 * + col1 AS col2 FROM tab1 AS cor0
----
1179
491
620

query I rowsort
SELECT DISTINCT - 85 * - col2 * - col1 FROM tab2 AS cor0
----
-130390
-54910
-71145

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37

query I rowsort
SELECT ALL - - 3 * + col1 FROM tab2 AS cor0
----
177
51
93

query I rowsort
SELECT DISTINCT col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab2, tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT DISTINCT col0 * + 55 + col2 FROM tab1 AS cor0
----
219
3577
4496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT ALL + 46 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
46

skipif mysql # not compatible
query I rowsort label-8168
SELECT ALL + 46 / col2 AS col0 FROM tab0 AS cor0
----
0
1
46

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-8170
SELECT DISTINCT tab1.col1 DIV col1 + + col1 FROM tab1
----
11
14
27

skipif mysql # not compatible
query I rowsort label-8170
SELECT DISTINCT tab1.col1 / col1 + + col1 FROM tab1
----
11
14
27

query I rowsort
SELECT - col0 + col0 * tab0.col1 AS col2 FROM tab0
----
2040
3360
8010

onlyif mysql # use DIV operator for integer division
query I rowsort label-8172
SELECT col2 DIV - col0 + + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

skipif mysql # not compatible
query I rowsort label-8172
SELECT col2 / - col0 + + col2 AS col0 FROM tab2 AS cor0
----
24
26
38

query I rowsort
SELECT DISTINCT 73 + + tab0.col0 FROM tab0
----
108
162
97

query I rowsort
SELECT DISTINCT - col1 + + col1 + + col1 * col1 AS col2 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-8175
SELECT - col0 DIV - col0 col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8175
SELECT - col0 / - col0 col2 FROM tab1
----
1
1
1

query I rowsort
SELECT - ( + col2 * col1 ) AS col0 FROM tab0
----
-2838
-7462
-97

query I rowsort
SELECT - + col0 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010

query I rowsort
SELECT + col2 * + 61 AS col0 FROM tab2 cor0
----
1586
1647
2318

query I rowsort
SELECT + col1 * 57 FROM tab0 AS cor0
----
4902
5187
5529

onlyif mysql # use DIV operator for integer division
query I rowsort label-8180
SELECT DISTINCT col2 + col1 DIV - col1 FROM tab1
----
53
56
95

skipif mysql # not compatible
query I rowsort label-8180
SELECT DISTINCT col2 + col1 / - col1 FROM tab1
----
53
56
95

query I rowsort
SELECT + 31 + - col1 AS col1 FROM tab1
----
18
21
5

query I rowsort
SELECT DISTINCT + col1 * + col1 + + col2 AS col2 FROM tab2
----
327
3507
988

onlyif mysql # use DIV operator for integer division
query I rowsort label-8183
SELECT DISTINCT col0 DIV col2 + col1 col2 FROM tab0
----
132
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT col0 / col2 + col1 col2 FROM tab0
----
132
86
92

query I rowsort
SELECT col1 + + ( + col1 ) * + col0 AS col2 FROM tab0
----
2150
3492
8190

query I rowsort
SELECT ALL cor0.col0 + col0 + 67 AS col1 FROM tab0 AS cor0
----
115
137
245

query I rowsort
SELECT - col1 * + col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT DISTINCT - + col1 * - col0 + + 49 + - col2 FROM tab1 AS cor0
----
632
73
993

onlyif mysql # use DIV operator for integer division
query I rowsort label-8188
SELECT ALL + - col1 DIV - col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1092
3
6725

skipif mysql # not compatible
query I rowsort label-8188
SELECT ALL + - col1 / - col0 + + col2 * col2 AS col2 FROM tab0 AS cor0
----
1092
3
6725

query I rowsort
SELECT DISTINCT + col2 * col1 - - col0 AS col2 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - 35 * - cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18baf8aa12bceafb74e273208d5c2d18

query I rowsort
SELECT ALL + col2 * + 77 - 12 AS col0 FROM tab2 AS cor0
----
1990
2067
2914

query I rowsort
SELECT DISTINCT col1 + 89 * cor0.col2 FROM tab2 AS cor0
----
2373
2434
3399

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 col2 FROM tab2 cor0
----
1534
646
837

query I rowsort
SELECT 48 + - col2 FROM tab0 AS cor0
----
-34
15
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT + 71 * - col2 + col1 AS col1 FROM tab2 cor0
----
-1787
-1886
-2681

query I rowsort
SELECT ( 49 ) AS col0 FROM tab0
----
49
49
49

query I rowsort
SELECT col0 * + 43 FROM tab1
----
129
2752
3440

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8199
SELECT ALL CAST( + col2 AS SIGNED ) + + tab2.col2 AS col0 FROM tab2
----
52
54
76

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL CAST ( + col2 AS INTEGER ) + + tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT DISTINCT + 29 * - col1 FROM tab2
----
-1711
-493
-899

query I rowsort
SELECT + ( cor0.col2 ) * cor0.col1 * - col0 + - col2 FROM tab0 AS cor0
----
-3396
-664200
-68145

query I rowsort
SELECT DISTINCT col0 + + 20 + + col2 AS col2 FROM tab1
----
141
196
77

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8203
SELECT CAST( NULL AS SIGNED ) + - 98 * - col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8203
SELECT CAST ( NULL AS INTEGER ) + - 98 * - col1 - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8205
SELECT ALL tab1.col1 DIV - 23 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL tab1.col1 / - 23 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL + col2 * + ( + ( col2 ) * col0 + + col0 ) FROM tab1 cor0
----
211584
744960
8910

onlyif mysql # use DIV operator for integer division
query I rowsort label-8207
SELECT DISTINCT - cor0.col0 DIV 39 AS col2 FROM tab1 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT - cor0.col0 / 39 AS col2 FROM tab1 AS cor0
----
-1
-2
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8208
SELECT - col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8208
SELECT - col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) AS col1 FROM tab0
----
2064
3395
8099

onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT ALL ( col2 ) DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7

skipif mysql # not compatible
query I rowsort label-8210
SELECT ALL ( col2 ) / col1 AS col0 FROM tab1 AS cor0
----
2
5
7

query I rowsort
SELECT + cor1.col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8212
SELECT - + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 7 col0 FROM tab1 AS cor0
----
-19
-3
-6

query I rowsort
SELECT - - 30 + + col0 FROM tab2 AS cor0
----
108
109
37

onlyif mysql # use DIV operator for integer division
query I rowsort label-8215
SELECT 30 DIV ( col0 ) + col2 * col2 FROM tab2 AS cor0
----
1444
676
733

skipif mysql # not compatible
query I rowsort label-8215
SELECT 30 / ( col0 ) + col2 * col2 FROM tab2 AS cor0
----
1444
676
733

onlyif mysql # use DIV operator for integer division
query I rowsort label-8216
SELECT - tab0.col0 DIV - tab0.col0 col1 FROM tab0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8216
SELECT - tab0.col0 / - tab0.col0 col1 FROM tab0
----
1
1
1

query I rowsort
SELECT + col2 + col2 + + col2 * col1 FROM tab2
----
1586
722
891

query I rowsort
SELECT ALL + 71 FROM tab1
----
71
71
71

query I rowsort
SELECT + ( - 25 ) AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT 0 * - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8221
SELECT - col2 * col0 + col2 DIV + 17 FROM tab1 AS cor0
----
-159
-3645
-7675

skipif mysql # not compatible
query I rowsort label-8221
SELECT - col2 * col0 + col2 / + 17 FROM tab1 AS cor0
----
-159
-3645
-7675

query I rowsort
SELECT 67 * - tab2.col1 AS col2 FROM tab2
----
-1139
-2077
-3953

query I rowsort
SELECT - col0 + + col1 * cor0.col0 * col2 FROM tab2 AS cor0
----
119574
50955
5852

onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT ALL - - col0 DIV col2 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL - - col0 / col2 FROM tab1 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + col0 col1 FROM tab1 AS cor0
----
-1168
-1401
-506

query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 FROM tab2 AS cor0
----
52
54
76

query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 col1 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT DISTINCT 82 FROM tab0 cor0
----
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8231
SELECT ALL - 27 * 70 + - col0 - + cor0.col2 DIV - col2 col2 FROM tab0 AS cor0
----
-1913
-1924
-1978

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL - 27 * 70 + - col0 - + cor0.col2 / - col2 col2 FROM tab0 AS cor0
----
-1913
-1924
-1978

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8232
SELECT CAST( 59 AS SIGNED ) col0 FROM tab1 AS cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8232
SELECT CAST ( 59 AS INTEGER ) col0 FROM tab1 AS cor0
----
59
59
59

query I rowsort
SELECT + + 20 + + col1 AS col0 FROM tab1 AS cor0
----
30
33
46

query I rowsort
SELECT DISTINCT + 71 + - 15 AS col0 FROM tab0 cor0
----
56

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8235
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8236
SELECT ALL + CAST( NULL AS SIGNED ) + col2 + cor0.col0 / CAST( - 60 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-8236
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 + cor0.col0 / CAST ( - 60 AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8237
SELECT DISTINCT - col1 * ( col2 ) DIV + col0 FROM tab1
----
-15
-468
-8

skipif mysql # not compatible
query I rowsort label-8237
SELECT DISTINCT - col1 * ( col2 ) / + col0 FROM tab1
----
-15
-468
-8

query I rowsort
SELECT ALL + + col2 * + 59 FROM tab1 AS cor0
----
3186
3363
5664

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab2 AS cor1, tab0, tab2 cor2
----
3645 values hashing to 0c9c9a26da1b45580001288543ac8dbe

query I rowsort
SELECT DISTINCT - - col2 * ( - col0 + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-399
1536
2754

query I rowsort
SELECT - 98 - 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 77c3d2047f1ee5e234978774b15ce98a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col1 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + col1 * + col0 + - col1 AS col0 FROM tab0
----
1978
3298
8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-8244
SELECT + col0 * 87 DIV + 17 FROM tab2
----
35
399
404

skipif mysql # not compatible
query I rowsort label-8244
SELECT + col0 * 87 / + 17 FROM tab2
----
35
399
404

query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8246
SELECT col0 DIV 21 + + tab0.col0 + col0 DIV + col2 AS col2 FROM tab0
----
25
71
94

skipif mysql # not compatible
query I rowsort label-8246
SELECT col0 / 21 + + tab0.col0 + col0 / + col2 AS col2 FROM tab0
----
25
71
94

onlyif mysql # use DIV operator for integer division
query I rowsort label-8247
SELECT DISTINCT col2 + 16 DIV + col1 FROM tab2
----
26
27
38

skipif mysql # not compatible
query I rowsort label-8247
SELECT DISTINCT col2 + 16 / + col1 FROM tab2
----
26
27
38

query I rowsort
SELECT DISTINCT - - col0 - + ( - col1 ) FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT - + col1 * 14 AS col0 FROM tab2 AS cor0
----
-238
-434
-826

query I rowsort
SELECT DISTINCT - col0 * 54 + tab2.col2 * + col0 FROM tab2
----
-1264
-189
-2184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - tab0.col1 col1 FROM tab0
----
-53
-9
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + - col1 * + col0 col2 FROM tab0
----
-2148
-3479
-8183

onlyif mysql # use DIV operator for integer division
query I rowsort label-8253
SELECT DISTINCT col1 DIV 9 AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-8253
SELECT DISTINCT col1 / 9 AS col1 FROM tab1
----
1
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8254
SELECT - CAST( - col0 AS SIGNED ) * + col2 DIV col2 + - col1 col0 FROM tab1
----
-23
54
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8254
SELECT - CAST ( - col0 AS INTEGER ) * + col2 / col2 + - col1 col0 FROM tab1
----
-23
54
67

query I rowsort
SELECT col2 + + 56 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
108
110
132

query I rowsort
SELECT ( - col0 ) + - col0 * - col2 FROM tab1 AS cor0
----
159
3584
7600

query I rowsort
SELECT col0 * 52 FROM tab0 cor0
----
1248
1820
4628

query I rowsort
SELECT DISTINCT cor0.col2 * + col1 + + 64 * + 22 * - col2 AS col0 FROM tab2 AS cor0
----
-35074
-37179
-52858

query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1456
567
830

onlyif mysql # use DIV operator for integer division
query I rowsort label-8260
SELECT ALL col0 DIV + col0 col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL col0 / + col0 col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - + 67 * col2 FROM tab1 cor0
----
-3618
-3819
-6432

query I rowsort
SELECT + 73 * col1 FROM tab1 AS cor0
----
1898
730
949

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 col0 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT DISTINCT 7 * - col2 FROM tab2 cor0
----
-182
-189
-266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col0 * 23 * 13 col0 FROM tab0 AS cor0
----
10562
26702
7262

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col2 col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + - 85 + - col0 FROM tab1 cor0
----
-149
-165
-88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8268
SELECT + cor0.col0 + col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8268
SELECT + cor0.col0 + 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 ALL col1 + col2 col2 FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT + col1 * 47 AS col0 FROM tab1 AS cor0
----
1222
470
611

query I rowsort
SELECT DISTINCT + col1 + + 51 FROM tab2 AS cor0
----
110
68
82

query I rowsort
SELECT + - col1 + cor0.col0 * + col1 FROM tab1 AS cor0
----
1027
52
630

query I rowsort
SELECT DISTINCT + col0 * + 14 * 99 FROM tab1 AS cor0
----
110880
4158
88704

query I rowsort
SELECT ALL + col1 * - 27 + + 73 AS col2 FROM tab1 cor0
----
-197
-278
-629

query I rowsort
SELECT DISTINCT - cor0.col0 * - 46 AS col0 FROM tab2 AS cor0
----
322
3588
3634

query I rowsort
SELECT ALL - col0 * - ( - 54 ) + - col0 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-358
-4264
-4307

query I rowsort
SELECT + + cor0.col0 * 74 * - col0 FROM tab1 cor0
----
-303104
-473600
-666

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8278
SELECT DISTINCT - CAST( - 76 AS SIGNED ) * col2 FROM tab0 cor0
----
2508
6232
76

skipif mysql # not compatible
query I rowsort label-8278
SELECT DISTINCT - CAST ( - 76 AS INTEGER ) * col2 FROM tab0 cor0
----
2508
6232
76

query I rowsort
SELECT + col2 * + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-8280
SELECT DISTINCT - - cor0.col0 DIV 72 + col1 DIV 51 FROM tab0 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - - cor0.col0 / 72 + col1 / 51 FROM tab0 AS cor0
----
1
2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8281
SELECT ALL + - CAST( col1 AS SIGNED ) * - col1 - 70 FROM tab0 AS cor0
----
7326
8211
9339

skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + - CAST ( col1 AS INTEGER ) * - col1 - 70 FROM tab0 AS cor0
----
7326
8211
9339

query I rowsort
SELECT + cor0.col1 + 43 FROM tab2 AS cor0
----
102
60
74

query I rowsort
SELECT ALL 74 * col0 FROM tab2 cor0
----
518
5772
5846

onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT DISTINCT + - ( col0 ) + cor0.col0 DIV 10 AS col0 FROM tab0 AS cor0
----
-22
-32
-81

skipif mysql # not compatible
query I rowsort label-8284
SELECT DISTINCT + - ( col0 ) + cor0.col0 / 10 AS col0 FROM tab0 AS cor0
----
-22
-32
-81

query I rowsort
SELECT - ( 36 ) * col1 + ( - col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4456
-6868
-945

query I rowsort
SELECT ALL - col1 - 58 FROM tab0 AS cor0
----
-144
-149
-155

query I rowsort
SELECT ALL + tab0.col1 - 27 FROM tab0
----
59
64
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col1 col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8289
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( ( - col0 ) ) + - col1 FROM tab2 cor0
----
-24
19
62

query I rowsort
SELECT ALL col2 * 61 + - cor0.col0 AS col1 FROM tab1 cor0
----
3291
3413
5776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8292
SELECT - + col2 + col0 DIV - col0 FROM tab0 AS cor0
----
-2
-34
-83

skipif mysql # not compatible
query I rowsort label-8292
SELECT - + col2 + col0 / - col0 FROM tab0 AS cor0
----
-2
-34
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-8293
SELECT ALL - col0 DIV col0 - - col1 * col2 AS col0 FROM tab2
----
1533
645
836

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL - col0 / col0 - - col1 * col2 AS col0 FROM tab2
----
1533
645
836

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 * col0 col0 FROM tab1
----
-1152
-1440
-54

query I rowsort
SELECT - col1 * 4 + + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1411
-341
-4838

query I rowsort
SELECT + - 58 FROM tab1 cor0
----
-58
-58
-58

onlyif mysql # use DIV operator for integer division
query I rowsort label-8297
SELECT + ( + 3 ) + col1 DIV 42 FROM tab2 AS cor0
----
3
3
4

skipif mysql # not compatible
query I rowsort label-8297
SELECT + ( + 3 ) + col1 / 42 FROM tab2 AS cor0
----
3
3
4

query I rowsort
SELECT - col1 + - cor0.col2 * - col0 AS col0 FROM tab0 AS cor0
----
-62
706
7207

onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT DISTINCT - col2 * col1 * - col1 + + col0 DIV - col1 FROM tab1 AS cor0
----
16218
36504
5694

skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT - col2 * col1 * - col1 + + col0 / - col1 FROM tab1 AS cor0
----
16218
36504
5694

query I rowsort
SELECT + + cor0.col1 * col1 + 15 * cor0.col1 FROM tab2 AS cor0
----
1426
4366
544

query I rowsort
SELECT ALL - 71 + col1 FROM tab2 AS cor0
----
-12
-40
-54

query I rowsort
SELECT 74 * cor0.col1 FROM tab2 AS cor0
----
1258
2294
4366

query I rowsort
SELECT col2 + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + + 78 FROM tab1 AS cor0
----
240
3726
7758

query I rowsort
SELECT - col0 + - col1 * col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT DISTINCT - + 55 * col2 FROM tab0 AS cor0
----
-1815
-4510
-55

query I rowsort
SELECT - col1 * 39 AS col2 FROM tab0
----
-3354
-3549
-3783

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + col0 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT tab2.col0 FROM tab2, tab0 AS cor0, tab2 cor1
----
7
78
79

query I rowsort
SELECT ALL - cor0.col0 + cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to bae587a8285614200d114dd089f83a2b

query I rowsort
SELECT ALL - 41 FROM tab1
----
-41
-41
-41

query I rowsort
SELECT col2 * - 56 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-3015
1024
904

query I rowsort
SELECT ALL + - col0 * + cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL + + ( + 66 ) FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT + + ( 32 ) AS col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) * col2 FROM tab2 AS cor0
----
-1427
-617
-698

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8317
SELECT - CAST( - col1 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-8317
SELECT - CAST ( - col1 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT ALL + ( - col2 ) * col0 * ( - cor0.col0 ) - + col2 FROM tab1 AS cor0
----
233415
432
614304

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8319
SELECT - + CAST( + col0 AS SIGNED ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

skipif mysql # not compatible
query I rowsort label-8319
SELECT - + CAST ( + col0 AS INTEGER ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT DISTINCT + - col1 + - col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-195
-205
-264

query I rowsort
SELECT ALL - col2 + + 4 * - col0 FROM tab0 cor0
----
-129
-141
-438

query I rowsort
SELECT ( - col2 ) + + col1 * - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-636089
-753653
-912674

query I rowsort
SELECT DISTINCT + col0 * + col2 * col0 AS col2 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT + - tab2.col0 FROM tab2, tab1, tab0 cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT - CAST( NULL AS SIGNED ) * + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT - CAST ( NULL AS INTEGER ) * + col1 + col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 96 + - ( + col2 ) FROM tab0 AS cor0
----
-129
-178
-97

query I rowsort
SELECT - + col1 * 60 FROM tab2 AS cor0
----
-1020
-1860
-3540

query I rowsort
SELECT ALL cor0.col0 - - col2 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT + ( + col1 ) * tab2.col2 * + col2 + - col0 AS col2 FROM tab2
----
22592
24469
39806

query I rowsort
SELECT ( + col1 ) * 29 AS col1 FROM tab2 AS cor0
----
1711
493
899

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT - col2 - + ( ( col0 ) ) AS col2 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col1 * col1 + 70 FROM tab1
----
-30
-606
-99

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8334
SELECT - + col1 / - CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT - + col1 / - CAST ( NULL AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8335
SELECT DISTINCT - col1 DIV - cor0.col0 + 6 - - col2 * + 20 * - 49 AS col0 FROM tab0 cor0
----
-32331
-80353
-972

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT - col1 / - cor0.col0 + 6 - - col2 * + 20 * - 49 AS col0 FROM tab0 cor0
----
-32331
-80353
-972

query I rowsort
SELECT ALL - - col2 * + col0 + col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1566
4218
8928

query I rowsort
SELECT ALL col0 + cor0.col0 * - col1 * + col2 FROM tab2 cor0
----
-119574
-50955
-5852

query I rowsort
SELECT ALL - col1 + col0 * 72 AS col0 FROM tab1 AS cor0
----
190
4598
5747

query I rowsort
SELECT 47 * - col0 + col0 FROM tab2
----
-322
-3588
-3634

query I rowsort
SELECT ALL + col1 * col1 + ( col0 ) FROM tab2 AS cor0
----
3559
368
968

query I rowsort
SELECT col0 + + 13 FROM tab0
----
102
37
48

query I rowsort
SELECT ALL - 47 + col2 * - ( - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-2075
-236
-3049

query I rowsort
SELECT - ( cor0.col1 ) FROM tab1 cor0
----
-10
-13
-26

query I rowsort
SELECT + cor0.col1 + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT ALL + col1 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + 97 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT - 48 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18

onlyif mysql # use DIV operator for integer division
query I rowsort label-8349
SELECT tab0.col2 DIV col2 + - col2 FROM tab0
----
-32
-81
0

skipif mysql # not compatible
query I rowsort label-8349
SELECT tab0.col2 / col2 + - col2 FROM tab0
----
-32
-81
0

query I rowsort
SELECT ALL + + 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT - ( 61 ) AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

query I rowsort
SELECT ALL - col1 * + col0 - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190

query I rowsort
SELECT DISTINCT + col2 + - 25 FROM tab2 AS cor0
----
1
13
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 + + col2 col1 FROM tab2 AS cor0
----
37
38
49

query I rowsort
SELECT + ( col0 ) * + col2 + + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
14080
171
7744

query I rowsort
SELECT ALL col1 - - cor0.col1 FROM tab1 AS cor0
----
20
26
52

query I rowsort
SELECT DISTINCT - tab0.col2 * - 53 + + 46 FROM tab0
----
1795
4392
99

query I rowsort
SELECT - tab1.col2 - + col1 AS col0 FROM tab1
----
-109
-67
-80

query I rowsort
SELECT DISTINCT col0 * + ( col2 ) AS col0 FROM tab0
----
35
7298
792

query I rowsort
SELECT DISTINCT - 21 + col2 AS col1 FROM tab0
----
-20
12
61

query I rowsort
SELECT ALL col0 + - ( col0 ) * col1 * ( col0 ) FROM tab1
----
-231
-40896
-83120

query I rowsort
SELECT ALL - 65 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57

query I rowsort
SELECT col2 + 0 AS col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT 61 * + ( col1 ) + + tab2.col0 * + col1 AS col2 FROM tab2
----
2108
2380
8201

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) * col1 col0 FROM tab0 AS cor0
----
2838
7462
97

query I rowsort
SELECT ALL + 93 + - 73 * col1 AS col0 FROM tab1 AS cor0
----
-1805
-637
-856

query I rowsort
SELECT DISTINCT + 97 + + ( col0 ) FROM tab2 cor0
----
104
175
176

query I rowsort
SELECT + ( col2 ) * - col1 AS col1 FROM tab2
----
-1534
-646
-837

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8369
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( col2 ) + - col0 * - 50 * col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( col2 ) + - col0 * - 50 * col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab0, tab0 AS cor0
----
52

query I rowsort
SELECT 48 * + col1 AS col1 FROM tab1
----
1248
480
624

query I rowsort
SELECT ALL - tab2.col2 * 0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT ALL - - cor0.col2 * - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL - - cor0.col2 * - col0 / col0 AS col1 FROM tab1 AS cor0
----
-54
-57
-96

query I rowsort
SELECT DISTINCT + col2 * col1 + ( - col2 ) + col1 AS col1 FROM tab2 AS cor0
----
1567
625
841

query I rowsort
SELECT DISTINCT col2 + col0 + + col0 FROM tab1
----
185
256
60

query I rowsort
SELECT - tab2.col1 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

query I rowsort
SELECT ALL - col0 + ( col2 ) + - tab0.col2 * - ( + ( - col2 ) ) FROM tab0
----
-1080
-35
-6731

onlyif mysql # use DIV operator for integer division
query I rowsort label-8378
SELECT DISTINCT + col2 * 31 + + 90 DIV + col2 + - col0 AS col1 FROM tab1
----
1672
1704
2896

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + col2 * 31 + + 90 / + col2 + - col0 AS col1 FROM tab1
----
1672
1704
2896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * - col0 + + col1 col0 FROM tab1
----
-136
-3638
-7667

onlyif mysql # use DIV operator for integer division
query I rowsort label-8380
SELECT ALL tab2.col1 + 7 DIV tab2.col1 FROM tab2
----
17
31
59

skipif mysql # not compatible
query I rowsort label-8380
SELECT ALL tab2.col1 + 7 / tab2.col1 FROM tab2
----
17
31
59

query I rowsort
SELECT + col2 * + ( - col0 ) + col2 + col2 AS col1 FROM tab0
----
-33
-7134
-726

query I rowsort
SELECT 72 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602

query I rowsort
SELECT ALL + 81 * col0 FROM tab2 AS cor0
----
567
6318
6399

onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT - 97 + col2 DIV col0 FROM tab1 cor0
----
-79
-96
-97

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 97 + col2 / col0 FROM tab1 cor0
----
-79
-96
-97

query I rowsort
SELECT ALL + 84 * 81 FROM tab0 AS cor0
----
6804
6804
6804

query I rowsort
SELECT col1 + - 22 AS col1 FROM tab2 AS cor0
----
-5
37
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-8388
SELECT - ( 79 ) DIV col2 AS col1 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8388
SELECT - ( 79 ) / col2 AS col1 FROM tab1 cor0
----
-1
-1
0

query I rowsort
SELECT - + 50 AS col1 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - - 90 * - 49 FROM tab1 AS cor0
----
-4410

onlyif mysql # use DIV operator for integer division
query I rowsort label-8391
SELECT ALL - + 58 * col2 DIV cor0.col1 FROM tab2 AS cor0
----
-129
-25
-50

skipif mysql # not compatible
query I rowsort label-8391
SELECT ALL - + 58 * col2 / cor0.col1 FROM tab2 AS cor0
----
-129
-25
-50

query I rowsort
SELECT col0 - + ( + col1 * + 52 + col0 ) FROM tab0 AS cor0
----
-4472
-4732
-5044

query I rowsort
SELECT - ( + 67 ) * - col1 * 2 + cor0.col1 FROM tab2 AS cor0
----
2295
4185
7965

query I rowsort
SELECT ALL + col1 + col0 * 81 FROM tab2
----
598
6377
6416

query I rowsort
SELECT - tab0.col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84

query I rowsort
SELECT ALL + tab0.col2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8397
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab1
----
23

query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e

query I rowsort
SELECT + col1 * col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL + col0 * - ( + cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT + col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8403
SELECT - + col2 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52

skipif mysql # not compatible
query I rowsort label-8403
SELECT - + col2 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52

query I rowsort
SELECT - + ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - cor0.col0 col0 FROM tab1 AS cor0
----
-29
-74
-93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8406
SELECT + + 20 DIV col0 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-8406
SELECT + + 20 / col0 + cor0.col1 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + - col2 * col2 + - col0 FROM tab0 cor0
----
-1113
-36
-6813

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8408
SELECT - col0 + 2 * cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT - col0 + 2 * cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 93 + + col2 FROM tab1 AS cor0
----
147
150
189

onlyif mysql # use DIV operator for integer division
query I rowsort label-8410
SELECT ALL + + col1 - col0 DIV ( + 40 ) AS col0 FROM tab2 AS cor0
----
16
31
58

skipif mysql # not compatible
query I rowsort label-8410
SELECT ALL + + col1 - col0 / ( + 40 ) AS col0 FROM tab2 AS cor0
----
16
31
58

query I rowsort
SELECT DISTINCT - 38 + cor0.col0 FROM tab0 AS cor0
----
-14
-3
51

query I rowsort
SELECT + + col2 * - col1 * cor0.col0 FROM tab2 AS cor0
----
-119652
-51034
-5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT - + cor0.col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216

query I rowsort
SELECT + - ( col1 ) + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52

query I rowsort
SELECT ALL + col1 + col2 * - 18 FROM tab1 cor0
----
-1016
-1715
-946

query I rowsort
SELECT DISTINCT + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - 97 * col2 FROM tab1 AS cor0
----
-5238
-5529
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 13 * col2 * col0 + - col2 col1 FROM tab0 AS cor0
----
10263
454
94792

query I rowsort
SELECT ALL 12 + col0 FROM tab1 AS cor0
----
15
76
92

query I rowsort
SELECT 2 + cor0.col1 FROM tab0 AS cor0
----
88
93
99

query I rowsort
SELECT ALL - col0 * 87 * - 34 AS col2 FROM tab0 AS cor0
----
103530
263262
70992

query I rowsort
SELECT 76 - - col2 * 89 FROM tab0
----
165
3013
7374

query I rowsort
SELECT - 63 * + 32 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 51e375e0b88c9e3543f3ffe44ac1cf17

query I rowsort
SELECT 24 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080

query I rowsort
SELECT + 78 + col1 FROM tab2 cor0
----
109
137
95

query I rowsort
SELECT - 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT + 7 + + col1 FROM tab0 cor0
----
104
93
98

query I rowsort
SELECT - col0 + ( col1 * - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680

query I rowsort
SELECT ALL 37 + - cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ae382347ae555ee7f298aff18d37743a

query I rowsort
SELECT ALL + 89 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + 48 + + col0 FROM tab2
----
126
127
55

query I rowsort
SELECT + col0 * - col0 + + col1 + col0 FROM tab0
----
-1093
-466
-7741

onlyif mysql # use DIV operator for integer division
query I rowsort label-8434
SELECT DISTINCT - + cor0.col0 DIV + ( col0 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT - + cor0.col0 / + ( col0 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL + - cor0.col1 * - 77 + + col2 * - col1 FROM tab2 AS cor0
----
1550
3009
663

onlyif mysql # use DIV operator for integer division
query I rowsort label-8436
SELECT - cor0.col1 + 1 + cor0.col0 * col1 DIV 1 FROM tab1 AS cor0
----
1028
53
631

skipif mysql # not compatible
query I rowsort label-8436
SELECT - cor0.col1 + 1 + cor0.col0 * col1 / 1 FROM tab1 AS cor0
----
1028
53
631

query I rowsort
SELECT ALL - col0 * + cor0.col2 + + 37 FROM tab1 AS cor0
----
-125
-3611
-7643

query I rowsort
SELECT DISTINCT + - col1 * ( + cor0.col2 ) * + col2 + - 0 AS col1 FROM tab1 AS cor0
----
-119808
-32490
-75816

query I rowsort
SELECT DISTINCT + - col2 * - 78 FROM tab1 cor0
----
4212
4446
7488

query I rowsort
SELECT - col0 * + 14 * col2 + + col2 * + ( col0 ) + col2 AS col1 FROM tab2 cor0
----
-2430
-26338
-38988

query I rowsort
SELECT DISTINCT col0 * 70 AS col0 FROM tab2 AS cor0
----
490
5460
5530

onlyif mysql # use DIV operator for integer division
query I rowsort label-8442
SELECT - - col0 + CAST( - col0 AS SIGNED ) DIV + col1 + 73 AS col1 FROM tab1 AS cor0
----
131
147
76

skipif mysql # not compatible
query I rowsort label-8442
SELECT - - col0 + CAST ( - col0 AS INTEGER ) / + col1 + 73 AS col1 FROM tab1 AS cor0
----
131
147
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-8443
SELECT - - 30 DIV col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT - - 30 / col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8444
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 + col1 * col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 + col1 * col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 83 + - ( - col0 ) FROM tab1 AS cor0
----
147
163
86

query I rowsort
SELECT - col2 * col0 + + col0 + 49 FROM tab2 AS cor0
----
-133
-1901
-2874

query I rowsort
SELECT ALL + ( - cor0.col1 ) * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961

query I rowsort
SELECT ALL col2 * 77 AS col0 FROM tab0 AS cor0
----
2541
6314
77

onlyif mysql # use DIV operator for integer division
query I rowsort label-8449
SELECT col1 * col1 + - col0 + - cor0.col2 DIV - ( col1 ) AS col1 FROM tab2 AS cor0
----
212
3403
954

skipif mysql # not compatible
query I rowsort label-8449
SELECT col1 * col1 + - col0 + - cor0.col2 / - ( col1 ) AS col1 FROM tab2 AS cor0
----
212
3403
954

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8450
SELECT CAST( 87 AS SIGNED ) * col0 + - 40 AS col2 FROM tab2 AS cor0
----
569
6746
6833

skipif mysql # not compatible
query I rowsort label-8450
SELECT CAST ( 87 AS INTEGER ) * col0 + - 40 AS col2 FROM tab2 AS cor0
----
569
6746
6833

onlyif mysql # use DIV operator for integer division
query I rowsort label-8451
SELECT ALL - col2 + - col0 + - 73 DIV 69 FROM tab1 AS cor0
----
-122
-177
-58

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - col2 + - col0 + - 73 / 69 FROM tab1 AS cor0
----
-122
-177
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * tab2.col2 + col2 * tab2.col0 col0 FROM tab2
----
-540
1352
1558

onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT ALL - 4 DIV + col2 + - col1 + ( col1 ) FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - 4 / + col2 + - col1 + ( col1 ) FROM tab0 AS cor0
----
-4
0
0

query I rowsort
SELECT - col1 * + cor0.col2 + cor0.col2 FROM tab1 cor0
----
-1152
-1350
-513

query I rowsort
SELECT DISTINCT col0 + + col1 * - col1 + + 23 FROM tab2 cor0
----
-187
-3380
-931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 * + 27 * - col2 col1 FROM tab0 AS cor0
----
-201392
-2618
-76593

query I rowsort
SELECT DISTINCT - - col2 * - col1 * col2 + + col2 * col1 FROM tab1 AS cor0
----
-118560
-31920
-74412

query I rowsort
SELECT + 0 * + col2 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8459
SELECT cor0.col2 * CAST( NULL AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT cor0.col2 * CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort
SELECT ALL - col1 * + CAST ( col2 AS REAL ) + - cor0.col1 + col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + col0 * - 26 FROM tab0 AS cor0
----
-2314
-624
-910

query I rowsort
SELECT ALL + col0 * + ( col0 ) + cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320

onlyif mysql # use DIV operator for integer division
query I rowsort label-8463
SELECT + col2 DIV col0 - - col2 * col2 FROM tab0 AS cor0
----
1
1090
6724

skipif mysql # not compatible
query I rowsort label-8463
SELECT + col2 / col0 - - col2 * col2 FROM tab0 AS cor0
----
1
1090
6724

query I rowsort
SELECT + 40 + col2 AS col0 FROM tab1
----
136
94
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT col0 * col1 * col0 + ( col1 ) DIV - col1 FROM tab1
----
233
40959
83199

skipif mysql # not compatible
query I rowsort label-8465
SELECT col0 * col1 * col0 + ( col1 ) / - col1 FROM tab1
----
233
40959
83199

query I rowsort
SELECT + col1 * - col1 + - 16 FROM tab1 cor0
----
-116
-185
-692

query I rowsort
SELECT + cor0.col2 + ( + col1 ) * col0 * col2 FROM tab1 AS cor0
----
36537
4266
99936

query I rowsort
SELECT + ( - cor1.col0 ) * cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1a10d0ce1bd78a97a3f25900325a81f

query I rowsort
SELECT + - 36 AS col0 FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT ALL - col2 * ( 5 ) + + col1 * col2 * col1 AS col1 FROM tab1
----
15744
36234
5415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 + + 61 col1 FROM tab2 AS cor0
----
1022
350
3542

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * - tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9dc5b86d5ef7e4f37cfdbdbc34e7472f

onlyif mysql # use DIV operator for integer division
query I rowsort label-8473
SELECT ALL - ( + col0 ) DIV col1 AS col0 FROM tab2
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL - ( + col0 ) / col1 AS col0 FROM tab2
----
-1
-4
0

query I rowsort
SELECT + col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832

query I rowsort
SELECT ALL + col1 * - col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409

query I rowsort
SELECT DISTINCT + 34 AS col0 FROM tab0 AS cor0
----
34

query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-36
-7380
-825

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8478
SELECT ALL col1 * col1 + - CAST( NULL AS SIGNED ) * col1 * - col1 + + col1 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL col1 * col1 + - CAST ( NULL AS INTEGER ) * col1 * - col1 + + col1 * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8479
SELECT ALL col1 + - col1 DIV - ( col0 ) AS col1 FROM tab1 AS cor0
----
10
13
34

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL col1 + - col1 / - ( col0 ) AS col1 FROM tab1 AS cor0
----
10
13
34

query I rowsort
SELECT - - 82 AS col1 FROM tab2 cor0
----
82
82
82

query I rowsort
SELECT ALL + - 73 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-159
-164
-170

query I rowsort
SELECT ALL - 14 + col0 + col1 FROM tab1 cor0
----
15
60
79

query I rowsort
SELECT DISTINCT + col1 * col0 - col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT - col2 * col0 + ( cor0.col1 ) FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT ALL + ( - col1 ) + + col0 * ( - col0 * col1 ) FROM tab0 cor0
----
-118922
-49622
-720902

query I rowsort
SELECT DISTINCT - col0 * col0 - - col1 FROM tab0 AS cor0
----
-1128
-490
-7830

query I rowsort
SELECT ALL + 16 AS col1 FROM tab2 cor0
----
16
16
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT - + 24 * col0 + col2 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2136
-577
-840

skipif mysql # not compatible
query I rowsort label-8488
SELECT - + 24 * col0 + col2 / - col0 AS col0 FROM tab0 AS cor0
----
-2136
-577
-840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 90 * + col2 col0 FROM tab1 AS cor0
----
112320
126360
51300

query I rowsort
SELECT DISTINCT + ( + ( + tab2.col2 ) ) AS col2 FROM tab2, tab0 AS cor0
----
26
27
38

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8491
SELECT - CAST( 46 AS SIGNED ) AS col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-8491
SELECT - CAST ( 46 AS INTEGER ) AS col1 FROM tab2
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col2 * col0 col0 FROM tab1 AS cor0
----
-1242
3078
6432

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8493
SELECT ALL + CAST( 10 + + col1 AS SIGNED ) AS col2 FROM tab2
----
27
41
69

skipif mysql # not compatible
query I rowsort label-8493
SELECT ALL + CAST ( 10 + + col1 AS INTEGER ) AS col2 FROM tab2
----
27
41
69

onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT ALL - 32 DIV tab0.col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL - 32 / tab0.col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT ALL + + col2 * + ( col2 ) FROM tab1 AS cor0
----
2916
3249
9216

onlyif mysql # use DIV operator for integer division
query I rowsort label-8496
SELECT + tab1.col2 DIV + col0 AS col2 FROM tab1
----
0
1
18

skipif mysql # not compatible
query I rowsort label-8496
SELECT + tab1.col2 / + col0 AS col2 FROM tab1
----
0
1
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 * - tab1.col2 col0 FROM tab1
----
-207936
-737280
-8748

query I rowsort
SELECT - ( + col0 ) + 45 * - ( col2 ) FROM tab1 AS cor0
----
-2433
-2629
-4400

query I rowsort
SELECT ALL + 85 FROM tab0
----
85
85
85

query I rowsort
SELECT - col1 * + 0 * + ( - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 + 58 * col1 FROM tab0 AS cor0
----
5021
5360
5627

query I rowsort
SELECT col2 * - col0 * - col1 FROM tab2 AS cor0
----
119652
51034
5859

query I rowsort
SELECT - col2 * - col2 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
18432
5832
6498

onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT ALL + col0 DIV - 57 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL + col0 / - 57 AS col2 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - + cor0.col0 + + col1 * + col0 FROM tab1 cor0
----
576
75
960

query I rowsort
SELECT DISTINCT col1 * ( - col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT - col0 + 20 * - col2 FROM tab1 AS cor0
----
-1083
-1204
-2000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 * col1 * col1 col0 FROM tab0 AS cor0
----
636056
753571
912673

query I rowsort
SELECT + col2 * ( col0 ) - + col1 AS col1 FROM tab0
----
-62
706
7207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col2 ) + + col2 col2 FROM tab2
----
2054
216
3040

onlyif mysql # use DIV operator for integer division
query I rowsort label-8511
SELECT + col0 + col0 + tab0.col2 DIV + col1 FROM tab0
----
178
48
70

skipif mysql # not compatible
query I rowsort label-8511
SELECT + col0 + col0 + tab0.col2 / + col1 FROM tab0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8512
SELECT DISTINCT + col1 DIV ( - 92 ) + - col2 + col2 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT + col1 / ( - 92 ) + - col2 + col2 AS col0 FROM tab0
----
-1
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8513
SELECT ALL - col1 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-119
-173
-98

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL - col1 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-119
-173
-98

query I rowsort
SELECT - cor0.col1 + + 18 AS col0 FROM tab0 AS cor0
----
-68
-73
-79

query I rowsort
SELECT ALL + col2 + - ( - 15 ) FROM tab2 AS cor0
----
41
42
53

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8516
SELECT col2 + CAST( NULL AS SIGNED ) / 99 + + col0 / 89 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT col2 + CAST ( NULL AS INTEGER ) / 99 + + col0 / 89 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col1 * 93 FROM tab2
----
124899
20181
427986

query I rowsort
SELECT ALL - 47 FROM tab0, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8519
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + col0 + col0 FROM tab1 AS cor0
----
185
256
60

query I rowsort
SELECT DISTINCT ( - col1 ) * - col1 * 7 FROM tab0 AS cor0
----
51772
57967
65863

onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT cor0.col2 * col2 + cor0.col1 + + col0 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
2942
3253
9223

skipif mysql # not compatible
query I rowsort label-8522
SELECT cor0.col2 * col2 + cor0.col1 + + col0 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
2942
3253
9223

query I rowsort
SELECT ALL + 86 AS col1 FROM tab2 AS cor0
----
86
86
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8524
SELECT CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1040
640
78

onlyif mysql # use DIV operator for integer division
query I rowsort label-8526
SELECT DISTINCT + 61 DIV ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
20

skipif mysql # not compatible
query I rowsort label-8526
SELECT DISTINCT + 61 / ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
20

query I rowsort
SELECT - - 13 + + col2 FROM tab1 AS cor0
----
109
67
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-8528
SELECT 17 DIV + col0 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

skipif mysql # not compatible
query I rowsort label-8528
SELECT 17 / + col0 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8529
SELECT - - CAST( + col0 AS SIGNED ) + - col2 + 20 * 63 AS col2 FROM tab2 cor0
----
1240
1301
1312

skipif mysql # not compatible
query I rowsort label-8529
SELECT - - CAST ( + col0 AS INTEGER ) + - col2 + 20 * 63 AS col2 FROM tab2 cor0
----
1240
1301
1312

onlyif mysql # use DIV operator for integer division
query I rowsort label-8530
SELECT DISTINCT - 0 * + cor0.col2 DIV + col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8530
SELECT DISTINCT - 0 * + cor0.col2 / + col1 FROM tab0 cor0
----
0

query I rowsort
SELECT ALL + - 59 + cor0.col1 AS col2 FROM tab0 AS cor0
----
27
32
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 + - 27 + col0 col0 FROM tab2
----
-47
14
25

query I rowsort
SELECT - + 34 + col0 * - col0 FROM tab2 AS cor0
----
-6118
-6275
-83

query I rowsort
SELECT DISTINCT - + 23 + - col2 * col0 * ( - col0 + col0 ) FROM tab1 AS cor0
----
-23

query I rowsort
SELECT col0 * + col0 AS col2 FROM tab0 cor0
----
1225
576
7921

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1 cor0
----
53

query I rowsort
SELECT ( + col1 ) + col2 AS col1 FROM tab0
----
119
173
98

query I rowsort
SELECT ALL + + 80 + + col2 * col1 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
1106
3642
3728

query I rowsort
SELECT ALL + 40 + col2 FROM tab2 AS cor0
----
66
67
78

query I rowsort
SELECT ALL - col1 * cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8541
SELECT + - col2 + - CAST( + ( col0 ) + - col2 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
-3094
-735
593

skipif mysql # not compatible
query I rowsort label-8541
SELECT + - col2 + - CAST ( + ( col0 ) + - col2 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
-3094
-735
593

query I rowsort
SELECT DISTINCT - col0 + + 8 * - 6 FROM tab2 cor0
----
-126
-127
-55

query I rowsort
SELECT - - cor0.col2 * - 98 + col0 AS col2 FROM tab0 AS cor0
----
-3210
-63
-7947

onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT ALL - - col1 DIV + 43 AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL - - col1 / + 43 AS col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT - col2 * col0 + col1 + + 7 * col0 AS col2 FROM tab1
----
-115
-3190
-7107

onlyif mysql # use DIV operator for integer division
query I rowsort label-8546
SELECT DISTINCT 13 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8546
SELECT DISTINCT 13 / col2 FROM tab1
----
0

query I rowsort
SELECT + 28 - col0 FROM tab0
----
-61
-7
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 * col1 col1 FROM tab1
----
1534
590
767

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8549
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 38 - cor0.col1 * + 67 * - cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8549
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 38 - cor0.col1 * + 67 * - cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT ( col0 ) DIV ( + col2 ) AS col2 FROM tab0
----
0
1
35

skipif mysql # not compatible
query I rowsort label-8550
SELECT ( col0 ) / ( + col2 ) AS col2 FROM tab0
----
0
1
35

query I rowsort
SELECT ALL + ( col1 ) + + col0 AS col1 FROM tab1
----
29
74
93

query I rowsort
SELECT DISTINCT - tab2.col1 + - col0 FROM tab2
----
-137
-38
-96

query I rowsort
SELECT ALL - col0 * + col2 - + 24 * - col2 * + cor0.col0 FROM tab2 AS cor0
----
4347
46644
69046

onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT + col1 DIV - col2 + + col1 DIV - col0 AS col0 FROM tab1 cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-8554
SELECT + col1 / - col2 + + col1 / - col0 AS col0 FROM tab1 cor0
----
-8
0
0

query I rowsort
SELECT - - col1 + cor0.col1 * + 31 AS col0 FROM tab2 AS cor0
----
1888
544
992

query I rowsort
SELECT - - col0 * + col0 + + col0 FROM tab1 cor0
----
12
4160
6480

onlyif mysql # use DIV operator for integer division
query I rowsort label-8557
SELECT + col2 * col1 DIV + col2 AS col0 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8557
SELECT + col2 * col1 / + col2 AS col0 FROM tab1
----
10
13
26

query I rowsort
SELECT - 77 * col1 * + col1 + - tab1.col2 FROM tab1
----
-13109
-52106
-7757

query I rowsort
SELECT ALL - col2 + tab2.col0 + + col1 * tab2.col1 * - col0 AS col0 FROM tab2
----
-22790
-271466
-6747

onlyif mysql # use DIV operator for integer division
query I rowsort label-8560
SELECT col1 * col2 DIV - col2 FROM tab1
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-8560
SELECT col1 * col2 / - col2 FROM tab1
----
-10
-13
-26

query I rowsort
SELECT ( - cor1.col1 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL + 66 + + col0 AS col2 FROM tab1 AS cor0
----
130
146
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col1 FROM tab1 cor0
----
121
176
57

query I rowsort
SELECT DISTINCT + 53 * col1 + col1 FROM tab2 AS cor0
----
1674
3186
918

onlyif mysql # use DIV operator for integer division
query I rowsort label-8565
SELECT DISTINCT 83 DIV - col0 FROM tab2 cor0
----
-1
-11

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT 83 / - col0 FROM tab2 cor0
----
-1
-11

query I rowsort
SELECT ALL + col0 + + col1 AS col2 FROM tab1 AS cor0
----
29
74
93

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8567
SELECT - col2 * + cor0.col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8567
SELECT - col2 * + cor0.col1 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 87 * col1 FROM tab1 AS cor0
----
1131
2262
870

query I rowsort
SELECT - 82 + cor0.col0 FROM tab0 AS cor0
----
-47
-58
7

query I rowsort
SELECT - tab0.col2 + ( col0 ) * - col0 AS col2 FROM tab0
----
-1226
-609
-8003

query I rowsort
SELECT + tab1.col0 + - 20 FROM tab1
----
-17
44
60

query I rowsort
SELECT ALL - col0 * 19 AS col1 FROM tab0 AS cor0
----
-1691
-456
-665

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT ALL - col0 * CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 39 FROM tab0 AS cor0
----
1287
3198
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT DISTINCT col1 * ( - 27 ) DIV col2 AS col0 FROM tab1 AS cor0
----
-13
-3
-4

skipif mysql # not compatible
query I rowsort label-8575
SELECT DISTINCT col1 * ( - 27 ) / col2 AS col0 FROM tab1 AS cor0
----
-13
-3
-4

query I rowsort
SELECT + + col2 + + 86 AS col0 FROM tab1 AS cor0
----
140
143
182

query I rowsort
SELECT ALL col0 + 13 FROM tab0
----
102
37
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col0 ) col0 FROM tab1 AS cor0
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + cor0.col1 * col1 * - ( 98 ) col2 FROM tab1 AS cor0
----
-16482
-66245
-9736

onlyif mysql # use DIV operator for integer division
query I rowsort label-8580
SELECT - col0 + - 82 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-72
-86

skipif mysql # not compatible
query I rowsort label-8580
SELECT - col0 + - 82 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-72
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-8581
SELECT ALL ( 23 + col1 ) DIV - col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL ( 23 + col1 ) / - col1 FROM tab2
----
-1
-1
-2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8582
SELECT ALL col2 * + col0 DIV col0 + - col0 FROM tab0 AS cor0
----
-34
-7
9

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL col2 * + col0 / col0 + - col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT - cor0.col2 * - 27 FROM tab0 AS cor0
----
2214
27
891

query I rowsort
SELECT + ( 2 ) FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - ( col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT - 24 * + col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-137
-1813
-1879

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8587
SELECT DISTINCT - - CAST( ( col0 ) AS SIGNED ) FROM tab2 AS cor0
----
7
78
79

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - - CAST ( ( col0 ) AS INTEGER ) FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT - ( + 14 ) AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT - 62 AS col0 FROM tab0 cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - - col2 + + ( col2 ) * col2 FROM tab2 AS cor0
----
1482
702
756

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT - - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8591
SELECT - - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col0 * + col0 + + col0 FROM tab1 AS cor0
----
12
4160
6480

query I rowsort
SELECT ALL 56 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200

query I rowsort
SELECT + cor0.col1 + + 4 AS col2 FROM tab2 AS cor0
----
21
35
63

onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT + - col0 DIV + 42 + col2 AS col0 FROM tab2 AS cor0
----
25
27
37

skipif mysql # not compatible
query I rowsort label-8595
SELECT + - col0 / + 42 + col2 AS col0 FROM tab2 AS cor0
----
25
27
37

query I rowsort
SELECT col0 + - 77 FROM tab0
----
-42
-53
12

query I rowsort
SELECT ( + 38 ) AS col0 FROM tab1 AS cor0
----
38
38
38

query I rowsort
SELECT - 79 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed

onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT DISTINCT col2 DIV + 91 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT col2 / + 91 FROM tab0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8600
SELECT DISTINCT + col2 + + CAST( + 92 AS SIGNED ) DIV + col1 AS col1 FROM tab0 AS cor0
----
1
34
83

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + col2 + + CAST ( + 92 AS INTEGER ) / + col1 AS col1 FROM tab0 AS cor0
----
1
34
83

query I rowsort
SELECT ALL col0 * col2 + + col1 * + col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT IN ( col0 )
----

query I rowsort
SELECT - col1 + col2 * + col0 * - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * col1 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT - tab0.col1 * col0 * col2 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 * + cor0.col1 * + col0 + col0 * - cor0.col2 FROM tab2 AS cor0
----
117624
48032
5670

query I rowsort
SELECT ALL col0 * cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
262144
27
512000

query I rowsort
SELECT col1 * + cor0.col2 - - col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col0 * + tab1.col2 - col0 col2 FROM tab1
----
-36544
-4215
-99920

query I rowsort
SELECT - col0 + + col0 * + col1 FROM tab2
----
1264
210
4524

query I rowsort
SELECT DISTINCT - col2 * + col1 - tab1.col2 FROM tab1
----
-1344
-1458
-627

query I rowsort
SELECT - col1 / - col2 FROM tab2 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT + col0 * - col0 + - col2 + col1 AS col0 FROM tab0
----
-1129
-523
-7912

query I rowsort
SELECT + col2 + tab0.col1 FROM tab0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8615
SELECT tab0.col2 DIV col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8615
SELECT tab0.col2 / col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 + + col1 FROM tab1
----
-2836
-3182
-9107

query I rowsort
SELECT ALL + col2 + tab1.col0 * + tab1.col2 AS col0 FROM tab1
----
216
3705
7776

query I rowsort
SELECT - col1 * 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 * col1 + - col1 col1 FROM tab1 cor0
----
156
650
90

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT + - col1 + - col1 + col1 * col0 * - col0 AS col1 FROM tab1 AS cor0
----
-286
-40980
-83226

onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT col2 DIV cor0.col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-36
-57
-95

skipif mysql # not compatible
query I rowsort label-8622
SELECT col2 / cor0.col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-36
-57
-95

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

query I rowsort
SELECT - col0 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
576
75
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col2 * col2 col1 FROM tab0
----
1
1089
6724

query I rowsort
SELECT + - col0 * ( cor0.col2 ) * col1 + + 52 - col1 FROM tab0 AS cor0
----
-3440
-664157
-68146

query I rowsort
SELECT ALL - col0 + ( 27 ) FROM tab0
----
-62
-8
3

query I rowsort
SELECT ALL - col1 * ( cor0.col1 ) + col0 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1010
-6530
-9565

query I rowsort
SELECT DISTINCT - col2 - 72 FROM tab1 AS cor0
----
-126
-129
-168

query I rowsort
SELECT DISTINCT - + col1 * - 74 - 57 AS col0 FROM tab0 AS cor0
----
6307
6677
7121

query I rowsort
SELECT + col1 * col2 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634

query I rowsort
SELECT ALL - col1 + col1 * 33 AS col1 FROM tab0 cor0
----
2752
2912
3104

query I rowsort
SELECT ALL - col0 * - cor0.col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012

query I rowsort
SELECT DISTINCT + + col1 * ( + col2 * col1 ) FROM tab1 AS cor0
----
16224
36504
5700

query I rowsort
SELECT cor0.col0 - - cor0.col0 FROM tab0 AS cor0
----
178
48
70

query I rowsort
SELECT ALL + + col1 + + cor0.col0 * + 9 AS col2 FROM tab2 AS cor0
----
728
761
94

query I rowsort
SELECT DISTINCT + - col0 + - col1 * - 52 AS col0 FROM tab1 cor0
----
1349
456
596

query I rowsort
SELECT ALL - - col0 * 85 + col0 - col1 FROM tab0 AS cor0
----
1978
2913
7563

query I rowsort
SELECT DISTINCT - - col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96

query I rowsort
SELECT ALL - + cor0.col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col1 FROM tab1
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8643
SELECT - col2 DIV + col0 col2 FROM tab1
----
-1
-18
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8643
SELECT - col2 / + col0 col2 FROM tab1
----
-1
-18
0

query I rowsort
SELECT DISTINCT - tab1.col0 + col2 AS col2 FROM tab1
----
-7
16
51

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / - col1 <= col2
----

query I rowsort
SELECT DISTINCT col0 + col1 * + col2 FROM tab1
----
1328
1407
634

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( + col1 )
----

query I rowsort
SELECT ALL - ( - col0 ) + 48 AS col2 FROM tab2 AS cor0
----
126
127
55

query I rowsort
SELECT DISTINCT - - 33 + + col1 AS col0 FROM tab0 AS cor0
----
119
124
130

query I rowsort
SELECT DISTINCT - + col0 + + cor0.col0 * + cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
119574
50955
5852

query I rowsort
SELECT DISTINCT col0 + - col1 * col2 FROM tab1
----
-1168
-1401
-506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + col1 col1 FROM tab0
----
172
182
194

query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT DISTINCT + col1 * 89 + - col2 * col2 FROM tab0 AS cor0
----
1375
6565
8632

query I rowsort
SELECT ALL - col0 * + ( col1 ) * - col2 FROM tab2 AS cor0
----
119652
51034
5859

onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT ALL col0 - + cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL col0 - + cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
2
63
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT DISTINCT col0 - - col1 DIV col1 FROM tab2 cor0
----
79
8
80

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT col0 - - col1 / col1 FROM tab2 cor0
----
79
8
80

query I rowsort
SELECT + - cor0.col0 * 99 FROM tab1 cor0
----
-297
-6336
-7920

query I rowsort
SELECT DISTINCT - col0 + col1 * + 37 AS col1 FROM tab1 AS cor0
----
306
401
959

query I rowsort
SELECT ALL - - col2 * - col0 + + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1566
-4218
-8928

query I rowsort
SELECT ALL + col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003

query I rowsort
SELECT - - col2 * 75 AS col2 FROM tab0 AS cor0
----
2475
6150
75

onlyif mysql # use DIV operator for integer division
query I rowsort label-8663
SELECT - col0 DIV ( - col1 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8663
SELECT - col0 / ( - col1 ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + + tab1.col0 col1 FROM tab1
----
128
160
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88

query I rowsort
SELECT ALL - - col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 * + ( - 52 ) + col0 * + col2 AS col1 FROM tab0 AS cor0
----
11926
1855
2040

query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8

onlyif mysql # use DIV operator for integer division
query I rowsort label-8669
SELECT DISTINCT - 14 DIV + cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-24
-49
-89

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT - 14 / + cor0.col2 - col0 AS col2 FROM tab0 AS cor0
----
-24
-49
-89

query I rowsort
SELECT - col1 + col0 * + 80 FROM tab0 AS cor0
----
1834
2703
7029

query I rowsort
SELECT + ( col0 ) * col2 + 90 * - col2 FROM tab0
----
-2178
-55
-82

query I rowsort
SELECT DISTINCT ( col1 + - col0 ) FROM tab2
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab0
----
1
33
82

query I rowsort
SELECT DISTINCT + col1 * col2 * col1 FROM tab0
----
244068
679042
9409

query I rowsort
SELECT ALL + col0 + col1 * - 6 AS col2 FROM tab1 AS cor0
----
-153
2
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-8676
SELECT ALL - 99 DIV - col2 - - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL - 99 / - col2 - - col2 AS col0 FROM tab1 AS cor0
----
55
58
97

onlyif mysql # use DIV operator for integer division
query I rowsort label-8677
SELECT - 41 DIV 74 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif mysql # not compatible
query I rowsort label-8677
SELECT - 41 / 74 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

onlyif mysql # use DIV operator for integer division
query I rowsort label-8678
SELECT ALL col2 + + cor0.col2 DIV - col2 AS col0 FROM tab0 cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL col2 + + cor0.col2 / - col2 AS col0 FROM tab0 cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8679
SELECT ALL - 20 DIV + col0 + + col1 * 64 - col0 * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100672
37120
5870

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL - 20 / + col0 + + col1 * 64 - col0 * - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
100672
37120
5870

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col2 col1 FROM tab1 cor0
----
1248
1404
570

query I rowsort
SELECT DISTINCT - 61 + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7335
8220
9348

query I rowsort
SELECT - 27 + + col1 AS col1 FROM tab0
----
59
64
70

query I rowsort
SELECT cor0.col0 + + col2 * - col1 + col1 FROM tab2 AS cor0
----
-1397
-550
-799

query I rowsort
SELECT ALL + col0 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954

query I rowsort
SELECT DISTINCT - - col1 * col1 + col1 FROM tab2 AS cor0
----
306
3540
992

query I rowsort
SELECT DISTINCT col0 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-1225
-19008
-649522

query I rowsort
SELECT - + col2 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
-233472
-486
-614400

query I rowsort
SELECT ALL + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8689
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62

query I rowsort
SELECT col0 * col1 + col1 + cor0.col0 FROM tab2 cor0
----
1439
255
4739

onlyif mysql # use DIV operator for integer division
query I rowsort label-8692
SELECT - ( 88 ) + col2 DIV col0 FROM tab1 AS cor0
----
-70
-87
-88

skipif mysql # not compatible
query I rowsort label-8692
SELECT - ( 88 ) + col2 / col0 FROM tab1 AS cor0
----
-70
-87
-88

onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT DISTINCT - col1 DIV col0 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
213
4602

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT - col1 / col0 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
1343
213
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col2 * - col1 * col0 col2 FROM tab1 AS cor0
----
-36423
-4158
-99744

query I rowsort
SELECT ALL - 4 + + col0 AS col2 FROM tab1 AS cor0
----
-1
60
76

query I rowsort
SELECT - col2 * cor0.col2 + + col1 * - cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1663
-1695
-4131

query I rowsort
SELECT - col2 + - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 col0 FROM tab2 AS cor0
----
104
117
34

query I rowsort
SELECT ( col1 ) * cor0.col2 + + col0 + + col0 FROM tab2 AS cor0
----
1690
804
851

query I rowsort
SELECT - ( + col0 + + col1 ) * - col0 * col2 FROM tab0
----
1313640
4620
87120

query I rowsort
SELECT col0 * ( + col0 ) * col1 AS col0 FROM tab2
----
106097
1519
358956

onlyif mysql # use DIV operator for integer division
query I rowsort label-8702
SELECT ALL + col0 DIV 72 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8702
SELECT ALL + col0 / 72 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT col1 * col2 * col0 AS col1 FROM tab0
----
3395
664118
68112

onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT DISTINCT 44 * col2 + - col0 DIV tab1.col1 + tab1.col1 FROM tab1
----
2402
2512
4231

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT 44 * col2 + - col0 / tab1.col1 + tab1.col1 FROM tab1
----
2402
2512
4231

query I rowsort
SELECT DISTINCT + col1 + + 88 - + col0 AS col2 FROM tab0
----
150
90

query I rowsort
SELECT ALL 25 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 cor1
----
81 values hashing to 68fc0eecd4f434589f3ec576bbd0c540

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8707
SELECT CAST( NULL AS DECIMAL ) / + 38 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8707
SELECT CAST ( NULL AS REAL ) / + 38 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - - 99 + - ( col0 ) * 55 FROM tab1 AS cor0
----
-3421
-4301
-66

query I rowsort
SELECT col2 * - 8 + cor0.col2 * + ( + col0 ) - + cor0.col1 AS col1 FROM tab0 AS cor0
----
-70
442
6551

query I rowsort
SELECT 58 * - col2 AS col2 FROM tab1 AS cor0
----
-3132
-3306
-5568

query I rowsort
SELECT + cor0.col2 * col0 + ( - 62 ) * col0 AS col0 FROM tab1 AS cor0
----
-24
-320
2720

query I rowsort
SELECT ALL 64 * - col0 FROM tab2 AS cor0
----
-448
-4992
-5056

query I rowsort
SELECT DISTINCT + 18 * - col2 AS col1 FROM tab2
----
-468
-486
-684

query I rowsort
SELECT + col1 + + col1 + - ( + col0 + - col2 ) FROM tab2 AS cor0
----
-7
66
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-8715
SELECT ALL + col2 DIV + 58 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + col2 / + 58 FROM tab0
----
0
0
1

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab1 cor0, tab1 cor1
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8717
SELECT + - col0 + + CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
2814
62
7373

skipif mysql # not compatible
query I rowsort label-8717
SELECT + - col0 + + CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
2814
62
7373

query I rowsort
SELECT ALL - - cor0.col0 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT + 68 + 70 * col2 FROM tab1 AS cor0
----
3848
4058
6788

query I rowsort
SELECT - - 89 * - col1 * col2 FROM tab0 AS cor0
----
-252582
-664118
-8633

query I rowsort
SELECT - 92 + - col0 * cor0.col1 FROM tab0 cor0
----
-2156
-3487
-8191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 * col2 col2 FROM tab2 AS cor0
----
-1323
-158184
-237158

onlyif mysql # use DIV operator for integer division
query I rowsort label-8723
SELECT ALL - cor0.col2 + 49 DIV col2 AS col1 FROM tab0 AS cor0
----
-32
-82
48

skipif mysql # not compatible
query I rowsort label-8723
SELECT ALL - cor0.col2 + 49 / col2 AS col1 FROM tab0 AS cor0
----
-32
-82
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT ALL 24 * - cor0.col1 + col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2424
-4869
-9564

query I rowsort
SELECT ALL - col1 * + col0 - - col0 FROM tab2 AS cor0
----
-1264
-210
-4524

query I rowsort
SELECT - 11 * col0 AS col2 FROM tab0 cor0
----
-264
-385
-979

query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + + col0 AS col0 FROM tab1 AS cor0
----
121
176
57

query I rowsort
SELECT - 44 AS col0 FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT ALL - + col0 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT DISTINCT - col1 * cor0.col0 - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181

query I rowsort
SELECT ALL - 23 AS col2 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT + ( tab0.col0 ) * - col2 + + col2 AS col2 FROM tab0
----
-34
-7216
-759

query I rowsort
SELECT ALL ( + tab1.col1 ) FROM tab1
----
10
13
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT - - 54 DIV - col0 FROM tab2 AS cor0
----
-7
0
0

skipif mysql # not compatible
query I rowsort label-8735
SELECT - - 54 / - col0 FROM tab2 AS cor0
----
-7
0
0

query I rowsort
SELECT 91 * - 0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT DISTINCT - ( col2 ) + col0 + 83 FROM tab1 AS cor0
----
32
67
90

onlyif mysql # use DIV operator for integer division
query I rowsort label-8738
SELECT - cor0.col0 + - cor0.col0 DIV col0 FROM tab2 AS cor0
----
-79
-8
-80

skipif mysql # not compatible
query I rowsort label-8738
SELECT - cor0.col0 + - cor0.col0 / col0 FROM tab2 AS cor0
----
-79
-8
-80

query I rowsort
SELECT ALL - ( + 73 ) AS col1 FROM tab2
----
-73
-73
-73

query I rowsort
SELECT ALL + ( col2 ) * + col1 AS col0 FROM tab1
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8741
SELECT ALL + cor0.col2 + + CAST( + 61 AS SIGNED ) * + col1 col2 FROM tab0 AS cor0
----
5279
5633
5918

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL + cor0.col2 + + CAST ( + 61 AS INTEGER ) * + col1 col2 FROM tab0 AS cor0
----
5279
5633
5918

query I rowsort
SELECT col0 + - 7 FROM tab0 AS cor0
----
17
28
82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8743
SELECT DISTINCT + col2 * - ( ( - cor0.col0 ) ) * + CAST( cor0.col1 AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + col2 * - ( ( - cor0.col0 ) ) * + CAST ( cor0.col1 AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
119711
51051
5890

query I rowsort
SELECT DISTINCT + cor0.col2 * - 89 + + 69 AS col0 FROM tab1 AS cor0
----
-4737
-5004
-8475

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab2, tab0, tab1 cor0
----
10
13
26

query I rowsort
SELECT col1 + - tab1.col1 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab2, tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT DISTINCT col0 + + 80 FROM tab2 cor0
----
158
159
87

onlyif mysql # use DIV operator for integer division
query I rowsort label-8749
SELECT ALL + col0 DIV - 22 FROM tab0 AS cor0
----
-1
-1
-4

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + col0 / - 22 FROM tab0 AS cor0
----
-1
-1
-4

query I rowsort
SELECT ALL + + col0 * col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496

onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT - col2 + col1 DIV + col2 AS col0 FROM tab0 cor0
----
-31
-81
96

skipif mysql # not compatible
query I rowsort label-8751
SELECT - col2 + col1 / + col2 AS col0 FROM tab0 cor0
----
-31
-81
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT ALL + col1 + + 50 DIV + col1 AS col2 FROM tab2 AS cor0
----
19
32
59

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + col1 + + 50 / + col1 AS col2 FROM tab2 AS cor0
----
19
32
59

query I rowsort
SELECT + - cor0.col1 * - col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8754
SELECT ALL + col2 * CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - col1 * 24 * + 97 FROM tab2 AS cor0
----
-137352
-39576
-72168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 * - 73 col1 FROM tab1 AS cor0
----
3968
4171
7021

query I rowsort
SELECT DISTINCT - cor0.col2 * + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33

query I rowsort
SELECT ALL 2 * col1 AS col1 FROM tab1
----
20
26
52

query I rowsort
SELECT ALL 7 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607

query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab2, tab1, tab0 AS cor0
----
24
35
89

query I rowsort
SELECT 51 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1326
510
663

query I rowsort
SELECT ALL - - col0 * cor0.col2 + col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + col0 * - 7 AS col0 FROM tab2 AS cor0
----
-49
-546
-553

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8764
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( + col0 ) * + col2 + col0 * 31 AS col0 FROM tab1 AS cor0
----
10160
255
5632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 21 ) + col0 col2 FROM tab0 AS cor0
----
14
3
68

query I rowsort
SELECT ALL - 14 FROM tab1 cor0
----
-14
-14
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-8768
SELECT DISTINCT - 5 + col1 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT - 5 + col1 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 6 * + 25 AS col0 FROM tab2 AS cor0
----
150

query I rowsort
SELECT DISTINCT - - col1 * 36 + - col2 + col0 FROM tab0 AS cor0
----
3087
3283
3526

query I rowsort
SELECT 85 + - col2 FROM tab1 AS cor0
----
-11
28
31

query I rowsort
SELECT ALL - - col1 * + 32 AS col1 FROM tab0 AS cor0
----
2752
2912
3104

query I rowsort
SELECT DISTINCT + col1 * - col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8774
SELECT - + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT - + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + ( + col0 ) * + col1 * col2 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8776
SELECT ALL - 2 + col1 + + col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - 2 + col1 + + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - + ( col2 ) FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT + col1 + - ( cor0.col0 + col2 ) FROM tab1 AS cor0
----
-111
-163
-31

onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT ALL - col2 DIV + col0 - col2 * 32 FROM tab2 AS cor0
----
-1216
-832
-867

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - col2 / + col0 - col2 * 32 FROM tab2 AS cor0
----
-1216
-832
-867

onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT + ( + 99 ) * col1 + - cor0.col1 DIV - cor0.col2 FROM tab0 AS cor0
----
8516
9010
9700

skipif mysql # not compatible
query I rowsort label-8780
SELECT + ( + 99 ) * col1 + - cor0.col1 / - cor0.col2 FROM tab0 AS cor0
----
8516
9010
9700

query I rowsort
SELECT ALL + 70 * 25 + col1 FROM tab1
----
1760
1763
1776

onlyif mysql # use DIV operator for integer division
query I rowsort label-8782
SELECT + + col0 DIV col1 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8782
SELECT + + col0 / col1 AS col1 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT - 76 + - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9225fa1f381ef6e1d0dc6d7db885f507

query I rowsort
SELECT + col1 * col2 + ( col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT + col1 + col2 * col0 * col0 FROM tab2 cor0
----
1354
158243
237175

query I rowsort
SELECT ALL col2 * 51 FROM tab2
----
1326
1377
1938

query I rowsort
SELECT + col1 + col0 * 7 FROM tab0 AS cor0
----
254
342
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * col2 col0 FROM tab1 AS cor0
----
3402
3591
6048

query I rowsort
SELECT - 80 + + col1 FROM tab0 AS cor0
----
11
17
6

query I rowsort
SELECT + col2 * col0 + - 75 AS col2 FROM tab2 AS cor0
----
114
1953
2927

query I rowsort
SELECT ALL - 14 + + tab0.col1 FROM tab0
----
72
77
83

query I rowsort
SELECT + col0 + 65 FROM tab2 AS cor0
----
143
144
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 98 + + col0 * cor0.col1 col1 FROM tab2 AS cor0
----
119
1245
4504

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8794
SELECT DISTINCT + - cor0.col1 * - CAST( col0 AS SIGNED ) - - col0 * col0 AS col1 FROM tab1 cor0
----
4736
7440
87

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + - cor0.col1 * - CAST ( col0 AS INTEGER ) - - col0 * col0 AS col1 FROM tab1 cor0
----
4736
7440
87

query I rowsort
SELECT col2 * + 89 FROM tab0 cor0
----
2937
7298
89

query I rowsort
SELECT 95 * cor0.col2 + col2 FROM tab0 AS cor0
----
3168
7872
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8797
SELECT CAST( NULL AS DECIMAL ) / 99 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8797
SELECT CAST ( NULL AS REAL ) / 99 + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8798
SELECT + cor0.col0 * CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8798
SELECT + cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - cor0.col0 * + 85 AS col2 FROM tab1 AS cor0
----
-255
-5440
-6800

onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT DISTINCT + - cor0.col2 DIV + col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + - cor0.col2 / + col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + - col0 * + 54 FROM tab1 AS cor0
----
-162
-3456
-4320

query I rowsort
SELECT ALL + 47 * - cor1.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 075fa987464c3a5d8b4311e5627cd79f

query I rowsort
SELECT ALL + col0 - - col2 AS col2 FROM tab2
----
104
117
34

query I rowsort
SELECT - 23 AS col2 FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5

onlyif mysql # use DIV operator for integer division
query I rowsort label-8805
SELECT DISTINCT - + col2 DIV - 74 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT - + col2 / - 74 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT + col1 * col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
2097
3396
8181

query I rowsort
SELECT - cor0.col2 * + col0 * - col1 AS col1 FROM tab2 cor0
----
119652
51034
5859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 46 col0 FROM tab1 AS cor0
----
2484
2622
4416

query I rowsort
SELECT 31 * - col2 * + col0 FROM tab0
----
-1085
-226238
-24552

query I rowsort
SELECT DISTINCT 52 + ( col1 ) + col0 * + col2 AS col1 FROM tab2
----
2139
272
3071

query I rowsort
SELECT + 11 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 - tab0.col1 col0 FROM tab0
----
-77
-82
-88

query I rowsort
SELECT ALL 43 FROM tab1, tab1 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT + ( - col2 ) * - col0 * col1 AS col2 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT ( + 80 ) + - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1145
-496
-7841

query I rowsort
SELECT + ( - cor0.col2 ) + - col0 + + 3 FROM tab1 AS cor0
----
-118
-173
-54

query I rowsort
SELECT - 23 * + col2 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759

onlyif mysql # use DIV operator for integer division
query I rowsort label-8818
SELECT - col2 * - col1 + - CAST( - ( - col1 ) AS SIGNED ) DIV - col0 + col0 FROM tab1 AS cor0
----
1328
1415
634

skipif mysql # not compatible
query I rowsort label-8818
SELECT - col2 * - col1 + - CAST ( - ( - col1 ) AS INTEGER ) / - col0 + col0 FROM tab1 AS cor0
----
1328
1415
634

query I rowsort
SELECT - 28 * col0 AS col0 FROM tab1 AS cor0
----
-1792
-2240
-84

query I rowsort
SELECT col1 * col1 + col2 AS col0 FROM tab1 cor0
----
157
265
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * + col0 * 5 col1 FROM tab2 AS cor0
----
218
30394
31167

query I rowsort
SELECT - col1 + col1 * col1 FROM tab0 AS cor0
----
7310
8190
9312

query I rowsort
SELECT ALL ( ( col1 ) + 89 ) * - 83 AS col0 FROM tab0
----
-14525
-14940
-15438

query I rowsort
SELECT ALL + 4 + + col1 * col0 FROM tab1 cor0
----
1044
644
82

query I rowsort
SELECT ALL - + col2 + - col0 + ( col0 * col2 ) FROM tab0 AS cor0
----
-1
7127
735

onlyif mysql # use DIV operator for integer division
query I rowsort label-8826
SELECT DISTINCT col1 DIV col0 - + ( col0 + + col2 ) DIV - ( col1 ) FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT col1 / col0 - + ( col0 + + col2 ) / - ( col1 ) FROM tab0 AS cor0
----
2
3

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab1 AS cor0
----
-14

onlyif mysql # use DIV operator for integer division
query I rowsort label-8828
SELECT ALL + col0 + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + col0 + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88

query I rowsort
SELECT - col0 + - cor0.col1 * 52 FROM tab0 AS cor0
----
-4496
-4821
-5079

query I rowsort
SELECT ALL 10 * col2 AS col2 FROM tab2 AS cor0
----
260
270
380

query I rowsort
SELECT DISTINCT - col1 * - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT - col2 * col2 + - 65 FROM tab0
----
-1154
-66
-6789

onlyif mysql # use DIV operator for integer division
query I rowsort label-8834
SELECT ALL - col0 DIV + tab1.col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL - col0 / + tab1.col2 AS col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - - 32 * col0 AS col0 FROM tab0 AS cor0
----
1120
2848
768

query I rowsort
SELECT + 95 + + col0 FROM tab1 AS cor0
----
159
175
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 * col2 + - col0 col1 FROM tab1 AS cor0
----
-7
16
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + + col2 col1 FROM tab2 AS cor0
----
-22
-6058
-6203

query I rowsort
SELECT - col1 + 12 * col0 AS col2 FROM tab2 AS cor0
----
53
877
931

query I rowsort
SELECT ALL col1 + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT cor0.col1 DIV + ( col0 ) col2 FROM tab2 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8841
SELECT cor0.col1 / + ( col0 ) col2 FROM tab2 AS cor0
----
0
0
4

query I rowsort
SELECT - - cor0.col2 * 86 FROM tab0 AS cor0
----
2838
7052
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8843
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8843
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8844
SELECT DISTINCT col0 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT col0 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 28 * col0 col2 FROM tab1 AS cor0
----
-114688
-179200
-252

query I rowsort
SELECT - - col0 + - ( + col2 ) * - col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT - col0 - - col0 * 1 FROM tab2
----
0
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT DISTINCT 27 DIV - col1 + + 29 AS col0 FROM tab2
----
28
29

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT 27 / - col1 + + 29 AS col0 FROM tab2
----
28
29

query I rowsort
SELECT 49 * - col2 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1196
-1316
-1783

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8850
SELECT ALL + 18 * cor0.col1 + + col1 * CAST( - col2 * + col0 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
-1614
-662391
-66540

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL + 18 * cor0.col1 + + col1 * CAST ( - col2 * + col0 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
-1614
-662391
-66540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 87 ) col1 FROM tab2 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT - + col1 - - 83 AS col1 FROM tab1 AS cor0
----
57
70
73

query I rowsort
SELECT DISTINCT + 3 - - col1 AS col0 FROM tab2 AS cor0
----
20
34
62

query I rowsort
SELECT - - col0 + - 13 * col2 * ( - col2 ) AS col2 FROM tab1 cor0
----
119888
37911
42301

onlyif mysql # use DIV operator for integer division
query I rowsort label-8855
SELECT - - col0 * col1 - + cor0.col2 DIV col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

skipif mysql # not compatible
query I rowsort label-8855
SELECT - - col0 * col1 - + cor0.col2 / col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT DISTINCT col1 + + 50 FROM tab2 AS cor0
----
109
67
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT ALL - - 32 DIV 29 + cor0.col0 FROM tab0 AS cor0
----
25
36
90

skipif mysql # not compatible
query I rowsort label-8857
SELECT ALL - - 32 / 29 + cor0.col0 FROM tab0 AS cor0
----
25
36
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 51 + col2 * - col2 - + ( + col0 ) * + col2 col0 FROM tab1 AS cor0
----
-16845
-3027
-6846

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT + 61 * 39 AS col0 FROM tab2 AS cor0
----
2379
2379
2379

query I rowsort
SELECT DISTINCT col2 - 57 AS col1 FROM tab1 AS cor0
----
-3
0
39

query I rowsort
SELECT ALL - col1 * + col2 * + cor0.col2 + - col2 + + col1 FROM tab2 AS cor0
----
-22595
-24569
-39851

query I rowsort
SELECT ALL + + 46 AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT ALL + col2 - + 88 AS col1 FROM tab0
----
-55
-6
-87

query I rowsort
SELECT 2 - col1 * + col0 FROM tab0 AS cor0
----
-2062
-3393
-8097

query I rowsort
SELECT DISTINCT col2 * + 19 + - col2 + - col2 * cor0.col1 * col2 AS col1 FROM tab2 cor0
----
-22113
-23864
-39416

query I rowsort
SELECT ALL col1 * 87 - + col1 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
2125
3534
6667

query I rowsort
SELECT ALL + - col0 * - col0 * - col2 AS col0 FROM tab1 AS cor0
----
-233472
-486
-614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT col1 + - col1 DIV + 41 FROM tab2 AS cor0
----
17
31
58

skipif mysql # not compatible
query I rowsort label-8869
SELECT col1 + - col1 / + 41 FROM tab2 AS cor0
----
17
31
58

query I rowsort
SELECT + 80 * - col0 + col1 FROM tab1 AS cor0
----
-214
-5110
-6387

query I rowsort
SELECT - 30 + col0 AS col1 FROM tab2 AS cor0
----
-23
48
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + tab1.col1 col2 FROM tab1
----
29
74
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT tab2.col1 + col0 DIV + 64 AS col0 FROM tab2
----
18
31
60

skipif mysql # not compatible
query I rowsort label-8873
SELECT tab2.col1 + col0 / + 64 AS col0 FROM tab2
----
18
31
60

query I rowsort
SELECT 96 FROM tab0, tab0 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT ALL tab0.col2 * - ( + col2 * - col2 ) AS col1 FROM tab0
----
1
35937
551368

query I rowsort
SELECT - ( - col0 ) + col1 * col2 AS col2 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT DISTINCT tab2.col0 + + col0 AS col0 FROM tab2
----
14
156
158

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + tab2.col2 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + tab2.col2 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT col2 + - ( - col0 ) DIV col0 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-8879
SELECT col2 + - ( - col0 ) / col0 FROM tab0 AS cor0
----
2
34
83

query I rowsort
SELECT DISTINCT col0 * col2 + - col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
105
3527
7504

query I rowsort
SELECT DISTINCT + col1 + - ( cor0.col0 ) * cor0.col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT DISTINCT col2 DIV - ( ( - col2 ) * - col0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT col2 / - ( ( - col2 ) * - col0 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT 22 + - col2 * - cor0.col0 FROM tab1 cor0
----
184
3670
7702

query I rowsort
SELECT DISTINCT + - col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT ALL + 74 FROM tab1 cor0
----
74
74
74

query I rowsort
SELECT col1 * col2 * + col1 FROM tab0 cor0
----
244068
679042
9409

query I rowsort
SELECT DISTINCT 55 AS col2 FROM tab2, tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT + 93 + + col1 * cor0.col1 - 21 AS col0 FROM tab1 AS cor0
----
172
241
748

query I rowsort
SELECT - ( - 90 ) FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT ALL - cor0.col0 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8891
SELECT CAST( NULL AS SIGNED ) + ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8891
SELECT CAST ( NULL AS INTEGER ) + ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 87 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
172
182
194

query I rowsort
SELECT + cor0.col1 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT + cor0.col2 * + col0 - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT + cor0.col2 * + col0 - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8896
SELECT 51 * col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8896
SELECT 51 * col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * col2 FROM tab2 cor0
----
26
27
38

query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col1 col0 FROM tab0 AS cor0
----
-2
-62
-62

query I rowsort
SELECT - + col0 - col2 AS col0 FROM tab2 cor0
----
-104
-117
-34

query I rowsort
SELECT DISTINCT - - 1 + col0 + - 55 * cor0.col2 FROM tab2 AS cor0
----
-1351
-1477
-2010

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 + col1 * 42 col2 FROM tab0 AS cor0
----
-2902
2523
4073

query I rowsort
SELECT + + col0 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-159
-3584
-7600

query I rowsort
SELECT DISTINCT col1 * col2 * col0 AS col1 FROM tab1 cor0
----
36480
4212
99840

onlyif mysql # use DIV operator for integer division
query I rowsort label-8905
SELECT cor0.col1 + - ( - 11 ) DIV - col0 + ( 31 + + col0 ) FROM tab0 cor0
----
141
163
211

skipif mysql # not compatible
query I rowsort label-8905
SELECT cor0.col1 + - ( - 11 ) / - col0 + ( 31 + + col0 ) FROM tab0 cor0
----
141
163
211

query I rowsort
SELECT - col0 + ( + cor0.col2 ) * col1 * ( 41 ) FROM tab1 AS cor0
----
23306
51088
57561

query I rowsort
SELECT col2 + cor0.col2 * - col2 AS col2 FROM tab0 cor0
----
-1056
-6642
0

query I rowsort
SELECT + 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT - col0 + ( + col1 * col2 ) AS col1 FROM tab0 cor0
----
2814
62
7373

onlyif mysql # use DIV operator for integer division
query I rowsort label-8910
SELECT - + col2 * ( + col2 ) - col0 DIV col0 col1 FROM tab2 AS cor0
----
-1445
-677
-730

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8910
SELECT - + col2 * ( + col2 ) - col0 / col0 col1 FROM tab2 AS cor0
----
-1445
-677
-730

query I rowsort
SELECT - col2 + 5 FROM tab0 cor0
----
-28
-77
4

query I rowsort
SELECT - col2 - + ( + ( + col2 ) ) FROM tab2 AS cor0
----
-52
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0, tab1, tab2 AS cor0
----
-7
-78
-79

query I rowsort
SELECT DISTINCT + col1 * col2 + - ( col0 ) FROM tab1
----
1168
1401
506

query I rowsort
SELECT ALL 0 + + col0 AS col2 FROM tab2
----
7
78
79

query I rowsort
SELECT DISTINCT + ( col2 ) + cor0.col1 AS col1 FROM tab1 cor0
----
109
67
80

query I rowsort
SELECT ALL cor0.col0 - - cor1.col1 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to dbf53c8d395fe624f70bcff710ecddf8

query I rowsort
SELECT 21 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b

query I rowsort
SELECT DISTINCT + cor0.col2 + - 67 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-29
-40
-41

query I rowsort
SELECT ALL tab0.col0 * tab0.col1 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4

query I rowsort
SELECT DISTINCT col0 * col1 + - col2 * - col0 AS col2 FROM tab0
----
15397
2856
3430

query I rowsort
SELECT col1 + + col0 * + 55 AS col1 FROM tab2
----
416
4349
4362

query I rowsort
SELECT ALL cor0.col0 + - col0 + - ( col0 ) AS col0 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT ( cor0.col0 ) AS col0 FROM tab2 cor0
----
7
78
79

onlyif mysql # use DIV operator for integer division
query I rowsort label-8925
SELECT - col2 + + col1 DIV - col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-8925
SELECT - col2 + + col1 / - col1 FROM tab2 AS cor0
----
-27
-28
-39

query I rowsort
SELECT ALL col0 + col0 * col1 AS col1 FROM tab1 AS cor0
----
1120
704
81

query I rowsort
SELECT ALL + cor0.col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col0 * cor0.col0 col0 FROM tab1 AS cor0
----
-14080
-171
-7744

onlyif mysql # use DIV operator for integer division
query I rowsort label-8929
SELECT - col2 + - col1 DIV col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif mysql # not compatible
query I rowsort label-8929
SELECT - col2 + - col1 / col1 FROM tab2 AS cor0
----
-27
-28
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * + col2 col2 FROM tab0 AS cor0
----
194
2924
7553

onlyif mysql # use DIV operator for integer division
query I rowsort label-8931
SELECT ALL + cor0.col2 * + col1 DIV col1 FROM tab0 cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-8931
SELECT ALL + cor0.col2 * + col1 / col1 FROM tab0 cor0
----
1
33
82

query I rowsort
SELECT DISTINCT col2 + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759

query I rowsort
SELECT ALL + col1 * - col1 - col0 FROM tab1 AS cor0
----
-164
-249
-679

query I rowsort
SELECT ALL tab2.col1 * col1 * col1 FROM tab2
----
205379
29791
4913

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT + col2 + col0 * col0 DIV + col1 FROM tab0
----
13
169
39

skipif mysql # not compatible
query I rowsort label-8936
SELECT + col2 + col0 * col0 / + col1 FROM tab0
----
13
169
39

onlyif mysql # use DIV operator for integer division
query I rowsort label-8937
SELECT + ( + col1 ) * - col1 DIV - col1 FROM tab1
----
10
13
26

skipif mysql # not compatible
query I rowsort label-8937
SELECT + ( + col1 ) * - col1 / - col1 FROM tab1
----
10
13
26

query I rowsort
SELECT DISTINCT col0 + - col2 * col2 FROM tab0 AS cor0
----
-1065
-6635
34

query I rowsort
SELECT DISTINCT ( + col0 ) - - col2 FROM tab1
----
121
176
57

query I rowsort
SELECT col0 + - col2 * tab2.col0 AS col2 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT DISTINCT - tab2.col2 * col0 + col1 FROM tab2
----
-158
-1969
-2985

query I rowsort
SELECT tab0.col2 * - col1 - tab0.col1 AS col0 FROM tab0
----
-194
-2924
-7553

query I rowsort
SELECT ALL + tab1.col0 * + col2 AS col0 FROM tab1
----
162
3648
7680

query I rowsort
SELECT - col2 + col1 * tab2.col2 * - col0 AS col1 FROM tab2
----
-119678
-51072
-5886

query I rowsort
SELECT ALL + col1 * + col0 + col1 * col2 FROM tab1
----
1210
1482
2288

onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT + col0 * col1 + + col2 DIV + col1 FROM tab1 AS cor0
----
1047
645
80

skipif mysql # not compatible
query I rowsort label-8946
SELECT + col0 * col1 + + col2 / + col1 FROM tab1 AS cor0
----
1047
645
80

query I rowsort
SELECT ALL + col2 + col1 + + col0 * - col1 AS col1 FROM tab2
----
-1288
-159
-4517

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - tab0.col1 * - col1 + - col0 * tab0.col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 + - col2 col2 FROM tab2
----
-17
-31
-59

query I rowsort
SELECT ALL tab1.col0 FROM tab1 WHERE NULL IN ( col0 * col1 * tab1.col2 + - col0 * col1 )
----

query I rowsort
SELECT DISTINCT tab1.col0 * tab1.col2 FROM tab1
----
162
3648
7680

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE NOT col0 + + col1 / + col2 < ( + col1 )
----
-3395

query I rowsort
SELECT DISTINCT + col1 * tab0.col0 FROM tab0
----
2064
3395
8099

query I rowsort
SELECT col0 * - col1 - col2 AS col1 FROM tab1
----
-1136
-132
-697

query I rowsort
SELECT col2 * col1 * + col2 AS col1 FROM tab2
----
22599
24548
39884

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( tab0.col1 )
----

query I rowsort
SELECT - col0 * tab1.col1 + + col0 AS col2 FROM tab1
----
-576
-75
-960

query I rowsort
SELECT DISTINCT + col2 * col2 + + col0 AS col2 FROM tab0 cor0
----
1113
36
6813

query I rowsort
SELECT 33 + cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c93c21c0979ca32ce3e73316334545fd

query I rowsort
SELECT ALL + 72 AS col2 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8963
SELECT + col1 * col1 + CAST( col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1798
5015
935

skipif mysql # not compatible
query I rowsort label-8963
SELECT + col1 * col1 + CAST ( col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1798
5015
935

query I rowsort
SELECT ALL + col2 * - col2 * + ( + col0 * col1 ) - 46 FROM tab0 AS cor0
----
-2247742
-3441
-54457722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 22 + cor0.col1 col2 FROM tab0 AS cor0
----
64
69
75

query I rowsort
SELECT DISTINCT 14 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
14

query I rowsort
SELECT DISTINCT col0 + + col2 * tab2.col1 AS col0 FROM tab2
----
1612
725
844

onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT col0 - col1 DIV + col1 FROM tab0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-8968
SELECT col0 - col1 / + col1 FROM tab0
----
23
34
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab1 WHERE NULL = col0 + tab1.col2
----

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT col2 * col1 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - col0 + col0 * + col0 + + col0 * - tab1.col1 AS col2 FROM tab1
----
-72
3392
5280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col2 FROM tab1, tab1 AS cor0
----
54
57
96

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN col0 AND ( - col1 * col1 )
----

query I rowsort
SELECT ALL col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6

onlyif mysql # use DIV operator for integer division
query I rowsort label-8975
SELECT DISTINCT col0 * col0 DIV col2 AS col2 FROM tab1 WHERE NOT col1 IN ( - tab1.col0 )
----
0
66
71

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT col0 * col0 / col2 AS col2 FROM tab1 WHERE NOT col1 IN ( - tab1.col0 )
----
0
66
71

query I rowsort
SELECT col0 - + col0 FROM tab2 WHERE ( NULL ) = col2 * col1
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( col1 ) NOT BETWEEN col1 - col1 * + col0 AND + col1
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT col2 DIV + col0 + col0 DIV + col0 AS col0 FROM tab0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8978
SELECT col2 / + col0 + col0 / + col0 AS col0 FROM tab0
----
1
1
2

query I rowsort
SELECT DISTINCT - col2 + + col1 * - col1 * - col2 AS col0 FROM tab1
----
16128
36450
5643

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL < col2 + col0
----

query I rowsort
SELECT col1 + + col2 * + col1 - - col2 FROM tab1
----
1357
1484
637

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - tab2.col2 col0 FROM tab2
----
-20
41
52

query I rowsort
SELECT DISTINCT col0 + col1 * + col1 FROM tab0
----
7420
8370
9444

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col0 * col2 * + col0 col2 FROM tab0
----
-8184
11612
641241

query I rowsort
SELECT ALL tab2.col2 + + tab2.col2 AS col0 FROM tab2
----
52
54
76

query I rowsort
SELECT col1 * - col1 - col1 * - col1 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NULL IN ( col0 - + col1 )
----

query I rowsort
SELECT col0 * col1 + 46 FROM tab1 cor0
----
1086
124
686

onlyif mysql # use DIV operator for integer division
query I rowsort label-8990
SELECT ( - col2 ) * 12 DIV 24 + - col2 + col0 FROM tab0 AS cor0
----
-25
-34
34

skipif mysql # not compatible
query I rowsort label-8990
SELECT ( - col2 ) * 12 / 24 + - col2 + col0 FROM tab0 AS cor0
----
-25
-34
34

query I rowsort
SELECT + col0 * col1 + + 24 FROM tab1 AS cor0
----
102
1064
664

query I rowsort
SELECT - tab1.col2 * tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570

query I rowsort
SELECT col1 * col2 + - ( - tab2.col0 ) * tab2.col0 * - col2 FROM tab2
----
-156650
-236512
-486

query I rowsort
SELECT col2 * + col0 + - 43 AS col1 FROM tab1
----
119
3605
7637

query I rowsort
SELECT col1 * col1 * 37 AS col1 FROM tab1
----
25012
3700
6253

query I rowsort
SELECT - 76 AS col0 FROM tab2
----
-76
-76
-76

query I rowsort
SELECT ALL - - cor0.col2 + - col1 + - col0 FROM tab1 AS cor0
----
-17
25
3

query I rowsort
SELECT DISTINCT - - 22 FROM tab2 AS cor0
----
22

query I rowsort
SELECT + cor0.col0 * + col2 + - ( col0 ) * col2 + col2 * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724

query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837

query I rowsort
SELECT 22 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT col2 DIV CAST( col1 AS SIGNED ) + col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1534
648
837

skipif mysql # not compatible
query I rowsort label-9002
SELECT col2 / CAST ( col1 AS INTEGER ) + col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1534
648
837

query I rowsort
SELECT DISTINCT col0 * col2 * tab1.col1 AS col1 FROM tab1
----
36480
4212
99840

query I rowsort
SELECT 84 FROM tab0, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT 93 FROM tab2, tab0 cor0, tab2 AS cor1
----
93

onlyif mysql # use DIV operator for integer division
query I rowsort label-9006
SELECT ALL CAST( col1 AS SIGNED ) - col1 DIV 38 FROM tab1 AS cor0
----
10
13
26

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL CAST ( col1 AS INTEGER ) - col1 / 38 FROM tab1 AS cor0
----
10
13
26

query I rowsort
SELECT 99 + + 91 FROM tab0 AS cor0
----
190
190
190

query I rowsort
SELECT DISTINCT col2 + + 2 * col1 AS col0 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT ALL - tab2.col0 * + tab2.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9b23e5e74ef3405a4dbf05cceb18c8a8

query I rowsort
SELECT + 34 + - ( + col0 ) * col2 * col2 AS col1 FROM tab1 AS cor0
----
-207902
-737246
-8714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 93 col1 FROM tab1 AS cor0
----
93
93
93

query I rowsort
SELECT - col1 + - 62 FROM tab2 AS cor0
----
-121
-79
-93

query I rowsort
SELECT - - col1 + + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9014
SELECT DISTINCT + - CAST( - col1 AS SIGNED ) + col0 FROM tab2 AS cor0
----
137
38
96

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + - CAST ( - col1 AS INTEGER ) + col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - cor0.col1 - col1 AS col2 FROM tab0 cor0
----
-172
-182
-194

query I rowsort
SELECT cor0.col1 * col0 - + col0 FROM tab2 cor0
----
1264
210
4524

query I rowsort
SELECT - ( cor0.col1 ) - + col1 * col0 FROM tab2 cor0
----
-1360
-248
-4661

query I rowsort
SELECT 37 * col0 - col0 FROM tab2
----
252
2808
2844

query I rowsort
SELECT + + ( col0 ) * col2 + - col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985

query I rowsort
SELECT 3 * col2 FROM tab0 AS cor0
----
246
3
99

query I rowsort
SELECT DISTINCT - 64 * cor0.col2 FROM tab2 AS cor0
----
-1664
-1728
-2432

onlyif mysql # use DIV operator for integer division
query I rowsort label-9022
SELECT ALL + 67 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-6

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL + 67 / - col1 FROM tab1 AS cor0
----
-2
-5
-6

query I rowsort
SELECT 68 * - col2 AS col1 FROM tab2 AS cor0
----
-1768
-1836
-2584

query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112

query I rowsort
SELECT 13 * - tab0.col1 * cor0.col0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 2cc705242e1d11c884dda0ceb9d48e47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9026
SELECT col0 * + col0 + + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
1128
574
7920

skipif mysql # not compatible
query I rowsort label-9026
SELECT col0 * + col0 + + col1 / - col2 AS col0 FROM tab0 AS cor0
----
1128
574
7920

query I rowsort
SELECT + col0 + col2 * + col2 * col0 FROM tab2 AS cor0
----
114155
5110
52806

query I rowsort
SELECT ALL - + 59 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-1593
-2242

query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 * 72 FROM tab0 AS cor0
----
-41472
-570312
-88200

onlyif mysql # use DIV operator for integer division
query I rowsort label-9030
SELECT - col1 + + CAST( col0 AS SIGNED ) DIV col1 AS col1 FROM tab2 cor0
----
-13
-31
-58

skipif mysql # not compatible
query I rowsort label-9030
SELECT - col1 + + CAST ( col0 AS INTEGER ) / col1 AS col1 FROM tab2 cor0
----
-13
-31
-58

query I rowsort
SELECT + col0 * - 85 + - 64 + - col2 AS col0 FROM tab1 AS cor0
----
-373
-5561
-6960

query I rowsort
SELECT col0 * 32 FROM tab2 cor0
----
224
2496
2528

query I rowsort
SELECT + + col0 * + col0 + 42 + col1 AS col0 FROM tab0 AS cor0
----
1364
704
8054

query I rowsort
SELECT 69 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7465
8350
9478

query I rowsort
SELECT + - 63 * col1 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111

query I rowsort
SELECT ALL tab1.col2 + + 88 AS col2 FROM tab1
----
142
145
184

query I rowsort
SELECT + col0 + 79 AS col0 FROM tab1 AS cor0
----
143
159
82

query I rowsort
SELECT col1 + col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
144
72
89

query I rowsort
SELECT - cor0.col0 * ( 86 ) FROM tab0 AS cor0
----
-2064
-3010
-7654

query I rowsort
SELECT ALL col0 + + 91 * 38 AS col1 FROM tab2 AS cor0
----
3465
3536
3537

query I rowsort
SELECT - - col2 + col1 + col1 FROM tab0 cor0
----
195
205
264

query I rowsort
SELECT DISTINCT + col0 * - 88 + col1 AS col2 FROM tab2 AS cor0
----
-585
-6805
-6935

query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col0 + col2 ) FROM tab0 AS cor0
----
1260
1368
15219

query I rowsort
SELECT - col1 * col2 * col1 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700

query I rowsort
SELECT - cor0.col1 * ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580

query I rowsort
SELECT col2 + ( 10 * + col0 ) FROM tab2 AS cor0
----
806
828
97

query I rowsort
SELECT ALL - - col2 * cor0.col1 + col0 AS col1 FROM tab0 cor0
----
132
2862
7551

query I rowsort
SELECT - 77 + - ( - cor0.col2 ) * ( - col1 ) FROM tab0 AS cor0
----
-174
-2915
-7539

query I rowsort
SELECT DISTINCT + + 59 * + col1 FROM tab1 AS cor0
----
1534
590
767

query I rowsort
SELECT - 56 + - cor0.col1 * col2 + 26 FROM tab1 AS cor0
----
-1278
-1434
-600

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) * col2 FROM tab0 AS cor0
----
611884
93654
97

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9052
SELECT ALL - cor0.col1 * 39 + cor0.col1 * CAST( + 72 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
3003
3201

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL - cor0.col1 * 39 + cor0.col1 * CAST ( + 72 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
3003
3201

query I rowsort
SELECT ALL - col0 * col2 * - col1 FROM tab1 cor0
----
36480
4212
99840

query I rowsort
SELECT DISTINCT 46 - + cor0.col1 FROM tab0, tab0 AS cor0
----
-40
-45
-51

query I rowsort
SELECT ALL - 98 AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f

query I rowsort
SELECT cor0.col0 + - col0 * 7 FROM tab0 AS cor0
----
-144
-210
-534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col0 FROM tab1 cor0
----
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9058
SELECT cor0.col1 * - CAST( + 1 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

skipif mysql # not compatible
query I rowsort label-9058
SELECT cor0.col1 * - CAST ( + 1 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5

query I rowsort
SELECT 28 * - col2 FROM tab1
----
-1512
-1596
-2688

query I rowsort
SELECT col2 + + col2 * + 51 FROM tab0 cor0
----
1716
4264
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - 25 col2 FROM tab2 AS cor0
----
1475
425
775

query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 FROM tab1 cor0
----
4096
6400
9

query I rowsort
SELECT + col0 - + 37 FROM tab0 AS cor0
----
-13
-2
52

onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT DISTINCT - col1 DIV + col2 col0 FROM tab0
----
-1
-2
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT - col1 / + col2 col0 FROM tab0
----
-1
-2
-97

query I rowsort
SELECT ALL + 21 - col2 AS col0 FROM tab1
----
-33
-36
-75

onlyif mysql # use DIV operator for integer division
query I rowsort label-9066
SELECT DISTINCT - col2 + col0 - + 20 DIV - col2 FROM tab1
----
-16
-51
7

skipif mysql # not compatible
query I rowsort label-9066
SELECT DISTINCT - col2 + col0 - + 20 / - col2 FROM tab1
----
-16
-51
7

query I rowsort
SELECT + 3 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf

query I rowsort
SELECT ALL 45 - + col1 FROM tab0
----
-41
-46
-52

query I rowsort
SELECT - tab0.col1 * - col1 - col2 * - 82 FROM tab0
----
10102
15005
9491

query I rowsort
SELECT ALL - col0 * + tab0.col2 - - 30 AS col2 FROM tab0
----
-5
-7268
-762

query I rowsort
SELECT ALL col2 + - 42 + col1 AS col2 FROM tab2 AS cor0
----
13
16
43

query I rowsort
SELECT ALL + col2 * 71 FROM tab2 AS cor0
----
1846
1917
2698

query I rowsort
SELECT ALL + col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80

onlyif mysql # use DIV operator for integer division
query I rowsort label-9074
SELECT DISTINCT col1 * 12 * 68 + col2 DIV 6 FROM tab2
----
13878
25300
48148

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT col1 * 12 * 68 + col2 / 6 FROM tab2
----
13878
25300
48148

query I rowsort
SELECT col0 * ( 99 ) + col1 FROM tab0
----
2462
3562
8902

query I rowsort
SELECT col2 + 86 * 37 FROM tab2
----
3208
3209
3220

query I rowsort
SELECT - 61 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c91d7b51e91f33d302e697913fb438b6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * + col0 + cor0.col1 col2 FROM tab2 AS cor0
----
1354
158243
237175

onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT + col2 * CAST( 23 AS SIGNED ) + col0 DIV + col1 AS col2 FROM tab0 cor0
----
1886
23
759

skipif mysql # not compatible
query I rowsort label-9079
SELECT + col2 * CAST ( 23 AS INTEGER ) + col0 / + col1 AS col2 FROM tab0 cor0
----
1886
23
759

query I rowsort
SELECT ALL + col1 + ( 77 ) * col2 FROM tab2 AS cor0
----
2061
2110
2943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * col0 + col2 * + ( tab1.col2 ) col2 FROM tab1
----
3150
44209
92416

query I rowsort
SELECT DISTINCT + + col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9083
SELECT col1 + + CAST( 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
156
161
167

skipif mysql # not compatible
query I rowsort label-9083
SELECT col1 + + CAST ( 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
156
161
167

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9084
SELECT CAST( 33 AS SIGNED ) FROM tab1
----
33
33
33

skipif mysql # not compatible
query I rowsort label-9084
SELECT CAST ( 33 AS INTEGER ) FROM tab1
----
33
33
33

query I rowsort
SELECT DISTINCT - col2 * + 45 * col1 AS col0 FROM tab2
----
-29070
-37665
-69030

query I rowsort
SELECT DISTINCT 56 * cor0.col0 * cor0.col2 FROM tab1, tab1 AS cor0
----
204288
430080
9072

query I rowsort
SELECT ( + 98 ) FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL + 85 * + col0 AS col1 FROM tab2
----
595
6630
6715

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9089
SELECT DISTINCT CAST( + col0 AS SIGNED ) FROM tab1
----
3
64
80

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT CAST ( + col0 AS INTEGER ) FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT ALL + + col0 + - col1 + + col1 AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 AS col1 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9093
SELECT DISTINCT + 49 * col1 - - CAST( NULL AS DECIMAL ) / + ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT + 49 * col1 - - CAST ( NULL AS REAL ) / + ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 97 * + col0 + ( - col0 ) AS col0 FROM tab1 AS cor0
----
288
6144
7680

query I rowsort
SELECT ALL 20 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col1 ) col1 FROM tab2 cor0
----
-17
-31
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * + ( + col1 ) col0 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT ALL 2 + + col1 FROM tab2 AS cor0
----
19
33
61

query I rowsort
SELECT ( + col1 * + col2 ) FROM tab2
----
1534
646
837

onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT + - col1 DIV - col2 col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + - col1 / - col2 col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 68 * - col0 FROM tab1 AS cor0
----
204
4352
5440

query I rowsort
SELECT 49 * - col0 AS col0 FROM tab2 AS cor0
----
-343
-3822
-3871

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col1 col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT DISTINCT 6 * - cor0.col0 FROM tab1 cor0
----
-18
-384
-480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 + col0 col0 FROM tab0 AS cor0
----
1260
600
8010

query I rowsort
SELECT ALL - + col0 + - 89 FROM tab2 AS cor0
----
-167
-168
-96

query I rowsort
SELECT DISTINCT - 6 FROM tab2, tab0 cor0
----
-6

query I rowsort
SELECT DISTINCT - 9 + 42 FROM tab0 AS cor0
----
33

query I rowsort
SELECT DISTINCT col2 * + col2 * + tab0.col1 FROM tab0
----
611884
93654
97

query I rowsort
SELECT DISTINCT 21 * + col1 FROM tab2
----
1239
357
651

onlyif mysql # use DIV operator for integer division
query I rowsort label-9111
SELECT + + 21 * col0 DIV col2 FROM tab0 AS cor0
----
15
22
735

skipif mysql # not compatible
query I rowsort label-9111
SELECT + + 21 * col0 / col2 FROM tab0 AS cor0
----
15
22
735

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8

query I rowsort
SELECT - - col1 * cor0.col0 + + col1 * 12 AS col2 FROM tab1 AS cor0
----
1196
390
760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col2 FROM tab1
----
121
176
57

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT + CAST( - col1 AS SIGNED ) * col0 FROM tab1
----
-1040
-640
-78

skipif mysql # not compatible
query I rowsort label-9115
SELECT + CAST ( - col1 AS INTEGER ) * col0 FROM tab1
----
-1040
-640
-78

query I rowsort
SELECT - cor0.col2 - col2 AS col0 FROM tab0 cor0
----
-164
-2
-66

query I rowsort
SELECT DISTINCT 26 * col2 + - col0 * col2 * col0 AS col1 FROM tab1
----
-231990
-611904
918

query I rowsort
SELECT DISTINCT + ( cor1.col1 ) FROM tab1, tab0, tab0 AS cor0, tab1 cor1
----
10
13
26

query I rowsort
SELECT DISTINCT 19 + 1 * col1 * 88 + 33 AS col0 FROM tab2
----
1548
2780
5244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - 82 + col0 col2 FROM tab2
----
-1315
-2535
-4760

query I rowsort
SELECT - col0 + + col1 * + col1 + - col2 FROM tab2
----
172
3377
927

query I rowsort
SELECT col0 * col0 + - col0 * col2 FROM tab0 AS cor0
----
-216
1190
623

query I rowsort
SELECT + col0 * 78 + + 95 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1211
13494
13667

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9124
SELECT - + cor0.col2 * CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

skipif mysql # not compatible
query I rowsort label-9124
SELECT - + cor0.col2 * CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3192
-9120

query I rowsort
SELECT DISTINCT col2 + - ( - col0 ) + col0 FROM tab0 AS cor0
----
260
71
81

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9126
SELECT ALL col1 * CAST( col1 AS SIGNED ) col2 FROM tab0 AS cor0
----
7396
8281
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL col1 * CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
7396
8281
9409

query I rowsort
SELECT DISTINCT col2 * + 62 FROM tab1
----
3348
3534
5952

query I rowsort
SELECT - tab2.col0 * - 35 + col0 * + col0 AS col2 FROM tab2
----
294
8814
9006

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9129
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) - + 10 * col2 col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) - + 10 * col2 col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 39 * 11 AS col1 FROM tab0 AS cor0
----
429
429
429

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 + 46 + cor0.col1 col0 FROM tab0 AS cor0
----
212
217
223

query I rowsort
SELECT - - 36 AS col1 FROM tab2 cor0
----
36
36
36

query I rowsort
SELECT 37 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c023509f63faa044d654943e6df55ca2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 85 ) * - col2 * cor0.col0 col0 FROM tab0 AS cor0
----
-2975
-620330
-67320

query I rowsort
SELECT + + ( 84 ) AS col1 FROM tab0 AS cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT cor0.col0 * - 50 AS col1 FROM tab0 AS cor0
----
-1200
-1750
-4450

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9138
SELECT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9138
SELECT - CAST ( NULL AS REAL ) AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

query I rowsort
SELECT - + 56 - col1 FROM tab1 AS cor0
----
-66
-69
-82

query I rowsort
SELECT - 95 * - col2 FROM tab1 AS cor0
----
5130
5415
9120

query I rowsort
SELECT ALL - - 83 * - col2 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT - 49 - cor0.col2 FROM tab1 AS cor0
----
-103
-106
-145

onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT cor0.col2 * + col2 DIV col2 FROM tab1 AS cor0
----
54
57
96

skipif mysql # not compatible
query I rowsort label-9143
SELECT cor0.col2 * + col2 / col2 FROM tab1 AS cor0
----
54
57
96

query I rowsort
SELECT DISTINCT - - col0 * + col1 + col1 FROM tab2 AS cor0
----
1360
248
4661

query I rowsort
SELECT - - cor0.col2 * + ( col2 ) FROM tab2 AS cor0
----
1444
676
729

query I rowsort
SELECT + col1 * col1 + 29 FROM tab2 AS cor0
----
318
3510
990

query I rowsort
SELECT + cor0.col0 * + 4 AS col1 FROM tab1 AS cor0
----
12
256
320

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9148
SELECT col0 * col2 / + 42 + + col2 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT col0 * col2 / + 42 + + col2 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + ( col2 ) + + col1 FROM tab2 AS cor0
----
1461
735
760

query I rowsort
SELECT + + col1 + + col2 * - col0 FROM tab1 AS cor0
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT - 25 * ( - col2 ) - + col2 FROM tab2
----
624
648
912

onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT - ( col1 ) + col1 DIV col1 FROM tab0 AS cor0
----
-85
-90
-96

skipif mysql # not compatible
query I rowsort label-9152
SELECT - ( col1 ) + col1 / col1 FROM tab0 AS cor0
----
-85
-90
-96

query I rowsort
SELECT col2 + col2 * ( + cor0.col1 ) AS col1 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT ALL 45 + col1 AS col0 FROM tab0 AS cor0
----
131
136
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + col1 col1 FROM tab0
----
7396
8281
9409

query I rowsort
SELECT - 66 * 45 * col1 FROM tab0
----
-255420
-270270
-288090

query I rowsort
SELECT DISTINCT - cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
-1
-33
-82

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9158
SELECT - CAST( col1 AS SIGNED ) * + tab0.col2 + CAST( 44 AS SIGNED ) FROM tab0
----
-2794
-53
-7418

skipif mysql # not compatible
query I rowsort label-9158
SELECT - CAST ( col1 AS INTEGER ) * + tab0.col2 + CAST ( 44 AS INTEGER ) FROM tab0
----
-2794
-53
-7418

query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6

query I rowsort
SELECT ALL ( 0 ) * + col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 14 * + col1 - ( - col1 ) FROM tab0 AS cor0
----
-1118
-1183
-1261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col2 * + col0 col1 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT ALL - - 59 + col0 AS col1 FROM tab0 cor0
----
148
83
94

query I rowsort
SELECT ALL col0 * + col1 - + col1 FROM tab2 cor0
----
1326
186
4543

query I rowsort
SELECT DISTINCT - 69 * - cor0.col0 FROM tab0 AS cor0
----
1656
2415
6141

query I rowsort
SELECT + + 19 * - col0 FROM tab2 AS cor0
----
-133
-1482
-1501

query I rowsort
SELECT ALL - + ( - col2 ) * ( + col1 ) * - col2 AS col2 FROM tab2 cor0
----
-22599
-24548
-39884

query I rowsort
SELECT ALL - 25 + - col2 * - 5 * col0 AS col0 FROM tab1 AS cor0
----
18215
38375
785

query I rowsort
SELECT + col1 * col2 + 58 FROM tab0 AS cor0
----
155
2896
7520

query I rowsort
SELECT DISTINCT + - 86 + col0 AS col0 FROM tab1 AS cor0
----
-22
-6
-83

query I rowsort
SELECT DISTINCT - + 95 + cor0.col0 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-95

query I rowsort
SELECT 48 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-30
-31
41

query I rowsort
SELECT DISTINCT col2 + + col2 * 31 AS col0 FROM tab0 AS cor0
----
1056
2624
32

query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + - ( 86 ) * col0 * + ( - cor0.col2 ) + + col1 AS col2 FROM tab1 AS cor0
----
14120
317386
668173

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9176
SELECT + cor0.col2 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9176
SELECT + cor0.col2 / - col2 AS col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9177
SELECT col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9177
SELECT col2 / col1 AS col1 FROM tab2 AS cor0
----
0
0
2

query I rowsort
SELECT ALL col1 + col0 * 7 AS col1 FROM tab1 AS cor0
----
458
47
573

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9179
SELECT DISTINCT col0 * + ( col0 ) * col0 + - CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9179
SELECT DISTINCT col0 * + ( col0 ) * col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9180
SELECT - - col1 DIV - 54 + 70 + col1 FROM tab0 cor0
----
155
160
166

skipif mysql # not compatible
query I rowsort label-9180
SELECT - - col1 / - 54 + 70 + col1 FROM tab0 cor0
----
155
160
166

query I rowsort
SELECT col1 * + 89 FROM tab2 AS cor0
----
1513
2759
5251

query I rowsort
SELECT + - col0 * + ( col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) * col1 col1 FROM tab2 AS cor0
----
1343
217
4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col0 + col0 * col1 col2 FROM tab2 AS cor0
----
1501
231
4758

onlyif mysql # use DIV operator for integer division
query I rowsort label-9185
SELECT ALL col0 + col2 * + cor0.col1 DIV + CAST( + col1 AS SIGNED ) + + col2 * cor0.col2 FROM tab0 AS cor0
----
1146
37
6895

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL col0 + col2 * + cor0.col1 / + CAST ( + col1 AS INTEGER ) + + col2 * cor0.col2 FROM tab0 AS cor0
----
1146
37
6895

query I rowsort
SELECT + 92 * col0 + - col0 FROM tab1 AS cor0
----
273
5824
7280

query I rowsort
SELECT DISTINCT 74 - col2 FROM tab0 cor0
----
-8
41
73

query I rowsort
SELECT ALL + tab1.col2 * + 22 AS col2 FROM tab1
----
1188
1254
2112

skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + ( + col2 ) AS REAL ) + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab1, tab2 AS cor0
----
11

onlyif mysql # use DIV operator for integer division
query I rowsort label-9191
SELECT DISTINCT ( - cor0.col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9191
SELECT DISTINCT ( - cor0.col0 ) / col0 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + ( tab0.col1 ) AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc

query I rowsort
SELECT 5 * - col0 FROM tab0 AS cor0
----
-120
-175
-445

query I rowsort
SELECT DISTINCT col0 * 91 FROM tab1 AS cor0
----
273
5824
7280

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9195
SELECT ALL CAST( 61 AS SIGNED ) FROM tab1 AS cor0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL CAST ( 61 AS INTEGER ) FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT DISTINCT - 96 * col2 FROM tab2 AS cor0
----
-2496
-2592
-3648

query I rowsort
SELECT + + col0 * 90 * col2 FROM tab0 AS cor0
----
3150
656820
71280

query I rowsort
SELECT DISTINCT + ( 57 ) AS col1 FROM tab0 cor0
----
57

query I rowsort
SELECT ALL - 13 AS col0 FROM tab1 AS cor0
----
-13
-13
-13

query I rowsort
SELECT ( col2 ) * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216

query I rowsort
SELECT ALL - + col2 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680

query I rowsort
SELECT + ( 4 ) FROM tab2 AS cor0
----
4
4
4

onlyif mysql # use DIV operator for integer division
query I rowsort label-9203
SELECT ALL - cor0.col2 DIV col1 + + col0 AS col1 FROM tab2 cor0
----
7
77
78

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL - cor0.col2 / col1 + + col0 AS col1 FROM tab2 cor0
----
7
77
78

query I rowsort
SELECT DISTINCT + 30 * + col1 + 42 * - 56 AS col1 FROM tab1 AS cor0
----
-1572
-1962
-2052

query I rowsort
SELECT - ( - 95 ) FROM tab0
----
95
95
95

query I rowsort
SELECT DISTINCT - ( - 93 ) * col2 AS col1 FROM tab1
----
5022
5301
8928

query I rowsort
SELECT ALL - col1 + - ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26

query I rowsort
SELECT DISTINCT + + cor0.col0 + 87 FROM tab0 AS cor0
----
111
122
176

query I rowsort
SELECT 98 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT ALL - + col1 * - 4 + ( + col2 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - + col1 * - 4 + ( + col2 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9211
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9212
SELECT ALL - col0 + CAST( + col2 + col0 AS SIGNED ) * 97 col2 FROM tab0 AS cor0
----
16498
3457
5505

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL - col0 + CAST ( + col2 + col0 AS INTEGER ) * 97 col2 FROM tab0 AS cor0
----
16498
3457
5505

query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10
13
26

query I rowsort
SELECT DISTINCT 55 * - 12 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-660

query I rowsort
SELECT DISTINCT col2 + + col1 * 39 + + col1 FROM tab0 AS cor0
----
3473
3722
3881

query I rowsort
SELECT col2 + + tab1.col2 AS col2 FROM tab1
----
108
114
192

query I rowsort
SELECT - col1 + ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 + col0 * - 78 FROM tab0
----
-1958
-2827
-7033

query I rowsort
SELECT - tab0.col1 * col0 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010

query I rowsort
SELECT DISTINCT - col1 * col0 + + ( + col1 * + col2 ) FROM tab0 AS cor0
----
-3298
-637
774

query I rowsort
SELECT ALL col1 - + ( 2 ) AS col0 FROM tab1 AS cor0
----
11
24
8

query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5

query I rowsort
SELECT ALL - tab2.col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79

onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT + + col1 DIV + col0 + col2 + col0 AS col0 FROM tab0 cor0
----
172
38
60

skipif mysql # not compatible
query I rowsort label-9224
SELECT + + col1 / + col0 + col2 + col0 AS col0 FROM tab0 cor0
----
172
38
60

query I rowsort
SELECT ALL - + cor0.col2 + col0 FROM tab2 cor0
----
-20
41
52

query I rowsort
SELECT DISTINCT - 44 * col2 AS col1 FROM tab0 AS cor0
----
-1452
-3608
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 * 95 col0 FROM tab0 cor0
----
8194
8734
9250

query I rowsort
SELECT DISTINCT tab2.col0 * col2 * + tab2.col1 FROM tab2
----
119652
51034
5859

query I rowsort
SELECT + - col2 * 99 FROM tab2 AS cor0
----
-2574
-2673
-3762

query I rowsort
SELECT ALL + 95 * col0 FROM tab1 AS cor0
----
285
6080
7600

query I rowsort
SELECT col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676

query I rowsort
SELECT - 71 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

query I rowsort
SELECT ALL + ( 87 ) FROM tab0
----
87
87
87

query I rowsort
SELECT + + 10 + + col0 * + 22 AS col0 FROM tab2 AS cor0
----
164
1726
1748

query I rowsort
SELECT + 25 + col0 * + ( - 46 ) * - col2 + col1 * - cor0.col1 FROM tab1 AS cor0
----
167733
353136
6801

query I rowsort
SELECT col1 + + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 + col1 ) * tab1.col2 col1 FROM tab1
----
-1242
3078
6432

query I rowsort
SELECT - col2 * + ( + col2 ) + + col0 * col1 AS col2 FROM tab2
----
-101
-512
3926

query I rowsort
SELECT ALL + 53 * - col2 FROM tab2
----
-1378
-1431
-2014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 + 21 * col2 * - col0 col0 FROM tab0
----
-153347
-16656
-770

query I rowsort
SELECT + col0 * tab1.col2 + tab1.col0 AS col0 FROM tab1
----
165
3712
7760

query I rowsort
SELECT col1 * 93 AS col1 FROM tab2
----
1581
2883
5487

query I rowsort
SELECT 29 + cor0.col0 + 0 AS col1 FROM tab2 AS cor0
----
107
108
36

query I rowsort
SELECT - 18 * col1 + - col1 * + col1 + col1 FROM tab2 AS cor0
----
-1488
-4484
-578

query I rowsort
SELECT col2 * tab1.col2 * - 87 - 78 FROM tab1
----
-253770
-282741
-801870

query I rowsort
SELECT ALL - ( + col1 ) + - ( - 87 ) AS col0 FROM tab1 AS cor0
----
61
74
77

query I rowsort
SELECT - col0 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584

query I rowsort
SELECT ALL 17 + - col2 + - col1 FROM tab1 AS cor0
----
-50
-63
-92

query I rowsort
SELECT 78 + col1 AS col0 FROM tab2 AS cor0
----
109
137
95

query I rowsort
SELECT ALL + cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602

query I rowsort
SELECT DISTINCT + cor0.col0 * + 60 FROM tab0, tab2 AS cor0
----
420
4680
4740

query I rowsort
SELECT DISTINCT cor0.col0 * + col2 AS col2 FROM tab0 AS cor0
----
35
7298
792

query I rowsort
SELECT - cor0.col2 * col2 - col0 FROM tab0 AS cor0
----
-1113
-36
-6813

query I rowsort
SELECT DISTINCT - + col1 * + col1 + col2 FROM tab1 AS cor0
----
-43
-622
-73

query I rowsort
SELECT DISTINCT 88 + + col0 * col1 * + col2 FROM tab1 AS cor0
----
36568
4300
99928

query I rowsort
SELECT + + col0 * col0 * col1 + + col1 + col1 FROM tab0 AS cor0
----
119019
49708
720993

skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) AS col1 FROM tab0
----
-24
-35
-89

onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT ALL 95 DIV col0 FROM tab2
----
1
1
13

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL 95 / col0 FROM tab2
----
1
1
13

query I rowsort
SELECT + 97 * 43 - + col0 FROM tab1 AS cor0
----
4091
4107
4168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + col2 col0 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT + 59 + - 5 FROM tab1
----
54
54
54

query I rowsort
SELECT DISTINCT + col2 * - 71 + + col1 FROM tab0 AS cor0
----
-2257
-5731
26

onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT ALL - col2 DIV - cor0.col1 - + col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - col2 / - cor0.col1 - + col1 FROM tab1 AS cor0
----
-24
-5
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + ( col1 ) + col2 col2 FROM tab1 AS cor0
----
131
189
83

query I rowsort
SELECT ALL - col2 + 67 AS col0 FROM tab1 AS cor0
----
-29
10
13

query I rowsort
SELECT DISTINCT + col2 + - 33 AS col0 FROM tab0 AS cor0
----
-32
0
49

query I rowsort
SELECT + 24 + - col0 AS col1 FROM tab2
----
-54
-55
17

query I rowsort
SELECT ( col2 ) * 51 + col0 * col0 AS col1 FROM tab0
----
12103
1276
2259

query I rowsort
SELECT 43 - col0 FROM tab1
----
-21
-37
40

query I rowsort
SELECT DISTINCT 93 * - col1 * ( col0 ) AS col1 FROM tab2
----
-124899
-20181
-427986

query I rowsort
SELECT DISTINCT + ( + 21 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 cor2
----
21

query I rowsort
SELECT - col0 * ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 88 col1 FROM tab0 AS cor0
----
-1
53
64

onlyif mysql # use DIV operator for integer division
query I rowsort label-9274
SELECT ALL + col0 * - ( - col2 ) + col2 * + col1 DIV col1 AS col1 FROM tab0 cor0
----
36
7380
825

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + col0 * - ( - col2 ) + col2 * + col1 / col1 AS col1 FROM tab0 cor0
----
36
7380
825

query I rowsort
SELECT DISTINCT + ( tab2.col0 ) + tab2.col2 FROM tab2
----
104
117
34

query I rowsort
SELECT DISTINCT col1 * - col1 * ( col0 * col0 ) + + 29 * + col2 FROM tab2 AS cor0
----
-1802547
-21177650
-46306

query I rowsort
SELECT - + cor1.col1 * + 45 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95c99481bf8bca4ff968ae3b9eb1e84f

onlyif mysql # use DIV operator for integer division
query I rowsort label-9278
SELECT + col0 + col2 DIV - col2 FROM tab0 AS cor0
----
23
34
88

skipif mysql # not compatible
query I rowsort label-9278
SELECT + col0 + col2 / - col2 FROM tab0 AS cor0
----
23
34
88

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9279
SELECT - - CAST( - ( col0 ) AS SIGNED ) + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

skipif mysql # not compatible
query I rowsort label-9279
SELECT - - CAST ( - ( col0 ) AS INTEGER ) + + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188

query I rowsort
SELECT + cor0.col2 + 47 * + tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 47d9a11953a0cd6dcbd96dd6813d2110

query I rowsort
SELECT DISTINCT - ( - tab1.col2 ) * + col0 + col0 AS col2 FROM tab1
----
165
3712
7760

query I rowsort
SELECT - col0 * col1 + col0 * + col1 * col1 AS col0 FROM tab0
----
175440
325920
728910

query I rowsort
SELECT ALL - col1 + - cor0.col1 * + 45 AS col0 FROM tab2 AS cor0
----
-1426
-2714
-782

query I rowsort
SELECT + 83 + col0 FROM tab0 AS cor0
----
107
118
172

query I rowsort
SELECT ALL - 55 * - col2 AS col1 FROM tab0
----
1815
4510
55

query I rowsort
SELECT ALL - 36 * + col2 AS col1 FROM tab1 AS cor0
----
-1944
-2052
-3456

onlyif mysql # use DIV operator for integer division
query I rowsort label-9287
SELECT DISTINCT - - cor0.col0 + - col0 DIV ( col1 ) + + col1 FROM tab1 AS cor0
----
29
68
87

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT - - cor0.col0 + - col0 / ( col1 ) + + col1 FROM tab1 AS cor0
----
29
68
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col2 col2 FROM tab2 cor0
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + 40 * col0 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
11481
1536
2625

query I rowsort
SELECT - 30 + col0 FROM tab2 AS cor0
----
-23
48
49

query I rowsort
SELECT + + 90 + cor0.col1 * 18 FROM tab2 cor0
----
1152
396
648

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9293
SELECT DISTINCT - col0 * + col0 * CAST( - 48 AS SIGNED ) FROM tab0 AS cor0
----
27648
380208
58800

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - col0 * + col0 * CAST ( - 48 AS INTEGER ) FROM tab0 AS cor0
----
27648
380208
58800

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9294
SELECT DISTINCT col0 * - col2 + - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-182
-1950
-2923

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT col0 * - col2 + - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-182
-1950
-2923

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col1 * - ( + col1 ) col2 FROM tab1 cor0
----
-14196
-56784
-8400

query I rowsort
SELECT DISTINCT - col1 - - 25 AS col2 FROM tab1 AS cor0
----
-1
12
15

onlyif mysql # use DIV operator for integer division
query I rowsort label-9297
SELECT DISTINCT - col2 DIV 63 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT - col2 / 63 FROM tab2 AS cor0
----
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9298
SELECT DISTINCT + col1 + - ( 45 ) - - col0 DIV - cor0.col1 FROM tab1 AS cor0
----
-19
-38
-41

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + col1 + - ( 45 ) - - col0 / - cor0.col1 FROM tab1 AS cor0
----
-19
-38
-41

query I rowsort
SELECT + - col0 + col2 * 34 * col0 AS col2 FROM tab0 AS cor0
----
1155
248043
26904

query I rowsort
SELECT ALL + col0 * + col1 + col1 AS col2 FROM tab2 AS cor0
----
1360
248
4661

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9301
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9301
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT 55 FROM tab1, tab0 cor0
----
55

query I rowsort
SELECT ALL + 90 * col0 AS col2 FROM tab0 AS cor0
----
2160
3150
8010

query I rowsort
SELECT DISTINCT + cor0.col2 * - 81 AS col0 FROM tab1 AS cor0
----
-4374
-4617
-7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT 69 * + ( col1 ) FROM tab1 AS cor0
----
1794
690
897

query I rowsort
SELECT ALL - - col1 * 0 AS col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT 36 + + col0 * - cor0.col2 FROM tab2 AS cor0
----
-153
-1992
-2966

query I rowsort
SELECT DISTINCT - 8 + col1 FROM tab0 cor0
----
78
83
89

query I rowsort
SELECT ( 15 ) + + col0 * - ( 28 ) AS col1 FROM tab0 AS cor0
----
-2477
-657
-965

query I rowsort
SELECT DISTINCT col2 * col1 * + col2 FROM tab1 AS cor0
----
119808
32490
75816

query I rowsort
SELECT - + 56 FROM tab2 cor0
----
-56
-56
-56

query I rowsort
SELECT ALL 11 * col1 FROM tab0 AS cor0
----
1001
1067
946

query I rowsort
SELECT - + col1 * + col0 + + cor0.col0 * - col2 FROM tab2 AS cor0
----
-406
-4345
-6630

query I rowsort
SELECT col0 + - cor0.col2 + - col1 FROM tab0 cor0
----
-63
-84
-95

query I rowsort
SELECT ALL 56 + - col0 FROM tab1
----
-24
-8
53

query I rowsort
SELECT DISTINCT ( + col1 ) * col1 + + col2 FROM tab2
----
327
3507
988

query I rowsort
SELECT - 5 + tab0.col2 FROM tab0
----
-4
28
77

query I rowsort
SELECT ALL - col2 + + 86 + + col2 AS col0 FROM tab2
----
86
86
86

query I rowsort
SELECT DISTINCT - cor0.col2 + tab0.col0 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
9 values hashing to 433ab71ade4f9ca647cd1e5cae4a1a44

query I rowsort
SELECT + 56 * + tab1.col0 + col1 + + 49 AS col2 FROM tab1
----
243
3643
4542

query I rowsort
SELECT ALL col0 + + ( + col1 + 11 ) AS col2 FROM tab2
----
107
148
49

query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548

query I rowsort
SELECT col2 + - ( col2 + 54 ) * - 11 * col2 FROM tab0 AS cor0
----
122754
31614
606

query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
54
57
96

query I rowsort
SELECT + col2 * col1 + cor0.col0 AS col0 FROM tab2 AS cor0
----
1612
725
844

query I rowsort
SELECT ALL - 24 + tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to aa71a05ca1e669f5a5eec28723618397

query I rowsort
SELECT + - col2 * + 44 + + col0 FROM tab0 AS cor0
----
-1428
-3519
-9

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9329
SELECT - CAST( NULL AS DECIMAL ) * col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT - CAST ( NULL AS REAL ) * col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col1 * - col2 col1 FROM tab0 AS cor0
----
-2752
-7371
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9331
SELECT ALL + CAST( - col0 AS SIGNED ) + col2 + 26 FROM tab1 AS cor0
----
19
42
77

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + CAST ( - col0 AS INTEGER ) + col2 + 26 FROM tab1 AS cor0
----
19
42
77

query I rowsort
SELECT DISTINCT + ( + col1 ) - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816

query I rowsort
SELECT DISTINCT + 78 FROM tab1, tab0 AS cor0
----
78

query I rowsort
SELECT ALL + ( + col1 ) + - 33 * - col2 FROM tab0
----
1175
130
2797

query I rowsort
SELECT col0 + col0 + + col2 * col0 AS col0 FROM tab0
----
105
7476
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 + col1 * + col2 col0 FROM tab2
----
1574
686
877

query I rowsort
SELECT DISTINCT col1 + col0 * col2 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL ( + col0 ) * - col1 + col1 FROM tab2
----
-1326
-186
-4543

query I rowsort
SELECT DISTINCT col0 * + col2 + - col1 * + 93 FROM tab0
----
-1165
-7206
-8986

query I rowsort
SELECT - 48 + + col0 * + ( - col1 ) FROM tab0
----
-2112
-3443
-8147

query I rowsort
SELECT col2 + - col1 + tab2.col1 AS col2 FROM tab2
----
26
27
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 + - col1 col1 FROM tab1
----
28
47
83

query I rowsort
SELECT ALL - 54 AS col2 FROM tab1 AS cor0
----
-54
-54
-54

query I rowsort
SELECT DISTINCT + - col2 * col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810

query I rowsort
SELECT ALL - col0 * col2 + + ( + col2 ) FROM tab2 cor0
----
-162
-2002
-2964

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 93 * + col2 col2 FROM tab2 AS cor0
----
2418
2511
3534

query I rowsort
SELECT DISTINCT tab0.col0 * + col1 * + col1 AS col0 FROM tab0
----
177504
329315
737009

query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + - col0 * col0 FROM tab0 AS cor0
----
360
6820
8184

query I rowsort
SELECT ALL col2 * ( 43 ) + cor0.col1 FROM tab0 cor0
----
140
1505
3617

onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT DISTINCT - - col2 + col2 DIV + col2 FROM tab0 AS cor0
----
2
34
83

skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT - - col2 + col2 / + col2 FROM tab0 AS cor0
----
2
34
83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT ALL - col0 - col2 DIV 15 FROM tab2 AS cor0
----
-79
-8
-81

skipif mysql # not compatible
query I rowsort label-9352
SELECT ALL - col0 - col2 / 15 FROM tab2 AS cor0
----
-79
-8
-81

query I rowsort
SELECT + cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97

query I rowsort
SELECT + col2 * + col1 + 62 FROM tab2 AS cor0
----
1596
708
899

query I rowsort
SELECT DISTINCT - col0 + - 67 FROM tab1 AS cor0
----
-131
-147
-70

query I rowsort
SELECT ALL + col1 + + col2 * 70 FROM tab2 AS cor0
----
1879
1921
2677

query I rowsort
SELECT - col0 * col2 + col0 * - col2 * - col0 FROM tab0 AS cor0
----
1190
18216
642224

query I rowsort
SELECT + col0 + - col1 + - col1 FROM tab2
----
-40
-55
45

query I rowsort
SELECT 79 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1

skipif mysql # not compatible
query I rowsort
SELECT - col2 + + CAST ( + 36 AS REAL ) FROM tab0 AS cor0
----
-46
3
35

query I rowsort
SELECT col2 * - 86 FROM tab0 AS cor0
----
-2838
-7052
-86

onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT col2 DIV + col2 - - col1 FROM tab0 AS cor0
----
87
92
98

skipif mysql # not compatible
query I rowsort label-9362
SELECT col2 / + col2 - - col1 FROM tab0 AS cor0
----
87
92
98

query I rowsort
SELECT ALL col0 * 27 + - col1 - - col2 * - ( col1 ) AS col0 FROM tab2
----
-679
1470
513

onlyif mysql # use DIV operator for integer division
query I rowsort label-9364
SELECT col1 DIV - ( + 52 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9364
SELECT col1 / - ( + 52 ) FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9365
SELECT - + col2 DIV + ( + 49 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9365
SELECT - + col2 / + ( + 49 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 * + col2 col2 FROM tab2 AS cor0
----
-546
-567
-798

query I rowsort
SELECT - ( + cor0.col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9

query I rowsort
SELECT - col1 * - 14 AS col2 FROM tab2 AS cor0
----
238
434
826

query I rowsort
SELECT ALL - - col0 * ( + col2 ) FROM tab0 cor0
----
35
7298
792

query I rowsort
SELECT - 77 + col2 FROM tab2 AS cor0
----
-39
-50
-51

query I rowsort
SELECT ( col2 ) + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT col0 DIV col1 + col2 FROM tab2 AS cor0
----
27
27
42

skipif mysql # not compatible
query I rowsort label-9372
SELECT col0 / col1 + col2 FROM tab2 AS cor0
----
27
27
42

query I rowsort
SELECT - - ( 50 ) + cor0.col0 * col0 AS col1 FROM tab2 cor0
----
6134
6291
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 1 col0 FROM tab1
----
54
57
96

query I rowsort
SELECT 35 * col2 FROM tab1 AS cor0
----
1890
1995
3360

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9376
SELECT + + CAST( + 54 AS SIGNED ) - - col1 AS col0 FROM tab2 AS cor0
----
113
71
85

skipif mysql # not compatible
query I rowsort label-9376
SELECT + + CAST ( + 54 AS INTEGER ) - - col1 AS col0 FROM tab2 AS cor0
----
113
71
85

query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
24
35
89

query I rowsort
SELECT tab0.col0 * 14 FROM tab0
----
1246
336
490

query I rowsort
SELECT 88 * col2 FROM tab1 cor0
----
4752
5016
8448

onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT col0 DIV cor0.col0 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9380
SELECT col0 / cor0.col0 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT + cor0.col0 * + ( col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039

onlyif mysql # use DIV operator for integer division
query I rowsort label-9382
SELECT + 6 - col1 DIV 58 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9382
SELECT + 6 - col1 / 58 FROM tab1
----
6
6
6

query I rowsort
SELECT DISTINCT 39 * - col2 * + ( + ( cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
-117078
-7371
-79092

query I rowsort
SELECT + + col0 * col0 + ( - col0 ) + - col2 FROM tab1 AS cor0
----
-48
3975
6224

onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT DISTINCT - - 36 DIV + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - - 36 / + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82

onlyif mysql # use DIV operator for integer division
query I rowsort label-9386
SELECT ALL + - ( col2 ) DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + - ( col2 ) / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216

query I rowsort
SELECT ALL cor0.col0 * 99 FROM tab2, tab2 AS cor0
----
9 values hashing to 429d3cabfc257e3c1552e5ae7e68a4d2

query I rowsort
SELECT + col2 + ( + cor0.col2 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513

query I rowsort
SELECT ALL + col2 * col1 - 34 FROM tab0 AS cor0
----
2804
63
7428

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9391
SELECT DISTINCT - cor0.col2 / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9391
SELECT DISTINCT - cor0.col2 / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab0 AS cor0
----
110
132
180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 col2 FROM tab2 cor0
----
-189
-2028
-3002

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9394
SELECT ALL col0 * CAST( - col2 AS SIGNED ) + col0 * ( col0 ) FROM tab2 AS cor0
----
-140
3239
4056

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL col0 * CAST ( - col2 AS INTEGER ) + col0 * ( col0 ) FROM tab2 AS cor0
----
-140
3239
4056

query I rowsort
SELECT DISTINCT - + cor0.col2 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192

query I rowsort
SELECT + col2 * + col0 + - tab2.col1 FROM tab2
----
158
1969
2985

query I rowsort
SELECT - tab1.col0 + + col2 * ( col1 + - col2 ) FROM tab1
----
-1515
-2743
-8048

query I rowsort
SELECT - col1 - - tab0.col0 AS col1 FROM tab0
----
-2
-62
-62

query I rowsort
SELECT + col0 + - col2 * + ( + ( tab0.col2 ) ) FROM tab0
----
-1065
-6635
34

query I rowsort
SELECT - tab0.col1 - - col2 * - col0 AS col2 FROM tab0
----
-132
-7389
-878

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( cor0.col2 AS REAL ) * cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002

query I rowsort
SELECT - col1 * + col0 + col0 * cor0.col2 FROM tab0 AS cor0
----
-1272
-3360
-801

query I rowsort
SELECT + + cor0.col0 + - col2 + col2 FROM tab2 AS cor0
----
7
78
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 60 col2 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT - col2 * 12 - col0 FROM tab2 AS cor0
----
-331
-390
-535

query I rowsort
SELECT ALL + 59 * - col0 FROM tab2 cor0
----
-413
-4602
-4661

query I rowsort
SELECT DISTINCT ( - col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + 55 col0 FROM tab1 AS cor0
----
130
130
130

query I rowsort
SELECT ALL - + col1 - + 2 AS col0 FROM tab0 AS cor0
----
-88
-93
-99

query I rowsort
SELECT 46 * 30 AS col1 FROM tab1 AS cor0
----
1380
1380
1380

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9411
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT col0 * - col2 * - col0 FROM tab2
----
1323
158184
237158

query I rowsort
SELECT ALL - col2 - tab1.col2 AS col1 FROM tab1
----
-108
-114
-192

query I rowsort
SELECT ALL + ( + cor0.col1 ) * + cor0.col1 + + ( + col0 ) FROM tab1 AS cor0
----
164
249
679

query I rowsort
SELECT col0 * + 43 + + col1 AS col2 FROM tab0 AS cor0
----
1118
1602
3918

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9416
SELECT - CAST( 68 AS SIGNED ) + + col1 AS col2 FROM tab2
----
-37
-51
-9

skipif mysql # not compatible
query I rowsort label-9416
SELECT - CAST ( 68 AS INTEGER ) + + col1 AS col2 FROM tab2
----
-37
-51
-9

query I rowsort
SELECT 90 FROM tab2, tab2 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL + ( - col2 ) + - col0 FROM tab0
----
-171
-36
-57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9420
SELECT ALL - cor0.col2 DIV - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL - cor0.col2 / - 63 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 14fcfa6c11198893073049d94262832c

query I rowsort
SELECT ALL + col2 + col1 * + col2 * - col2 AS col0 FROM tab2
----
-22572
-24510
-39858

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9422
SELECT + ( col0 ) * - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9422
SELECT + ( col0 ) * - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT 30 DIV cor0.col1 + 97 col1 FROM tab2 AS cor0
----
97
97
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9423
SELECT 30 / cor0.col1 + 97 col1 FROM tab2 AS cor0
----
97
97
98

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9424
SELECT - ( cor0.col0 ) + CAST( - 22 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-41
-84
2

skipif mysql # not compatible
query I rowsort label-9424
SELECT - ( cor0.col0 ) + CAST ( - 22 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-41
-84
2

query I rowsort
SELECT + cor0.col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830

query I rowsort
SELECT 10 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT - tab0.col1 - tab0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to bdd04a15c7f6060b912a3c21908a1cde

onlyif mysql # use DIV operator for integer division
query I rowsort label-9428
SELECT - 31 DIV + col2 AS col0 FROM tab0
----
-31
0
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT - 31 / + col2 AS col0 FROM tab0
----
-31
0
0

query I rowsort
SELECT col2 * ( - col2 + 79 ) FROM tab1
----
-1632
1254
1350

query I rowsort
SELECT DISTINCT + col1 * col1 * - col2 + col0 FROM tab2
----
-10903
-25940
-90428

query I rowsort
SELECT DISTINCT 66 * 27 + - col1 AS col2 FROM tab0
----
1685
1691
1696

query I rowsort
SELECT 86 + col2 FROM tab1
----
140
143
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 col2 FROM tab2 cor0
----
-1444
-676
-729

query I rowsort
SELECT ALL + col1 + col1 - - ( + col1 ) * - col0 FROM tab1 AS cor0
----
-1014
-26
-620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 + + 57 * col2 * col2 col0 FROM tab1 AS cor0
----
163296
181944
516096

query I rowsort
SELECT + col1 * col0 * - ( col0 ) + + col0 FROM tab1 AS cor0
----
-231
-40896
-83120

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col1 * col2 + CAST ( - cor0.col0 AS REAL ) FROM tab2 cor0
----
1456
567
830

query I rowsort
SELECT ALL + 20 + - col0 * ( - col2 ) + + col1 AS col0 FROM tab2 AS cor0
----
2107
240
3039

query I rowsort
SELECT DISTINCT 94 * col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
308
6026
7533

query I rowsort
SELECT ALL cor0.col2 - col0 AS col1 FROM tab1 AS cor0
----
-7
16
51

query I rowsort
SELECT - 82 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT col2 + col2 * ( col1 ) * col1 AS col1 FROM tab1
----
16320
36558
5757

query I rowsort
SELECT + col2 * 35 AS col2 FROM tab0 AS cor0
----
1155
2870
35

query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57

query I rowsort
SELECT - col2 * cor0.col0 * + col2 FROM tab1 AS cor0
----
-207936
-737280
-8748

query I rowsort
SELECT DISTINCT + - col0 * 34 AS col0 FROM tab0 AS cor0
----
-1190
-3026
-816

query I rowsort
SELECT - col1 + - col1 * - ( + col1 ) AS col1 FROM tab0 AS cor0
----
7310
8190
9312

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9448
SELECT DISTINCT col1 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT col1 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - 84 * + 48 AS col1 FROM tab0
----
133056
330624
4032

query I rowsort
SELECT ALL + ( - col1 ) + + col0 * - 74 FROM tab0 AS cor0
----
-1862
-2687
-6677

onlyif mysql # use DIV operator for integer division
query I rowsort label-9451
SELECT 87 DIV - col1 FROM tab1
----
-3
-6
-8

skipif mysql # not compatible
query I rowsort label-9451
SELECT 87 / - col1 FROM tab1
----
-3
-6
-8

query I rowsort
SELECT + col2 * + 63 AS col1 FROM tab0 AS cor0
----
2079
5166
63

query I rowsort
SELECT ALL + 9 AS col2 FROM tab1 cor0
----
9
9
9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9454
SELECT - - 8 DIV - cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

skipif mysql # not compatible
query I rowsort label-9454
SELECT - - 8 / - cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89

query I rowsort
SELECT + - col0 + 93 * cor0.col2 * + col2 FROM tab0 AS cor0
----
101253
58
625243

onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT col0 DIV + 38 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9456
SELECT col0 / + 38 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT col0 - - 96 * 81 FROM tab0 AS cor0
----
7800
7811
7865

query I rowsort
SELECT - col2 + 59 * col0 FROM tab2 AS cor0
----
386
4576
4623

query I rowsort
SELECT ALL + tab2.col1 + tab2.col0 AS col0 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9460
SELECT + + col0 DIV 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9460
SELECT + + col0 / 85 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col2 - 57 * col0 FROM tab0 AS cor0
----
-1335
-1994
-4991

query I rowsort
SELECT col0 + col2 * cor0.col0 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT + 48 + col2 AS col1 FROM tab0 AS cor0
----
130
49
81

query I rowsort
SELECT cor0.col1 * - col2 * 82 AS col0 FROM tab2 AS cor0
----
-125788
-52972
-68634

query I rowsort
SELECT ALL - tab1.col0 / col1 + col1 FROM tab1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0 WHERE ( col0 ) IN ( tab0.col2 )
----

query I rowsort
SELECT ALL + col1 * col1 + - 10 FROM tab0
----
7386
8271
9399

onlyif mysql # use DIV operator for integer division
query I rowsort label-9468
SELECT + 98 DIV + col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9468
SELECT + 98 / + col1 AS col2 FROM tab0
----
1
1
1

query I rowsort
SELECT 29 + col1 + + ( + tab2.col1 ) * + col1 AS col1 FROM tab2
----
1021
335
3569

query I rowsort
SELECT ALL + 45 + + col1 * 26 AS col2 FROM tab2 cor0
----
1579
487
851

query I rowsort
SELECT DISTINCT + + 82 * + col1 AS col2 FROM tab0 AS cor0
----
7052
7462
7954

query I rowsort
SELECT 13 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT - + col1 * 26 FROM tab2 cor0
----
-1534
-442
-806

query I rowsort
SELECT + col0 + ( ( col0 ) ) FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT DISTINCT - col2 * - col0 + + 89 * col0 FROM tab2 AS cor0
----
10033
812
8970

query I rowsort
SELECT DISTINCT - tab0.col1 - tab0.col1 FROM tab0
----
-172
-182
-194

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab1
----
-29
-74
-93

query I rowsort
SELECT ALL - col2 * + col1 * col0 - - col0 FROM tab1
----
-36416
-4209
-99760

onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL - + col2 DIV col1 + col2 FROM tab2 AS cor0
----
26
27
36

skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL - + col2 / col1 + col2 FROM tab2 AS cor0
----
26
27
36

query I rowsort
SELECT 56 * - cor0.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e81d27f37c10012a9e9d0af0b6c15c83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9481
SELECT + 47 DIV tab0.col1 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9481
SELECT + 47 / tab0.col1 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2

query I rowsort
SELECT - + col1 + - 51 + cor0.col2 AS col0 FROM tab2 AS cor0
----
-30
-55
-84

onlyif mysql # use DIV operator for integer division
query I rowsort label-9483
SELECT + 4 * 50 + col0 DIV - col2 FROM tab0 cor0
----
165
199
200

skipif mysql # not compatible
query I rowsort label-9483
SELECT + 4 * 50 + col0 / - col2 FROM tab0 cor0
----
165
199
200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192

query I rowsort
SELECT 38 * - col2 FROM tab1 AS cor0
----
-2052
-2166
-3648

query I rowsort
SELECT + col1 * col0 * + 50 AS col2 FROM tab1 AS cor0
----
32000
3900
52000

query I rowsort
SELECT + cor0.col2 + col2 * - 70 FROM tab2 AS cor0
----
-1794
-1863
-2622

query I rowsort
SELECT DISTINCT - + col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930

query I rowsort
SELECT ALL cor0.col2 * - col0 + + ( + col1 ) - col0 FROM tab0 AS cor0
----
-7296
-730
27

query I rowsort
SELECT ALL - 33 * + col0 + - 69 + - 81 FROM tab1 AS cor0
----
-2262
-249
-2790

query I rowsort
SELECT ALL - 22 - + col1 AS col0 FROM tab1 AS cor0
----
-32
-35
-48

query I rowsort
SELECT col1 + + 37 * ( col0 ) * + col1 FROM tab0
----
125712
299754
76454

query I rowsort
SELECT + col2 + + ( + tab2.col0 ) + tab2.col2 AS col1 FROM tab2
----
130
155
61

query I rowsort
SELECT ALL col0 + - tab0.col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9495
SELECT ALL - col2 * - ( - 71 ) / - tab0.col1 + CAST( NULL AS SIGNED ) * col0 / col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9495
SELECT ALL - col2 * - ( - 71 ) / - tab0.col1 + CAST ( NULL AS INTEGER ) * col0 / col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - tab0.col1 * + 45 + col0 FROM tab0
----
-3846
-4006
-4330

onlyif mysql # use DIV operator for integer division
query I rowsort label-9497
SELECT DISTINCT col0 DIV - ( col1 ) + - col0 * col1 FROM tab1
----
-1046
-646
-78

skipif mysql # not compatible
query I rowsort label-9497
SELECT DISTINCT col0 / - ( col1 ) + - col0 * col1 FROM tab1
----
-1046
-646
-78

query I rowsort
SELECT - col0 + - col2 * col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT + + cor0.col2 + + ( col2 ) FROM tab0 cor0
----
164
2
66

query I rowsort
SELECT - - ( col0 ) + col2 FROM tab0 AS cor0
----
171
36
57

query I rowsort
SELECT DISTINCT 55 * col1 AS col1 FROM tab1 AS cor0
----
1430
550
715

query I rowsort
SELECT ALL - - col0 + - 59 * col1 FROM tab0 AS cor0
----
-5050
-5280
-5688

query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 * - col2 AS col2 FROM tab0 cor0
----
-70
-7387
-816

query I rowsort
SELECT - - col1 + ( + cor0.col2 ) FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL + col0 * col2 - - col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT DISTINCT 75 + col1 AS col2 FROM tab0 AS cor0
----
161
166
172

query I rowsort
SELECT ALL + + col0 * - 17 AS col0 FROM tab1 AS cor0
----
-1088
-1360
-51

query I rowsort
SELECT col2 * 48 + col2 FROM tab0 AS cor0
----
1617
4018
49

query I rowsort
SELECT ALL + - col0 + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + 29 + + col2 FROM tab0 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - 18 * col1 AS col1 FROM tab1 AS cor0
----
180
234
468

query I rowsort
SELECT DISTINCT + 79 + 68 FROM tab2, tab2 AS cor0
----
147

query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9514
SELECT ALL col2 * + CAST( - col1 AS SIGNED ) + col1 * - tab1.col1 AS col0 FROM tab1
----
-1417
-2080
-670

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL col2 * + CAST ( - col1 AS INTEGER ) + col1 * - tab1.col1 AS col0 FROM tab1
----
-1417
-2080
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col1 col1 FROM tab0 AS cor0
----
2064
3395
8099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + col1 + col2 col2 FROM tab0 cor0
----
140
161
215

query I rowsort
SELECT ALL - - col2 * - 50 - col2 AS col1 FROM tab0 AS cor0
----
-1683
-4182
-51

query I rowsort
SELECT 3 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-46
-6081
-6238

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9519
SELECT ( col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9519
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9520
SELECT DISTINCT - + 42 / col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - + 42 / col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col1 * + col1 * 94 + col1 + + cor0.col2 * + ( 24 ) AS col1 FROM tab2 AS cor0
----
-26237
-326531
-89655

query I rowsort
SELECT DISTINCT - + 5 * col2 FROM tab0 AS cor0
----
-165
-410
-5

query I rowsort
SELECT ALL + - ( col2 ) * + 97 AS col1 FROM tab0 AS cor0
----
-3201
-7954
-97

query I rowsort
SELECT DISTINCT - col2 + + col1 + ( col2 ) * col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
36433
4184
99757

onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT DISTINCT + col1 - cor0.col1 DIV + col0 col2 FROM tab2 AS cor0
----
17
27
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT + col1 - cor0.col1 / + col0 col2 FROM tab2 AS cor0
----
17
27
59

query I rowsort
SELECT DISTINCT cor0.col2 + col0 FROM tab0 cor0
----
171
36
57

query I rowsort
SELECT DISTINCT col1 * col2 * tab1.col0 + col2 * col2 * col1 - 41 * + col0 FROM tab1
----
216368
66346
79905

query I rowsort
SELECT tab2.col1 * + col2 + 7 * - col0 - + col1 FROM tab2
----
757
76
929

onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT ALL 54 * col1 DIV - col1 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-9529
SELECT ALL 54 * col1 / - col1 FROM tab0
----
-54
-54
-54

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT col0 * 82 AS col2 FROM tab2 AS cor0
----
574
6396
6478

query I rowsort
SELECT ALL - - col1 + + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + 81 * col0 col1 FROM tab1 cor0
----
240
5120
6400

query I rowsort
SELECT ALL - col0 * - col1 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720

query I rowsort
SELECT col0 * col2 + col2 FROM tab1 cor0
----
216
3705
7776

query I rowsort
SELECT DISTINCT - + col0 + - ( 91 ) FROM tab1 AS cor0
----
-155
-171
-94

query I rowsort
SELECT - + cor0.col1 + + 33 * + col2 FROM tab0 AS cor0
----
-64
1003
2615

query I rowsort
SELECT - col1 - col0 AS col1 FROM tab1 cor0
----
-29
-74
-93

query I rowsort
SELECT ALL + col1 * col0 * 60 FROM tab2 AS cor0
----
13020
276120
80580

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9540
SELECT - col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT - col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9541
SELECT ALL - cor0.col1 DIV 32 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL - cor0.col1 / 32 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + - col0 + ( col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62

query I rowsort
SELECT + 72 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # use DIV operator for integer division
query I rowsort label-9544
SELECT DISTINCT + - col1 DIV col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT + - col1 / col2 + - col1 FROM tab1 AS cor0
----
-10
-13
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * - 44 + col0 col1 FROM tab1 AS cor0
----
135
2880
3600

query I rowsort
SELECT - + col0 + + cor0.col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + ( cor0.col1 ) * ( + 16 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001e088ec841b6540fea17904ebc7440

query I rowsort
SELECT DISTINCT + col2 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964

query I rowsort
SELECT ALL - + 61 AS col0 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT ALL - cor0.col2 + + col2 * + col0 AS col2 FROM tab0 cor0
----
34
7216
759

query I rowsort
SELECT ALL 30 * - col1 + 0 * + ( + cor0.col1 ) * ( + 92 ) AS col0 FROM tab0 AS cor0
----
-2580
-2730
-2910

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + col2 * + 75 col1 FROM tab1
----
4074
4299
7224

query I rowsort
SELECT DISTINCT + + 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + 76 + cor0.col2 - 72 AS col0 FROM tab0 AS cor0
----
37
5
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9555
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif mysql # not compatible
query I rowsort label-9555
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 * col1 col1 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT DISTINCT + cor0.col2 * col0 * - 39 + col0 * col1 * col1 - - 57 FROM tab1 AS cor0
----
-135815
-285943
-4233

query I rowsort
SELECT + + col1 * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099

query I rowsort
SELECT + cor0.col2 * + col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1523
736
754

query I rowsort
SELECT ALL + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

query I rowsort
SELECT ALL ( col2 ) * - col0 FROM tab0
----
-35
-7298
-792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col2 ) * + col1 col1 FROM tab1 AS cor0
----
1248
1404
570

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col1 col2 FROM tab1 AS cor0
----
1105
2210
850

onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT + 16 + + 49 DIV - col2 AS col1 FROM tab0 AS cor0
----
-33
15
16

skipif mysql # not compatible
query I rowsort label-9564
SELECT + 16 + + 49 / - col2 AS col1 FROM tab0 AS cor0
----
-33
15
16

onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT col1 DIV - 79 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9565
SELECT col1 / - 79 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9566
SELECT + + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9566
SELECT + + col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT + 20 DIV - col0 + col2 FROM tab0 AS cor0
----
1
33
82

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 20 / - col0 + col2 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL - ( + 54 ) + - col0 * tab0.col1 + - 50 AS col1 FROM tab0
----
-2168
-3499
-8203

onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT CAST( + col1 AS SIGNED ) DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9569
SELECT CAST ( + col1 AS INTEGER ) / col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - 93 * - col2 * col1 AS col1 FROM tab2
----
142662
60078
77841

query I rowsort
SELECT - col1 * col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930

query I rowsort
SELECT - col1 + 30 + col2 AS col2 FROM tab0 cor0
----
-23
-66
21

query I rowsort
SELECT 95 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - cor0.col0 AS REAL ) AS col1 FROM tab0, tab2 cor0
----
-7
-78
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 54 * - cor0.col2 col0 FROM tab0 cor0
----
-151
-1868
-4519

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9576
SELECT ( 93 ) + col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ( 93 ) + col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - 48 * col1 FROM tab2 AS cor0
----
10416
220896
64464

query I rowsort
SELECT ALL - col1 * - 42 FROM tab2
----
1302
2478
714

query I rowsort
SELECT ALL ( 5 ) + col2 FROM tab1 AS cor0
----
101
59
62

query I rowsort
SELECT ALL ( 62 ) * col1 FROM tab0 cor0
----
5332
5642
6014

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9581
SELECT - CAST( NULL AS SIGNED ) + + 20 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9581
SELECT - CAST ( NULL AS INTEGER ) + + 20 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 * - col0 AS col2 FROM tab1 cor0
----
-159
-3392
-4240

query I rowsort
SELECT DISTINCT - 58 + + col2 FROM tab2 AS cor0
----
-20
-31
-32

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9584
SELECT + CAST( col1 * col1 AS SIGNED ) col0 FROM tab1
----
100
169
676

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9584
SELECT + CAST ( col1 * col1 AS INTEGER ) col0 FROM tab1
----
100
169
676

onlyif mysql # use DIV operator for integer division
query I rowsort label-9585
SELECT DISTINCT - tab2.col1 DIV + tab2.col1 col2 FROM tab2
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT - tab2.col1 / + tab2.col1 col2 FROM tab2
----
-1

query I rowsort
SELECT tab2.col1 - - 57 * + col2 FROM tab2
----
1541
1570
2183

query I rowsort
SELECT DISTINCT - 49 FROM tab1
----
-49

query I rowsort
SELECT ALL - 58 * tab0.col1 * + ( 41 * col0 ) AS col0 FROM tab0
----
-19259422
-4908192
-8073310

query I rowsort
SELECT - - col2 * ( - 83 ) AS col1 FROM tab0 AS cor0
----
-2739
-6806
-83

query I rowsort
SELECT + 88 * col0 AS col1 FROM tab1
----
264
5632
7040

query I rowsort
SELECT + col1 * + tab2.col1 * - 62 AS col2 FROM tab2
----
-17918
-215822
-59582

query I rowsort
SELECT ALL - 53 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a

onlyif mysql # use DIV operator for integer division
query I rowsort label-9593
SELECT - col0 DIV col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

skipif mysql # not compatible
query I rowsort label-9593
SELECT - col0 / col0 + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
32
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9594
SELECT DISTINCT - col1 DIV + ( - col1 ) + col1 * tab2.col2 AS col0 FROM tab2
----
1535
647
838

skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT - col1 / + ( - col1 ) + col1 * tab2.col2 AS col0 FROM tab2
----
1535
647
838

query I rowsort
SELECT col1 * cor0.col0 + ( + col2 + 37 ) * col0 FROM tab0 cor0
----
18690
3744
4725

query I rowsort
SELECT ALL - cor0.col0 * + 77 AS col1 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT + + col1 * col0 + 27 AS col2 FROM tab0 AS cor0
----
2091
3422
8126

query I rowsort
SELECT - + col0 * + 22 + + ( + cor0.col0 ) FROM tab1 AS cor0
----
-1344
-1680
-63

query I rowsort
SELECT + + ( - col0 ) * ( - col1 ) + col2 * 55 AS col2 FROM tab1 AS cor0
----
3048
3775
6320

query I rowsort
SELECT 92 + - 84 - col0 * + col2 FROM tab2
----
-181
-2020
-2994

query I rowsort
SELECT ALL + + 43 AS col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + - 79 + + col0 AS col0 FROM tab0 AS cor0
----
-44
-55
10

query I rowsort
SELECT + col0 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693

query I rowsort
SELECT ALL + col2 - - col0 AS col1 FROM tab0
----
171
36
57

onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT DISTINCT col0 + + col1 DIV + col1 AS col0 FROM tab1
----
4
65
81

skipif mysql # not compatible
query I rowsort label-9605
SELECT DISTINCT col0 + + col1 / + col1 AS col0 FROM tab1
----
4
65
81

query I rowsort
SELECT DISTINCT - 10 + + tab2.col1 FROM tab2
----
21
49
7

query I rowsort
SELECT - col1 * col2 * col0 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT + 3 + + col0 + col2 FROM tab1
----
124
179
60

query I rowsort
SELECT col2 * col0 + + col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 - 56 AS col1 FROM tab1
----
-66
-69
-82

query I rowsort
SELECT + col1 - 14 * 41 AS col2 FROM tab0
----
-477
-483
-488

query I rowsort
SELECT DISTINCT + 14 + - col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
-114062
-5089
-52714

onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT ALL - col2 DIV cor0.col1 + + col1 DIV cor0.col1 FROM tab1 AS cor0
----
-1
-4
-6

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - col2 / cor0.col1 + + col1 / cor0.col1 FROM tab1 AS cor0
----
-1
-4
-6

query I rowsort
SELECT DISTINCT 99 + + col1 FROM tab2 AS cor0
----
116
130
158

query I rowsort
SELECT DISTINCT col2 + - 24 + col1 * col0 AS col0 FROM tab1 AS cor0
----
108
1112
673

query I rowsort
SELECT 35 * + col1 FROM tab2 AS cor0
----
1085
2065
595

query I rowsort
SELECT ALL col2 * col1 + - col2 * cor0.col1 * 40 FROM tab0 AS cor0
----
-110682
-291018
-3783

query I rowsort
SELECT DISTINCT + - 15 + - 70 FROM tab2 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 - col1 * col0 * 33 col2 FROM tab1 AS cor0
----
-21157
-2611
-34357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + col1 + col1 col2 FROM tab2 cor0
----
177
51
93

query I rowsort
SELECT ( 7 ) AS col1 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9622
SELECT ALL - + col2 + cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-46
-57
-96

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL - + col2 + cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-46
-57
-96

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9625
SELECT ALL + CAST( 1 AS SIGNED ) * col0 col1 FROM tab1
----
3
64
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + CAST ( 1 AS INTEGER ) * col0 col1 FROM tab1
----
3
64
80

query I rowsort
SELECT ALL + 1 * - col1 FROM tab2 AS cor0
----
-17
-31
-59

query I rowsort
SELECT DISTINCT - 5 + 19 AS col0 FROM tab1 AS cor0
----
14

query I rowsort
SELECT 55 + + 54 + col0 AS col0 FROM tab0 AS cor0
----
133
144
198

onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT + - ( col0 ) + col1 DIV - col0 FROM tab2 AS cor0
----
-11
-78
-79

skipif mysql # not compatible
query I rowsort label-9629
SELECT + - ( col0 ) + col1 / - col0 FROM tab2 AS cor0
----
-11
-78
-79

query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 * col1 * ( - col2 + col2 ) AS col0 FROM tab1 cor0
----
3
64
80

query I rowsort
SELECT col2 + col0 * col1 AS col2 FROM tab1
----
1136
132
697

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f

query I rowsort
SELECT 36 * + cor0.col0 FROM tab1 cor0
----
108
2304
2880

query I rowsort
SELECT - 43 * + col1 AS col0 FROM tab2 cor0
----
-1333
-2537
-731

query I rowsort
SELECT + + col0 + + 51 AS col0 FROM tab0 AS cor0
----
140
75
86

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9636
SELECT col0 * + CAST( + 6 AS SIGNED ) col2 FROM tab1 AS cor0
----
18
384
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9636
SELECT col0 * + CAST ( + 6 AS INTEGER ) col2 FROM tab1 AS cor0
----
18
384
480

query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792

onlyif mysql # use DIV operator for integer division
query I rowsort label-9638
SELECT - col1 + - ( 18 ) * col1 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
-190
-247
-486

skipif mysql # not compatible
query I rowsort label-9638
SELECT - col1 + - ( 18 ) * col1 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
-190
-247
-486

query I rowsort
SELECT + col2 + + 93 + + col2 AS col1 FROM tab0 cor0
----
159
257
95

query I rowsort
SELECT DISTINCT tab1.col1 * + 47 AS col2 FROM tab1
----
1222
470
611

onlyif mysql # use DIV operator for integer division
query I rowsort label-9641
SELECT - col2 DIV col0 + - col1 * - col2 * ( - 4 * col2 ) + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-126711
-300366
-470017

skipif mysql # not compatible
query I rowsort label-9641
SELECT - col2 / col0 + - col1 * - col2 * ( - 4 * col2 ) + col2 * + col2 AS col2 FROM tab1 AS cor0
----
-126711
-300366
-470017

query I rowsort
SELECT DISTINCT col0 + 75 * + col2 AS col2 FROM tab1 AS cor0
----
4053
4339
7280

query I rowsort
SELECT ALL - 45 * col0 + col0 * - 50 + - col1 FROM tab2
----
-696
-7469
-7522

query I rowsort
SELECT ALL 25 + col0 AS col2 FROM tab2
----
103
104
32

query I rowsort
SELECT - - col1 + + col0 + ( col2 + + cor0.col0 ) FROM tab0 cor0
----
167
168
351

query I rowsort
SELECT + cor0.col0 + - ( - col0 ) * + col1 FROM tab0 AS cor0
----
2088
3430
8188

query I rowsort
SELECT 97 + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 25c2449f89e7a6b10ba5542426ceba26

query I rowsort
SELECT - col1 + 16 * col1 AS col2 FROM tab1 AS cor0
----
150
195
390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col1 FROM tab1, tab1 cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892

query I rowsort
SELECT ALL - + cor0.col0 * col2 + - col2 + + col0 FROM tab1 AS cor0
----
-213
-3641
-7696

query I rowsort
SELECT ALL + col1 * ( + cor0.col2 * - col2 ) - 17 AS col0 FROM tab0 cor0
----
-114
-611901
-93671

query I rowsort
SELECT DISTINCT col0 * + ( - 97 + cor0.col2 ) AS col1 FROM tab0 AS cor0
----
-1335
-1536
-3360

query I rowsort
SELECT + ( + col1 ) * - col0 + cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 - - col1 col2 FROM tab1 AS cor0
----
17
20
33

onlyif mysql # use DIV operator for integer division
query I rowsort label-9656
SELECT + 69 DIV 70 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9656
SELECT + 69 / 70 + + col1 AS col0 FROM tab0 AS cor0
----
86
91
97

query I rowsort
SELECT + 13 + + 57 * + col2 FROM tab1 AS cor0
----
3091
3262
5485

query I rowsort
SELECT DISTINCT + - col1 - 32 FROM tab1 cor0
----
-42
-45
-58

query I rowsort
SELECT DISTINCT 46 + + 97 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
143

onlyif mysql # use DIV operator for integer division
query I rowsort label-9660
SELECT + col0 + - col2 * - CAST( - col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-9
34
7

skipif mysql # not compatible
query I rowsort label-9660
SELECT + col0 + - col2 * - CAST ( - col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-9
34
7

onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT + 59 DIV col0 + col1 * col0 FROM tab0 AS cor0
----
2066
3396
8099

skipif mysql # not compatible
query I rowsort label-9661
SELECT + 59 / col0 + col1 * col0 FROM tab0 AS cor0
----
2066
3396
8099

query I rowsort
SELECT 18 + col0 AS col0 FROM tab2 cor0
----
25
96
97

query I rowsort
SELECT 24 * + col2 + 9 * col2 FROM tab1 AS cor0
----
1782
1881
3168

query I rowsort
SELECT DISTINCT col0 + - col1 * - col1 AS col1 FROM tab2
----
3559
368
968

query I rowsort
SELECT - + cor0.col1 + + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661

query I rowsort
SELECT ALL - + col0 + col2 * ( col0 * cor0.col0 ) AS col1 FROM tab1 AS cor0
----
233408
483
614320

onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT - col1 + - col1 DIV + col0 FROM tab0 AS cor0
----
-89
-92
-99

skipif mysql # not compatible
query I rowsort label-9667
SELECT - col1 + - col1 / + col0 FROM tab0 AS cor0
----
-89
-92
-99

query I rowsort
SELECT DISTINCT + + 76 AS col0 FROM tab0 AS cor0
----
76

query I rowsort
SELECT ALL cor0.col2 + - col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944

query I rowsort
SELECT + - col0 * col0 + col2 FROM tab0 AS cor0
----
-1224
-543
-7839

query I rowsort
SELECT DISTINCT + col0 + col0 + col1 FROM tab1 AS cor0
----
138
173
32

query I rowsort
SELECT ALL - + col0 - + ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96

query I rowsort
SELECT ALL - + cor0.col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( col0 ) * - col1 col2 FROM tab1 AS cor0
----
-1027
-52
-630

query I rowsort
SELECT DISTINCT + 49 * - col1 AS col0 FROM tab0 AS cor0
----
-4214
-4459
-4753

query I rowsort
SELECT ALL + + 32 AS col0 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + 10 AS col2 FROM tab0
----
10
10
10

query I rowsort
SELECT DISTINCT + cor0.col0 * - 54 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-1296
-1890
-4806

query I rowsort
SELECT - + cor0.col0 * - col1 + + 12 FROM tab0 cor0
----
2076
3407
8111

skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * - col2 / CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82

query I rowsort
SELECT ALL + + 47 AS col1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9682
SELECT col2 + col1 DIV col1 FROM tab1 AS cor0
----
55
58
97

skipif mysql # not compatible
query I rowsort label-9682
SELECT col2 + col1 / col1 FROM tab1 AS cor0
----
55
58
97

query I rowsort
SELECT ALL + - col2 + - col1 * + 10 FROM tab0 AS cor0
----
-893
-971
-992

query I rowsort
SELECT ALL 6 + col2 - tab1.col1 FROM tab1
----
34
53
89

query I rowsort
SELECT + + col2 + - cor0.col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-7363
-8199
-9408

query I rowsort
SELECT DISTINCT col0 - 16 FROM tab2
----
-9
62
63

query I rowsort
SELECT ALL + col2 + tab1.col1 - col0 * col1 AS col1 FROM tab1
----
-573
-931
2

onlyif mysql # use DIV operator for integer division
query I rowsort label-9688
SELECT ALL 94 - 18 DIV + col2 FROM tab0
----
76
94
94

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL 94 - 18 / + col2 FROM tab0
----
76
94
94

query I rowsort
SELECT ALL - ( 6 ) * col2 - - ( 59 ) * col1 FROM tab0
----
4876
4877
5717

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 - + col0 col1 FROM tab1
----
-3
-64
-80

query I rowsort
SELECT ALL col2 + + cor0.col1 * col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 * - col2 FROM tab0 AS cor0
----
-7209
-768
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT ALL + col1 + + col0 DIV + cor0.col1 FROM tab2 AS cor0
----
21
31
60

skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL + col1 + + col0 / + cor0.col1 FROM tab2 AS cor0
----
21
31
60

query I rowsort
SELECT DISTINCT - cor0.col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7

query I rowsort
SELECT ALL col2 * col0 * - col1 AS col1 FROM tab0
----
-3395
-664118
-68112

query I rowsort
SELECT col2 + + col2 * col2 FROM tab0
----
1122
2
6806

onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT DISTINCT + tab1.col2 DIV - col2 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9697
SELECT DISTINCT + tab1.col2 / - col2 AS col2 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * col2 FROM tab1 AS cor0
----
2919
3313
9296

skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( ( + col1 ) AS REAL ) FROM tab2
----
17
31
59

query I rowsort
SELECT ALL - + col0 * col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
-2356
-494
648

query I rowsort
SELECT ( col0 ) * + cor0.col2 FROM tab1 AS cor0
----
162
3648
7680

query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810

query I rowsort
SELECT 62 + cor0.col0 FROM tab0 AS cor0
----
151
86
97

query I rowsort
SELECT DISTINCT col0 * col1 * + col0 + col1 AS col2 FROM tab2
----
106114
1550
359015

query I rowsort
SELECT ( - tab1.col2 ) - - col1 FROM tab1
----
-28
-47
-83

query I rowsort
SELECT - col1 * + 45 AS col1 FROM tab2
----
-1395
-2655
-765

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9707
SELECT CAST( col0 AS SIGNED ) - col1 AS col1 FROM tab1
----
-23
54
67

skipif mysql # not compatible
query I rowsort label-9707
SELECT CAST ( col0 AS INTEGER ) - col1 AS col1 FROM tab1
----
-23
54
67

query I rowsort
SELECT DISTINCT col1 * 40 * col0 + + col1 * col1 FROM tab0
----
145209
332241
89956

query I rowsort
SELECT ALL + col1 + 14 AS col0 FROM tab0
----
100
105
111

onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT DISTINCT 98 * - col1 + col2 DIV + col2 FROM tab0 AS cor0
----
-8427
-8917
-9505

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT 98 * - col1 + col2 / + col2 FROM tab0 AS cor0
----
-8427
-8917
-9505

query I rowsort
SELECT ALL + 44 * col0 + - col1 * col2 * col0 FROM tab2 AS cor0
----
-116220
-47558
-5551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + col0 * + cor0.col2 col1 FROM tab2 AS cor0
----
2087
220
3019

query I rowsort
SELECT ALL + 54 * + col1 FROM tab1 AS cor0
----
1404
540
702

onlyif mysql # use DIV operator for integer division
query I rowsort label-9714
SELECT DISTINCT + col1 + - col2 DIV - col1 FROM tab2 AS cor0
----
19
31
59

skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT + col1 + - col2 / - col1 FROM tab2 AS cor0
----
19
31
59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + col1 col1 FROM tab2
----
137
38
96

onlyif mysql # use DIV operator for integer division
query I rowsort label-9717
SELECT DISTINCT + col2 + + col0 DIV col2 AS col2 FROM tab1
----
54
58
96

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + col2 + + col0 / col2 AS col2 FROM tab1
----
54
58
96

query I rowsort
SELECT col0 + col0 * col2 - + col1 FROM tab0
----
-27
7296
730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col0 col0 FROM tab0
----
-171
-36
-57

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL BETWEEN col0 * col0 + col0 AND NULL
----

query I rowsort
SELECT ALL - col0 / col1 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * col1 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9722
SELECT + cor0.col2 DIV - col2 + + col0 FROM tab1 AS cor0
----
2
63
79

skipif mysql # not compatible
query I rowsort label-9722
SELECT + cor0.col2 / - col2 + + col0 FROM tab1 AS cor0
----
2
63
79

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( + col1 + cor0.col2 )
----

onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT DISTINCT cor0.col2 DIV - col0 AS col2 FROM tab1 cor0
----
-1
-18
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT cor0.col2 / - col0 AS col2 FROM tab1 cor0
----
-1
-18
0

query I rowsort
SELECT ALL - col0 * + col2 FROM tab0 WHERE NOT NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( col0 )
----

query I rowsort
SELECT ALL + col2 + col2 * tab0.col2 FROM tab0
----
1122
2
6806

query I rowsort
SELECT ALL - tab2.col0 * + col2 * col1 + + col0 FROM tab2
----
-119574
-50955
-5852

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col2 FROM tab0
----
119
173
98

query I rowsort
SELECT - col2 - tab2.col1 FROM tab2
----
-55
-58
-85

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( tab0.col0 * + col0 )
----

query I rowsort
SELECT ALL + col0 * col2 - - col1 FROM tab0
----
132
7389
878

query I rowsort
SELECT ALL - tab2.col1 * tab2.col2 FROM tab2
----
-1534
-646
-837

query I rowsort
SELECT DISTINCT + col1 * + tab1.col1 + + col1 AS col0 FROM tab1
----
110
182
702

query I rowsort
SELECT - col2 * + col0 + + tab1.col0 AS col1 FROM tab1
----
-159
-3584
-7600

query I rowsort
SELECT + col0 + col2 * - col0 AS col1 FROM tab2
----
-182
-1950
-2923

query I rowsort
SELECT ALL + col2 + - col1 * + col0 * col1 AS col1 FROM tab0
----
-177471
-329314
-736927

query I rowsort
SELECT DISTINCT col2 * - col1 + col1 + col1 FROM tab2 WHERE NOT ( NULL ) >= + tab2.col2
----

query I rowsort
SELECT DISTINCT - cor0.col0 + col1 * col1 AS col0 FROM tab0 cor0
----
7372
8192
9374

query I rowsort
SELECT DISTINCT - - col0 * col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112

query I rowsort
SELECT - + col0 * - col2 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081

query I rowsort
SELECT DISTINCT - + col2 * + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736

query I rowsort
SELECT DISTINCT - cor0.col0 + - col0 * + col1 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680

onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT col2 DIV + col1 + - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9744
SELECT col2 / + col1 + - col1 col1 FROM tab0 AS cor0
----
-86
-91
-97

query I rowsort
SELECT col0 * + col2 + - col0 FROM tab1
----
159
3584
7600

query I rowsort
SELECT + col0 + + col2 + col2 FROM tab1
----
111
178
272

query I rowsort
SELECT DISTINCT col2 + + col2 + col2 FROM tab2
----
114
78
81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT + 25 DIV - col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9748
SELECT + 25 / - col1 FROM tab2 AS cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + 93 * - col0 + + col0 * - col0 col1 FROM tab2 AS cor0
----
-13245
-13495
-607

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT - CAST( NULL AS SIGNED ) + cor0.col0 * col0 + - 31 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-9750
SELECT - CAST ( NULL AS INTEGER ) + cor0.col0 * col0 + - 31 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 col1 FROM tab2 AS cor0
----
-1360
-248
-4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col1 col0 FROM tab0 AS cor0
----
110
132
180

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab0, tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT - col0 * - col1 + - cor0.col1 FROM tab2 AS cor0
----
1326
186
4543

query I rowsort
SELECT ALL - ( + 7 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT + col0 * col1 - col1 FROM tab0
----
1978
3298
8008

query I rowsort
SELECT DISTINCT col0 + - col2 + col0 FROM tab2
----
-13
120
130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # use DIV operator for integer division
query I rowsort label-9759
SELECT tab1.col0 DIV - col2 AS col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT tab1.col0 / - col2 AS col0 FROM tab1
----
-1
0
0

onlyif mysql # use DIV operator for integer division
query I rowsort label-9760
SELECT - col2 DIV col0 - + col0 FROM tab1 AS cor0
----
-21
-64
-81

skipif mysql # not compatible
query I rowsort label-9760
SELECT - col2 / col0 - + col0 FROM tab1 AS cor0
----
-21
-64
-81

onlyif mysql # use DIV operator for integer division
query I rowsort label-9761
SELECT - col1 DIV col1 - col2 * + col2 FROM tab2 AS cor0
----
-1445
-677
-730

skipif mysql # not compatible
query I rowsort label-9761
SELECT - col1 / col1 - col2 * + col2 FROM tab2 AS cor0
----
-1445
-677
-730

query I rowsort
SELECT DISTINCT 50 + - tab2.col2 * col1 AS col2 FROM tab2
----
-1484
-596
-787

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9763
SELECT ALL col2 * + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9764
SELECT - col1 DIV 35 AS col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9764
SELECT - col1 / 35 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT + col1 * col2 + + col2 FROM tab2 cor0
----
1560
684
864

query I rowsort
SELECT + 1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9

onlyif mysql # use DIV operator for integer division
query I rowsort label-9767
SELECT cor0.col1 * col2 + + col2 DIV + col0 FROM tab1 AS cor0
----
1249
1422
570

skipif mysql # not compatible
query I rowsort label-9767
SELECT cor0.col1 * col2 + + col2 / + col0 FROM tab1 AS cor0
----
1249
1422
570

query I rowsort
SELECT col2 + + 99 FROM tab2 AS cor0
----
125
126
137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 * col0 - - col1 col1 FROM tab1
----
134
3601
7597

query I rowsort
SELECT - + col1 * col1 + - 74 FROM tab1 AS cor0
----
-174
-243
-750

onlyif mysql # use DIV operator for integer division
query I rowsort label-9771
SELECT + col2 DIV col1 + col2 * - col2 FROM tab2 cor0
----
-1442
-676
-729

skipif mysql # not compatible
query I rowsort label-9771
SELECT + col2 / col1 + col2 * - col2 FROM tab2 cor0
----
-1442
-676
-729

query I rowsort
SELECT DISTINCT tab2.col2 - + ( col1 * col0 ) FROM tab2
----
-1305
-190
-4576

query I rowsort
SELECT + - cor0.col2 + 97 FROM tab2 cor0
----
59
70
71

query I rowsort
SELECT ALL + - cor0.col2 * ( - col1 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551

query I rowsort
SELECT ALL col2 * 83 + col2 AS col2 FROM tab1 AS cor0
----
4536
4788
8064

query I rowsort
SELECT DISTINCT - 72 + 96 FROM tab0
----
24

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9777
SELECT CAST( + col1 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

skipif mysql # not compatible
query I rowsort label-9777
SELECT CAST ( + col1 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT ALL col0 * + col0 + + col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9

query I rowsort
SELECT + 44 + + 59 FROM tab2 AS cor0
----
103
103
103

query I rowsort
SELECT ALL + cor0.col1 * - 57 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b3c8b5d59b492d1f7afa6ee176eab00d

query I rowsort
SELECT ALL col1 * + col2 * 9 AS col2 FROM tab0
----
25542
67158
873

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 + cor0.col2 * col2 col2 FROM tab1 AS cor0
----
10256
2994
3889

query I rowsort
SELECT 42 + + 36 FROM tab2 AS cor0
----
78
78
78

query I rowsort
SELECT - + ( - 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-9785
SELECT - CAST( NULL AS SIGNED ) / 69 + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9785
SELECT - CAST ( NULL AS INTEGER ) / 69 + - col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - cor0.col1 * 27 + col0 FROM tab0 AS cor0
----
-2298
-2368
-2584

query I rowsort
SELECT + 63 * cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 00f1e0e28e30789a2c84cb16c853f6fe

onlyif mysql # use DIV operator for integer division
query I rowsort label-9788
SELECT ( - col1 ) DIV cor0.col0 FROM tab2 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9788
SELECT ( - col1 ) / cor0.col0 FROM tab2 AS cor0
----
-4
0
0

query I rowsort
SELECT DISTINCT - ( + col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80

query I rowsort
SELECT ALL - col1 + + 24 AS col1 FROM tab0 AS cor0
----
-62
-67
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676

skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 + CAST ( col0 AS REAL ) + - col2 FROM tab0 AS cor0
----
15
69
96

query I rowsort
SELECT - col1 * - ( 8 ) FROM tab1 AS cor0
----
104
208
80

query I rowsort
SELECT ALL - + col0 - 80 * col1 AS col0 FROM tab1 AS cor0
----
-1120
-2083
-864

onlyif mysql # use DIV operator for integer division
query I rowsort label-9795
SELECT DISTINCT col2 DIV col1 col0 FROM tab2
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9795
SELECT DISTINCT col2 / col1 col0 FROM tab2
----
0
2

query I rowsort
SELECT DISTINCT - col1 - + col0 * col0 FROM tab0 AS cor0
----
-1322
-662
-8012

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) + col0 col0 FROM tab1 AS cor0
----
128
160
6

query I rowsort
SELECT col0 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76

query I rowsort
SELECT DISTINCT + cor0.col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70

onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT col0 * + col2 + + cor0.col0 DIV col2 + + col1 * 61 FROM tab1 AS cor0
----
1748
4259
8473

skipif mysql # not compatible
query I rowsort label-9800
SELECT col0 * + col2 + + cor0.col0 / col2 + + col1 * 61 FROM tab1 AS cor0
----
1748
4259
8473

onlyif mysql # use DIV operator for integer division
query I rowsort label-9801
SELECT - - 49 + col0 * + col1 DIV col1 col2 FROM tab2 AS cor0
----
127
128
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9801
SELECT - - 49 + col0 * + col1 / col1 col2 FROM tab2 AS cor0
----
127
128
56

query I rowsort
SELECT DISTINCT + 99 * col0 AS col1 FROM tab1 AS cor0
----
297
6336
7920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT + 33 + + col1 AS col0 FROM tab2 AS cor0
----
50
64
92

query I rowsort
SELECT ALL + + col1 + col2 + + col2 FROM tab1 cor0
----
124
134
205

query I rowsort
SELECT - col1 + - cor0.col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
-110
-182
-702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 + - col2 * 33 * 83 + col2 col2 FROM tab2 AS cor0
----
-103978
-71122
-73860

query I rowsort
SELECT + col2 * col1 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1140
2496
2808

query I rowsort
SELECT ALL + col1 * cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830

query I rowsort
SELECT ALL - col1 * - ( col0 ) - + col0 * 24 AS col2 FROM tab0 AS cor0
----
1488
2555
5963

onlyif mysql # use DIV operator for integer division
query I rowsort label-9811
SELECT ALL + col1 + + 61 DIV - col0 - col2 AS col2 FROM tab2 AS cor0
----
-21
-4
33

skipif mysql # not compatible
query I rowsort label-9811
SELECT ALL + col1 + + 61 / - col0 - col2 AS col2 FROM tab2 AS cor0
----
-21
-4
33

query I rowsort
SELECT + 35 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT + col1 + + 58 * + col1 * cor0.col1 FROM tab1 AS cor0
----
39234
5810
9815

query I rowsort
SELECT + 3 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 651d73b1d4aaebc5a692f9febc779292

onlyif mysql # use DIV operator for integer division
query I rowsort label-9815
SELECT - col0 + + 74 * col0 DIV 21 AS col1 FROM tab2 AS cor0
----
17
196
199

skipif mysql # not compatible
query I rowsort label-9815
SELECT - col0 + + 74 * col0 / 21 AS col1 FROM tab2 AS cor0
----
17
196
199

query I rowsort
SELECT - - 48 * - col1 + - col2 FROM tab2 cor0
----
-1515
-2858
-854

query I rowsort
SELECT + + 2 + 98 FROM tab1 AS cor0
----
100
100
100

query I rowsort
SELECT DISTINCT + + 18 * - 95 + - col0 FROM tab2 AS cor0
----
-1717
-1788
-1789

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( tab2.col0 + col2 ) col0 FROM tab2
----
134
163
65

query I rowsort
SELECT + tab1.col0 + ( col0 ) + - 98 FROM tab1
----
-92
30
62

query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272

query I rowsort
SELECT ALL ( - col0 ) * + col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9823
SELECT + - CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9823
SELECT + - CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 30 * col2 FROM tab2 cor0
----
1140
780
810

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

skipif mysql # not compatible
query I rowsort label-9825
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
-2064
-3395
-8099

query I rowsort
SELECT + + ( + cor0.col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96

query I rowsort
SELECT ALL - 39 AS col0 FROM tab1 cor0
----
-39
-39
-39

query I rowsort
SELECT - col0 * col1 + + col2 * col0 FROM tab2 AS cor0
----
-2574
-28
1659

query I rowsort
SELECT + - col2 + + col1 * 15 FROM tab1 AS cor0
----
336
93
99

query I rowsort
SELECT col1 + 27 AS col0 FROM tab1
----
37
40
53

query I rowsort
SELECT DISTINCT col1 * + col2 + col2 * ( - 50 * + col1 ) AS col2 FROM tab0
----
-139062
-365638
-4753

query I rowsort
SELECT DISTINCT - col0 + 50 * + col0 FROM tab0
----
1176
1715
4361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col2 ) + - cor0.col0 col0 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT DISTINCT 32 * - cor0.col2 AS col1 FROM tab0, tab1 cor0
----
-1728
-1824
-3072

query I rowsort
SELECT - - 53 * col0 + col0 + col2 FROM tab1 AS cor0
----
216
3513
4416

query I rowsort
SELECT + 51 + col0 AS col0 FROM tab0 AS cor0
----
140
75
86

query I rowsort
SELECT DISTINCT + col2 * + ( - col2 ) + + 75 + ( - col2 ) AS col2 FROM tab2
----
-1407
-627
-681

query I rowsort
SELECT ALL + 36 * col1 FROM tab1
----
360
468
936

query I rowsort
SELECT - col1 + + col1 * col1 + - cor0.col2 FROM tab0 AS cor0
----
7277
8108
9311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col1 FROM tab1 AS cor0
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 + + col0 * + col0 * cor0.col1 col2 FROM tab1 AS cor0
----
263
41034
83293

query I rowsort
SELECT ALL + + 55 * - col1 FROM tab0 AS cor0
----
-4730
-5005
-5335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + col2 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab2, tab0 AS cor0
----
79

query I rowsort
SELECT col2 + + 27 * + col2 FROM tab0 AS cor0
----
2296
28
924

query I rowsort
SELECT ALL ( ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79

query I rowsort
SELECT ALL + ( - 10 ) FROM tab1
----
-10
-10
-10

query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to f1666fadc663c90ea9374fcb108b4477

query I rowsort
SELECT + ( + 40 ) + + col1 * + 44 FROM tab2 AS cor0
----
1404
2636
788

onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT + + cor0.col2 DIV - 34 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9850
SELECT + + cor0.col2 / - 34 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT - 75 + col2 * - col2 FROM tab0 AS cor0
----
-1164
-6799
-76

query I rowsort
SELECT ALL + 97 + + ( - col1 ) + - 48 AS col1 FROM tab2 AS cor0
----
-10
18
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + 96 col1 FROM tab1 AS cor0
----
7392
7392
7392

query I rowsort
SELECT ALL - 19 * + ( - col1 ) + - col0 FROM tab0 cor0
----
1610
1640
1808

query I rowsort
SELECT 54 FROM tab2, tab0, tab0 AS cor0, tab1 AS cor1
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32

query I rowsort
SELECT ALL col0 - + 98 AS col1 FROM tab2
----
-19
-20
-91

onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT ALL + col2 * - ( - col0 ) DIV col0 - - 78 AS col0 FROM tab0
----
111
160
79

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL + col2 * - ( - col0 ) / col0 - - 78 AS col0 FROM tab0
----
111
160
79

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9858
SELECT col0 + + CAST( - 30 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
-236
-310
-777

skipif mysql # not compatible
query I rowsort label-9858
SELECT col0 + + CAST ( - 30 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
-236
-310
-777

query I rowsort
SELECT DISTINCT + 85 FROM tab0, tab1 cor0
----
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col2 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( col1 ) col2 FROM tab1 AS cor0
----
-1248
-1404
-570

query I rowsort
SELECT + col2 * - ( - col1 ) + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9863
SELECT DISTINCT CAST( + col0 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
49
6084
6241

query I rowsort
SELECT DISTINCT + ( - col2 ) + + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1406
650
702

query I rowsort
SELECT ALL - ( + col1 ) + + cor0.col1 * + col1 FROM tab1 cor0
----
156
650
90

query I rowsort
SELECT ALL col1 + - cor0.col2 * + col1 FROM tab0 AS cor0
----
-2752
-7371
0

query I rowsort
SELECT cor0.col0 + + ( - col0 ) AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9868
SELECT DISTINCT + + col0 / 1 - + col2 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT + + col0 / 1 - + col2 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9869
SELECT ALL col2 DIV + ( - col0 * 15 + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9869
SELECT ALL col2 / + ( - col0 * 15 + - col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 34 + - col0 FROM tab1 AS cor0
----
-114
-37
-98

query I rowsort
SELECT DISTINCT - 53 * + col1 + - col0 FROM tab0 AS cor0
----
-4582
-4912
-5176

query I rowsort
SELECT - col2 * 76 FROM tab2
----
-1976
-2052
-2888

query I rowsort
SELECT + cor0.col2 + - 82 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 94ea0dd34876cf22a3e0da76ae271b47

onlyif mysql # use DIV operator for integer division
query I rowsort label-9874
SELECT col0 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9874
SELECT col0 / - col2 col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT ( col0 ) + col1 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-576
-75
-960

query I rowsort
SELECT - 5 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL + - cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837

query I rowsort
SELECT + col2 * ( 71 ) + - col1 * 78 AS col1 FROM tab1 AS cor0
----
1806
3267
5802

query I rowsort
SELECT + - col0 * cor0.col1 + 15 FROM tab1 AS cor0
----
-1025
-625
-63

query I rowsort
SELECT DISTINCT - cor0.col0 + - ( col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760

query I rowsort
SELECT DISTINCT cor0.col2 * + ( 59 ) FROM tab1 AS cor0
----
3186
3363
5664

query I rowsort
SELECT ALL - col2 + - col1 + 12 AS col1 FROM tab2 AS cor0
----
-43
-46
-73

query I rowsort
SELECT ALL + col1 * + col2 + + col0 * - col2 + col2 FROM tab2 AS cor0
----
-2318
-468
675

query I rowsort
SELECT DISTINCT + col0 * + 65 * + col2 AS col0 FROM tab0 AS cor0
----
2275
474370
51480

query I rowsort
SELECT ALL + + col2 + + ( - col0 + col2 ) AS col2 FROM tab2 AS cor0
----
-26
-3
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * 7 col1 FROM tab0
----
548
578
644

query I rowsort
SELECT - 88 + col2 FROM tab0
----
-55
-6
-87

query I rowsort
SELECT + col1 - + col0 * ( col1 ) FROM tab0
----
-1978
-3298
-8008

onlyif mysql # use DIV operator for integer division
query I rowsort label-9889
SELECT ALL + col1 DIV + col0 col1 FROM tab0
----
1
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL + col1 / + col0 col1 FROM tab0
----
1
2
3

query I rowsort
SELECT - col1 * ( - ( col1 ) ) + col0 * + col0 + + col2 FROM tab1
----
4253
6665
739

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9891
SELECT + cor0.col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

skipif mysql # not compatible
query I rowsort label-9891
SELECT + cor0.col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9892
SELECT - col1 + CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9892
SELECT - col1 + CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - cor0.col0 * 52 + col0 * - col2 FROM tab1 AS cor0
----
-11840
-318
-6976

query I rowsort
SELECT col2 + - cor0.col1 * 15 AS col1 FROM tab0 AS cor0
----
-1257
-1283
-1454

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9895
SELECT DISTINCT - CAST( 85 AS SIGNED ) AS col2 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT - CAST ( 85 AS INTEGER ) AS col2 FROM tab1
----
-85

query I rowsort
SELECT 27 - col1 FROM tab0
----
-59
-64
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col2 col1 FROM tab1
----
-28
-47
-83

onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT col1 * col2 + 8 DIV - col2 col1 FROM tab0 AS cor0
----
2838
7462
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9898
SELECT col1 * col2 + 8 / - col2 col1 FROM tab0 AS cor0
----
2838
7462
89

query I rowsort
SELECT ALL - col2 + + cor0.col1 * col1 FROM tab2 AS cor0
----
251
3455
934

query I rowsort
SELECT ALL 91 + cor0.col2 AS col1 FROM tab2 AS cor0
----
117
118
129

query I rowsort
SELECT + + cor0.col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
1120
704
81

query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to d5761ba4e40f0c65536d1d3c9de4e566

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1, tab2 cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0

query I rowsort
SELECT ALL - col2 + 36 + + col0 AS col2 FROM tab1 AS cor0
----
-15
20
43

query I rowsort
SELECT ALL col1 * + col1 * col2 - + col2 AS col2 FROM tab2 AS cor0
----
10944
25920
90480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col0 + + col1 col1 FROM tab2
----
137
38
96

query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1, tab0 cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f

query I rowsort
SELECT - 21 * col0 * + col1 + col0 * tab2.col0 AS col2 FROM tab2
----
-21962
-4508
-90558

query I rowsort
SELECT DISTINCT + ( - 16 ) + col0 * 47 AS col1 FROM tab1 cor0
----
125
2992
3744

query I rowsort
SELECT ALL + ( + cor0.col1 ) + col2 FROM tab2 AS cor0
----
55
58
85

query I rowsort
SELECT DISTINCT 60 + + col0 FROM tab2 AS cor0
----
138
139
67

query I rowsort
SELECT - 97 * col1 + col1 * col2 FROM tab2 AS cor0
----
-1003
-2170
-4189

query I rowsort
SELECT ALL - col2 + + 12 * - col2 FROM tab0 AS cor0
----
-1066
-13
-429

query I rowsort
SELECT cor0.col0 + - 28 FROM tab0 AS cor0
----
-4
61
7

query I rowsort
SELECT ALL - col1 + + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008

query I rowsort
SELECT + 84 * - col0 * - col2 + + tab2.col1 AS col0 FROM tab2
----
15907
170411
252185

query I rowsort
SELECT + col2 + + cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864

query I rowsort
SELECT ALL - 97 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-291
-6208
-7760

query I rowsort
SELECT 78 * - col0 AS col0 FROM tab2 AS cor0
----
-546
-6084
-6162

query I rowsort
SELECT DISTINCT cor0.col2 - col1 * ( - 70 ) AS col2 FROM tab2 AS cor0
----
1228
2197
4156

query I rowsort
SELECT ALL - + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82

query I rowsort
SELECT ALL + ( cor0.col2 ) * - col0 * ( cor0.col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436

query I rowsort
SELECT DISTINCT ( col2 ) * cor0.col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002

query I rowsort
SELECT ALL - + col2 + + col1 + + col2 FROM tab1 cor0
----
10
13
26

query I rowsort
SELECT ALL + col0 * - cor0.col1 * + col0 + - col1 AS col0 FROM tab2 AS cor0
----
-106114
-1550
-359015

query I rowsort
SELECT DISTINCT + + col2 * + col1 + 10 FROM tab2 AS cor0
----
1544
656
847

query I rowsort
SELECT + col1 - 96 FROM tab0 AS cor0
----
-10
-5
1

query I rowsort
SELECT - col2 - + 74 FROM tab2 AS cor0
----
-100
-101
-112

onlyif mysql # use DIV operator for integer division
query I rowsort label-9929
SELECT + col0 DIV 69 - - 10 * col2 FROM tab2 cor0
----
261
270
381

skipif mysql # not compatible
query I rowsort label-9929
SELECT + col0 / 69 - - 10 * col2 FROM tab2 cor0
----
261
270
381

query I rowsort
SELECT - - col0 + col0 - + col0 FROM tab1 AS cor0
----
3
64
80

query I rowsort
SELECT ALL col0 * 94 AS col1 FROM tab2 AS cor0
----
658
7332
7426

onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT DISTINCT + + cor0.col0 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT + + cor0.col0 / ( col0 ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + col0 * + col1 + col0 * col1 + + col1 FROM tab1
----
1290
182
2093

query I rowsort
SELECT DISTINCT - + col1 + + col0 AS col1 FROM tab1 cor0
----
-23
54
67

query I rowsort
SELECT DISTINCT + col2 * col1 - - col2 * + col1 * 35 FROM tab1 AS cor0
----
20520
44928
50544

query I rowsort
SELECT + - col2 + - 28 AS col2 FROM tab0 AS cor0
----
-110
-29
-61

query I rowsort
SELECT DISTINCT - + col0 + ( + col1 ) + col0 FROM tab2 AS cor0
----
17
31
59

query I rowsort
SELECT ALL - + col1 * col2 * 96 FROM tab2 AS cor0
----
-147264
-62016
-80352

query I rowsort
SELECT DISTINCT col1 * - col0 - 91 AS col0 FROM tab0
----
-2155
-3486
-8190

query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) * col2 AS col0 FROM tab1
----
233472
486
614400

onlyif mysql # use DIV operator for integer division
query I rowsort label-9941
SELECT ALL + col1 DIV 90 - + col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

skipif mysql # not compatible
query I rowsort label-9941
SELECT ALL + col1 / 90 - + col2 * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680

query I rowsort
SELECT + - col2 + col2 * 94 FROM tab0 AS cor0
----
3069
7626
93

query I rowsort
SELECT - col0 * 69 FROM tab1 AS cor0
----
-207
-4416
-5520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + 24 col0 FROM tab2 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6

query I rowsort
SELECT - ( + cor0.col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79

query I rowsort
SELECT cor0.col1 + + col0 * + col2 - 87 * - col2 * + col2 AS col1 FROM tab1 AS cor0
----
253880
286321
809485

onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT + ( + col2 ) DIV - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT + ( + col2 ) / - col0 AS col0 FROM tab2 AS cor0
----
-3
0
0

query I rowsort
SELECT DISTINCT - col2 * col0 + col1 AS col1 FROM tab1
----
-136
-3638
-7667

query I rowsort
SELECT DISTINCT col1 * 53 + 14 + tab2.col1 FROM tab2
----
1688
3200
932

onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT col1 * ( + col1 ) DIV col1 FROM tab0
----
86
91
97

skipif mysql # not compatible
query I rowsort label-9951
SELECT col1 * ( + col1 ) / col1 FROM tab0
----
86
91
97

query I rowsort
SELECT - + 89 * - col2 * - col2 FROM tab0 AS cor0
----
-598436
-89
-96921

onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT + 96 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-96

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 96 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-96

query I rowsort
SELECT ALL + 69 + col2 AS col2 FROM tab0 cor0
----
102
151
70

query I rowsort
SELECT ALL 25 + - col1 * ( col2 + - col2 ) AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT + tab2.col1 + - ( + col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + 8 * col0 AS col0 FROM tab0
----
216
315
801

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9958
SELECT CAST( + 52 AS SIGNED ) * col2 AS col1 FROM tab2
----
1352
1404
1976

skipif mysql # not compatible
query I rowsort label-9958
SELECT CAST ( + 52 AS INTEGER ) * col2 AS col1 FROM tab2
----
1352
1404
1976

query I rowsort
SELECT + ( col1 ) * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96

query I rowsort
SELECT ALL + + 91 * col0 FROM tab2 AS cor0
----
637
7098
7189

onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT DISTINCT col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9961
SELECT DISTINCT col1 / + col1 AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col0 * - col1 + - cor0.col2 FROM tab0 AS cor0
----
-2097
-3396
-8181

onlyif mysql # use DIV operator for integer division
query I rowsort label-9963
SELECT 70 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT 70 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL cor0.col0 + + cor0.col2 * + col0 AS col1 FROM tab0 cor0
----
70
7387
816

query I rowsort
SELECT ALL - - 1 + + col1 FROM tab1 AS cor0
----
11
14
27

query I rowsort
SELECT ALL - col0 * - cor0.col0 + 87 AS col1 FROM tab0 AS cor0
----
1312
663
8008

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab2 AS cor0
----
76

onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT DISTINCT 52 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT 52 / col2 AS col2 FROM tab1
----
0

query I rowsort
SELECT - + 58 * - col2 AS col0 FROM tab2 AS cor0
----
1508
1566
2204

query I rowsort
SELECT col1 + + ( + col2 ) FROM tab1 AS cor0
----
109
67
80

query I rowsort
SELECT - col1 - - col1 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + + col2 * + cor0.col1 * - col0 - 43 * col2 FROM tab0 AS cor0
----
-3438
-667644
-69531

onlyif mysql # use DIV operator for integer division
query I rowsort label-9973
SELECT - cor0.col1 DIV + col0 + col1 * + col2 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25943
90506

skipif mysql # not compatible
query I rowsort label-9973
SELECT - cor0.col1 / + col0 + col1 * + col2 * + col1 AS col2 FROM tab2 AS cor0
----
10982
25943
90506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 - + col2 col0 FROM tab0 AS cor0
----
-119
-173
-98

query I rowsort
SELECT ALL col1 * col1 + cor0.col2 FROM tab1 AS cor0
----
157
265
730

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9976
SELECT + - cor0.col0 * - col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9976
SELECT + - cor0.col0 * - col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT + col0 * - col1 + CAST( + col1 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
-2061
-3393
-8098

skipif mysql # not compatible
query I rowsort label-9977
SELECT + col0 * - col1 + CAST ( + col1 AS INTEGER ) / col0 FROM tab0 AS cor0
----
-2061
-3393
-8098

onlyif mysql # use DIV operator for integer division
query I rowsort label-9978
SELECT DISTINCT col0 + col2 DIV + col1 FROM tab1 AS cor0
----
5
69
87

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT col0 + col2 / + col1 FROM tab1 AS cor0
----
5
69
87

query I rowsort
SELECT ALL 32 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT + col2 * + 63 + - ( - cor0.col2 ) FROM tab2 AS cor0
----
1664
1728
2432

query I rowsort
SELECT DISTINCT tab0.col0 * + col0 * col0 AS col1 FROM tab0
----
13824
42875
704969

query I rowsort
SELECT DISTINCT - col2 * 84 AS col0 FROM tab0
----
-2772
-6888
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 6 * col1 + - col2 col2 FROM tab2 cor0
----
132
26
302

query I rowsort
SELECT - + col1 + + ( col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab0, tab0 AS cor0
----
76

query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
3
64
80

query I rowsort
SELECT - cor1.col2 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e

query I rowsort
SELECT 80 * + 96 FROM tab1 AS cor0
----
7680
7680
7680

query I rowsort
SELECT DISTINCT - + 77 * col0 FROM tab0 AS cor0
----
-1848
-2695
-6853

query I rowsort
SELECT + col0 * - col2 + - col2 * + 65 * 27 AS col2 FROM tab1 AS cor0
----
-103683
-176160
-94932

query I rowsort
SELECT ( col2 ) + col1 * col2 FROM tab0 AS cor0
----
2871
7544
98

query I rowsort
SELECT DISTINCT + 53 * col2 * col1 AS col2 FROM tab1 cor0
----
30210
66144
74412

query I rowsort
SELECT ALL - - ( - col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9

query I rowsort
SELECT 1 + 47 * - col0 FROM tab1 AS cor0
----
-140
-3007
-3759

query I rowsort
SELECT ALL ( - col1 ) + cor0.col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col1 ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676

query I rowsort
SELECT - + col1 + col2 * + col0 + - cor0.col1 FROM tab0 AS cor0
----
-159
620
7116

onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9998
SELECT ALL CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab0 cor0
----
7396
8281
9409

query I rowsort
SELECT ALL col0 * 30 FROM tab1 AS cor0
----
1920
2400
90