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(97,1,99)

statement ok
INSERT INTO tab0 VALUES(15,81,47)

statement ok
INSERT INTO tab0 VALUES(87,21,10)

statement ok
INSERT INTO tab1 VALUES(51,14,96)

statement ok
INSERT INTO tab1 VALUES(85,5,59)

statement ok
INSERT INTO tab1 VALUES(91,47,68)

statement ok
INSERT INTO tab2 VALUES(64,77,40)

statement ok
INSERT INTO tab2 VALUES(75,67,58)

statement ok
INSERT INTO tab2 VALUES(46,51,23)

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-0
SELECT - + MAX( DISTINCT - CAST( + + col0 AS SIGNED ) ) col2 FROM tab0 AS cor0
----
15

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1
SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * + + 20 / col1 + - 83 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL - AVG ( DISTINCT + + 78 ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * + + 20 / col1 + - 83 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - - col1 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 + col1 + + - 88 + + col1 col1 FROM tab1
----
-142
-160
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-4
SELECT + 70 DIV - col2 AS col1 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4
SELECT + 70 / - col2 AS col1 FROM tab2
----
-1
-1
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5
SELECT ALL 27 * col0 DIV + + 97 FROM tab1 AS cor0
----
14
23
25

skipif mysql # not compatible
query I rowsort label-5
SELECT ALL 27 * col0 / + + 97 FROM tab1 AS cor0
----
14
23
25

query I rowsort
SELECT + col2 + + - 6 AS col1 FROM tab2 AS cor0
----
17
34
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7
SELECT - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT + col2 + col0 + 35 * col1 FROM tab0 AS cor0
----
231
2897
832

query I rowsort
SELECT 84 + - col0 FROM tab1 AS cor0
----
-1
-7
33

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

query I rowsort
SELECT ALL col2 * col0 * col0 AS col2 FROM tab2 cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT - + 23 + - col2 * - - col0 FROM tab1 AS cor0
----
-4919
-5038
-6211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-13
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT ALL + col2 * - - CAST( NULL AS SIGNED ) * + col1 * + 18 + col0 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT 65 AS col1, - 12 AS col0 FROM tab2
----
65
-12
65
-12
65
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT - + MIN( ALL - - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-16
SELECT - + MIN ( ALL - - col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-17
SELECT DISTINCT COUNT( * ) col0, 72 * - 26 FROM tab0 cor0
----
3
-1872

skipif mysql # not compatible
query II rowsort label-17
SELECT DISTINCT COUNT ( * ) col0, 72 * - 26 FROM tab0 cor0
----
3
-1872

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT DISTINCT - COUNT( * ) * - - 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT - COUNT ( * ) * - - 38 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-19
SELECT CAST( MAX( - 35 ) AS SIGNED ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-19
SELECT CAST ( MAX ( - 35 ) AS INTEGER ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-20
SELECT DISTINCT + - MAX( ALL + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-21
SELECT + col2 * - CAST( NULL AS DECIMAL ) * - + col1 * - 13 * + 2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-21
SELECT + col2 * - CAST ( NULL AS REAL ) * - + col1 * - 13 * + 2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + ( + col1 ) * 29 AS col0, + 8 AS col2 FROM tab1
----
1363
8
145
8
406
8

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE + - col1 * + col2 * + 44 - - + 81 IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT - 32 + - col0 DIV ( col1 ) AS col0 FROM tab0 AS cor0
----
-129
-32
-36

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - 32 + - col0 / ( col1 ) AS col0 FROM tab0 AS cor0
----
-129
-32
-36

query I rowsort
SELECT DISTINCT + col2 * - col0 * - col0 AS col1 FROM tab0 cor0
----
10575
75690
931491

query I rowsort
SELECT - + 82 * - + col1 - - 81 + + - ( col0 ) AS col2 FROM tab0 AS cor0
----
1716
66
6708

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 13 + + col2 + col0 = + col0 + col2
----

query I rowsort
SELECT DISTINCT - - col1 + + 60 AS col2 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + 16 - + - SUM( ALL - col0 ) col2 FROM tab2
----
-169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-29
SELECT DISTINCT + 16 - + - SUM ( ALL - col0 ) col2 FROM tab2
----
-169

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-30
SELECT + 1 DIV MIN( DISTINCT - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-30
SELECT + 1 / MIN ( DISTINCT - 55 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query II rowsort
SELECT + col1, col0 AS col2 FROM tab2 WHERE ( + col2 ) IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-32
SELECT - COUNT( * ) * + MAX( ALL + - 58 ) * + 8 + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
4185

skipif mysql # not compatible
query I rowsort label-32
SELECT - COUNT ( * ) * + MAX ( ALL + - 58 ) * + 8 + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
4185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 AS cor0 WHERE NOT - 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-34
SELECT - 99 DIV + 37 - - - 30 FROM tab0 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-34
SELECT - 99 / + 37 - - - 30 FROM tab0 AS cor0
----
-32
-32
-32

query I rowsort
SELECT - 93 - + - col0 * - + col1 - - col1 - 90 FROM tab2 cor0
----
-2478
-5034
-5141

query II rowsort
SELECT 18 AS col2, - 30 FROM tab0
----
18
-30
18
-30
18
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ( + + SUM( col1 ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-37
SELECT ( + + SUM ( col1 ) ) AS col0 FROM tab0
----
103

query II rowsort
SELECT + - col2 + - 98 AS col2, col2 FROM tab2 WHERE NOT + + 28 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-39
SELECT ALL - 10 DIV + - 41 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-39
SELECT ALL - 10 / + - 41 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-40
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-40
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-41
SELECT ALL + COUNT( ALL - - 67 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL + COUNT ( ALL - - 67 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * 51 AS col0 FROM tab0 AS cor0
----
1071
4131
51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT ALL 50 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-44
SELECT ALL 50 / - col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT MAX( ALL + - col0 ) * 31 FROM tab0
----
-465

skipif mysql # not compatible
query I rowsort label-45
SELECT MAX ( ALL + - col0 ) * 31 FROM tab0
----
-465

query II rowsort
SELECT DISTINCT + col1, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL SUM( + - 60 ) col1 FROM tab1
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-47
SELECT ALL SUM ( + - 60 ) col1 FROM tab1
----
-180

onlyif mysql # DIV for integer division: 
query II rowsort label-48
SELECT + + col2 AS col2, - col0 * 42 DIV + ( - - 41 ) FROM tab1 cor0
----
59
-87
68
-93
96
-52

skipif mysql # not compatible
query II rowsort label-48
SELECT + + col2 AS col2, - col0 * 42 / + ( - - 41 ) FROM tab1 cor0
----
59
-87
68
-93
96
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-49
SELECT ALL - 47 AS col1, CAST( col2 AS SIGNED ) * - + col2 + + - 18 FROM tab0 AS cor0
----
-47
-118
-47
-2227
-47
-9819

skipif mysql # not compatible
query II rowsort label-49
SELECT ALL - 47 AS col1, CAST ( col2 AS INTEGER ) * - + col2 + + - 18 FROM tab0 AS cor0
----
-47
-118
-47
-2227
-47
-9819

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

query II rowsort
SELECT ALL + - 4 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-4
-15
-4
-87
-4
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-52
SELECT ALL 71 + + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-52
SELECT ALL 71 + + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN - col1 AND + + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-54
SELECT + + COUNT( 31 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-54
SELECT + + COUNT ( 31 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT 50, col2 FROM tab1 cor0
----
50
59
50
68
50
96

query II rowsort
SELECT ALL 78 AS col0, col0 FROM tab1 AS cor0
----
78
51
78
85
78
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * 83 <= ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-59
SELECT ALL + 4 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL + 4 / + + col2 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT - 39 < + - 93 )
----

query I rowsort
SELECT + 39 AS col1 FROM tab0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT - 56 + + + col0 AS col1 FROM tab1
----
-5
29
35

query I rowsort
SELECT ALL - 89 + - col0 FROM tab1 AS cor0
----
-140
-174
-180

query I rowsort
SELECT ALL - 62 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-62
-62
-62

query I rowsort
SELECT DISTINCT + + 61 + + + 6 AS col1 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT - + col2 + + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab1 AS cor0
----
110
115
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col1 * 80 / - col0 * - 95 + - ( 67 ) * - - 56
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) NOT IN ( col0 + col1 ) AND NOT NULL <= NULL
----

query II rowsort
SELECT - + 15 + - - col1 + + col2, - 50 * + 40 + + col1 + col2 AS col1 FROM tab0 cor0
----
113
-1872
16
-1969
85
-1900

query I rowsort
SELECT + col1 + + + 67 AS col0 FROM tab2 AS cor0
----
118
134
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 11 + + col1 col0 FROM tab2 AS cor0
----
62
78
88

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT + 44 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
132

skipif mysql # not compatible
query I rowsort label-74
SELECT + 44 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
132

query I rowsort
SELECT DISTINCT - col1 * - ( - 61 ) AS col1 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( col2 ) IS NULL
----
23
40
58

query I rowsort
SELECT 99 + col2 / + 93 AS col1 FROM tab0 AS cor0 WHERE NOT 77 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + 26 IS NOT NULL
----

query II rowsort
SELECT 29 * col0 AS col1, + 16 + col0 FROM tab0 cor0
----
2523
103
2813
113
435
31

query I rowsort
SELECT - 78 FROM tab0 AS cor0 WHERE NOT NULL >= + 12 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT - 58 + + COUNT( * ) col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-81
SELECT - 58 + + COUNT ( * ) col0 FROM tab1 AS cor0
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <> 82 + - + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 97 + - - col0 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 54 < - col2 + - col1 * - col1
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col2 + 88 FROM tab2 AS cor0
----
111
128
146

query I rowsort
SELECT + - 74 * - 51 FROM tab0 cor0
----
3774
3774
3774

onlyif mysql # DIV for integer division: 
query II rowsort label-87
SELECT DISTINCT - + col2 DIV + - 53 + + col0 col0, - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
52
-40
86
-40
92
-40

skipif mysql # not compatible
query II rowsort label-87
SELECT DISTINCT - + col2 / + - 53 + + col0 col0, - ( - - 40 ) AS col1 FROM tab1 AS cor0
----
52
-40
86
-40
92
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-88
SELECT - COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT ( col2 ) * + + 84 AS col1 FROM tab2
----
1932
3360
4872

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL - COUNT( 62 ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-90
SELECT ALL - COUNT ( 62 ) col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - - col0 * 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT COUNT( * ) * + + 42 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-92
SELECT COUNT ( * ) * + + 42 FROM tab2
----
126

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT - col1 IS NULL
----
1
21
81

query I rowsort
SELECT col0 + + + 22 - col0 + col2 * - col0 FROM tab2 cor0
----
-1036
-2538
-4328

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-95
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 70 * col2 = - 98 * - CAST( - 34 AS DECIMAL ) + col1 + + ( 92 ) + + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-95
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 70 * col2 = - 98 * - CAST ( - 34 AS REAL ) + col1 + + ( 92 ) + + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 96 * - - col2 * - col2 FROM tab1 AS cor0 WHERE NULL <= col0 / - + 79 / + + 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT ALL + SUM( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + SUM ( DISTINCT - + col1 ) AS col1 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT + 95 + - 72 AS col0, + ( - col0 ) + - col0 FROM tab0 cor0
----
23
-174
23
-194
23
-30

query I rowsort
SELECT DISTINCT + col2 + - - 50 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT DISTINCT + col1 - CAST( NULL AS SIGNED ) / + - ( + col1 ) - col2 FROM tab0 AS cor0
----
NULL

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

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

query II rowsort
SELECT DISTINCT + + ( col1 ) AS col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 86 > NULL
----

query I rowsort
SELECT - - 84 * - - col1 AS col0 FROM tab2 AS cor0
----
4284
5628
6468

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT + COUNT( * ) * COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-105
SELECT + COUNT ( * ) * COUNT ( * ) col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-106
SELECT 65 * + + ( + COUNT( * ) ) - 81 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-106
SELECT 65 * + + ( + COUNT ( * ) ) - 81 FROM tab1 AS cor0
----
114

query II rowsort
SELECT + col2, - 66 AS col0 FROM tab2
----
23
-66
40
-66
58
-66

query I rowsort
SELECT ALL + ( - 54 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IN ( - + 4, col0 / - col2 * col2, ( - 85 ) )
----

query II rowsort
SELECT + col2, col2 * - 19 + - col1 FROM tab1
----
59
-1126
68
-1339
96
-1838

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-111
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-112
SELECT ALL + COUNT( * ) col2, - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-112
SELECT ALL + COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab2
----
3
-3

query I rowsort
SELECT DISTINCT 86 * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-114
SELECT col1 AS col0, CAST( + + 22 AS SIGNED ) FROM tab0 AS cor0
----
1
22
21
22
81
22

skipif mysql # not compatible
query II rowsort label-114
SELECT col1 AS col0, CAST ( + + 22 AS INTEGER ) FROM tab0 AS cor0
----
1
22
21
22
81
22

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT - 66 * SUM( - col1 ) FROM tab2 AS cor0
----
12870

skipif mysql # not compatible
query I rowsort label-115
SELECT - 66 * SUM ( - col1 ) FROM tab2 AS cor0
----
12870

query I rowsort
SELECT ALL + 70 * + + 15 FROM tab2 AS cor0
----
1050
1050
1050

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE ( - ( col0 ) ) NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE ( - ( col0 ) ) NOT IN ( - col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-118
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT - MIN( DISTINCT - 51 ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-119
SELECT - MIN ( DISTINCT - 51 ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT - COUNT( + 15 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-120
SELECT - COUNT ( + 15 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ( - SUM( + 60 ) ) FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-121
SELECT ( - SUM ( + 60 ) ) FROM tab0
----
-180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT COUNT( * ) FROM tab0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-123
SELECT COUNT ( * ) FROM tab0 WHERE NULL <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 44 NOT IN ( col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT - 44 DIV - col2 + - col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-126
SELECT - 44 / - col2 + - col1 FROM tab2
----
-50
-67
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT COUNT( DISTINCT 87 ) + 69 FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-127
SELECT COUNT ( DISTINCT 87 ) + 69 FROM tab1
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 38 - - col1 FROM tab1
----
43
52
85

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 86 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND - 86 * + col1
----
0

query I rowsort
SELECT DISTINCT col2 * + 22 FROM tab1
----
1298
1496
2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 col0 FROM tab0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 60 col1 FROM tab2
----
1380
2400
3480

query I rowsort
SELECT col1 FROM tab2 WHERE - ( 88 ) * - col0 NOT BETWEEN col1 AND ( + 40 + col0 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - 28 + + MAX( DISTINCT - col2 ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-136
SELECT - 28 + + MAX ( DISTINCT - col2 ) AS col2 FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-137
SELECT - AVG ( DISTINCT + ( ( col2 ) ) ) * CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-138
SELECT DISTINCT - MAX( ALL 88 ) - COUNT( ALL 21 ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT - MAX ( ALL 88 ) - COUNT ( ALL 21 ) FROM tab2
----
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-140
SELECT DISTINCT - 19 + - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-100
-20
-40

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - 19 + - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-100
-20
-40

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL <= col2
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col0 * + 47 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT ALL COUNT( * ) + - 18 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-143
SELECT ALL COUNT ( * ) + - 18 FROM tab0
----
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 ) < 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - ( col2 * 78 ) FROM tab0
----
-54990
-67860
-749034

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT 67 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-146
SELECT 67 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
201

query I rowsort
SELECT ALL 20 AS col1 FROM tab0 AS cor0 WHERE NOT - 70 * + col2 BETWEEN - 61 AND ( col0 * col0 + col1 )
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * col2 col1 FROM tab1 AS cor0 WHERE ( NULL ) <> 13
----

query I rowsort
SELECT ALL + 45 FROM tab1 AS cor0 WHERE NULL >= col2 + + 12 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 - col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + col1 ) FROM tab0 WHERE NULL <= + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT - COUNT( * ) - + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-152
SELECT - COUNT ( * ) - + COUNT ( * ) FROM tab0
----
-6

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT + + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-154
SELECT + + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 * - col1 col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

query I rowsort
SELECT - + col2 * - 45 FROM tab0 AS cor0
----
2115
4455
450

onlyif mysql # DIV for integer division: 
query I rowsort label-157
SELECT + 71 DIV - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-157
SELECT + 71 / - col0 col0 FROM tab1 cor0 WHERE NOT - col0 + - 97 BETWEEN ( col2 ) AND - col2 * 62
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-158
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT DISTINCT + + SUM( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-159
SELECT DISTINCT + + SUM ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT - COUNT( * ) * 24 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-160
SELECT - COUNT ( * ) * 24 FROM tab1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT + SUM( + - col0 ) * - 42 AS col2 FROM tab1
----
9534

skipif mysql # not compatible
query I rowsort label-161
SELECT + SUM ( + - col0 ) * - 42 AS col2 FROM tab1
----
9534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - col0 + 26 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-25
-59
-65

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= ( + 69 * - 78 )
----

query I rowsort
SELECT 49 AS col2 FROM tab1 WHERE NOT 38 + + col0 NOT BETWEEN NULL AND 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-166
SELECT ALL + CAST( + col1 AS SIGNED ) * - 36 AS col2 FROM tab2 cor0
----
-1836
-2412
-2772

skipif mysql # not compatible
query I rowsort label-166
SELECT ALL + CAST ( + col1 AS INTEGER ) * - 36 AS col2 FROM tab2 cor0
----
-1836
-2412
-2772

query I rowsort
SELECT - + col1 * - 71 AS col1 FROM tab0 AS cor0
----
1491
5751
71

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL MIN( DISTINCT 28 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL MIN ( DISTINCT 28 ) AS col2 FROM tab2
----
28

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col0 + - col2 = NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE ( NOT + col2 - + 0 * ( col2 ) IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-170
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE ( NOT + col2 - + 0 * ( col2 ) IS NULL )
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-171
SELECT DISTINCT COUNT( DISTINCT + + CAST( + - col1 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT COUNT ( DISTINCT + + CAST ( + - col1 AS INTEGER ) ) FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-173
SELECT + COUNT( * ) + COUNT( DISTINCT + col2 ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-173
SELECT + COUNT ( * ) + COUNT ( DISTINCT + col2 ) col1 FROM tab0
----
6

query I rowsort
SELECT ALL - col0 * + 64 AS col2 FROM tab2
----
-2944
-4096
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT + 86 + - - ( - 3 ) - - COUNT( * ) * 0 AS col2 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-175
SELECT + 86 + - - ( - 3 ) - - COUNT ( * ) * 0 AS col2 FROM tab1
----
83

query I rowsort
SELECT + 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT 10 FROM tab1 AS cor0 WHERE ( + col2 / - col2 * 74 ) > col2 * 34 + + col2
----

query II rowsort
SELECT ALL - col0 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-51
-14
-85
-5
-91
-47

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 * + + 76 NOT IN ( col1 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT + + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-182
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( - + col0 AS SIGNED ) / 86 + 24 )
----

skipif mysql # not compatible
query III rowsort label-182
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( - + col0 AS INTEGER ) / 86 + 24 )
----

query II rowsort
SELECT + 26 AS col2, + col0 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
26
-107916
26
-315392
26
-376875

onlyif mysql # aggregate syntax: 
query II rowsort label-184
SELECT - - COUNT( * ) AS col2, - 22 AS col2 FROM tab0 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-184
SELECT - - COUNT ( * ) AS col2, - 22 AS col2 FROM tab0 AS cor0
----
3
-22

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + col1 BETWEEN 53 * + col2 AND - col2 * + ( col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE NOT - ( + - col2 ) IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 68 ) * col0 IN ( + 81 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT DISTINCT + 98 - - + COUNT( ALL + 60 ) AS col1 FROM tab2
----
101

skipif mysql # not compatible
query I rowsort label-189
SELECT DISTINCT + 98 - - + COUNT ( ALL + 60 ) AS col1 FROM tab2
----
101

query I rowsort
SELECT col0 * - + col2 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-191
SELECT ( - MAX( ALL 98 ) ) - - 15 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-191
SELECT ( - MAX ( ALL 98 ) ) - - 15 FROM tab1
----
-83

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + ( + + col0 )
----

query I rowsort
SELECT 64 * col0 FROM tab1 WHERE - col1 * - col1 NOT IN ( + 73 )
----
3264
5440
5824

query I rowsort
SELECT DISTINCT ( - col0 ) * + col2 * + col0 AS col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL + + 26 DIV + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + + 26 / + col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 > col2 + + 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-197
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-197
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) > NULL
----

query I rowsort
SELECT - 31 + + 92 FROM tab1 cor0
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT 75 * - + MIN( ALL + col0 ) + - MIN( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-201
SELECT CAST( - - 54 AS SIGNED ) FROM tab2
----
54
54
54

skipif mysql # not compatible
query I rowsort label-201
SELECT CAST ( - - 54 AS INTEGER ) FROM tab2
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT - + 75 + COUNT( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col1
----
-75

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT - + 75 + COUNT ( * ) AS col0 FROM tab1 WHERE NULL BETWEEN NULL AND + + col1
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-203
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-203
SELECT * FROM tab2 WHERE NOT NULL IN ( - + CAST ( NULL AS INTEGER ) + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT - - col2 DIV + 71 FROM tab0 AS cor0
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-205
SELECT - CAST( - col0 AS SIGNED ) - + 9 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-205
SELECT - CAST ( - col0 AS INTEGER ) - + 9 + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 50 * + col2 * + col1 ) BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-207
SELECT - COUNT( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-207
SELECT - COUNT ( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT - 70 col1, - col2 * + col0 AS col1, 78 AS col2 FROM tab1 AS cor0
----
9 values hashing to 93aaccf5b700133e84be6b0b74622306

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-210
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) * + + col2 + - col1 FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-211
SELECT ALL - 65 * - CAST( NULL AS SIGNED ), ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-211
SELECT ALL - 65 * - CAST ( NULL AS INTEGER ), ( col1 ) AS col2 FROM tab1
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT col1 + + col1 * - col1 FROM tab0 WHERE NOT - 82 * + 40 + + col2 - - 40 < col1 + - 41
----

query IIIIII rowsort
SELECT * FROM tab1, tab2 cor0 WHERE ( NULL ) IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - col2 + - col1 - 93 / 2 FROM tab2 WHERE ( NOT NULL <> ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-215
SELECT DISTINCT + CAST( ( + + col0 ) AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-215
SELECT DISTINCT + CAST ( ( + + col0 ) AS INTEGER ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + + COUNT( * ) + 99 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-216
SELECT + + COUNT ( * ) + 99 FROM tab1 AS cor0
----
102

query I rowsort
SELECT col1 AS col0 FROM tab2 cor0 WHERE NOT ( + col2 + col2 * - - col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 * - col0 + - + col0 FROM tab0 AS cor0
----
-240
-7656
-9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + col2 col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT + - col0 + + 32 AS col2 FROM tab1 AS cor0
----
-19
-53
-59

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-222
SELECT + - 90 + + col0 - 96 * + 13 * + - CAST( NULL AS DECIMAL ) * col0 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT + - 90 + + col0 - 96 * + 13 * + - CAST ( NULL AS REAL ) * col0 * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * - 51 col0 FROM tab2 AS cor0
----
-1173
-2040
-2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-224
SELECT ALL col0 + - col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col1 + + + col2 - + 65 * + - col2 + - col2 - + + col1 AS col2 FROM tab2 cor0
----
1495
2600
3770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col2 FROM tab0 AS cor0 WHERE 50 + - 3 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * + 31 / - + col0 / col2 + col0 = 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT MIN( - 39 ) + - + 78 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-228
SELECT MIN ( - 39 ) + - + 78 FROM tab0
----
-117

query I rowsort
SELECT DISTINCT - col0 * 7 + + ( + - col0 ) + + + col1 AS col1 FROM tab1
----
-394
-675
-681

onlyif mysql # DIV for integer division: 
query I rowsort label-230
SELECT ALL 37 DIV + + col2 - - + col2 AS col0 FROM tab0
----
13
47
99

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL 37 / + + col2 - - + col2 AS col0 FROM tab0
----
13
47
99

query I rowsort
SELECT ALL col1 * ( + col1 ) + ( col0 ) AS col2 FROM tab0
----
528
6576
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 76 - - + 36 + MIN( - 3 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-232
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 76 - - + 36 + MIN ( - 3 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE + - col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-234
SELECT - ( + CAST( MIN( ALL 53 ) AS SIGNED ) ) FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-234
SELECT - ( + CAST ( MIN ( ALL 53 ) AS INTEGER ) ) FROM tab1
----
-53

query I rowsort
SELECT ALL col0 + - + 55 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-40
32
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-236
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( col1 * col1 + CAST( - + col2 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-236
SELECT ALL * FROM tab0 AS cor0 WHERE col2 IN ( col1 * col1 + CAST ( - + col2 AS INTEGER ) * + col2 )
----

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 ) IN ( - 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-239
SELECT COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL COUNT( DISTINCT + + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL COUNT ( DISTINCT + + col2 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-241
SELECT + CAST( + - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-241
SELECT + CAST ( + - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT - col0 * + CAST( - 72 AS SIGNED ) AS col0 FROM tab1 cor0
----
3672
6120
6552

skipif mysql # not compatible
query I rowsort label-242
SELECT - col0 * + CAST ( - 72 AS INTEGER ) AS col0 FROM tab1 cor0
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-243
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-244
SELECT DISTINCT col2 + - 29 AS col1 FROM tab0 WHERE NOT + + 98 BETWEEN - CAST( - - col0 AS SIGNED ) AND ( + - col1 * - ( - col1 ) + - col0 )
----
-19
18
70

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT col2 + - 29 AS col1 FROM tab0 WHERE NOT + + 98 BETWEEN - CAST ( - - col0 AS INTEGER ) AND ( + - col1 * - ( - col1 ) + - col0 )
----
-19
18
70

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 90 + - 22 AND + + col0 AND col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-246
SELECT ALL CAST( NULL AS DECIMAL ) * + 17 / + 67 col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-246
SELECT ALL CAST ( NULL AS REAL ) * + 17 / + 67 col2, col1 AS col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT 62 / + + 11 <= + - col1
----
3

skipif mysql # not compatible
query I rowsort label-247
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT 62 / + + 11 <= + - col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-248
SELECT 60 col2, + COUNT( * ) FROM tab2
----
60
3

skipif mysql # not compatible
query II rowsort label-248
SELECT 60 col2, + COUNT ( * ) FROM tab2
----
60
3

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL - COUNT( * ) * + MIN( 12 ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - COUNT ( * ) * + MIN ( 12 ) AS col1 FROM tab0
----
-36

query I rowsort
SELECT DISTINCT AVG ( + 46 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-251
SELECT COUNT( * ) * + + CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-253
SELECT + CAST( COUNT( + - ( + - col0 ) ) AS SIGNED ) AS col0 FROM tab1
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-254
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + - 6, 5 * col0 )
----

query I rowsort
SELECT + 14 + + col0 FROM tab2 AS cor0
----
60
78
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-257
SELECT - col0 DIV + 46 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-257
SELECT - col0 / + 46 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NULL
----
-1
-1
-1

query II rowsort
SELECT col1, 3 * + + ( - col1 ) FROM tab2 AS cor0
----
51
-153
67
-201
77
-231

query II rowsort
SELECT - 20, - col1 AS col2 FROM tab0 AS cor0
----
-20
-1
-20
-21
-20
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-260
SELECT col0 AS col1, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-260
SELECT col0 AS col1, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL + COUNT( * ) * + - CAST( NULL AS SIGNED ) * + ( + COUNT( * ) ) + - COUNT( * ) * 77 + MAX( 81 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + COUNT ( * ) * + - CAST ( NULL AS INTEGER ) * + ( + COUNT ( * ) ) + - COUNT ( * ) * 77 + MAX ( 81 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT SUM( DISTINCT - 77 ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-262
SELECT SUM ( DISTINCT - 77 ) FROM tab0 AS cor0
----
-77

query I rowsort
SELECT + - 30 - + 59 AS col1 FROM tab2 AS cor0
----
-89
-89
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-264
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL AND NOT - CAST( + - 66 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-264
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= NULL AND NOT - CAST ( + - 66 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - COUNT( - col1 ) - + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-265
SELECT - COUNT ( - col1 ) - + - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-266
SELECT + col2 - + col2 + - col1 + - + CAST( NULL AS SIGNED ) / - 69 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-267
SELECT ALL - 33 DIV - CAST( 33 AS SIGNED ) - + - COUNT( * ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - 33 / - CAST ( 33 AS INTEGER ) - + - COUNT ( * ) AS col2 FROM tab1
----
4

query I rowsort
SELECT + col2 - + + col0 AS col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT - col1 - + 8 FROM tab0
----
-29
-89
-9

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT + 22 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col0 FROM tab2 WHERE NOT ( - + col1 / + col2 + + col2 ) > 93 + 32
----
0
0
0

query I rowsort
SELECT - 11 * col0 * ( + 78 ) + col2 AS col2 FROM tab1 AS cor0
----
-43662
-72871
-78010

query I rowsort
SELECT ALL + col2 * col1 * + + 94 FROM tab2 AS cor0
----
110262
289520
365284

query II rowsort
SELECT - - col0 * col0 AS col1, + 77 + - col1 AS col2 FROM tab2 AS cor0
----
2116
26
4096
0
5625
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-275
SELECT DISTINCT + col1 * + 28 + + - CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab1 AS cor0
----
NULL

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

query II rowsort
SELECT ALL - + col1 * - col1 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
196
-96
2209
-68
25
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT MIN( ALL 77 ) * + ( - ( + - COUNT( * ) ) ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-277
SELECT MIN ( ALL 77 ) * + ( - ( + - COUNT ( * ) ) ) AS col1 FROM tab2
----
231

query I rowsort
SELECT ( - ( col0 ) ) AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, - 3 AS col2 FROM tab0
----
15
-3
87
-3
97
-3

query I rowsort
SELECT DISTINCT - + 31 * - col2 * + 63 + col0 AS col2 FROM tab2 AS cor0
----
113349
44965
78184

query I rowsort
SELECT DISTINCT - 90 * col0 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-282
SELECT ALL - + CAST( NULL AS SIGNED ) * - col1 * + col1 + + col2 - + CAST( - 56 AS SIGNED ) + + 47 * - col0 * col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT - 61, - col0 AS col0 FROM tab0 cor0
----
-61
-15
-61
-87
-61
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-284
SELECT + col0 * col0 + - 15 DIV + + 39 col1 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-284
SELECT + col0 * col0 + - 15 / + + 39 col1 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( + + col1 ) ) = - 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - - col1 AS col1, - col2 FROM tab0 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-287
SELECT - CAST( - ( MAX( - - col2 ) ) AS SIGNED ) * + COUNT( * ) col0 FROM tab2 AS cor0
----
174

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

query I rowsort
SELECT DISTINCT 27 + + col2 FROM tab2 cor0
----
50
67
85

query I rowsort
SELECT + col2 - 90 / + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 + + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT 25 DIV - col0 * + col0 col0 FROM tab1
----
0

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

query III rowsort
SELECT * FROM tab0 WHERE - ( + 11 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT - 92 + - COUNT( * ) AS col0 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-293
SELECT - 92 + - COUNT ( * ) AS col0 FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-294
SELECT ALL COUNT( ALL + + 89 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-294
SELECT ALL COUNT ( ALL + + 89 ) AS col1 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col0 FROM tab1 WHERE NULL IS NULL
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 32 BETWEEN NULL AND - col0 * - col0 / - + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 NOT IN ( + - 13, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT DISTINCT MAX( ALL + col0 ) col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-299
SELECT DISTINCT MAX ( ALL + col0 ) col0 FROM tab1
----
91

query I rowsort
SELECT + 45 * + col2 - col1 * + col0 AS col0 FROM tab2
----
-1311
-2415
-3128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 3 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-302
SELECT + - 21 + - + ( 4 ) AS col2, - COUNT( * ) AS col1 FROM tab2 cor0
----
-25
-3

skipif mysql # not compatible
query II rowsort label-302
SELECT + - 21 + - + ( 4 ) AS col2, - COUNT ( * ) AS col1 FROM tab2 cor0
----
-25
-3

query I rowsort
SELECT ALL - - 46 * + col1 * + + ( + ( - col0 ) ) AS col2 FROM tab1 AS cor0
----
-19550
-196742
-32844

query I rowsort
SELECT + - col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT ALL - COUNT( * ) + + 35 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-305
SELECT ALL - COUNT ( * ) + + 35 FROM tab2 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-307
SELECT ALL - + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL <= ( NULL )
----
0

query I rowsort
SELECT ALL + ( + col2 ) + + col2 AS col1 FROM tab2 cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-309
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 52 ) / - - ( - + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-309
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 52 ) / - - ( - + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 98 + col2 FROM tab0 AS cor0
----
108
145
197

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT + MIN( ALL + 77 ) FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-311
SELECT + MIN ( ALL + 77 ) FROM tab0
----
77

query II rowsort
SELECT ALL 62, 91 AS col2 FROM tab1
----
62
91
62
91
62
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-313
SELECT + CAST( NULL AS SIGNED ) AS col1, col0 + 98 FROM tab0
----
NULL
113
NULL
185
NULL
195

skipif mysql # not compatible
query II rowsort label-313
SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 + 98 FROM tab0
----
NULL
113
NULL
185
NULL
195

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + MIN( col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + MIN ( col1 ) AS col2 FROM tab2
----
51

query II rowsort
SELECT ALL col1 col0, + col2 AS col2 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT - col1, 10 AS col1 FROM tab2
----
-51
10
-67
10
-77
10

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-317
SELECT - col0 AS col0, 41 * CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-317
SELECT - col0 AS col0, 41 * CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query I rowsort
SELECT - 83 * - - col2 * + ( - col2 ) FROM tab0 AS cor0
----
183347
813483
8300

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col2 NOT BETWEEN - + 53 AND 35 * - 8 * - - 63 - - - 41 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-320
SELECT ALL - 79, + COUNT( * ) AS col2 FROM tab0 cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-320
SELECT ALL - 79, + COUNT ( * ) AS col2 FROM tab0 cor0
----
-79
3

query I rowsort
SELECT + - 55 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-322
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 * - - CAST( col2 AS SIGNED ) * - col0 * + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-322
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 * - - CAST ( col2 AS INTEGER ) * - col0 * + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 36 ) + - - col2 - - col1 * + - col0 * + col2 * - col1 + - - 21 BETWEEN 80 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT + MIN( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-324
SELECT + MIN ( + + col0 ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-325
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col1 + 40 + col0 * CAST( NULL AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE col1 + 40 + col0 * CAST ( NULL AS INTEGER ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - ( ( - + col1 ) ) AS col0 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-327
SELECT ALL - 0 * col1 + - + 26 * - 55 + + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-328
SELECT ALL - ( + + COUNT( * ) ) + + 14 * - MAX( + col2 ) * + + COUNT( * ) FROM tab0 AS cor0
----
-4161

skipif mysql # not compatible
query I rowsort label-328
SELECT ALL - ( + + COUNT ( * ) ) + + 14 * - MAX ( + col2 ) * + + COUNT ( * ) FROM tab0 AS cor0
----
-4161

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT - COUNT( * ) * - 53 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-329
SELECT - COUNT ( * ) * - 53 FROM tab0
----
159

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + 86 + + + col1 / + + col1 + + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-331
SELECT - col1 AS col1, - col0 - CAST( - col0 AS SIGNED ) FROM tab1
----
-14
0
-47
0
-5
0

skipif mysql # not compatible
query II rowsort label-331
SELECT - col1 AS col1, - col0 - CAST ( - col0 AS INTEGER ) FROM tab1
----
-14
0
-47
0
-5
0

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
1
21
81

query II rowsort
SELECT col0, 31 AS col2 FROM tab1
----
51
31
85
31
91
31

query I rowsort
SELECT DISTINCT col1 * + ( col0 ) AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col1 * + - col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT 85 + - + SUM( DISTINCT col1 ) + - - 58 AS col0 FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT 85 + - + SUM ( DISTINCT col1 ) + - - 58 AS col0 FROM tab0 cor0
----
40

query I rowsort
SELECT ALL + ( - - col0 ) + - 65 + + col2 + - - col1 * + col0 * - - 67 FROM tab2 AS cor0
----
157186
330215
336743

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT ALL - MAX( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
43

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - MAX ( DISTINCT - 43 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 - - - col2 <= col1 + - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT DISTINCT - 64 DIV + ( + col0 ) FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT - 64 / + ( + col0 ) FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT DISTINCT + - col2 DIV + + col2 FROM tab2 AS cor0
----
-1

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

query I rowsort
SELECT + - 45 - col2 * - col0 AS col1 FROM tab0 AS cor0
----
660
825
9558

query I rowsort
SELECT ALL 9 + - + col2 * + col0 FROM tab1 AS cor0
----
-4887
-5006
-6179

onlyif mysql # aggregate syntax: 
query I rowsort label-344
SELECT ALL - + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-344
SELECT ALL - + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT + AVG ( 10 ) FROM tab0 WHERE NOT - 26 * col0 < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 22 col1 FROM tab1 WHERE NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 93 * col0 FROM tab0
----
-1395
-8091
-9021

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-348
SELECT DISTINCT - 36 + + + CAST( NULL AS SIGNED ) + - MIN( + - 37 ) - - - ( COUNT( * ) ) + + 22 * + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - 36 + + + CAST ( NULL AS INTEGER ) + - MIN ( + - 37 ) - - - ( COUNT ( * ) ) + + 22 * + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 53 AS col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT SUM( ALL + - 1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT SUM ( ALL + - 1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-351
SELECT ALL COUNT( * ) DIV - 48 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL COUNT ( * ) / - 48 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT DISTINCT - - SUM( + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-352
SELECT DISTINCT - - SUM ( + col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-353
SELECT CAST( NULL AS SIGNED ), + col1 + 4 + - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
NULL
-16
NULL
-178
NULL
-2158

skipif mysql # not compatible
query II rowsort label-353
SELECT CAST ( NULL AS INTEGER ), + col1 + 4 + - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
NULL
-16
NULL
-178
NULL
-2158

query I rowsort
SELECT col1 * + 26 AS col2 FROM tab1 cor0
----
1222
130
364

onlyif mysql # DIV for integer division: 
query I rowsort label-355
SELECT ALL + - 92 DIV + col1 + + col0 * ( + col0 ) FROM tab2 AS cor0
----
2115
4095
5624

skipif mysql # not compatible
query I rowsort label-355
SELECT ALL + - 92 / + col1 + + col0 * ( + col0 ) FROM tab2 AS cor0
----
2115
4095
5624

query I rowsort
SELECT DISTINCT col0 + - 91 FROM tab0 AS cor0
----
-4
-76
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 50 IS NULL
----

query I rowsort
SELECT 4 + + 87 AS col1 FROM tab2
----
91
91
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-360
SELECT ALL MIN( DISTINCT 68 ) FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-360
SELECT ALL MIN ( DISTINCT 68 ) FROM tab2
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + col0 * - ( + ( - + col0 ) ) AS col1, col2 col0 FROM tab0
----
272
47
7579
10
9508
99

query I rowsort
SELECT DISTINCT - 17 * - col1 - - 28 AS col0 FROM tab2
----
1167
1337
895

query I rowsort
SELECT DISTINCT col0 * - 38 AS col2 FROM tab1
----
-1938
-3230
-3458

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( + - 62 ) * 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - 45 ) * + col2 - col0 FROM tab1
----
2570
2969
4269

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - COUNT( * ) * 13 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( * ) * 13 FROM tab2
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-367
SELECT DISTINCT - 41 DIV - 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-367
SELECT DISTINCT - 41 / - 95 FROM tab2 AS cor0
----
0

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

query II rowsort
SELECT - col0 - - - 36 + col0, 40 AS col0 FROM tab1
----
-36
40
-36
40
-36
40

query I rowsort
SELECT 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT + 93 * 95 FROM tab0 cor0
----
8835
8835
8835

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

query I rowsort
SELECT DISTINCT - ( col2 ) * 53 * + 75 FROM tab1 AS cor0
----
-234525
-270300
-381600

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT + MAX( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-374
SELECT + MAX ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT + col1 DIV + - col2 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-375
SELECT + col1 / + - col2 FROM tab2
----
-1
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT ALL col0 FROM tab2 WHERE NOT - CAST( 21 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-376
SELECT ALL col0 FROM tab2 WHERE NOT - CAST ( 21 AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-377
SELECT ALL col0 DIV ( 77 ) FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-377
SELECT ALL col0 / ( 77 ) FROM tab0
----
0
1
1

query I rowsort
SELECT ALL - 74 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-1679
-2920
-4234

query I rowsort
SELECT DISTINCT - 72 FROM tab0 cor0
----
-72

query I rowsort
SELECT ALL col2 * col1 + + - 86 AS col1 FROM tab2 AS cor0
----
1087
2994
3800

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT + MIN( - - col2 ) + + - ( + + 20 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-381
SELECT + MIN ( - - col2 ) + + - ( + + 20 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-382
SELECT ALL + col1 DIV 87 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT 20 + + 63 * + + 86 * 42 * - col0 FROM tab1
----
-11605336
-19342240
-20707576

query I rowsort
SELECT + 81 - ( ( + col1 ) ) FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-386
SELECT + - ( - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-386
SELECT + - ( - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT ALL + 64 + COUNT( * ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-387
SELECT ALL + 64 + COUNT ( * ) FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT ALL + col1 + col0 + + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
148
209
218

skipif mysql # not compatible
query I rowsort label-388
SELECT ALL + col1 + col0 + + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
148
209
218

query I rowsort
SELECT ALL - ( - col1 ) + - col0 FROM tab2
----
-8
13
5

query II rowsort
SELECT DISTINCT 9 - - col1, - col0 AS col1 FROM tab1
----
14
-85
23
-51
56
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-391
SELECT 6, COUNT( * ) col2 FROM tab1
----
6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-391
SELECT 6, COUNT ( * ) col2 FROM tab1
----
6
3

onlyif mysql # aggregate syntax: 
query I rowsort label-392
SELECT DISTINCT - 40 * COUNT( * ) col1 FROM tab0
----
-120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-392
SELECT DISTINCT - 40 * COUNT ( * ) col1 FROM tab0
----
-120

query I rowsort
SELECT 22 - + col0 FROM tab2
----
-24
-42
-53

query II rowsort
SELECT DISTINCT col0, + col0 + + 82 AS col1 FROM tab2
----
46
128
64
146
75
157

query I rowsort
SELECT DISTINCT col0 * - col0 * col2 AS col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT + ( - - col0 ) IS NOT NULL
----

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

query II rowsort
SELECT ALL + col1, 96 AS col2 FROM tab1
----
14
96
47
96
5
96

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT + COUNT( DISTINCT + + col2 ) + - - 72 AS col1 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-399
SELECT + COUNT ( DISTINCT + + col2 ) + - - 72 AS col1 FROM tab0 cor0
----
75

query II rowsort
SELECT ALL + col1 AS col2, - col0 + + 76 FROM tab0 AS cor0
----
1
-21
21
-11
81
61

query I rowsort
SELECT DISTINCT + col0 + - + 56 + - - col1 FROM tab1 AS cor0
----
34
82
9

query I rowsort
SELECT - 1 + - + ( + 52 ) FROM tab1 cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query II rowsort label-403
SELECT ALL + 68 + - MAX( DISTINCT col0 ), 69 AS col2 FROM tab0
----
-29
69

skipif mysql # not compatible
query II rowsort label-403
SELECT ALL + 68 + - MAX ( DISTINCT col0 ), 69 AS col2 FROM tab0
----
-29
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / col0 * + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL - COUNT( ALL - - col1 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL - COUNT ( ALL - - col1 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 49 * + col2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 * + ( - 19 ) col1 FROM tab1 AS cor0
----
25536
5605
60724

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

onlyif mysql # aggregate syntax: 
query I rowsort label-410
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 95 )
----
0

skipif mysql # not compatible
query I rowsort label-410
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= ( 95 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT 55 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-411
SELECT 55 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

query I rowsort
SELECT - col0 * - 69 * 92 FROM tab1 AS cor0
----
323748
539580
577668

onlyif mysql # aggregate syntax: 
query I rowsort label-413
SELECT ALL ( MAX( DISTINCT + + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-413
SELECT ALL ( MAX ( DISTINCT + + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL 34 * + 6 AS col0 FROM tab0
----
204
204
204

query I rowsort
SELECT ALL + ( col2 ) * - + 13 FROM tab1
----
-1248
-767
-884

query I rowsort
SELECT DISTINCT 0 * - - col2 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-417
SELECT DISTINCT + col0 * ( - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + col0 * ( - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( + col2, - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col1 ) col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-420
SELECT ALL - COUNT( * ), SUM( + CAST( - col0 AS SIGNED ) ) * 68 AS col1 FROM tab2 AS cor0
----
-3
-12580

skipif mysql # not compatible
query II rowsort label-420
SELECT ALL - COUNT ( * ), SUM ( + CAST ( - col0 AS INTEGER ) ) * 68 AS col1 FROM tab2 AS cor0
----
-3
-12580

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT MIN( col0 ) col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-421
SELECT MIN ( col0 ) col1 FROM tab1 AS cor0
----
51

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-423
SELECT ALL ( - ( - CAST( NULL AS DECIMAL ) ) ) * col0 / - 50 * col2 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-424
SELECT 34 + MAX( ALL - 62 ) * SUM( DISTINCT - 65 ) FROM tab0 AS cor0
----
4064

skipif mysql # not compatible
query I rowsort label-424
SELECT 34 + MAX ( ALL - 62 ) * SUM ( DISTINCT - 65 ) FROM tab0 AS cor0
----
4064

query I rowsort
SELECT + 42 + col0 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT - - col0 + + col1 * - col0 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT - 23 + COUNT( * ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - 23 + COUNT ( * ) FROM tab1 AS cor0
----
-20

query I rowsort
SELECT + - 43 + - col1 FROM tab2 AS cor0
----
-110
-120
-94

query I rowsort
SELECT ALL - + col1 + col0 * + + col2 AS col2 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( 18 ) FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT ALL - ( - col1 ) AS col2 FROM tab2 WHERE + ( - col2 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - - col2, - 64 - + col2, - + col1, + col1 + + CAST( - col2 AS SIGNED ) + col2, - col2, + + col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-434
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NULL NOT IN ( - - col2, - 64 - + col2, - + col1, + col1 + + CAST ( - col2 AS INTEGER ) + col2, - col2, + + col0 + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT ALL + 79 - + - 19 * + COUNT( * ) col1 FROM tab2
----
136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-435
SELECT ALL + 79 - + - 19 * + COUNT ( * ) col1 FROM tab2
----
136

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-437
SELECT + MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-437
SELECT + MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * 73 col1 FROM tab0
----
6059
6059
6059

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

query II rowsort
SELECT - col1 AS col1, - 66 AS col2 FROM tab1
----
-14
-66
-47
-66
-5
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT COUNT( ALL - col0 ) * + 62 AS col2 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-441
SELECT COUNT ( ALL - col0 ) * + 62 AS col2 FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-442
SELECT - SUM( DISTINCT - ( - 58 ) ) AS col0 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-442
SELECT - SUM ( DISTINCT - ( - 58 ) ) AS col0 FROM tab1 AS cor0
----
-58

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

query II rowsort
SELECT - col1 AS col2, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT ALL - 60 * - COUNT( * ) * - 67 AS col0 FROM tab0 AS cor0
----
-12060

skipif mysql # not compatible
query I rowsort label-446
SELECT ALL - 60 * - COUNT ( * ) * - 67 AS col0 FROM tab0 AS cor0
----
-12060

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - 43 * - MIN( - - col0 ) AS col1 FROM tab0
----
645

skipif mysql # not compatible
query I rowsort label-447
SELECT - 43 * - MIN ( - - col0 ) AS col1 FROM tab0
----
645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-448
SELECT DISTINCT CAST( + 14 AS SIGNED ) AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-448
SELECT DISTINCT CAST ( + 14 AS INTEGER ) AS col2 FROM tab1
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT + COUNT( * ) * + COUNT( * ) * - ( - COUNT( * ) ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-449
SELECT + COUNT ( * ) * + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab0
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <= 63
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-452
SELECT DISTINCT - CAST( + - 62 AS SIGNED ) + MAX( + - col0 ) FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT - CAST ( + - 62 AS INTEGER ) + MAX ( + - col0 ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT col1 + - - col0 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
141
142
97

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 WHERE NOT + ( + + 66 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-455
SELECT + AVG ( DISTINCT - 59 ) + 87 - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-455
SELECT + AVG ( DISTINCT - 59 ) + 87 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT + + ( - 15 ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT + + ( - 15 ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT - 47 * + 58 + + 86 + col1 AS col2 FROM tab0 AS cor0
----
-2559
-2619
-2639

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + - 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 71 + + - 87 + + col0 col2 FROM tab0 AS cor0
----
-1
71
81

query I rowsort
SELECT DISTINCT - - 23 * col2 - + - col2 * col0 - - - col1 FROM tab1 AS cor0
----
6367
7090
7705

query I rowsort
SELECT ALL - - 76 + + col0 AS col1 FROM tab2 AS cor0
----
122
140
151

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-463
SELECT + ( + + CAST( - + 38 AS SIGNED ) ) col0 FROM tab2 AS cor0
----
-38
-38
-38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT col2 DIV 3 * - col2 - + + col0 DIV - col2 AS col0 FROM tab0
----
-22
-3267
-705

skipif mysql # not compatible
query I rowsort label-464
SELECT col2 / 3 * - col2 - + + col0 / - col2 AS col0 FROM tab0
----
-22
-3267
-705

query I rowsort
SELECT + col1 * - + 51 - + col1 FROM tab0
----
-1092
-4212
-52

query II rowsort
SELECT + + 65 + col0 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
111
51
129
77
140
67

query I rowsort
SELECT DISTINCT - - ( - - 49 ) AS col1 FROM tab2 AS cor0
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + 6 IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 * + col1 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT DISTINCT MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT + COUNT( ALL + 20 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-471
SELECT + COUNT ( ALL + 20 ) AS col1 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT - ( SUM( col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-473
SELECT - ( SUM ( col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-474
SELECT ALL - CAST( NULL AS SIGNED ) * - 48 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + ( + 64 ) * + - col1 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ( + - SUM( ALL col0 ) ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-476
SELECT ( + - SUM ( ALL col0 ) ) FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT DISTINCT COUNT( + + 35 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-477
SELECT DISTINCT COUNT ( + + 35 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 26 + + col2 * 95 AS col2 FROM tab2
----
2159
3774
5484

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - ( + col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * + 87 < NULL
----

query II rowsort
SELECT + + col1 AS col1, 49 AS col0 FROM tab0 WHERE NOT + col2 * + col2 = col2
----
1
49
21
49
81
49

onlyif mysql # aggregate syntax: 
query I rowsort label-483
SELECT COUNT( * ) + + ( COUNT( * ) ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-483
SELECT COUNT ( * ) + + ( COUNT ( * ) ) FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-484
SELECT + + 6 + CAST( NULL AS SIGNED ) * - MAX( ALL 77 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-484
SELECT + + 6 + CAST ( NULL AS INTEGER ) * - MAX ( ALL 77 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-485
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + + col2 AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-485
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT ALL + col1 * col2 + - col1 AS col0 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-487
SELECT ALL 83 * 92 + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 66 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + + 64 FROM tab2 cor0 WHERE NOT 98 NOT BETWEEN 61 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT COUNT( DISTINCT 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-489
SELECT COUNT ( DISTINCT 0 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + ( 23 ) col2 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT ALL + ( + + col2 ) * + col1 FROM tab1
----
1344
295
3196

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL ( - 97 ) * - COUNT( * ) * + + SUM( - - 1 ) AS col0 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL ( - 97 ) * - COUNT ( * ) * + + SUM ( - - 1 ) AS col0 FROM tab0
----
873

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 - - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-495
SELECT ALL + + COUNT( * ) DIV + 83 + - CAST( SUM( DISTINCT col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-495
SELECT ALL + + COUNT ( * ) / + 83 + - CAST ( SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col1 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT DISTINCT + 37 * - - 87 FROM tab2 AS cor0
----
3219

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT + + 73 + + MIN( - col1 ) AS col1 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-498
SELECT + + 73 + + MIN ( - col1 ) AS col1 FROM tab0 cor0
----
-8

query I rowsort
SELECT DISTINCT 97 + - col1 FROM tab0 cor0
----
16
76
96

onlyif mysql # aggregate syntax: 
query II rowsort label-500
SELECT COUNT( * ) AS col1, + 53 FROM tab1
----
3
53

skipif mysql # not compatible
query II rowsort label-500
SELECT COUNT ( * ) AS col1, + 53 FROM tab1
----
3
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-501
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, + CAST( - col2 AS SIGNED ) * col2 / - - 73 * + 82 * - col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-501
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, + CAST ( - col2 AS INTEGER ) * col2 / - - 73 * + 82 * - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 39 / - 16 - - 71 * + col2 < - col1
----

query I rowsort
SELECT ALL + col2 - 5 FROM tab0
----
42
5
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-504
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( 80 ) * ( 81 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-504
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( 80 ) * ( 81 ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-505
SELECT - MAX( DISTINCT - ( + + ( - col1 ) ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-505
SELECT - MAX ( DISTINCT - ( + + ( - col1 ) ) ) AS col0 FROM tab1
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, + col0 col2 FROM tab2 WHERE - col2 NOT BETWEEN + + 32 AND + + 70
----
46
46
64
64
75
75

query II rowsort
SELECT 55 AS col2, 99 * - - 24 AS col1 FROM tab0
----
55
2376
55
2376
55
2376

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + - 14 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-509
SELECT ALL - CAST( - CAST( - MAX( - col2 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - CAST ( - CAST ( - MAX ( - col2 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-510
SELECT ALL - COUNT( * ) DIV + SUM( - col0 ) AS col1, MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
0
-23

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL - COUNT ( * ) / + SUM ( - col0 ) AS col1, MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
0
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT + + MIN( - 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + + MIN ( - 62 ) FROM tab1 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT + SUM( + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-513
SELECT + SUM ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT DISTINCT + + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 8 * ( + 27 ) AS col0 FROM tab2
----
216
216
216

query I rowsort
SELECT 26 * - col2 * - + 21 AS col0 FROM tab0
----
25662
54054
5460

query I rowsort
SELECT + ( 60 ) AS col2 FROM tab1
----
60
60
60

query I rowsort
SELECT DISTINCT + 50 FROM tab0 WHERE NOT NULL < ( + col1 )
----

query II rowsort
SELECT + col2 AS col2, - col0 FROM tab0 WHERE + - col1 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT - 52 * COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-520
SELECT - 52 * COUNT ( * ) FROM tab0
----
-156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-521
SELECT ( COUNT( * ) ) * - CAST( + 98 AS SIGNED ) AS col1 FROM tab1
----
-294

skipif mysql # not compatible
query I rowsort label-521
SELECT ( COUNT ( * ) ) * - CAST ( + 98 AS INTEGER ) AS col1 FROM tab1
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + COUNT( * ) * - 17 AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + COUNT ( * ) * - 17 AS col0 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT 32 + col2 + + col0 * ( ( col1 ) ) FROM tab0
----
1294
1869
228

query I rowsort
SELECT ALL col2 + col0 - + - col2 / col0 + - - 22 * - 64 / + col2 * - col1 * - + 91 * - col1 FROM tab2 AS cor0 WHERE ( 62 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 9 + - + 6 AS col2 FROM tab2 AS cor0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col2 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL - 31 + - col2 AS col2 FROM tab0 cor0
----
-130
-41
-78

query I rowsort
SELECT + 18 + 51 FROM tab0
----
69
69
69

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT + + 70 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3290
-6930
-700

skipif mysql # not compatible
query I rowsort label-530
SELECT + + 70 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3290
-6930
-700

query I rowsort
SELECT ALL col0 * - 71 * + col2 FROM tab1 AS cor0
----
-347616
-356065
-439348

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT COUNT( * ) * + 43 - - - 26 FROM tab2 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-532
SELECT COUNT ( * ) * + 43 - - - 26 FROM tab2 AS cor0
----
103

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 55 * 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + + 36 * + 40 FROM tab1 AS cor0
----
1349
1355
1389

query I rowsort
SELECT + - ( - - col0 ) - - + col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 * + 81 FROM tab2
----
4131
5427
6237

query I rowsort
SELECT DISTINCT 24 * + col1 * col0 FROM tab0
----
2328
29160
43848

query III rowsort
SELECT * FROM tab2 WHERE NOT + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT DISTINCT SUM( ALL 98 ) * - - 92 FROM tab2 AS cor0
----
27048

skipif mysql # not compatible
query I rowsort label-539
SELECT DISTINCT SUM ( ALL 98 ) * - - 92 FROM tab2 AS cor0
----
27048

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 + + - col0 + + col0 * + col1
----

query I rowsort
SELECT DISTINCT + 18 FROM tab2 AS cor0 WHERE col0 / - 25 IS NOT NULL
----
18

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-543
SELECT ALL - + CAST( NULL AS SIGNED ) + - + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT - 69 IS NULL )
----

query I rowsort
SELECT ALL col2 * - + 9 AS col1 FROM tab0 AS cor0
----
-423
-891
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT ALL + 23 + + MIN( + col2 ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-546
SELECT ALL + 23 + + MIN ( + col2 ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT + ( + - col1 ) * col0 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-548
SELECT - 61 + - 34 - + - col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-94
-95
-95

skipif mysql # not compatible
query I rowsort label-548
SELECT - 61 + - 34 - + - col2 / col0 AS col1 FROM tab1 AS cor0
----
-94
-95
-95

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( ( - - col1 ), col0, col1 * ( - col0 ) * - col1, col1 + + col0, + 36 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 61 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-552
SELECT ALL - ( COUNT( * ) ) col2, - 9 FROM tab1
----
-3
-9

skipif mysql # not compatible
query II rowsort label-552
SELECT ALL - ( COUNT ( * ) ) col2, - 9 FROM tab1
----
-3
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 12 + 59 BETWEEN - - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE 41 >= 15 + - col2 - - col2 * + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + + col1 AS col2 FROM tab2 WHERE NOT col1 = + - 71 - + col0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT + MAX( + col0 ) * - MAX( + col2 ) + + MIN( DISTINCT + 21 ) AS col0 FROM tab0
----
-9582

skipif mysql # not compatible
query I rowsort label-557
SELECT + MAX ( + col0 ) * - MAX ( + col2 ) + + MIN ( DISTINCT + 21 ) AS col0 FROM tab0
----
-9582

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + col1 col0 FROM tab0
----
101
21
41

query I rowsort
SELECT + - col2 * col2 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-177
-2177
-9799

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT - + 59 DIV col0 + - col1 FROM tab2 cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-560
SELECT - + 59 / col0 + - col1 FROM tab2 cor0
----
-52
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT ALL + MAX( ALL - 31 ) AS col1 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + MAX ( ALL - 31 ) AS col1 FROM tab1 AS cor0
----
-31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + col0 + - 47 AS col1 FROM tab0 AS cor0
----
-17
127
147

query II rowsort
SELECT - - 67, + col2 FROM tab1 AS cor0
----
67
59
67
68
67
96

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 99 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1 col2, 71 FROM tab0
----
1
71
21
71
81
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-568
SELECT - COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-568
SELECT - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-569
SELECT DISTINCT - 39 * - col1 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

query II rowsort
SELECT DISTINCT - 47, - col0 * col0 AS col1 FROM tab1
----
-47
-2601
-47
-7225
-47
-8281

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT + 71 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 53 >= - 82
----

query I rowsort
SELECT col2 + - col2 * - - col0 * - col2 FROM tab0
----
33182
8710
950796

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( 97 ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT DISTINCT - col0 + 75 AS col1, + col2 FROM tab2 cor0
----
0
58
11
40
29
23

query I rowsort
SELECT DISTINCT + 86 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL 45 + - col2 + col0 * 28 FROM tab0 cor0
----
2471
2662
418

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 + + 4 * + - 16 * col0 * - - 39 col2 FROM tab1 AS cor0
----
-127312
-212176
-227152

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 28 / - 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-581
SELECT DISTINCT - CAST( + - col1 AS DECIMAL ) + + + 9 + - + 57 + CAST( NULL AS SIGNED ) * - - col0 col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - + 13 * - - 79 * 60 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-583
SELECT ALL - 86 DIV - MAX( ALL ( + col1 ) ) + - COUNT( 22 ) FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL - 86 / - MAX ( ALL ( + col1 ) ) + - COUNT ( 22 ) FROM tab0 cor0
----
-2

query I rowsort
SELECT ALL col1 + - 14 * col1 * - ( + - col1 ) AS col0 FROM tab0
----
-13
-6153
-91773

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-585
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST( + 5 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-585
SELECT * FROM tab1 WHERE NULL NOT BETWEEN CAST ( + 5 AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ( COUNT( * ) ) * - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-586
SELECT ( COUNT ( * ) ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT 95 AS col0 FROM tab2 WHERE NULL IS NULL
----
95
95
95

query I rowsort
SELECT + col0 - + 94 + + col0 AS col1 FROM tab1
----
76
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT ALL - MAX( ALL + 46 ) * + MIN( - - 34 ) AS col1 FROM tab0, tab1 AS cor0
----
-1564

skipif mysql # not compatible
query I rowsort label-589
SELECT ALL - MAX ( ALL + 46 ) * + MIN ( - - 34 ) AS col1 FROM tab0, tab1 AS cor0
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-590
SELECT + col2 + + - CAST( NULL AS SIGNED ) + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - col0 + - - 60 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT + ( col0 ) + 51 * col0 FROM tab2 AS cor0
----
2392
3328
3900

query I rowsort
SELECT DISTINCT + 65 / col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-594
SELECT 21 DIV - COUNT( * ) + 82 AS col1 FROM tab1 WHERE NOT + 33 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-594
SELECT 21 / - COUNT ( * ) + 82 AS col1 FROM tab1 WHERE NOT + 33 IS NULL
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-595
SELECT ALL COUNT( * ) DIV CAST( + 23 AS SIGNED ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-595
SELECT ALL COUNT ( * ) / CAST ( + 23 AS INTEGER ) col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT DISTINCT MAX( col2 ) * 44 AS col2 FROM tab1
----
4224

skipif mysql # not compatible
query I rowsort label-596
SELECT DISTINCT MAX ( col2 ) * 44 AS col2 FROM tab1
----
4224

onlyif mysql # DIV for integer division: 
query I rowsort label-597
SELECT DISTINCT col2 DIV + 7 FROM tab0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT col2 / + 7 FROM tab0
----
1
14
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - SUM( + 66 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-599
SELECT - SUM ( + 66 ) AS col2 FROM tab1
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-600
SELECT DISTINCT - col2 DIV + ( - col1 ) AS col1 FROM tab2
----
0

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 75 + - col1 ) IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col2 * 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-603
SELECT DISTINCT - MIN( ALL - col2 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - MIN ( ALL - col2 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) NOT IN ( - col1 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab2 WHERE col0 BETWEEN ( col2 ) AND ( col2 )
----

query I rowsort
SELECT DISTINCT 29 * - 12 + - col0 * - 56 FROM tab1
----
2508
4412
4748

query I rowsort
SELECT ALL + 91 * col1 + 85 FROM tab0
----
176
1996
7456

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT - col0 + - col0 DIV 30 AS col1 FROM tab1
----
-52
-87
-94

skipif mysql # not compatible
query I rowsort label-608
SELECT - col0 + - col0 / 30 AS col1 FROM tab1
----
-52
-87
-94

query I rowsort
SELECT col1 * col0 + - col2 AS col1 FROM tab1
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT - col1 + - col1 BETWEEN col1 + col1 AND + 66
----
6

skipif mysql # not compatible
query I rowsort label-610
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT - col1 + - col1 BETWEEN col1 + col1 AND + 66
----
6

query I rowsort
SELECT + col1 * + col0 AS col0 FROM tab0 WHERE NOT ( 39 * col0 ) > col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 / - col1 IN ( col2 * 79 + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col0 * 93 AS col0 FROM tab0 AS cor0
----
1395
8091
9021

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

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT 16 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-616
SELECT DISTINCT 16 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT DISTINCT - COUNT( * ) * COUNT( * ) FROM tab0 cor0 WHERE NOT 34 BETWEEN NULL AND 64
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) FROM tab0 cor0 WHERE NOT 34 BETWEEN NULL AND 64
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT col1 * ( 26 * + col1 ) FROM tab2
----
116714
154154
67626

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 87 * 44 >= NULL
----

query I rowsort
SELECT ALL + + ( 61 ) + col1 AS col1 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-622
SELECT DISTINCT - CAST( - 95 AS SIGNED ) DIV ( - ( - col1 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-40
-66
-90

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - CAST ( - 95 AS INTEGER ) / ( - ( - col1 ) ) + - col2 AS col0 FROM tab1 AS cor0
----
-40
-66
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT ALL 16 + 7 DIV - 79 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL 16 + 7 / - 79 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT 35 + - col0 FROM tab2 cor0
----
-11
-29
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT DISTINCT + 69 + - 51 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + 69 + - 51 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-84

query I rowsort
SELECT ALL 80 AS col2 FROM tab2 AS cor0 WHERE - col1 + - 31 IS NULL
----

query I rowsort
SELECT + - ( - col0 ) + 9 AS col2 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-628
SELECT ALL + ( + - col0 ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 col1 FROM tab2 WHERE + col1 * col2 IS NOT NULL
----
92

query I rowsort
SELECT ALL 7 + + 96 + 50 AS col1 FROM tab1
----
153
153
153

query I rowsort
SELECT DISTINCT - col0 * - 41 AS col0 FROM tab0 WHERE NOT col0 + col2 IS NULL
----
3567
3977
615

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE - col2 + 11 <> NULL
----

query I rowsort
SELECT DISTINCT 29 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - col1 * - + 60 AS col2 FROM tab1
----
2820
300
840

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-637
SELECT - 7 * COUNT( ALL - ( col2 ) ) col1 FROM tab1
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-637
SELECT - 7 * COUNT ( ALL - ( col2 ) ) col1 FROM tab1
----
-21

query I rowsort
SELECT - 97 FROM tab2 WHERE NOT col2 <> ( - 75 / 57 ) OR NOT ( NULL ) NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT 58 - + 48 + - 29 FROM tab1 AS cor0
----
-19
-19
-19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col2 * - 6 + col2 / 10 AND ( col0 ) + - 14 IS NULL
----

query I rowsort
SELECT ALL - 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT + 25 * 34 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= 83
----

query II rowsort
SELECT col0, - ( - + col2 ) AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

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

query II rowsort
SELECT ALL col2 AS col0, + 66 AS col2 FROM tab0 AS cor0
----
10
66
47
66
99
66

query I rowsort
SELECT - 8 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-368
-512
-600

query I rowsort
SELECT ALL - col0 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IN ( col1 )
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-648
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - 1 AS col1 FROM tab1 cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-648
SELECT ALL CAST ( NULL AS REAL ) AS col2, - 1 AS col1 FROM tab1 cor0
----
NULL
-1
NULL
-1
NULL
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT - + COUNT( * ) DIV 49 + + 74 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-649
SELECT - + COUNT ( * ) / 49 + + 74 FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL - col2 * col0 AS col1 FROM tab2 WHERE 83 IS NULL
----

query I rowsort
SELECT DISTINCT ( + ( - col1 ) ) AS col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + col2 / 64 <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-653
SELECT COUNT( * ) DIV + SUM( DISTINCT + 22 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT COUNT ( * ) / + SUM ( DISTINCT + 22 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT + MAX( ALL ( col0 ) ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-654
SELECT + MAX ( ALL ( col0 ) ) AS col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-655
SELECT COUNT( * ) FROM tab1 WHERE NOT + + 68 BETWEEN - 19 + + col0 AND 70 * col1
----
1

skipif mysql # not compatible
query I rowsort label-655
SELECT COUNT ( * ) FROM tab1 WHERE NOT + + 68 BETWEEN - 19 + + col0 AND 70 * col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-656
SELECT DISTINCT - MAX( DISTINCT + 80 ) * - COUNT( * ) FROM tab2 cor0
----
240

skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT - MAX ( DISTINCT + 80 ) * - COUNT ( * ) FROM tab2 cor0
----
240

query I rowsort
SELECT DISTINCT 46 * - ( - col1 ) FROM tab2
----
2346
3082
3542

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 7 * + - col1 * - col0 - - ( - col0 + - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT col1 DIV + col1 + 36 AS col1 FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-659
SELECT col1 / + col1 + 36 AS col1 FROM tab0
----
37
37
37

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT - col1 + col2 DIV - 73 * + col0 col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-660
SELECT - col1 + col2 / - 73 * + col0 col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 + col0 * + - col1 + - - 67 * - 46 FROM tab0 AS cor0
----
-3082
-4282
-4822

query I rowsort
SELECT DISTINCT + + 61 FROM tab2 AS cor0 WHERE NOT + ( - col0 ) <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT - - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-663
SELECT - - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 42 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 59 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 77 - col2 FROM tab0 AS cor0
----
-124
-176
-87

query I rowsort
SELECT ALL + 29 + - col0 FROM tab0
----
-58
-68
14

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL + col0 - - + 86 + - + 66 DIV 26 AS col2 FROM tab2
----
130
148
159

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL + col0 - - + 86 + - + 66 / 26 AS col2 FROM tab2
----
130
148
159

onlyif mysql # aggregate syntax: 
query I rowsort label-669
SELECT - MIN( ALL - 98 ) AS col1 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-669
SELECT - MIN ( ALL - 98 ) AS col1 FROM tab0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-670
SELECT DISTINCT col1 + col1 DIV - col2 AS col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-670
SELECT DISTINCT col1 + col1 / - col2 AS col1 FROM tab2
----
49
66
76

query I rowsort
SELECT ALL col1 - - 40 + 97 FROM tab2
----
188
204
214

onlyif mysql # aggregate syntax: 
query I rowsort label-672
SELECT COUNT( * ) - + COUNT( - - col2 ) - - + ( - 69 ) AS col0 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-672
SELECT COUNT ( * ) - + COUNT ( - - col2 ) - - + ( - 69 ) AS col0 FROM tab0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) col2 FROM tab1 WHERE NOT + + col2 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT col2 + - + 24 + - col2 * + 12 + - 4 + 43 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-674
SELECT col2 + - + 24 + - col2 * + 12 + - 4 + 43 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-675
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col2 NOT IN ( - col1 + - col2 * 15 ) )
----

skipif mysql # not compatible
query I rowsort label-675
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col2 NOT IN ( - col1 + - col2 * 15 ) )
----

query I rowsort
SELECT + 98 + 66 AS col2 FROM tab0
----
164
164
164

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT - COUNT( * ) * - + MAX( ALL 36 ) * - + 81 col2 FROM tab2
----
-8748

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-677
SELECT DISTINCT - COUNT ( * ) * - + MAX ( ALL 36 ) * - + 81 col2 FROM tab2
----
-8748

query I rowsort
SELECT ALL + 56 * - col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query II rowsort label-679
SELECT ALL + - 52 + + - 29 AS col2, - col0 DIV - - col1 FROM tab0 AS cor0
----
-81
-4
-81
-97
-81
0

skipif mysql # not compatible
query II rowsort label-679
SELECT ALL + - 52 + + - 29 AS col2, - col0 / - - col1 FROM tab0 AS cor0
----
-81
-4
-81
-97
-81
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col0 * + col0 * + 58 IS NULL
----

query II rowsort
SELECT + - col2, + 61 AS col0 FROM tab2 AS cor0
----
-23
61
-40
61
-58
61

query I rowsort
SELECT + col1 - - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT - 72 * - col1 + + col0 - - 45 FROM tab1 AS cor0
----
1104
3520
490

query I rowsort
SELECT + col0 * - 50 AS col1 FROM tab1 AS cor0
----
-2550
-4250
-4550

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

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT DISTINCT - - 23 * col0 DIV 63 FROM tab2 AS cor0
----
16
23
27

skipif mysql # not compatible
query I rowsort label-686
SELECT DISTINCT - - 23 * col0 / 63 FROM tab2 AS cor0
----
16
23
27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 col0 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT - ( 40 ) AS col0 FROM tab2
----
-40
-40
-40

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - + col1 + + - col0 + + + 67 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 ) > - + 56
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query II rowsort label-692
SELECT ALL 72 col2, - COUNT( * ) AS col2 FROM tab0
----
72
-3

skipif mysql # not compatible
query II rowsort label-692
SELECT ALL 72 col2, - COUNT ( * ) AS col2 FROM tab0
----
72
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2, - ( col2 ) )
----

query I rowsort
SELECT + + col1 * - 55 FROM tab1 cor0
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT - - MIN( DISTINCT + 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-695
SELECT - - MIN ( DISTINCT + 3 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-696
SELECT DISTINCT CAST( + col1 AS SIGNED ) * - - ( 8 ) FROM tab2 AS cor0
----
408
536
616

skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * - - ( 8 ) FROM tab2 AS cor0
----
408
536
616

query II rowsort
SELECT DISTINCT 64 + col0, + 52 AS col0 FROM tab1 AS cor0
----
115
52
149
52
155
52

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT + + COUNT( * ) FROM tab0 cor0 WHERE - col1 / col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-698
SELECT + + COUNT ( * ) FROM tab0 cor0 WHERE - col1 / col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT - COUNT( * ) + + - 58 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-699
SELECT - COUNT ( * ) + + - 58 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT DISTINCT + col1 + - 86 AS col0 FROM tab0 AS cor0
----
-5
-65
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT + + 70 DIV + col1 + + + col2 + + ( - - col1 ) * + + col0 AS col0 FROM tab0 AS cor0
----
1262
1840
266

skipif mysql # not compatible
query I rowsort label-701
SELECT + + 70 / + col1 + + + col2 + + ( - - col1 ) * + + col0 AS col0 FROM tab0 AS cor0
----
1262
1840
266

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT ALL - + 83 - - 95 DIV col2 * col0 FROM tab1 AS cor0
----
-83
2
8

skipif mysql # not compatible
query I rowsort label-702
SELECT ALL - + 83 - - 95 / col2 * col0 FROM tab1 AS cor0
----
-83
2
8

query I rowsort
SELECT ALL 29 - + 32 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT ALL + 69 + SUM( + + col0 ) AS col1 FROM tab0
----
268

skipif mysql # not compatible
query I rowsort label-704
SELECT ALL + 69 + SUM ( + + col0 ) AS col1 FROM tab0
----
268

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 28 AND - col1 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 WHERE - 46 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE - 46 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT 14 - - - COUNT( * ) col1 FROM tab0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-707
SELECT DISTINCT 14 - - - COUNT ( * ) col1 FROM tab0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 col2 FROM tab2 WHERE col0 < NULL
----

query I rowsort
SELECT - col2 * ( col2 ) * + col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( col1 + + col2 + - col0 ) IS NULL
----
-59
-68
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + COUNT( DISTINCT 71 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + COUNT ( DISTINCT 71 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT + COUNT( + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT + COUNT ( + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL - MAX( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-714
SELECT ALL - MAX ( DISTINCT - - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL ( + + 38 ) * + COUNT( * ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL ( + + 38 ) * + COUNT ( * ) FROM tab0
----
114

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-716
SELECT + + col0 + ( + 41 ) / - col1 col0 FROM tab2 WHERE NOT + col0 + + + col2 > + 92 / + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-716
SELECT + + col0 + ( + 41 ) / - col1 col0 FROM tab2 WHERE NOT + col0 + + + col2 > + 92 / + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-717
SELECT DISTINCT 47 DIV + ( + MIN( + 13 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT 47 / + ( + MIN ( + 13 ) ) FROM tab2
----
3

query I rowsort
SELECT - ( - - col2 ) + + col1 * - col1 FROM tab0 WHERE NOT + + col1 / + col2 * col1 IN ( - col2 )
----
-100
-451
-6608

query I rowsort
SELECT + col2 * ( + col1 ) FROM tab1 cor0
----
1344
295
3196

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

query II rowsort
SELECT + + 37 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
37
14
37
47
37
5

query II rowsort
SELECT + 38 AS col2, 3 FROM tab2 AS cor0
----
38
3
38
3
38
3

query II rowsort
SELECT DISTINCT - 72, - col1 AS col0 FROM tab1 AS cor0
----
-72
-14
-72
-47
-72
-5

query I rowsort
SELECT DISTINCT - 65 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 93 + - 27 * + + 57 * + - col2
----

query I rowsort
SELECT DISTINCT - - col1 + col0 * - col1 AS col2 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ALL + 16 * CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + ( - col2 ) * - col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL col1 + + + 86 FROM tab1 cor0
----
100
133
91

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT ALL + 77 DIV ( + col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL + 77 / ( + col0 ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT DISTINCT + MIN( DISTINCT col1 ) * - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-730
SELECT DISTINCT + MIN ( DISTINCT col1 ) * - COUNT ( * ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col2 FROM tab2 WHERE NOT ( NOT 36 * + - col1 IN ( - - 54 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT + CAST( col0 AS SIGNED ) * + col2 * col1 + + - 30 FROM tab2
----
197090
291420
53928

skipif mysql # not compatible
query I rowsort label-732
SELECT + CAST ( col0 AS INTEGER ) * + col2 * col1 + + - 30 FROM tab2
----
197090
291420
53928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-733
SELECT 47 DIV COUNT( * ) * COUNT( * ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-733
SELECT 47 / COUNT ( * ) * COUNT ( * ) FROM tab2
----
45

query I rowsort
SELECT + 74 AS col2 FROM tab0 WHERE NOT ( + 3 ) IS NULL
----
74
74
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-735
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) DIV + + COUNT( * ) col1 FROM tab2
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) / + + COUNT ( * ) col1 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT 94 + + col0 AS col1 FROM tab0 AS cor0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT - + COUNT( DISTINCT - col0 ) + - - 62 + + 56 AS col0 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-737
SELECT - + COUNT ( DISTINCT - col0 ) + - - 62 + + 56 AS col0 FROM tab1 AS cor0
----
115

onlyif mysql # DIV for integer division: 
query I rowsort label-738
SELECT col2 + ( + ( - 31 ) ) - - - 39 DIV - col0 * col2 + ( 79 ) FROM tab1
----
107
116
144

skipif mysql # not compatible
query I rowsort label-738
SELECT col2 + ( + ( - 31 ) ) - - - 39 / - col0 * col2 + ( 79 ) FROM tab1
----
107
116
144

query II rowsort
SELECT + - col1, - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-740
SELECT ALL + MAX( 60 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-740
SELECT ALL + MAX ( 60 ) AS col2 FROM tab2
----
60

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - + col0 + col1 BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT - SUM( ALL + - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT - SUM ( ALL + - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - - 90 + - - 19 FROM tab2 cor0
----
109

query I rowsort
SELECT DISTINCT col0 + + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * - - col0 col2, ( + - col1 ) * col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col2 + + 15 ) IS NULL
----

query I rowsort
SELECT col2 - - col1 + - col0 + + + col2 FROM tab1
----
155
38
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-748
SELECT + MIN( 74 ) + + COUNT( * ) + - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-748
SELECT + MIN ( 74 ) + + COUNT ( * ) + - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT 17 * - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT 17 * - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
-48

query I rowsort
SELECT ALL col0 - + - col0 AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT ALL + ( + col0 ) AS col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-752
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * 67, 11, - col2 + col2 + col2 * - CAST( NULL AS SIGNED ) * + ( 73 ) * + col0 / + - col0 / - + ( - col0 ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-752
SELECT * FROM tab1 WHERE NOT NULL IN ( col0 * 67, 11, - col2 + col2 + col2 * - CAST ( NULL AS INTEGER ) * + ( 73 ) * + col0 / + - col0 / - + ( - col0 ) + col0 )
----

query I rowsort
SELECT 88 * + - col2 - col2 FROM tab0 AS cor0
----
-4183
-8811
-890

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 75
----

query I rowsort
SELECT ALL - 30 * - 79 * - - col0 FROM tab0
----
206190
229890
35550

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 67 AS col1 FROM tab2
----
603

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 67 AS col1 FROM tab2
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-757
SELECT DISTINCT + - COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-757
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT + col1 * + + 6 + - col0 FROM tab2 AS cor0
----
260
327
398

query I rowsort
SELECT - + 45 + - 68 AS col1 FROM tab1 cor0 WHERE NOT + 67 * + col0 > col1 + + - 91
----

query I rowsort
SELECT - col2 * col1 + - col1 * col2 AS col1 FROM tab0 AS cor0
----
-198
-420
-7614

query II rowsort
SELECT DISTINCT + col0 col0, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 * + col1 col2 FROM tab0 AS cor0
----
1377
17
357

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

onlyif mysql # DIV for integer division: 
query I rowsort label-764
SELECT DISTINCT 97 DIV col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-764
SELECT DISTINCT 97 / col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 * ( + - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - col2 ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-767
SELECT DISTINCT - ( + ( - - COUNT( * ) ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - ( + ( - - COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 55 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-769
SELECT col0 DIV - - col1 AS col0 FROM tab0 cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-769
SELECT col0 / - - col1 AS col0 FROM tab0 cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL COUNT( * ) + - + 36 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-770
SELECT ALL COUNT ( * ) + - + 36 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - col0 + - col0 + + - ( col1 ) * col0 AS col0 FROM tab1 AS cor0
----
-4459
-595
-816

query I rowsort
SELECT DISTINCT - 66 * - - 18 + + + col1 AS col1 FROM tab0 AS cor0
----
-1107
-1167
-1187

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL MIN( DISTINCT + 20 ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-773
SELECT ALL MIN ( DISTINCT + 20 ) col1 FROM tab0
----
20

onlyif mysql # aggregate syntax: 
query II rowsort label-774
SELECT ALL ( + COUNT( * ) ), COUNT( * ) - - + 95 AS col2 FROM tab2
----
3
98

skipif mysql # not compatible
query II rowsort label-774
SELECT ALL ( + COUNT ( * ) ), COUNT ( * ) - - + 95 AS col2 FROM tab2
----
3
98

query I rowsort
SELECT + 28 + - 72 FROM tab0 cor0
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query II rowsort label-776
SELECT ALL - 44 * 55 DIV + 54, col0 AS col0 FROM tab0 AS cor0
----
-44
15
-44
87
-44
97

skipif mysql # not compatible
query II rowsort label-776
SELECT ALL - 44 * 55 / + 54, col0 AS col0 FROM tab0 AS cor0
----
-44
15
-44
87
-44
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-777
SELECT + COUNT( * ) DIV ( - - 27 ) + + + 1 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-777
SELECT + COUNT ( * ) / ( - - 27 ) + + + 1 AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - col1 + col2 - col2 + + - col2 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL + - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL >= - 97 + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT DISTINCT + 25 + + 78, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
103
3

skipif mysql # not compatible
query II rowsort label-781
SELECT DISTINCT + 25 + + 78, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
103
3

query II rowsort
SELECT + col1 + col2 * + col0, - col2 AS col0 FROM tab0 AS cor0 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-783
SELECT COUNT( * ) DIV + 60 * - + 55 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-783
SELECT COUNT ( * ) / + 60 * - + 55 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT - + SUM( 77 ) AS col0, + 31 FROM tab2 AS cor0
----
-231
31

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT - + SUM ( 77 ) AS col0, + 31 FROM tab2 AS cor0
----
-231
31

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * 7 + 92 + - + col2 IS NULL
----

query II rowsort
SELECT DISTINCT + 82, col0 * + col1 + col0 AS col2 FROM tab1
----
82
4368
82
510
82
765

query II rowsort
SELECT col2 AS col0, + 99 FROM tab0
----
10
99
47
99
99
99

query II rowsort
SELECT - col0 AS col2, col0 AS col2 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-789
SELECT ALL - CAST( NULL AS SIGNED ) * 38 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-789
SELECT ALL - CAST ( NULL AS INTEGER ) * 38 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + col1 + - 7 * col0 * - - col2 FROM tab1 AS cor0
----
-34162
-35041
-43201

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL COUNT( + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL COUNT ( + + col0 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-792
SELECT CAST( AVG ( ALL - col1 ) AS SIGNED ) * + ( + + 80 ) FROM tab2
----
-5200

skipif mysql # not compatible
query I rowsort label-792
SELECT CAST ( AVG ( ALL - col1 ) AS INTEGER ) * + ( + + 80 ) FROM tab2
----
-5200

onlyif mysql # DIV for integer division: 
query II rowsort label-793
SELECT col2 - + col1 AS col0, col1 DIV 32 * + 69 FROM tab1 WHERE + 70 * + col2 + + - col0 * - + col2 * col1 + col2 IS NOT NULL
----
21
69
54
0
82
0

skipif mysql # not compatible
query II rowsort label-793
SELECT col2 - + col1 AS col0, col1 / 32 * + 69 FROM tab1 WHERE + 70 * + col2 + + - col0 * - + col2 * col1 + col2 IS NOT NULL
----
21
69
54
0
82
0

onlyif mysql # DIV for integer division: 
query II rowsort label-794
SELECT ALL + col0 AS col0, - 74 DIV + 71 AS col2 FROM tab0
----
15
-1
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-794
SELECT ALL + col0 AS col0, - 74 / + 71 AS col2 FROM tab0
----
15
-1
87
-1
97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT - SUM( DISTINCT - - 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-795
SELECT - SUM ( DISTINCT - - 34 ) FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT MAX( DISTINCT + col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-796
SELECT MAX ( DISTINCT + col0 ) col1 FROM tab0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-797
SELECT ALL * FROM tab0 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-797
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 0 + + + col0 * - 96 * 6 IS NULL OR col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL SUM( DISTINCT + + col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL SUM ( DISTINCT + + col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT - MAX( - - ( + col2 ) ) + + 56 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-801
SELECT - MAX ( - - ( + col2 ) ) + + 56 FROM tab2
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL + - COUNT( * ) + + + ( - 16 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL + - COUNT ( * ) + + + ( - 16 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-804
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-804
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - 48 AS col1, 95 FROM tab1
----
-48
95
-48
95
-48
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-806
SELECT ALL COUNT( * ) * - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT DISTINCT COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-807
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT DISTINCT COUNT( * ) * 2 AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-808
SELECT DISTINCT COUNT ( * ) * 2 AS col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT - - 5 FROM tab2 cor0
----
5

query II rowsort
SELECT DISTINCT + - 72 AS col0, - col1 FROM tab0 AS cor0
----
-72
-1
-72
-21
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT COUNT( + 26 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-811
SELECT COUNT ( + 26 ) col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + + 53 * COUNT( + col0 ) FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-813
SELECT + + 53 * COUNT ( + col0 ) FROM tab0 cor0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 AS col0, col0 col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT - col2 DIV - - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-815
SELECT - col2 / - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-816
SELECT DISTINCT COUNT( - + 83 ) DIV 42 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT COUNT ( - + 83 ) / 42 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-817
SELECT DISTINCT 31 * - 73 AS col2, MAX( col2 ) AS col0 FROM tab0
----
-2263
99

skipif mysql # not compatible
query II rowsort label-817
SELECT DISTINCT 31 * - 73 AS col2, MAX ( col2 ) AS col0 FROM tab0
----
-2263
99

query III rowsort
SELECT ALL * FROM tab0 WHERE 12 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-820
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 96 NOT BETWEEN - 43 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-823
SELECT + + col1 * - col2, + 46 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-210
NULL
-3807
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-823
SELECT + + col1 * - col2, + 46 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-210
NULL
-3807
NULL
-99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-824
SELECT col0 DIV - + ( col2 ) col2 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT col0 / - + ( col2 ) col2 FROM tab0 AS cor0
----
-8
0
0

query I rowsort
SELECT DISTINCT + col1 + 50 FROM tab0 AS cor0
----
131
51
71

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + col1 * - 53 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-827
SELECT - - col0 * - - 8 - - 54 DIV ( 75 ) DIV col2 DIV + col2 + + col2 AS col2 FROM tab0 AS cor0
----
167
706
875

skipif mysql # not compatible
query I rowsort label-827
SELECT - - col0 * - - 8 - - 54 / ( 75 ) / col2 / + col2 + + col2 AS col2 FROM tab0 AS cor0
----
167
706
875

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT + COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT + COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-829
SELECT col1 + - 86 + + col1 DIV + + 17 AS col0 FROM tab2 AS cor0 WHERE col1 * - - col0 IS NOT NULL
----
-16
-32
-5

skipif mysql # not compatible
query I rowsort label-829
SELECT col1 + - 86 + + col1 / + + 17 AS col0 FROM tab2 AS cor0 WHERE col1 * - - col0 IS NOT NULL
----
-16
-32
-5

query I rowsort
SELECT - + 25 + - 83 + + 54 * + col1 - - 71 FROM tab1 AS cor0
----
233
2501
719

query II rowsort
SELECT DISTINCT 42, col1 FROM tab0 AS cor0
----
42
1
42
21
42
81

query I rowsort
SELECT ALL - ( + - col1 ) * - + col2 * - - col1 AS col1 FROM tab0
----
-308367
-4410
-99

query I rowsort
SELECT ( + - 83 ) * - + col2 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # DIV for integer division: 
query II rowsort label-834
SELECT DISTINCT - + col2 DIV 93, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT - + col2 / 93, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
0
21
0
81

query I rowsort
SELECT col2 + 88 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL < + ( + - 50 )
----

query I rowsort
SELECT DISTINCT + col1 - + col0 + - col0 AS col0 FROM tab0
----
-153
-193
51

query I rowsort
SELECT ALL 55 * - - col2 FROM tab1
----
3245
3740
5280

onlyif mysql # DIV for integer division: 
query I rowsort label-839
SELECT DISTINCT - col1 DIV - ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-839
SELECT DISTINCT - col1 / - ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT + 64 DIV 36 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-840
SELECT + 64 / 36 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT ALL - col2 col0, + 26 + + 68 * - col1 AS col1 FROM tab2 cor0 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL > col0 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - 38 = NULL
----

query I rowsort
SELECT DISTINCT + col0 * 63 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT - ( - col1 ) * 88 * - - col0 AS col1 FROM tab2
----
206448
433664
442200

query I rowsort
SELECT - 29 * + col2 FROM tab2
----
-1160
-1682
-667

query II rowsort
SELECT DISTINCT 41, 42 + - col2 AS col1 FROM tab2
----
41
-16
41
19
41
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 76 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT DISTINCT + + MIN( + - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-850
SELECT DISTINCT + + MIN ( + - col1 ) FROM tab0 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * + - col1, 68 col2 FROM tab1
----
-1344
68
-295
68
-3196
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT DISTINCT - col0 * - - CAST( - col2 AS SIGNED ) FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-852
SELECT DISTINCT - col0 * - - CAST ( - col2 AS INTEGER ) FROM tab0
----
705
870
9603

query I rowsort
SELECT - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

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

query I rowsort
SELECT DISTINCT col0 + - 86 AS col0 FROM tab1 AS cor0
----
-1
-35
5

query I rowsort
SELECT ALL - col0 * - + col2 - - col1 + + col1 FROM tab1 cor0
----
4924
5025
6282

query I rowsort
SELECT ALL + col1 + col2 * + + 31 FROM tab0 AS cor0
----
1538
3070
331

query II rowsort
SELECT ALL - col0 + - 17 AS col0, + 15 FROM tab0 AS cor0
----
-104
15
-114
15
-32
15

query I rowsort
SELECT DISTINCT + ( - - 49 ) - + col0 + 85 FROM tab2 AS cor0
----
59
70
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT ALL MIN( 28 ) * - - COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-861
SELECT ALL MIN ( 28 ) * - - COUNT ( * ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-862
SELECT DISTINCT COUNT( * ) - ( - - MAX( DISTINCT - ( - 87 ) ) ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-862
SELECT DISTINCT COUNT ( * ) - ( - - MAX ( DISTINCT - ( - 87 ) ) ) FROM tab0
----
-84

query I rowsort
SELECT 68 * + col0 - col1 AS col1 FROM tab1
----
3454
5775
6141

onlyif mysql # aggregate syntax: 
query II rowsort label-864
SELECT DISTINCT + 96, COUNT( * ) AS col0 FROM tab2
----
96
3

skipif mysql # not compatible
query II rowsort label-864
SELECT DISTINCT + 96, COUNT ( * ) AS col0 FROM tab2
----
96
3

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

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col1 / - 24 IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT col2 DIV - - ( + 83 ) * + col2 - - - col1 + col0 + 87 + - col2 * - 48 * 37 AS col1 FROM tab2 AS cor0
----
103103
40930
71114

skipif mysql # not compatible
query I rowsort label-867
SELECT col2 / - - ( + 83 ) * + col2 - - - col1 + col0 + 87 + - col2 * - 48 * 37 AS col1 FROM tab2 AS cor0
----
103103
40930
71114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-869
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab0 WHERE 71 = col0
----
NULL

skipif mysql # not compatible
query I rowsort label-869
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab0 WHERE 71 = col0
----
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 58 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-873
SELECT ALL + MIN( DISTINCT + + col1 ) col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-873
SELECT ALL + MIN ( DISTINCT + + col1 ) col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col1 * - + 36 AS col1 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT DISTINCT + col2 * + - 91 FROM tab1 AS cor0
----
-5369
-6188
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + 26 * + - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-876
SELECT + 26 * + - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 3 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + - col2 ) + + + col0 AS col0 FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-880
SELECT DISTINCT COUNT( ALL 59 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT COUNT ( ALL 59 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - - 7 * 54 + + 86 FROM tab1 AS cor0
----
464
464
464

query I rowsort
SELECT + 25 FROM tab1 AS cor0 WHERE NULL <> - col2
----

query I rowsort
SELECT - + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT - - CAST( NULL AS SIGNED ) + + - 76 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-886
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-887
SELECT DISTINCT 27 + + COUNT( * ) + 2 col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-887
SELECT DISTINCT 27 + + COUNT ( * ) + 2 col1 FROM tab0 AS cor0
----
32

query I rowsort
SELECT 30 + + 27 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + 23 * + ( - 38 )
----

query I rowsort
SELECT - + col1 AS col1 FROM tab2 WHERE col0 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + 69 - 4 - - col2 + - - ( + col0 ) + CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - MAX( DISTINCT + + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-892
SELECT - MAX ( DISTINCT + + col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT + - col1 * - ( - CAST( + - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-893
SELECT + - col1 * - ( - CAST ( + - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col0 - + 22 FROM tab2 AS cor0
----
-68
-86
-97

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE col0 + - 15 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT CAST( + - 30 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif mysql # not compatible
query I rowsort label-896
SELECT CAST ( + - 30 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 71 + + col2 + col2 * + col0 * 24 / + col1 IS NOT NULL
----

query I rowsort
SELECT - 16 * col1 AS col1 FROM tab1
----
-224
-752
-80

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-900
SELECT 25 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-900
SELECT 25 / - col0 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-901
SELECT 43 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-902
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + - CAST( + - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-902
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 + - CAST ( + - col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 * + 38 FROM tab2
----
1938
2546
2926

query I rowsort
SELECT + 16 + + 17 AS col1 FROM tab0 WHERE NOT col1 + col1 IS NULL
----
33
33
33

query I rowsort
SELECT ( - col0 ) * - ( 78 ) FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT 92 * + MAX( - - col1 ) FROM tab2
----
7084

skipif mysql # not compatible
query I rowsort label-906
SELECT 92 * + MAX ( - - col1 ) FROM tab2
----
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT - COUNT( ALL + col1 ) FROM tab0 WHERE NOT + - 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-907
SELECT - COUNT ( ALL + col1 ) FROM tab0 WHERE NOT + - 90 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col0 * + col1, col2 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT - + 77 + - SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-272

skipif mysql # not compatible
query I rowsort label-909
SELECT - + 77 + - SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
-272

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT 68 * - - COUNT( * ) * + 93 col1 FROM tab0
----
18972

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-910
SELECT 68 * - - COUNT ( * ) * + 93 col1 FROM tab0
----
18972

query I rowsort
SELECT ALL ( - + 26 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT * FROM tab2 WHERE 49 <> + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 / 31 BETWEEN NULL AND - col0 - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > + col0
----
51
14
96

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 18 + + col2 AS col1 FROM tab2 AS cor0
----
22
40
5

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT - MIN( - 90 ) - + - COUNT( * ) * + + 16 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-921
SELECT - MIN ( - 90 ) - + - COUNT ( * ) * + + 16 FROM tab0 AS cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) + 96 col2 FROM tab1
----
101
110
143

query II rowsort
SELECT DISTINCT 94 + 51 * col2 * - col0 AS col0, + ( + 71 ) FROM tab1
----
-249602
71
-255671
71
-315494
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-924
SELECT - col0 * col2 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-925
SELECT 41 * 17 - - - 59 * - + CAST( NULL AS SIGNED ) * + - col2 / + + col0 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE ( ( NULL ) >= + col1 + + + col2 )
----

query II rowsort
SELECT DISTINCT + 40 + + 21 * 20, + 21 AS col0 FROM tab0 WHERE NOT NULL >= + 38 * - 84
----

query II rowsort
SELECT ALL - + col1 AS col0, ( + - 54 ) FROM tab1 AS cor0
----
-14
-54
-47
-54
-5
-54

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT NULL < - + col1 )
----

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab2 cor0
----
-1058
-2560
-4350

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 / col2 + col1 AS col2, - col2 col0 FROM tab0 AS cor0 WHERE NOT 11 * - col0 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT ALL - + SUM( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - + SUM ( ALL - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 59 * - 71 FROM tab1
----
4189
4189
4189

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT SUM( - 57 ) + + 96 AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-935
SELECT SUM ( - 57 ) + + 96 AS col0 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-936
SELECT - col0 * col1 * - - 20 + + CAST( col0 AS SIGNED ) col0 FROM tab0
----
-1843
-24285
-36453

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-936
SELECT - col0 * col1 * - - 20 + + CAST ( col0 AS INTEGER ) col0 FROM tab0
----
-1843
-24285
-36453

query I rowsort
SELECT DISTINCT - 87 * + + 42 FROM tab0
----
-3654

onlyif mysql # aggregate syntax: 
query II rowsort label-938
SELECT 43, MAX( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
43
99

skipif mysql # not compatible
query II rowsort label-938
SELECT 43, MAX ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
43
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT + + ( + - ( + 91 ) ) DIV MIN( + col0 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-939
SELECT + + ( + - ( + 91 ) ) / MIN ( + col0 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT ( - - MIN( - + 94 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-940
SELECT ( - - MIN ( - + 94 ) ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-94

query I rowsort
SELECT - + 68 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT + 69 + 51 AS col2 FROM tab0 AS cor0
----
120
120
120

query I rowsort
SELECT ALL col0 + - col1 + + - col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT - 83 + MIN( col1 ) AS col2 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-944
SELECT - 83 + MIN ( col1 ) AS col2 FROM tab0 cor0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-945
SELECT ALL col1 * + - col2 * - col2 + - col2 + 92 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 3 * + + col2 * + 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-947
SELECT + + COUNT( * ) * + 71 + + + 40 AS col1 FROM tab0 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-947
SELECT + + COUNT ( * ) * + 71 + + + 40 AS col1 FROM tab0 AS cor0
----
253

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE 22 + - col1 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 62 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - + - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col1 + - + 99 FROM tab2
----
-22
-32
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT col0 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT ALL ( + - 54 ) DIV - col2 + col0 col1 FROM tab2
----
48
65
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-953
SELECT ALL ( + - 54 ) / - col2 + col0 col1 FROM tab2
----
48
65
75

onlyif mysql # aggregate syntax: 
query II rowsort label-954
SELECT + 40 AS col2, COUNT( * ) FROM tab0
----
40
3

skipif mysql # not compatible
query II rowsort label-954
SELECT + 40 AS col2, COUNT ( * ) FROM tab0
----
40
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query II rowsort label-957
SELECT 2 AS col2, COUNT( * ) + COUNT( + col0 ) + - 52 * + COUNT( * ) * 40 AS col1 FROM tab2
----
2
-6234

skipif mysql # not compatible
query II rowsort label-957
SELECT 2 AS col2, COUNT ( * ) + COUNT ( + col0 ) + - 52 * + COUNT ( * ) * 40 AS col1 FROM tab2
----
2
-6234

query I rowsort
SELECT ALL + 49 AS col1 FROM tab2
----
49
49
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL + CAST( + - col0 AS SIGNED ) * + - col0 AS col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-959
SELECT ALL + CAST ( + - col0 AS INTEGER ) * + - col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-960
SELECT ALL + 85 DIV COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL + 85 / COUNT ( * ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT + + COUNT( * ) * + ( + 33 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-961
SELECT + + COUNT ( * ) * + ( + 33 ) FROM tab1 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 AS cor0 WHERE NOT - col0 / + + 76 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - col1 + + col1 * col0
----

query II rowsort
SELECT col1 AS col1, 37 AS col2 FROM tab0
----
1
37
21
37
81
37

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT MIN( ALL - 9 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-965
SELECT MIN ( ALL - 9 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT 46 FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-967
SELECT ALL - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-967
SELECT ALL - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT - MIN( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-968
SELECT - MIN ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT + 81 * + - COUNT( ALL 52 ) - 18 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
-18

skipif mysql # not compatible
query I rowsort label-969
SELECT + 81 * + - COUNT ( ALL 52 ) - 18 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 82 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT DISTINCT + COUNT( - ( + - ( + + 65 ) ) ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT + COUNT ( - ( + - ( + + 65 ) ) ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT DISTINCT + MAX( 98 ) AS col1, 58 AS col0 FROM tab1 AS cor0
----
98
58

skipif mysql # not compatible
query II rowsort label-973
SELECT DISTINCT + MAX ( 98 ) AS col1, 58 AS col0 FROM tab1 AS cor0
----
98
58

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT - SUM( ALL ( - 41 ) ) FROM tab2 cor0
----
123

skipif mysql # not compatible
query I rowsort label-974
SELECT - SUM ( ALL ( - 41 ) ) FROM tab2 cor0
----
123

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-975
SELECT COUNT( * ) DIV - - 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-975
SELECT COUNT ( * ) / - - 99 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + 75 * - ( MAX( DISTINCT col1 ) ) AS col0 FROM tab2
----
-5775

skipif mysql # not compatible
query I rowsort label-976
SELECT + 75 * - ( MAX ( DISTINCT col1 ) ) AS col0 FROM tab2
----
-5775

query I rowsort
SELECT - 42 * col1 AS col2 FROM tab2
----
-2142
-2814
-3234

query I rowsort
SELECT - col2 * col2 + + - 73 AS col2 FROM tab1 AS cor0
----
-3554
-4697
-9289

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT - 45 DIV 78 * + + 85 + - - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-979
SELECT - 45 / 78 * + + 85 + - - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + col2 + col1 + - col0 + - + col1 + + ( + 61 ) FROM tab2
----
37
38
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 52 col0 FROM tab0
----
15
52
87
52
97
52

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL COUNT( * ) * 56 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL COUNT ( * ) * 56 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-983
SELECT ALL + 32 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL + 32 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) AS col1 FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-984
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) AS col1 FROM tab0 cor0
----
-3
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 20 >= col1 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + ( 3 ) * - col1 + - - 72 + - - col0 FROM tab0 AS cor0
----
-156
166
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-988
SELECT * FROM tab2 WHERE NOT col0 IN ( - ( - + 61 ), + CAST( NULL AS SIGNED ) ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-988
SELECT * FROM tab2 WHERE NOT col0 IN ( - ( - + 61 ), + CAST ( NULL AS INTEGER ) ) OR NOT NULL IS NULL
----

query II rowsort
SELECT + col2 * + col2 AS col1, 97 FROM tab1
----
3481
97
4624
97
9216
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> - - 46
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-991
SELECT DISTINCT + SUM( ALL + col2 ) DIV + - ( + COUNT( * ) ) AS col1 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT + SUM ( ALL + col2 ) / + - ( + COUNT ( * ) ) AS col1 FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-992
SELECT DISTINCT COUNT( * ) * + + 47 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-992
SELECT DISTINCT COUNT ( * ) * + + 47 FROM tab2
----
141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-993
SELECT ALL + + COUNT( * ) DIV MIN( ALL col1 ) * - MIN( ALL 3 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-993
SELECT ALL + + COUNT ( * ) / MIN ( ALL col1 ) * - MIN ( ALL 3 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-994
SELECT ALL COUNT( - + 18 ), MAX( - col1 ) AS col2 FROM tab1 cor0
----
3
-5

skipif mysql # not compatible
query II rowsort label-994
SELECT ALL COUNT ( - + 18 ), MAX ( - col1 ) AS col2 FROM tab1 cor0
----
3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT MAX( ALL + col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-995
SELECT MAX ( ALL + col2 ) AS col1 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-996
SELECT ALL - 31, - 47 + + COUNT( * ) AS col0 FROM tab2
----
-31
-44

skipif mysql # not compatible
query II rowsort label-996
SELECT ALL - 31, - 47 + + COUNT ( * ) AS col0 FROM tab2
----
-31
-44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 / - - 81 * - 85 = NULL )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 82 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT - 23 + COUNT( * ) col0 FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1000
SELECT - 23 + COUNT ( * ) col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT ALL - col2 + + 8 FROM tab0 AS cor0
----
-2
-39
-91

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL >= col0
----

query I rowsort
SELECT + 28 + + col2 FROM tab1 AS cor0
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT DISTINCT MIN( DISTINCT - + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT MIN ( DISTINCT - + col1 ) FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT - - 31 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-1005
SELECT - - 31 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
34

query II rowsort
SELECT ALL 82, + 34 AS col0 FROM tab1
----
82
34
82
34
82
34

onlyif mysql # DIV for integer division: 
query I rowsort label-1007
SELECT DISTINCT col0 DIV + - 77 AS col2 FROM tab0
----
-1
0

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

query III rowsort
SELECT * FROM tab2 WHERE - 88 BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT ( + 17 ) FROM tab2
----
17

query I rowsort
SELECT + col1 * 2 AS col0 FROM tab0
----
162
2
42

query II rowsort
SELECT DISTINCT + col0, + 64 FROM tab2
----
46
64
64
64
75
64

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT + - MIN( ALL - + col1 ), - 69 AS col1 FROM tab0 AS cor0
----
81
-69

skipif mysql # not compatible
query II rowsort label-1012
SELECT + - MIN ( ALL - + col1 ), - 69 AS col1 FROM tab0 AS cor0
----
81
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + - col1 col2 FROM tab0 AS cor0
----
14
74
94

query II rowsort
SELECT + 36 AS col2, col0 FROM tab1 cor0
----
36
51
36
85
36
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 BETWEEN + + ( - + 48 ) + + col0 AND ( + - col0 ) / - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 19 * + - 78 AS col0 FROM tab2 AS cor0
----
1482
1482
1482

query II rowsort
SELECT DISTINCT - col1 * + 3 col0, col1 AS col0 FROM tab2 cor0
----
-153
51
-201
67
-231
77

query I rowsort
SELECT ALL - 23 * - - col0 AS col0 FROM tab1 AS cor0
----
-1173
-1955
-2093

query I rowsort
SELECT DISTINCT + col2 * - - col1 + - col0 FROM tab2 AS cor0
----
1127
3016
3811

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( ( NOT ( NOT ( 44 + - col2 >= + 2 * - 90 ) ) ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 * - - col0 * - 50 + col2 AS col2 FROM tab0 AS cor0
----
11297
378460
470549

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - COUNT( - col2 ) * - 90 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-1028
SELECT - COUNT ( - col2 ) * - 90 FROM tab0
----
270

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * 26 FROM tab2
----
-1196
-1664
-1950

query I rowsort
SELECT + 53 * - col2 AS col1 FROM tab1
----
-3127
-3604
-5088

onlyif mysql # aggregate syntax: 
query I rowsort label-1032
SELECT ALL COUNT( * ) FROM tab2 WHERE 81 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL COUNT ( * ) FROM tab2 WHERE 81 > ( NULL )
----
0

query I rowsort
SELECT + col2 * + 45 AS col0 FROM tab1
----
2655
3060
4320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 + col0 * - 84 AND + col1 * 11
----

skipif mysql # not compatible
query I rowsort label-1034
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN col1 + col0 * - 84 AND + col1 * 11
----

query I rowsort
SELECT ALL - col0 + col1 * 92 AS col0 FROM tab2
----
4646
6089
7020

query I rowsort
SELECT DISTINCT + 53 + col1 FROM tab1
----
100
58
67

query I rowsort
SELECT - 96 - 94 AS col1 FROM tab1 WHERE NOT - 62 NOT BETWEEN + col1 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1038
SELECT 76 * - 32 AS col1 FROM tab2 WHERE ( ( 66 ) + CAST( NULL AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-1038
SELECT 76 * - 32 AS col1 FROM tab2 WHERE ( ( 66 ) + CAST ( NULL AS INTEGER ) ) >= NULL
----

query I rowsort
SELECT - 66 + 59 AS col1 FROM tab2
----
-7
-7
-7

query I rowsort
SELECT DISTINCT + ( 29 ) * col2 FROM tab1
----
1711
1972
2784

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN ( col1 * 24 + col0 ) AND ( - 92 - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT 29 + COUNT( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
29

skipif mysql # not compatible
query I rowsort label-1042
SELECT 29 + COUNT ( * ) AS col1 FROM tab0 WHERE + col2 IS NULL
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT DISTINCT - MAX( DISTINCT col1 ) * COUNT( * ) AS col2 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT - MAX ( DISTINCT col1 ) * COUNT ( * ) AS col2 FROM tab0
----
-243

query I rowsort
SELECT - col1 + 47 FROM tab0
----
-34
26
46

query I rowsort
SELECT DISTINCT - col2 * + 1 - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE col0 - + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE col0 - + col1 = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1047
SELECT DISTINCT col0 + + 52 DIV col1 AS col1 FROM tab0
----
149
15
89

skipif mysql # not compatible
query I rowsort label-1047
SELECT DISTINCT col0 + + 52 / col1 AS col1 FROM tab0
----
149
15
89

query I rowsort
SELECT DISTINCT + col0 * 65 + col0 FROM tab1
----
3366
5610
6006

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

query I rowsort
SELECT DISTINCT + col1 + + 13 AS col2 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT + SUM( ALL 91 ) * + COUNT( * ) + - COUNT( * ) col1 FROM tab2
----
816

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1051
SELECT + SUM ( ALL 91 ) * + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2
----
816

query I rowsort
SELECT + col2 * + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT - MIN( DISTINCT 84 ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-1053
SELECT - MIN ( DISTINCT 84 ) AS col1 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT DISTINCT COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 )
----
9

query I rowsort
SELECT DISTINCT + col1 * - col2 - + col2 AS col2 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1056
SELECT + col2 - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1056
SELECT + col2 - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1057
SELECT - + COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1057
SELECT - + COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT col1 + 51 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT - - 39 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-1059
SELECT - - 39 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
117

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

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

query I rowsort
SELECT DISTINCT - - 94 * + col2 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # DIV for integer division: 
query I rowsort label-1063
SELECT DISTINCT - col1 DIV - 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - col1 / - 86 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * 54 IN ( 16 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT col0 * - col1 FROM tab0 WHERE NULL <= - 38 * + col0 OR NOT ( NULL ) IS NOT NULL
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1067
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST( NULL AS SIGNED ) + - 24 )
----

skipif mysql # not compatible
query III rowsort label-1067
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + CAST ( NULL AS INTEGER ) + - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1068
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - 66 <= ( CAST( NULL AS SIGNED ) ) OR ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1068
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - 66 <= ( CAST ( NULL AS INTEGER ) ) OR ( col1 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IS NOT NULL OR NOT ( NULL ) NOT IN ( - ( col2 ) )
----

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

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

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

query I rowsort
SELECT ALL 13 + 3 AS col2 FROM tab0 AS cor0 WHERE NOT col1 * - col0 + - col1 NOT IN ( col0 * - col0 )
----

query I rowsort
SELECT ALL + 60 * - col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 40 > col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 * + col1 col2 FROM tab0 AS cor0
----
-308367
-4410
-99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 7 - - col2 * + col0 IN ( col0 + ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * + - 72 / - ( col1 ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 49 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1080
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col2 + - - col1 AS col1 FROM tab0
----
NULL

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

query II rowsort
SELECT + 90 AS col1, - col1 + + col0 FROM tab2
----
90
-13
90
-5
90
8

query II rowsort
SELECT + + col2 AS col2, col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1083
SELECT DISTINCT + - MIN( + - 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT + - MIN ( + - 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + + 0 + 60 + + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1084
SELECT + + 0 + 60 + + COUNT ( * ) FROM tab2 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT + 4 + MAX( DISTINCT - + 77 ) FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1085
SELECT + 4 + MAX ( DISTINCT - + 77 ) FROM tab2 AS cor0
----
-73

query I rowsort
SELECT DISTINCT - col0 + + 63 FROM tab1 AS cor0
----
-22
-28
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1087
SELECT - + COUNT( * ) + - 91 AS col1 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-1087
SELECT - + COUNT ( * ) + - 91 AS col1 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + col1 + - + 59 AS col1 FROM tab2 cor0
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1089
SELECT ( 74 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1089
SELECT ( 74 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT + + 5 + col1 AS col2 FROM tab2 cor0
----
56
72
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - 36 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT ALL MIN( col2 ) * MAX( - col0 ) AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - col0 + ( - col1 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL MIN ( col2 ) * MAX ( - col0 ) AS col2 FROM tab0 WHERE NULL BETWEEN - col1 AND - col0 + ( - col1 + col0 )
----
NULL

query I rowsort
SELECT DISTINCT - col0 * - col0 - + - col0 AS col0 FROM tab0
----
240
7656
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1095
SELECT CAST( NULL AS SIGNED ) * - COUNT( - - 38 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1095
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( - - 38 ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * - ( + 78 ) AS col1 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-1097
SELECT DISTINCT + MIN( DISTINCT - + col1 ) + - MIN( ALL - col2 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1097
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) + - MIN ( ALL - col2 ) FROM tab0
----
18

query I rowsort
SELECT - ( + 21 ) - col2 FROM tab0 AS cor0 WHERE - col2 + + col2 = + col0 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1099
SELECT * FROM tab2 AS cor0 WHERE ( NOT - CAST( + col0 AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1099
SELECT * FROM tab2 AS cor0 WHERE ( NOT - CAST ( + col0 AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1100
SELECT + col2 - 86 * - + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

skipif mysql # not compatible
query I rowsort label-1100
SELECT + col2 - 86 * - + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT ALL - - COUNT( - col2 ) + - + COUNT( ALL 24 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL - - COUNT ( - col2 ) + - + COUNT ( ALL 24 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + 41 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT DISTINCT + COUNT( * ) * - 69 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) IS NULL )
----
-207

skipif mysql # not compatible
query I rowsort label-1103
SELECT DISTINCT + COUNT ( * ) * - 69 FROM tab2 AS cor0 WHERE NOT ( - ( - col2 ) IS NULL )
----
-207

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE - 58 IS NULL
----

query I rowsort
SELECT - ( 1 ) - + col2 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1106
SELECT MIN( ALL 57 ) FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> ( + ( col0 ) * 52 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1106
SELECT MIN ( ALL 57 ) FROM tab0 AS cor0 WHERE ( NOT ( NULL ) <> ( + ( col0 ) * 52 ) )
----
NULL

query I rowsort
SELECT ( - - col2 ) * + ( col0 ) + - col0 * + col0 FROM tab1
----
-2093
-2210
2295

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col0 + - + 62
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1109
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1109
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-1110
SELECT DISTINCT 68 AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
68
3

skipif mysql # not compatible
query II rowsort label-1110
SELECT DISTINCT 68 AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
68
3

query I rowsort
SELECT - ( + col0 ) * col0 + 84 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * - col0 IN ( - ( - col0 ) + - 6 / 90 )
----
-2032
-4012
-5541

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

query II rowsort
SELECT - 34, col0 AS col0 FROM tab2
----
-34
46
-34
64
-34
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1114
SELECT DISTINCT COUNT( * ) * + + COUNT( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0, tab0 AS cor0
----
0

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

query II rowsort
SELECT + col1 AS col0, - 83 AS col2 FROM tab0
----
1
-83
21
-83
81
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1116
SELECT COUNT( * ) AS col2, 98 + - 42 + + 10 AS col0 FROM tab1
----
3
66

skipif mysql # not compatible
query II rowsort label-1116
SELECT COUNT ( * ) AS col2, 98 + - 42 + + 10 AS col0 FROM tab1
----
3
66

query II rowsort
SELECT + col2 * col1 * 27 * - 11 AS col1, + col0 FROM tab2
----
-1154142
75
-348381
46
-914760
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) BETWEEN ( - col0 ) AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col0 * - + col2 + col1 + - col2 AS col2 FROM tab0 AS cor0
----
739
881
9505

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * col2 > 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT - SUM( col1 ) * ( - MAX( DISTINCT col1 ) ) * + + MAX( DISTINCT + col1 ) + + 87 + - COUNT( * ) FROM tab0
----
675867

skipif mysql # not compatible
query I rowsort label-1121
SELECT - SUM ( col1 ) * ( - MAX ( DISTINCT col1 ) ) * + + MAX ( DISTINCT + col1 ) + + 87 + - COUNT ( * ) FROM tab0
----
675867

query I rowsort
SELECT - 10 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1123
SELECT DISTINCT CAST( NULL AS SIGNED ) * 78 + - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 78 + - 1 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT DISTINCT 36 * - COUNT( * ) col0 FROM tab1
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1124
SELECT DISTINCT 36 * - COUNT ( * ) col0 FROM tab1
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE + col1 = NULL
----

query I rowsort
SELECT ALL + - 60 * - + col2 * - col0 FROM tab0 cor0
----
-42300
-52200
-576180

query I rowsort
SELECT ALL + col0 + + ( 9 ) AS col0 FROM tab2 AS cor0
----
55
73
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT - + 64 * MAX( + col1 ) + - 83 FROM tab0 AS cor0
----
-5267

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT - + 64 * MAX ( + col1 ) + - 83 FROM tab0 AS cor0
----
-5267

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - + col1 ) AND + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1130
SELECT - + CAST( col1 AS SIGNED ), col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-1130
SELECT - + CAST ( col1 AS INTEGER ), col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

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

query I rowsort
SELECT 25 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 * + 61 + - col2 + + + col2 AS col2 FROM tab0 cor0
----
2867
6039
610

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1135
SELECT ALL ( - + 71 ) + - - 38 - - - 47 + - 36 * 81 DIV - col1 AS col2 FROM tab0 AS cor0
----
-44
2836
58

skipif mysql # not compatible
query I rowsort label-1135
SELECT ALL ( - + 71 ) + - - 38 - - - 47 + - 36 * 81 / - col1 AS col2 FROM tab0 AS cor0
----
-44
2836
58

query I rowsort
SELECT + col0 - - 65 FROM tab1
----
116
150
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1137
SELECT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) - - - ( + COUNT( * ) ) * + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1137
SELECT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) - - - ( + COUNT ( * ) ) * + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 55 * + + col1 FROM tab1
----
-2585
-275
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-1139
SELECT 63 + + - col1 DIV 64 FROM tab1
----
63
63
63

skipif mysql # not compatible
query I rowsort label-1139
SELECT 63 + + - col1 / 64 FROM tab1
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1140
SELECT ALL ( + 79 ) DIV + col2 col1 FROM tab2
----
1
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1140
SELECT ALL ( + 79 ) / + col2 col1 FROM tab2
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT + MAX( DISTINCT - col0 ) - + 20 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT + MAX ( DISTINCT - col0 ) - + 20 FROM tab0
----
-35

query II rowsort
SELECT + 21 + - - 21 * - 27 AS col0, + col1 * + + 4 FROM tab2
----
-546
204
-546
268
-546
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col0 ) - - col1, - col2 col1 FROM tab2
----
141
-40
142
-58
97
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT ALL ( + SUM( DISTINCT + 91 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1145
SELECT ALL ( + SUM ( DISTINCT + 91 ) ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 WHERE NOT 36 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1147
SELECT ALL - + ( - CAST( - 3 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - + ( - CAST ( - 3 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ( + MIN( + + 57 ) ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1148
SELECT ( + MIN ( + + 57 ) ) FROM tab2 AS cor0
----
57

query I rowsort
SELECT col0 * - + col1 * + col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query II rowsort label-1150
SELECT + MIN( DISTINCT col0 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
46
3

skipif mysql # not compatible
query II rowsort label-1150
SELECT + MIN ( DISTINCT col0 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
46
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1152
SELECT + - ( + + ( + MIN( - CAST( col2 AS SIGNED ) ) ) ) FROM tab1 AS cor0
----
96

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

query II rowsort
SELECT + + ( col1 ), col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1154
SELECT ALL - col2 FROM tab0 WHERE NOT - - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-1154
SELECT ALL - col2 FROM tab0 WHERE NOT - - CAST ( NULL AS INTEGER ) < NULL
----

query II rowsort
SELECT DISTINCT + col0, - 36 * - - col0 FROM tab1
----
51
-1836
85
-3060
91
-3276

onlyif mysql # DIV for integer division: 
query II rowsort label-1156
SELECT + col2 AS col2, col2 DIV + + col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

skipif mysql # not compatible
query II rowsort label-1156
SELECT + col2 AS col2, col2 / + + col0 FROM tab0 AS cor0
----
10
0
47
3
99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 24 - + 45, 67, + - 38 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT ALL + COUNT( - + col1 ) FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) NOT IN ( - 29 + - col1, col0, - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT ALL + COUNT ( - + col1 ) FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) NOT IN ( - 29 + - col1, col0, - - col0 )
----
0

query I rowsort
SELECT DISTINCT - col0 + + + 57 AS col0 FROM tab2 AS cor0
----
-18
-7
11

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1160
SELECT ALL + - CAST( col1 AS SIGNED ) + + 91 + - col0 + + 38 DIV - col0 - 70 * - + col2 AS col2 FROM tab0 AS cor0
----
3283
683
6923

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + - CAST ( col1 AS INTEGER ) + + 91 + - col0 + + 38 / - col0 - 70 * - + col2 AS col2 FROM tab0 AS cor0
----
3283
683
6923

onlyif mysql # aggregate syntax: 
query I rowsort label-1161
SELECT DISTINCT SUM( - ( - col2 ) ) col0 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1161
SELECT DISTINCT SUM ( - ( - col2 ) ) col0 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 23 + 22 col2 FROM tab2 WHERE NOT col2 IS NULL
----
-1151
-1519
-1749

onlyif mysql # DIV for integer division: 
query I rowsort label-1163
SELECT ALL - + col1 + col0 DIV - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-1163
SELECT ALL - + col1 + col0 / - col1 FROM tab2 AS cor0
----
-51
-68
-77

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT DISTINCT + + 7 DIV - col1 + + col1 FROM tab1 AS cor0
----
14
4
47

skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT + + 7 / - col1 + + col1 FROM tab1 AS cor0
----
14
4
47

query I rowsort
SELECT ALL 66 - - 22 FROM tab2
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT DISTINCT + - COUNT( * ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1168
SELECT DISTINCT + - COUNT ( * ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT + col2 * + 96 FROM tab2
----
2208
3840
5568

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 NOT BETWEEN 79 + + + col1 - + col0 AND + col2
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 - + + col2 * + 69 - + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - col2 ) * + col0 + + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-464
115
520

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 36 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
57

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT DISTINCT + 87 DIV - col2 FROM tab0 AS cor0
----
-1
-8
0

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

query I rowsort
SELECT 28 * + ( + + 17 ) + - 3 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col0 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + col1 + + - 10 AS col1 FROM tab1 AS cor0
----
-5
37
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 25, + col1 - col0 col2 FROM tab0 AS cor0
----
25
-66
25
-96
25
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT COUNT( * ) * ( - 42 ) FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-1182
SELECT COUNT ( * ) * ( - 42 ) FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT DISTINCT + COUNT( * ) * - 51 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-1183
SELECT DISTINCT + COUNT ( * ) * - 51 FROM tab2
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT + 91 DIV + col2 FROM tab1
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT ( + COUNT( DISTINCT - col0 ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1185
SELECT ( + COUNT ( DISTINCT - col0 ) ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col0 + + 56 * + col2 AS col1 FROM tab1 AS cor0
----
3219
3717
5325

query I rowsort
SELECT + ( + col1 ) + + + col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 58 + col0 * + col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1189
SELECT 12 + COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1189
SELECT 12 + COUNT ( * ) AS col0 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1190
SELECT + SUM( col0 ) + 33 AS col1 FROM tab2
----
218

skipif mysql # not compatible
query I rowsort label-1190
SELECT + SUM ( col0 ) + 33 AS col1 FROM tab2
----
218

query I rowsort
SELECT ALL - ( - col0 ) * - col0 * + 13 FROM tab1
----
-107653
-33813
-93925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT MAX( DISTINCT + CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

skipif mysql # not compatible
query I rowsort label-1192
SELECT MAX ( DISTINCT + CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
47

query I rowsort
SELECT DISTINCT + - col1 + + 99 AS col2 FROM tab1 AS cor0
----
52
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1194
SELECT ALL + 84 + - COUNT( * ) + - + 9 * + - SUM( ALL 62 ) FROM tab1 AS cor0
----
1755

skipif mysql # not compatible
query I rowsort label-1194
SELECT ALL + 84 + - COUNT ( * ) + - + 9 * + - SUM ( ALL 62 ) FROM tab1 AS cor0
----
1755

query I rowsort
SELECT + + col0 - col1 + - ( - 11 ) AS col1 FROM tab0 AS cor0
----
-55
107
77

query I rowsort
SELECT 87 + col1 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) + 54 AS col1 FROM tab2 AS cor0
----
-4
14
31

query I rowsort
SELECT DISTINCT - 3 - 56 AS col0 FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT + COUNT( * ) * - + 91 AS col1 FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT + COUNT ( * ) * - + 91 AS col1 FROM tab0
----
-273

query I rowsort
SELECT ALL ( + 1 ) FROM tab2
----
1
1
1

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 90 + - + 70 + ( + col1 ) * 7 * - col2 AND NULL
----

query II rowsort
SELECT DISTINCT - + 58, - col0 AS col2 FROM tab0 AS cor0
----
-58
-15
-58
-87
-58
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1204
SELECT ALL - 51 * + col1 DIV - col1 FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL - 51 * + col1 / - col1 FROM tab0 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1205
SELECT DISTINCT + COUNT( * ) * 41 AS col2 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + COUNT ( * ) * 41 AS col2 FROM tab2 AS cor0
----
123

query I rowsort
SELECT + + 78 FROM tab1 AS cor0 WHERE NOT ( ( NOT 38 / - + col1 IS NOT NULL ) )
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1207
SELECT ALL + ( + 4 ) DIV - + ( col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1207
SELECT ALL + ( + 4 ) / - + ( col2 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1210
SELECT ALL + - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 99 + - 47 * + 71 FROM tab1 AS cor0
----
-3238
-3238
-3238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 + col0 col2 FROM tab1
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT DISTINCT 40 * + - MAX( DISTINCT + col2 ) col1 FROM tab0
----
-3960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT DISTINCT 40 * + - MAX ( DISTINCT + col2 ) col1 FROM tab0
----
-3960

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1214
SELECT * FROM tab2 WHERE + - col0 <= col1 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1214
SELECT * FROM tab2 WHERE + - col0 <= col1 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
705
870
9603

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col2 * + + col0 ) >= - col0 )
----

query II rowsort
SELECT ALL + - 63 * + col2 AS col0, col0 + + 53 FROM tab1 WHERE NOT - 49 + + + col2 > NULL
----

query I rowsort
SELECT + col0 * - + col1 + - col2 + - + col2 FROM tab2
----
-2392
-5008
-5141

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT 6 + - + COUNT( * ) + - 2 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1219
SELECT DISTINCT 6 + - + COUNT ( * ) + - 2 col2 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61, 73 - col1 col2 FROM tab2 AS cor0
----
61
-4
61
22
61
6

query II rowsort
SELECT - col0 AS col2, + col1 * 17 AS col2 FROM tab2 AS cor0
----
-46
867
-64
1309
-75
1139

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL + + MAX( DISTINCT col0 ) + + 65 - - 98 AS col2 FROM tab0 AS cor0
----
260

skipif mysql # not compatible
query I rowsort label-1222
SELECT ALL + + MAX ( DISTINCT col0 ) + + 65 - - 98 AS col2 FROM tab0 AS cor0
----
260

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

query I rowsort
SELECT - + col0 + - col1 + - col1 FROM tab0 AS cor0
----
-129
-177
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1225
SELECT + 80 DIV - SUM( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1225
SELECT + 80 / - SUM ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1226
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + 14 - - col1 > - - ( - col2 ) * col2 / - col2 * + col0
----

skipif mysql # not compatible
query III rowsort label-1226
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + 14 - - col1 > - - ( - col2 ) * col2 / - col2 * + col0
----

query I rowsort
SELECT DISTINCT 18 * + 32 FROM tab0 AS cor0 WHERE + col0 - - 37 + 42 IS NOT NULL
----
576

onlyif mysql # aggregate syntax: 
query II rowsort label-1228
SELECT COUNT( * ) col2, + 57 - + 76 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-19

skipif mysql # not compatible
query II rowsort label-1228
SELECT COUNT ( * ) col2, + 57 - + 76 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-19

query I rowsort
SELECT ( + - ( - - 17 ) ) * + 64 FROM tab2
----
-1088
-1088
-1088

query I rowsort
SELECT 99 * - 74 AS col0 FROM tab1
----
-7326
-7326
-7326

query II rowsort
SELECT - col1 AS col2, 69 FROM tab2
----
-51
69
-67
69
-77
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - - col2 + - - col0 <= 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT ALL + COUNT( * ) + - 59 * - 40 * - 67 FROM tab2 AS cor0
----
-158117

skipif mysql # not compatible
query I rowsort label-1233
SELECT ALL + COUNT ( * ) + - 59 * - 40 * - 67 FROM tab2 AS cor0
----
-158117

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * col2 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1238
SELECT DISTINCT + CAST( 35 AS SIGNED ) + - col1 FROM tab2
----
-16
-32
-42

skipif mysql # not compatible
query I rowsort label-1238
SELECT DISTINCT + CAST ( 35 AS INTEGER ) + - col1 FROM tab2
----
-16
-32
-42

query I rowsort
SELECT - ( ( + + 61 ) ) * col1 FROM tab0
----
-1281
-4941
-61

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab1 WHERE NOT + + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1241
SELECT + MIN( DISTINCT + 99 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1241
SELECT + MIN ( DISTINCT + 99 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1242
SELECT + col0 * + col2 * + - CAST( NULL AS SIGNED ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-1242
SELECT + col0 * + col2 * + - CAST ( NULL AS INTEGER ), - col2 AS col0 FROM tab1
----
NULL
-59
NULL
-68
NULL
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 97 <> ( - 16 * - 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT DISTINCT col0 + + - col0 - CAST( NULL AS SIGNED ) * - CAST( - col1 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1247
SELECT + col0 DIV - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1247
SELECT + col0 / - col1 col0 FROM tab0 AS cor0
----
-4
-97
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 5 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT + 59 FROM tab2 WHERE NOT - col1 >= - - col0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT SUM( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT SUM ( DISTINCT - col2 ) AS col2 FROM tab2
----
-121

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT - 76 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT + - 88 * + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT + - 88 * + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----
0

query II rowsort
SELECT DISTINCT - 4 AS col1, 4 FROM tab2 AS cor0 WHERE + col0 / + - col0 IS NOT NULL
----
-4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1255
SELECT - ( 9 ) DIV col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT - ( 9 ) / col1 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 < - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE NOT NULL > 63
----

query I rowsort
SELECT ALL - - 69 + - - col1 AS col0 FROM tab0 AS cor0
----
150
70
90

query II rowsort
SELECT + + col2 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col0 * - col1 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1261
SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST( col0 AS SIGNED ) ), - + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c03e6344091de533d45298455510f395

skipif mysql # not compatible
query III rowsort label-1261
SELECT + ( + col2 ) + + + col2 + - - col1 * + 40 AS col2, - ( CAST ( col0 AS INTEGER ) ), - + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9 values hashing to c03e6344091de533d45298455510f395

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT + COUNT( * ) + + + 64 * 81 * MAX( DISTINCT + 66 ) FROM tab2 AS cor0
----
342147

skipif mysql # not compatible
query I rowsort label-1262
SELECT + COUNT ( * ) + + + 64 * 81 * MAX ( DISTINCT + 66 ) FROM tab2 AS cor0
----
342147

query I rowsort
SELECT - - 32 * - 92 * col1 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT DISTINCT - MIN( - 79 ) AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - MIN ( - 79 ) AS col0 FROM tab1 AS cor0
----
79

query I rowsort
SELECT col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1215
-1827
-97

query I rowsort
SELECT col2 + + 78 + ( + col0 ) * + 10 * ( + col0 ) AS col2 FROM tab2 AS cor0
----
21261
41078
56386

query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 cor0 WHERE + 18 IS NOT NULL
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 64, + col1, - - 81 * - + col0 + 72, + col0 * - 1 )
----

query I rowsort
SELECT DISTINCT - - 44 + - - col0 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-1171
-1783
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-1270
SELECT ALL 59 DIV + col2 + - - 4 FROM tab0
----
4
5
9

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL 59 / + col2 + - - 4 FROM tab0
----
4
5
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1271
SELECT 72, COUNT( * ) AS col1 FROM tab0
----
72
3

skipif mysql # not compatible
query II rowsort label-1271
SELECT 72, COUNT ( * ) AS col1 FROM tab0
----
72
3

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

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

query I rowsort
SELECT DISTINCT col0 * - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
107916
315392
376875

query I rowsort
SELECT + 81 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT + col1 - CAST( - 85 AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT col0 DIV 90 AS col2 FROM tab0
----
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-1279
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1280
SELECT ALL COUNT( - 86 ) AS col2 FROM tab0 AS cor0 WHERE - 15 + + col0 <> + + col1
----
3

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL COUNT ( - 86 ) AS col2 FROM tab0 AS cor0 WHERE - 15 + + col0 <> + + col1
----
3

query I rowsort
SELECT 17 * + - 13 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NULL
----
-221
-221
-221

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - - col1 * col1 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL - COUNT( * ) * + 82 AS col2 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL - COUNT ( * ) * + 82 AS col2 FROM tab2
----
-246

query III rowsort
SELECT * FROM tab2 WHERE NOT - 30 + - 31 * - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab2 WHERE - col2 + + ( - col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1289
SELECT - ( + + SUM( DISTINCT + - ( + 58 ) ) ) AS col1 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1289
SELECT - ( + + SUM ( DISTINCT + - ( + 58 ) ) ) AS col1 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL + col1 * col1 + - - 5 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
446
6
6566

query I rowsort
SELECT ALL - - col2 + - 66 AS col1 FROM tab0 AS cor0
----
-19
-56
33

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT DISTINCT + col2 + - col0 DIV + col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-1292
SELECT DISTINCT + col2 + - col0 / + col0 FROM tab2 AS cor0
----
22
39
57

query I rowsort
SELECT ALL - ( + 78 ) FROM tab1 cor0
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT DISTINCT 71 + col0 AS col2 FROM tab2 AS cor0
----
117
135
146

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT 84 / 39 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 49 + ( - col0 ) / 46 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1299
SELECT ALL + col0 * + 1 + CAST( NULL AS SIGNED ) + col0 + 12 / - col0 + + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1299
SELECT ALL + col0 * + 1 + CAST ( NULL AS INTEGER ) + col0 + 12 / - col0 + + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL COUNT( * ) + - 47 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL COUNT ( * ) + - 47 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1301
SELECT - - MIN( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT - - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + 3 * + - col1 FROM tab1
----
-50
70
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1303
SELECT ( + CAST( + col2 AS SIGNED ) ) AS col0 FROM tab2 WHERE - col2 < NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT - CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab2
----
NULL

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

query I rowsort
SELECT - 83 FROM tab2 WHERE ( NOT - 18 + 69 = - col1 )
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ALL - MAX( - col2 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-1306
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab2 cor0
----
23

query I rowsort
SELECT ALL - + 20 + col0 FROM tab0 cor0
----
-5
67
77

query I rowsort
SELECT + - col2 * + col1 FROM tab2 cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1309
SELECT MAX( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1309
SELECT MAX ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col2 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1311
SELECT DISTINCT - ( CAST( - + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - ( CAST ( - + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL 64 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1313
SELECT DISTINCT CAST( 84 AS SIGNED ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT CAST ( 84 AS INTEGER ) FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1314
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1315
SELECT ALL - - 14 AS col1, - 68 / + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

skipif mysql # not compatible
query II rowsort label-1315
SELECT ALL - - 14 AS col1, - 68 / + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
14
NULL
14
NULL
14
NULL

query I rowsort
SELECT - - ( 69 ) * 65 AS col2 FROM tab2 AS cor0
----
4485
4485
4485

query I rowsort
SELECT DISTINCT - - col0 * - - col0 + + col0 AS col0 FROM tab0 AS cor0
----
240
7656
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-1318
SELECT - col2 DIV - ( col0 ) FROM tab1 cor0
----
0
0
1

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

query II rowsort
SELECT ALL - + col1 AS col1, + col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1321
SELECT ALL + ( 71 ) DIV - + SUM( 44 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1321
SELECT ALL + ( 71 ) / - + SUM ( 44 ) FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1322
SELECT * FROM tab0 WHERE NOT CAST( - - col2 AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1322
SELECT * FROM tab0 WHERE NOT CAST ( - - col2 AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( col1 ), col0 FROM tab0
----
-1
97
-21
87
-81
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > col2 + - 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1325
SELECT DISTINCT - col0 + col2 + - col0 DIV + 82 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT - col0 + col2 + - col0 / + 82 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 FROM tab2 AS cor0
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1327
SELECT 54 + + col2 - - CAST( NULL AS SIGNED ) DIV + 0, + col1 * - col2 * - col2 DIV col2 + ( + col0 ) col1 FROM tab1
----
NULL
1395
NULL
3287
NULL
380

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1327
SELECT 54 + + col2 - - CAST ( NULL AS INTEGER ) / + 0, + col1 * - col2 * - col2 / col2 + ( + col0 ) col1 FROM tab1
----
NULL
1395
NULL
3287
NULL
380

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL - SUM( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL - SUM ( DISTINCT + + col0 ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + 16 + + - col0 AS col0 FROM tab2 AS cor0
----
-30
-48
-59

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1331
SELECT ALL + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT col2 * - - 26 + - col0 AS col1 FROM tab1 AS cor0
----
1449
1677
2445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1333
SELECT DISTINCT + 52 / - AVG ( DISTINCT + ( - 92 ) ) + + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1333
SELECT DISTINCT + 52 / - AVG ( DISTINCT + ( - 92 ) ) + + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1334
SELECT - col1 + + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col0 - - - col0 AS col1 FROM tab0 AS cor0 WHERE 26 / + + col1 * + col1 * + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1336
SELECT ALL - ( - 90 ) - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL - ( - 90 ) - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 - - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1338
SELECT ALL SUM( - col1 ) - + + COUNT( * ) DIV - 41 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL SUM ( - col1 ) - + + COUNT ( * ) / - 41 FROM tab0
----
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-1339
SELECT + col0 - - 54 DIV col1 FROM tab2
----
47
64
75

skipif mysql # not compatible
query I rowsort label-1339
SELECT + col0 - - 54 / col1 FROM tab2
----
47
64
75

query I rowsort
SELECT + + col0 * col0 - - + 91 AS col1 FROM tab1 AS cor0
----
2692
7316
8372

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT MAX( 3 ) * 58 AS col1 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1341
SELECT MAX ( 3 ) * 58 AS col1 FROM tab0 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1342
SELECT col2 + + - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

skipif mysql # not compatible
query I rowsort label-1342
SELECT col2 + + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + - 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT + + COUNT( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1345
SELECT + + COUNT ( ALL - col2 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( 23 AS SIGNED ) > - 40 + + 26 / - - col1
----

skipif mysql # not compatible
query III rowsort label-1346
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( 23 AS INTEGER ) > - 40 + + 26 / - - col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= - col0 * - col2
----

query I rowsort
SELECT + 53 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 + + - col1, col0 * col0 )
----

query II rowsort
SELECT - col2 AS col1, + 10 + - + 3 + - - col1 AS col0 FROM tab2
----
-23
58
-40
84
-58
74

query I rowsort
SELECT - col0 * - 75 AS col2 FROM tab0
----
1125
6525
7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1351
SELECT + 45 DIV - SUM( - col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1351
SELECT + 45 / - SUM ( - col0 ) FROM tab0
----
0

query II rowsort
SELECT + ( - + col2 ) AS col0, - 69 AS col1 FROM tab1
----
-59
-69
-68
-69
-96
-69

query I rowsort
SELECT ALL - 40 * + col1 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

query I rowsort
SELECT ALL - + ( col0 ) + + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 64 * + - 12 IS NOT NULL
----

query I rowsort
SELECT ALL + + 75 * - - 9 / + col0 * + + ( + col1 ) + - - 75 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) + - 0 col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 10 + - - col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT + ( - + 36 ) - + - COUNT( * ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1358
SELECT + ( - + 36 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
-33

query I rowsort
SELECT + 88 - - - col1 FROM tab2 AS cor0
----
11
21
37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 + col0 IS NULL
----

query I rowsort
SELECT 24 * col1 - + col2 FROM tab1
----
1060
240
61

query II rowsort
SELECT ( 86 ) + - col2, - 45 AS col1 FROM tab2
----
28
-45
46
-45
63
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1363
SELECT + CAST( - - AVG ( - col2 ) AS SIGNED ) + + 77 - 84 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-1363
SELECT + CAST ( - - AVG ( - col2 ) AS INTEGER ) + + 77 - 84 FROM tab0
----
-59

query I rowsort
SELECT - 77 * + - col1 + - - col0 + + 71 FROM tab0
----
1775
245
6323

query I rowsort
SELECT ALL col1 - - + col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1366
SELECT ALL - + MIN( col1 ) * + CAST( NULL AS SIGNED ) * + - COUNT( * ) * - 17 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 19 <> NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - 4 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT DISTINCT - + col1 * + 87 AS col0 FROM tab1 AS cor0
----
-1218
-4089
-435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + - + 91 FROM tab1 AS cor0
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 2 FROM tab2
----
102
134
154

query I rowsort
SELECT col2 * col2 * + 2 FROM tab2
----
1058
3200
6728

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( col0, col2 + - 11 * ( - col2 ) * col1 + col1 + 17, - - col1, + col2, - + col0, 41 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col2 * - col1 + + + 40 >= - col2 + + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1378
SELECT ALL + - CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + col0 - - col1 + 99 + + ( - + 81 ) IS NOT NULL
----
59
68
96

query II rowsort
SELECT DISTINCT - col1 * + - 55, col2 FROM tab0
----
1155
10
4455
47
55
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1381
SELECT MIN( col2 ) + + ( + 44 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1381
SELECT MIN ( col2 ) + + ( + 44 ) AS col0 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1382
SELECT ( + 87 ) + COUNT( * ) col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1382
SELECT ( + 87 ) + COUNT ( * ) col1 FROM tab1 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT - COUNT( * ) + 48 FROM tab1 cor0
----
45

skipif mysql # not compatible
query I rowsort label-1383
SELECT - COUNT ( * ) + 48 FROM tab1 cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 73 * col0 + col1 + col2 + 95 * + 78 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1384
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 73 * col0 + col1 + col2 + 95 * + 78 AS col0, col2 col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 + - col1 col0 FROM tab1 AS cor0 WHERE NULL >= col1 * col0 + + + ( + col2 )
----

query I rowsort
SELECT DISTINCT - + 90 - - col1 FROM tab1 AS cor0
----
-43
-76
-85

query I rowsort
SELECT DISTINCT - 37 FROM tab0, tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-1388
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT + col0 ) + 81 + - 83 AS col1, ( COUNT( * ) ) AS col0 FROM tab1
----
271
3

skipif mysql # not compatible
query II rowsort label-1388
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT + col0 ) + 81 + - 83 AS col1, ( COUNT ( * ) ) AS col0 FROM tab1
----
271
3

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

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

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE - col0 < + 64 * - - col2
----
-46
-64
-75

query I rowsort
SELECT ALL 13 * - - 77 FROM tab1
----
1001
1001
1001

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT + + MAX( DISTINCT - - ( + - 56 ) ) FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT + + MAX ( DISTINCT - - ( + - 56 ) ) FROM tab0 AS cor0
----
-56

query I rowsort
SELECT - + 84 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-3867
-819
-8315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1395
SELECT SUM( DISTINCT - + col2 ) AS col1, - 47 + + MIN( - 31 ) + + CAST( NULL AS SIGNED ) / - MAX( 5 ) AS col2 FROM tab2 AS cor0
----
-121
NULL

skipif mysql # not compatible
query II rowsort label-1395
SELECT SUM ( DISTINCT - + col2 ) AS col1, - 47 + + MIN ( - 31 ) + + CAST ( NULL AS INTEGER ) / - MAX ( 5 ) AS col2 FROM tab2 AS cor0
----
-121
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT - + col2 * 40 DIV 63 + + 55 AS col1 FROM tab1 AS cor0
----
-5
12
18

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT - + col2 * 40 / 63 + + 55 AS col1 FROM tab1 AS cor0
----
-5
12
18

query I rowsort
SELECT ALL 84 AS col1 FROM tab0 cor0
----
84
84
84

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 + - + col0 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab1 WHERE NOT + 80 * - - col2 IS NOT NULL
----

query II rowsort
SELECT + col1 AS col1, - 19 * + + 3 AS col1 FROM tab0 WHERE NOT ( col1 ) > + col0
----
1
-57
21
-57

query I rowsort
SELECT 4 * - - ( col1 ) AS col0 FROM tab2
----
204
268
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, - col0 col2 FROM tab1
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 60 AS col1, 52 + 26 + - - col2 * 60 col2 FROM tab2 AS cor0
----
60
1458
60
2478
60
3558

query I rowsort
SELECT ALL + 69 + - col2 AS col2 FROM tab1 AS cor0
----
-27
1
10

query I rowsort
SELECT ALL col2 + + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
198
20
94

onlyif mysql # DIV for integer division: 
query II rowsort label-1406
SELECT col0 AS col2, col2 DIV 61 FROM tab1 AS cor0
----
51
1
85
0
91
1

skipif mysql # not compatible
query II rowsort label-1406
SELECT col0 AS col2, col2 / 61 FROM tab1 AS cor0
----
51
1
85
0
91
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1408
SELECT ALL - + 16 / - COUNT( * ) + - - CAST( NULL AS SIGNED ) * - 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL - + 16 / - COUNT ( * ) + - - CAST ( NULL AS INTEGER ) * - 16 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL - 76 + - col0 + + + CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT COUNT( * ) * - 76 * 37 FROM tab0
----
-8436

skipif mysql # not compatible
query I rowsort label-1410
SELECT COUNT ( * ) * - 76 * 37 FROM tab0
----
-8436

query II rowsort
SELECT DISTINCT ( - col2 ), col0 AS col2 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1412
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT MIN( 90 ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1413
SELECT MIN ( 90 ) FROM tab2
----
90

onlyif mysql # DIV for integer division: 
query II rowsort label-1414
SELECT - col0 DIV + - 43 AS col2, ( col2 ) FROM tab2
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-1414
SELECT - col0 / + - 43 AS col2, ( col2 ) FROM tab2
----
1
23
1
40
1
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT ALL + 24 AS col0 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
24
24
24

skipif mysql # not compatible
query I rowsort label-1416
SELECT ALL + 24 AS col0 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
24
24
24

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 + 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1418
SELECT 63 + - col2 - - + 5 * + col0 * + CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 59 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

query I rowsort
SELECT ALL + col0 + col0 * col2 AS col2 FROM tab1
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT ALL - ( - col0 ) * + col2 - - col2 + + col0 DIV + 52 - 81 * + - col2 + + col0 AS col2 FROM tab2
----
2990
5905
9182

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - ( - col0 ) * + col2 - - col2 + + col0 / + 52 - 81 * + - col2 + + col0 AS col2 FROM tab2
----
2990
5905
9182

query I rowsort
SELECT ALL 25 + + col2 AS col2 FROM tab0
----
124
35
72

query I rowsort
SELECT DISTINCT + ( 43 ) * col0 * + + col1 FROM tab0 AS cor0
----
4171
52245
78561

query I rowsort
SELECT DISTINCT col1 + + 6 AS col0 FROM tab1 AS cor0
----
11
20
53

query I rowsort
SELECT + 53 * - 43 AS col1 FROM tab0 AS cor0
----
-2279
-2279
-2279

onlyif mysql # aggregate syntax: 
query I rowsort label-1426
SELECT + MAX( - + 31 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-1426
SELECT + MAX ( - + 31 ) FROM tab1 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT MIN( + - 81 ) col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1427
SELECT MIN ( + - 81 ) col0 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT DISTINCT 52 * + ( + col1 ) FROM tab2
----
2652
3484
4004

query II rowsort
SELECT ALL col0 AS col0, 25 * + 53 AS col2 FROM tab1
----
51
1325
85
1325
91
1325

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT COUNT( * ) * + 14 * - + 81 AS col2 FROM tab1
----
-3402

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT COUNT ( * ) * + 14 * - + 81 AS col2 FROM tab1
----
-3402

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1431
SELECT * FROM tab2 WHERE NOT col0 * - col0 * + col2 IN ( + col2 * - CAST( NULL AS SIGNED ), col2, - 61 )
----

skipif mysql # not compatible
query III rowsort label-1431
SELECT * FROM tab2 WHERE NOT col0 * - col0 * + col2 IN ( + col2 * - CAST ( NULL AS INTEGER ), col2, - 61 )
----

query I rowsort
SELECT ALL - 83 * col0 * - 64 FROM tab0
----
462144
515264
79680

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT DISTINCT COUNT( * ) * + + 74 FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT COUNT ( * ) * + + 74 FROM tab1
----
222

query II rowsort
SELECT DISTINCT col0, ( + col1 ) FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT + 11 * - 98 FROM tab1
----
-1078

query III rowsort
SELECT * FROM tab1 WHERE NOT + 1 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1439
SELECT DISTINCT - - 53 DIV - COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-1439
SELECT DISTINCT - - 53 / - COUNT ( * ) FROM tab0 AS cor0
----
-17

query I rowsort
SELECT ALL 99 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 30 * - 47 + - + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 24 + + + ( + 53 ) - col1 FROM tab0 AS cor0
----
-4
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL - MIN( ALL + 58 ) AS col2 FROM tab0 AS cor0 WHERE - 70 IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL - MIN ( ALL + 58 ) AS col2 FROM tab0 AS cor0 WHERE - 70 IS NOT NULL
----
-58

query I rowsort
SELECT - 75 * - 69 + - + col2 FROM tab2 AS cor0
----
5117
5135
5152

query I rowsort
SELECT col0 + - - 16 AS col2 FROM tab1
----
101
107
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - col1 )
----

query I rowsort
SELECT col1 + ( + col1 ) + - + col0 + - - col2 * - 40 AS col2 FROM tab2
----
-1510
-2261
-864

query I rowsort
SELECT 46 * - 82 + + 19 AS col1 FROM tab2
----
-3753
-3753
-3753

query I rowsort
SELECT ALL + col1 * col1 + - + 23 AS col2 FROM tab0
----
-22
418
6538

query I rowsort
SELECT DISTINCT + col0 + - col0 * - 96 AS col2 FROM tab2 AS cor0
----
4462
6208
7275

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1453
SELECT + 80 AS col0, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
80
NULL
80
NULL
80
NULL

skipif mysql # not compatible
query II rowsort label-1453
SELECT + 80 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
80
NULL
80
NULL
80
NULL

query I rowsort
SELECT - col1 * - col0 + + 37 FROM tab2 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1455
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - col1 - + CAST( NULL AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1456
SELECT + COUNT( * ) - CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1456
SELECT + COUNT ( * ) - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT 77 DIV col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1457
SELECT 77 / col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1458
SELECT col2 DIV - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1458
SELECT col2 / - 80 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT 83 DIV + col2 AS col0 FROM tab1
----
0
1
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1460
SELECT col2 * CAST( 14 * + 81 AS SIGNED ) AS col1 FROM tab1
----
108864
66906
77112

skipif mysql # not compatible
query I rowsort label-1460
SELECT col2 * CAST ( 14 * + 81 AS INTEGER ) AS col1 FROM tab1
----
108864
66906
77112

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 43 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1462
SELECT ( col1 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( 71 ) >= col1
----
3

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( 71 ) >= col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1464
SELECT DISTINCT + 62 DIV + ( + col1 ) col2 FROM tab1
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1464
SELECT DISTINCT + 62 / + ( + col1 ) col2 FROM tab1
----
1
12
4

query I rowsort
SELECT col2 - - col2 * 60 FROM tab1
----
3599
4148
5856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
51
67
77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1468
SELECT + 40 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT + 34 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT - ( COUNT( * ) ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1471
SELECT - ( COUNT ( * ) ) col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1472
SELECT ALL CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT - MIN( ALL + 94 ) - - COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL < col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - MIN ( ALL + 94 ) - - COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL < col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1474
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT - 19 ) - ( COUNT( * ) ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1474
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT - 19 ) - ( COUNT ( * ) ) AS col0 FROM tab0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1475
SELECT + col0 + - col0 AS col0 FROM tab2 WHERE NULL = + col1 + - CAST( NULL AS DECIMAL ) * - 54
----

skipif mysql # not compatible
query I rowsort label-1475
SELECT + col0 + - col0 AS col0 FROM tab2 WHERE NULL = + col1 + - CAST ( NULL AS REAL ) * - 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT + 24 * + MAX( ALL - col0 ) + COUNT( * ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1476
SELECT + 24 * + MAX ( ALL - col0 ) + COUNT ( * ) FROM tab0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT 85 + - 44 AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT ALL + col1 + ( 18 ) FROM tab1
----
23
32
65

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) BETWEEN 66 AND ( 61 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 32 AND col1
----

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

query I rowsort
SELECT + 8 FROM tab2 AS cor0 WHERE NOT ( 52 + - ( - 17 ) ) IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT ALL + ( AVG ( + ( + col2 ) ) ) + + ( + COUNT( + 83 ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL + ( AVG ( + ( + col2 ) ) ) + + ( + COUNT ( + 83 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT DISTINCT + 39 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1484
SELECT DISTINCT + 39 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT col1 * + 42 AS col0 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT DISTINCT - 12 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - 12 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT + COUNT( ALL col1 ) + - 45 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1487
SELECT + COUNT ( ALL col1 ) + - 45 AS col1 FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1488
SELECT col1 * col2 FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1488
SELECT col1 * col2 FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + ( col1 ) + - col2 AS col2 FROM tab1 WHERE col2 + col1 IS NOT NULL
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT + col0 DIV + ( - ( 17 ) ) FROM tab0 cor0
----
-5
-5
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT + col0 / + ( - ( 17 ) ) FROM tab0 cor0
----
-5
-5
0

query I rowsort
SELECT ALL + - col2 + 86 FROM tab2 AS cor0
----
28
46
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1492
SELECT - CAST( - 90 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-1492
SELECT - CAST ( - 90 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT DISTINCT - + 22 * - COUNT( * ) + - 22 col0 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1493
SELECT DISTINCT - + 22 * - COUNT ( * ) + - 22 col0 FROM tab1 AS cor0
----
44

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

query I rowsort
SELECT + col2 * + 89 FROM tab2
----
2047
3560
5162

query III rowsort
SELECT * FROM tab2 WHERE ( 58 ) < + col2 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT + 95 * COUNT( * ) + + COUNT( ALL + col1 ) FROM tab0 WHERE + col1 * 17 NOT IN ( 33 * col1 )
----
288

skipif mysql # not compatible
query I rowsort label-1497
SELECT + 95 * COUNT ( * ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE + col1 * 17 NOT IN ( 33 * col1 )
----
288

query I rowsort
SELECT col0 - - + col0 + + 41 FROM tab2
----
133
169
191

query I rowsort
SELECT + 7 - + + col1 FROM tab0
----
-14
-74
6

query I rowsort
SELECT 62 - + col2 AS col2 FROM tab1
----
-34
-6
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT 40 * col1 FROM tab0 WHERE NULL NOT IN ( - 58 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT - ( - MIN( + col1 ) ) - + 63 AS col1 FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-1503
SELECT - ( - MIN ( + col1 ) ) - + 63 AS col1 FROM tab1
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1504
SELECT ALL + + COUNT( * ) + 24 + + 91 * + 20 FROM tab0 AS cor0
----
1847

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + + COUNT ( * ) + 24 + + 91 * + 20 FROM tab0 AS cor0
----
1847

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1505
SELECT - + ( ( 23 ) ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-1505
SELECT - + ( ( 23 ) ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-1506
SELECT 89 DIV - - 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-1506
SELECT 89 / - - 98 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 82 AND ( - - col2 + col1 * + 14 )
----
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 82 AND ( - - col2 + col1 * + 14 )
----
0

query I rowsort
SELECT DISTINCT + - col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
-1358
-300
-3243

query I rowsort
SELECT + col1 * + 10 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-35
379
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + - col0 - col2 = col1 * - 40 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT ALL - MIN( ALL - 55 ) * + COUNT( * ) + + 86 FROM tab0 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL - MIN ( ALL - 55 ) * + COUNT ( * ) + + 86 FROM tab0 AS cor0
----
251

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT col1 <> + ( + col1 ) * col1
----

query II rowsort
SELECT 19, + col1 * - col2 + 51 AS col1 FROM tab2 AS cor0
----
19
-1122
19
-3029
19
-3835

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT + COUNT( * ) DIV 75 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1516
SELECT + COUNT ( * ) / 75 AS col0 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 34 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1518
SELECT DISTINCT - MAX( col2 ) AS col0 FROM tab0 WHERE ( + - col2 ) BETWEEN ( - 91 + + col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - MAX ( col2 ) AS col0 FROM tab0 WHERE ( + - col2 ) BETWEEN ( - 91 + + col0 ) AND NULL
----
NULL

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

query I rowsort
SELECT - 19 * - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1521
SELECT * FROM tab2 WHERE + + col0 * + + CAST( NULL AS SIGNED ) * - col0 * 40 + - ( - ( 66 ) - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1521
SELECT * FROM tab2 WHERE + + col0 * + + CAST ( NULL AS INTEGER ) * - col0 * 40 + - ( - ( 66 ) - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1522
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1523
SELECT ALL COUNT( * ) * + CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL

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

query I rowsort
SELECT - col0 + - col0 + - 75 FROM tab0 cor0
----
-105
-249
-269

query I rowsort
SELECT ALL - ( - - col1 ) + - col1 FROM tab0 AS cor0
----
-162
-2
-42

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

query I rowsort
SELECT + ( - + col2 ) + + col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE col2 * + + col2 <> ( 36 )
----
-3

skipif mysql # not compatible
query I rowsort label-1528
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 * + + col2 <> ( 36 )
----
-3

query I rowsort
SELECT - col1 + - ( ( + 65 ) ) AS col2 FROM tab1 AS cor0
----
-112
-70
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL + 41 * col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2419
2788
3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL CAST( NULL AS SIGNED ) * ( col0 ) FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) ) BETWEEN NULL AND + col0 + 91
----

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL CAST ( NULL AS INTEGER ) * ( col0 ) FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND + col0 + 91
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 16
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 + - col2 ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 - + - 99 + + col0 * col0 + 91 * col0 AS col2 FROM tab1
----
15144
16752
7392

query I rowsort
SELECT ALL - col2 + + col1 + + 20 FROM tab0
----
-78
31
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT DISTINCT 36 * COUNT( * ) AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT 36 * COUNT ( * ) AS col0 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-1538
SELECT - COUNT( * ) * COUNT( * ) * + - COUNT( * ) FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1538
SELECT - COUNT ( * ) * COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
27

query II rowsort
SELECT ALL - - col1, - col1 + + col1 + - 90 + - col0 AS col2 FROM tab2 AS cor0
----
51
-136
67
-165
77
-154

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 = + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 93 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL - 26 * - COUNT( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 18 * - ( - 78 ) * - col1, + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL - 26 * - COUNT ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 18 * - ( - 78 ) * - col1, + 75 )
----
0

query I rowsort
SELECT - 66 * - - col2 + - 87 + + 66 * + - col0 + - - col0 AS col0 FROM tab2 cor0
----
-4595
-6887
-8790

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( col1 ) ) >= NULL
----

query I rowsort
SELECT - + col1 * - - col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 22 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - 67 FROM tab2
----
23
-67
40
-67
58
-67

query III rowsort
SELECT * FROM tab0 WHERE NULL <= NULL OR NOT ( NULL ) >= NULL
----

query II rowsort
SELECT ALL 45 AS col1, + col1 * + - ( + + col1 ) AS col0 FROM tab1
----
45
-196
45
-2209
45
-25

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( 17 ) ) >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, - 74 AS col2 FROM tab0
----
10
-74
47
-74
99
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - MAX( ALL + ( - - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1553
SELECT - MAX ( ALL + ( - - col2 ) ) FROM tab1
----
-96

query I rowsort
SELECT ALL + + 21 + + ( col0 ) * - 45 AS col0 FROM tab1 AS cor0
----
-2274
-3804
-4074

query II rowsort
SELECT + col2 AS col2, + ( + - col1 ) AS col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-1556
SELECT DISTINCT + + col0 + + col2 - col2 DIV - + col0 AS col2 FROM tab0 AS cor0
----
197
65
97

skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT + + col0 + + col2 - col2 / - + col0 AS col2 FROM tab0 AS cor0
----
197
65
97

query I rowsort
SELECT - col1 * col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query II rowsort label-1558
SELECT DISTINCT 86 AS col1, - COUNT( * ) col2 FROM tab1 AS cor0
----
86
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1558
SELECT DISTINCT 86 AS col1, - COUNT ( * ) col2 FROM tab1 AS cor0
----
86
-3

query I rowsort
SELECT ALL - 6 - + ( 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1560
SELECT 78 + CAST( NULL AS SIGNED ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1560
SELECT 78 + CAST ( NULL AS INTEGER ), col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT + - col2 * + col0 + - - col1 + - + col0 DIV + 27 AS col1 FROM tab2 AS cor0
----
-1008
-2485
-4285

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT + - col2 * + col0 + - - col1 + - + col0 / + 27 AS col1 FROM tab2 AS cor0
----
-1008
-2485
-4285

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

query I rowsort
SELECT ALL + col1 + + 38 * col0 * 84 * col1 * - 34 FROM tab2 AS cor0
----
-254606637
-534825907
-545353133

query I rowsort
SELECT ALL + + col2 + 99 AS col2 FROM tab0 AS cor0
----
109
146
198

query I rowsort
SELECT DISTINCT - + 92 + col1 AS col2 FROM tab1 AS cor0
----
-45
-78
-87

query I rowsort
SELECT - + col1 - - 17 * + + col2 AS col1 FROM tab0 AS cor0
----
149
1682
718

query I rowsort
SELECT DISTINCT col0 + - 90 AS col2 FROM tab2
----
-15
-26
-44

query I rowsort
SELECT ALL 33 + - col0 * + col2 + - col2 FROM tab2
----
-1048
-2567
-4375

query I rowsort
SELECT col0 * + - col1 + + - col1 AS col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT + 99 + - 36 AS col0 FROM tab2
----
63
63
63

query I rowsort
SELECT 54 + col0 + - - 76 + - col0 FROM tab0
----
130
130
130

onlyif mysql # DIV for integer division: 
query I rowsort label-1572
SELECT ALL col1 - - + col2 + - - col1 DIV col2 + + 50 * + - col0 * + col2 AS col1 FROM tab0
----
-35121
-43467
-480050

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL col1 - - + col2 + - - col1 / col2 + + 50 * + - col0 * + col2 AS col1 FROM tab0
----
-35121
-43467
-480050

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT ALL COUNT( * ) * + - 5 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1573
SELECT ALL COUNT ( * ) * + - 5 FROM tab1
----
-15

query I rowsort
SELECT - - col1 FROM tab2 WHERE + col0 + + + col2 <> - col2
----
51
67
77

query I rowsort
SELECT ( - col1 ) + + 63 AS col1 FROM tab0
----
-18
42
62

query I rowsort
SELECT ALL 46 + - 89 FROM tab0
----
-43
-43
-43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 76 * col1 ) <= NULL
----

query II rowsort
SELECT + + 34 AS col1, - 71 + - col2 AS col0 FROM tab0 AS cor0
----
34
-118
34
-170
34
-81

query I rowsort
SELECT + col2 * - - ( + 68 ) AS col2 FROM tab2 cor0
----
1564
2720
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT ALL + ( + 44 ) DIV col0 * - - col2 + + col2 AS col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1580
SELECT ALL + ( + 44 ) / col0 * - - col2 + + col2 AS col2 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( - col2 ) * + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 73 * - col2 FROM tab0 AS cor0
----
-3431
-7227
-730

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

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

query II rowsort
SELECT - 94, ( - col0 ) AS col0 FROM tab0 AS cor0
----
-94
-15
-94
-87
-94
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL + - ( MIN( - col0 ) ) col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1587
SELECT ALL + - ( MIN ( - col0 ) ) col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT + col0 * + col1 + - - 18 AS col0 FROM tab1
----
4295
443
732

query II rowsort
SELECT 14 AS col2, col2 AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col1 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 AS col1, + col0 + + 1 col2 FROM tab0 WHERE NOT col2 + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL - MAX( ALL col0 ) AS col0 FROM tab0 WHERE ( - col1 IN ( - ( 18 ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL - MAX ( ALL col0 ) AS col0 FROM tab0 WHERE ( - col1 IN ( - ( 18 ) ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 60 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT ALL COUNT( * ) * COUNT( * ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1593
SELECT ALL COUNT ( * ) * COUNT ( * ) col2 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1594
SELECT - + COUNT( * ) * 21 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-189

skipif mysql # not compatible
query I rowsort label-1594
SELECT - + COUNT ( * ) * 21 AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-189

query I rowsort
SELECT - col0 + + 25 + - col2 FROM tab0
----
-171
-37
-72

query I rowsort
SELECT - 54 FROM tab1 AS cor0 WHERE - 36 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT - COUNT( * ) + COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1597
SELECT - COUNT ( * ) + COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 64 + - - col2 + col0 FROM tab2 AS cor0
----
133
168
197

query I rowsort
SELECT DISTINCT - - col0 * + 97 + col2 + + col1 FROM tab1 AS cor0
----
5057
8309
8942

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - col0 * - col1 * - + col2 + + 98 / + + 24 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1601
SELECT ALL - - 18 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 + - - col1 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL + col0 - col2 * - - col1 AS col0 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + 34 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 34 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 - + 19 + - - col2 FROM tab1
----
125
128
140

query I rowsort
SELECT ( col2 ) * col1 AS col2 FROM tab1
----
1344
295
3196

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * + col1 col2 FROM tab0
----
1944
24
504

query I rowsort
SELECT ALL 16 * col0 AS col0 FROM tab0
----
1392
1552
240

query I rowsort
SELECT ( col0 ) * 90 AS col0 FROM tab1
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-1611
SELECT + ( + COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1611
SELECT + ( + COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT + 86 * - 6 AS col0 FROM tab2 AS cor0
----
-516
-516
-516

query II rowsort
SELECT ALL - 0 * - col0, col0 FROM tab1 cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ALL 71 * col0 + + col2 AS col0 FROM tab2 AS cor0
----
3289
4584
5383

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT DISTINCT - ( - + COUNT( * ) ) col0, - 12 FROM tab2 AS cor0
----
3
-12

skipif mysql # not compatible
query II rowsort label-1615
SELECT DISTINCT - ( - + COUNT ( * ) ) col0, - 12 FROM tab2 AS cor0
----
3
-12

query I rowsort
SELECT DISTINCT - col0 * + - col0 * - 48 + col0 AS col1 FROM tab1 AS cor0
----
-124797
-346715
-397397

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1617
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col1 * - 15 FROM tab1
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( - + col0 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT DISTINCT + ( + + ( + COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + ( + + ( + COUNT ( * ) ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT COUNT( * ) * + SUM( DISTINCT 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * - - col2 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT COUNT ( * ) * + SUM ( DISTINCT 7 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * - - col2 * col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1622
SELECT DISTINCT - - 69 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1622
SELECT DISTINCT - - 69 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 + + CAST( NULL AS SIGNED ) + col1 + - + col0 NOT BETWEEN + 50 AND + 51 / + col1 + - col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-1623
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 + + CAST ( NULL AS INTEGER ) + col1 + - + col0 NOT BETWEEN + 50 AND + 51 / + col1 + - col1 * + col1
----

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

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

query II rowsort
SELECT ALL - + col1 AS col0, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1627
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 BETWEEN NULL AND + CAST( + - 67 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1627
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - col1 BETWEEN NULL AND + CAST ( + - 67 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + col2 * - - col0 + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
1425
1827
19303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1629
SELECT DISTINCT 3 * - CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
-177
-204
-288

skipif mysql # not compatible
query I rowsort label-1629
SELECT DISTINCT 3 * - CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
-177
-204
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT DISTINCT ( ( + CAST( - col2 AS SIGNED ) ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT ( ( + CAST ( - col2 AS INTEGER ) ) ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1631
SELECT - col0, CAST( NULL AS DECIMAL ) - + col2 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1631
SELECT - col0, CAST ( NULL AS REAL ) - + col2 AS col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT ( - - ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1633
SELECT ALL + col0 + - col1 DIV + + col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL + col0 + - col1 / + + col2 AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab0 WHERE - col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT ALL - SUM( ALL + 82 ) * + - SUM( + col1 ) * + 55 AS col0 FROM tab1 AS cor0
----
892980

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - SUM ( ALL + 82 ) * + - SUM ( + col1 ) * + 55 AS col0 FROM tab1 AS cor0
----
892980

query I rowsort
SELECT ALL + + 27 + 81 AS col2 FROM tab2 AS cor0
----
108
108
108

query I rowsort
SELECT DISTINCT + col1 + - - 70 FROM tab0 AS cor0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1638
SELECT DISTINCT + COUNT( * ) + MIN( + + col0 ) AS col0 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT + COUNT ( * ) + MIN ( + + col0 ) AS col0 FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT - - 37 + + + SUM( ALL + col0 ) col1 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1639
SELECT - - 37 + + + SUM ( ALL + col0 ) col1 FROM tab1 AS cor0
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1640
SELECT ALL 19 + + + 95 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - ( - - col0 ) * - - ( 65 ) AS col1 FROM tab0
----
-5655
-6305
-975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1642
SELECT 9 * - col0 FROM tab1 WHERE + col0 * 51 + - - col2 * col2 + - CAST( + 97 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1642
SELECT 9 * - col0 FROM tab1 WHERE + col0 * 51 + - - col2 * col2 + - CAST ( + 97 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1643
SELECT DISTINCT + COUNT( ALL + CAST( + col2 AS DECIMAL ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1643
SELECT DISTINCT + COUNT ( ALL + CAST ( + col2 AS REAL ) ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1644
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + + col1 * - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1644
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + + col1 * - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN col0 AND + col0
----

query II rowsort
SELECT ALL - col2 + + - col0 col0, 76 AS col1 FROM tab1 AS cor0
----
-144
76
-147
76
-159
76

query I rowsort
SELECT DISTINCT col1 + + - col0 + + 7 * - 68 FROM tab0 AS cor0
----
-410
-542
-572

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + - col1 <= NULL
----

query I rowsort
SELECT - ( + - col0 ) + ( col2 ) AS col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + COUNT( * ) + + 28 AS col2 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-1650
SELECT + COUNT ( * ) + + 28 AS col2 FROM tab1 cor0
----
31

query I rowsort
SELECT ALL - ( - 65 ) * + ( col0 ) AS col2 FROM tab0
----
5655
6305
975

query I rowsort
SELECT ALL + col2 * - 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-1653
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE + 51 < col0
----
2

skipif mysql # not compatible
query I rowsort label-1653
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE + 51 < col0
----
2

query I rowsort
SELECT DISTINCT + 27 FROM tab1 WHERE col1 + - - 49 <= - - col2 + - - 2
----
27

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT SUM( + 54 ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-1657
SELECT SUM ( + 54 ) FROM tab1 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1658
SELECT MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 84 AS col1, - 21 col2 FROM tab1 AS cor0
----
84
-21
84
-21
84
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT DISTINCT - ( + col2 ) DIV - + col0 FROM tab1
----
0
1

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

query I rowsort
SELECT + ( + 82 ) * + col1 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> 60
----

query I rowsort
SELECT - col1 * + 40 * + col2 AS col1 FROM tab2 AS cor0
----
-123200
-155440
-46920

onlyif mysql # aggregate syntax: 
query I rowsort label-1664
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 15 + ( col0 ) - - col0
----
0

skipif mysql # not compatible
query I rowsort label-1664
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 15 + ( col0 ) - - col0
----
0

query I rowsort
SELECT DISTINCT + + col0 + + + col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + 90 + + + 10 AS col1 FROM tab1 AS cor0
----
100
100
100

query II rowsort
SELECT DISTINCT + 79 + - col1 AS col1, col1 FROM tab1 AS cor0
----
32
47
65
14
74
5

query II rowsort
SELECT - col2 + - col1 AS col1, + ( + - 15 ) FROM tab0 AS cor0
----
-100
-15
-128
-15
-31
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT DISTINCT 64 * + + SUM( ALL col1 ) FROM tab0 AS cor0
----
6592

skipif mysql # not compatible
query I rowsort label-1669
SELECT DISTINCT 64 * + + SUM ( ALL col1 ) FROM tab0 AS cor0
----
6592

query II rowsort
SELECT - 27, col1 FROM tab2 AS cor0 WHERE + col1 * col2 <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT DISTINCT 44 DIV col2 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT 44 / col2 AS col0 FROM tab2
----
0
1

query I rowsort
SELECT + + col1 FROM tab2 WHERE col1 - col1 + + col0 + - 86 * - col1 * + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 98 IS NULL
----

query II rowsort
SELECT - 67, 90 AS col1 FROM tab0
----
-67
90
-67
90
-67
90

query II rowsort
SELECT ALL - col2 col2, + col2 AS col0 FROM tab2
----
-23
23
-40
40
-58
58

query I rowsort
SELECT - - 28 * - col2 AS col0 FROM tab1 AS cor0
----
-1652
-1904
-2688

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1680
SELECT ALL + col0 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1681
SELECT + 15 - + col1 * + col2 DIV + col2 + - col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-114
-162
-84

skipif mysql # not compatible
query I rowsort label-1681
SELECT + 15 - + col1 * + col2 / + col2 + - col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-114
-162
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL + COUNT( * ) - ( - COUNT( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL + COUNT ( * ) - ( - COUNT ( * ) ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
18

query I rowsort
SELECT DISTINCT - 75 * 10 AS col1 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND - 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( col1 * 35 ) < col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 64 - - 67 * - - 31 IS NULL
----

query II rowsort
SELECT - col1 + - 45 AS col0, 19 FROM tab1
----
-50
19
-59
19
-92
19

query I rowsort
SELECT + col0 + - + col2 * - + col0 - 3 - - 55 FROM tab0 AS cor0
----
1009
772
9752

query I rowsort
SELECT - + col0 + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT ALL - SUM( + 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1689
SELECT ALL - SUM ( + 16 ) FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1690
SELECT DISTINCT - CAST( COUNT( + col0 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - 80 IS NULL
----
-3

query II rowsort
SELECT ALL - + col0 AS col2, col2 + - col2 AS col0 FROM tab2 AS cor0
----
-46
0
-64
0
-75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT ALL 77 + - + CAST( NULL AS SIGNED ) - 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL 77 + - + CAST ( NULL AS INTEGER ) - 21 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 col2, - 32 FROM tab1 AS cor0
----
-14
-32
-47
-32
-5
-32

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT - 70 BETWEEN NULL AND + col2
----

query I rowsort
SELECT DISTINCT - - ( col1 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - 59 * - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1697
SELECT DISTINCT - 22 * + CAST( + + col1 AS SIGNED ) FROM tab2 WHERE + - col1 + + 16 >= ( + 83 )
----

skipif mysql # not compatible
query I rowsort label-1697
SELECT DISTINCT - 22 * + CAST ( + + col1 AS INTEGER ) FROM tab2 WHERE + - col1 + + 16 >= ( + 83 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1698
SELECT * FROM tab2 WHERE NOT col1 * + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1698
SELECT * FROM tab2 WHERE NOT col1 * + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - - col1 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - - col2 AND NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT - + 29 * COUNT( * ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT - + 29 * COUNT ( * ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT col0 * + - 26 * col0 + + 27 FROM tab1
----
-187823
-215279
-67599

query II rowsort
SELECT + col2 + - 17 * - col2 AS col0, + col0 AS col2 FROM tab1
----
1062
85
1224
91
1728
51

query I rowsort
SELECT ALL 67 * - - 50 FROM tab2 AS cor0
----
3350
3350
3350

onlyif mysql # aggregate syntax: 
query I rowsort label-1704
SELECT DISTINCT - COUNT( * ) + 8 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT - COUNT ( * ) + 8 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1705
SELECT SUM( + col0 ) AS col2 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-1705
SELECT SUM ( + col0 ) AS col2 FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1706
SELECT ALL + CAST( NULL AS DECIMAL ) * col0 + + + col2 + - 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + 27 AS col0 FROM tab1 WHERE NOT NULL BETWEEN col2 AND + + 86
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 + + - ( col2 ) col2 FROM tab1
----
-46
-55
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-1709
SELECT DISTINCT SUM( + col1 ) AS col2, 76 AS col0 FROM tab0
----
103
76

skipif mysql # not compatible
query II rowsort label-1709
SELECT DISTINCT SUM ( + col1 ) AS col2, 76 AS col0 FROM tab0
----
103
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + COUNT( ALL + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + COUNT ( ALL + col0 ) FROM tab0
----
3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 52 * 78 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT - COUNT( * ) DIV - 8 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT - COUNT ( * ) / - 8 + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT + MAX( ALL + - col0 ) col0 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1714
SELECT DISTINCT + MAX ( ALL + - col0 ) col0 FROM tab2
----
-46

query II rowsort
SELECT - ( + 78 ) * - - col2 + + + 16, + col2 AS col2 FROM tab0
----
-3650
47
-764
10
-7706
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT ( - ( COUNT( * ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT ( - ( COUNT ( * ) ) ) AS col2 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1717
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 * - 70 AS col2 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ALL + col0 + col1 * - 98 + col1 FROM tab0 AS cor0
----
-1950
-7842
0

query I rowsort
SELECT DISTINCT 99 + + + 3 AS col2 FROM tab2 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL - col1 DIV col1 + - 51 + col1 + col2 * + - col2 + - col2 FROM tab1 AS cor0
----
-3587
-4697
-9350

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - col1 / col1 + - 51 + col1 + col2 * + - col2 + - col2 FROM tab1 AS cor0
----
-3587
-4697
-9350

query I rowsort
SELECT + ( + - col0 ) * + 66 * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-154836
-325248
-331650

query I rowsort
SELECT ALL - col1 - - - col0 FROM tab2 AS cor0
----
-141
-142
-97

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 97 IS NULL
----

query I rowsort
SELECT ALL - - 34 * + col0 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1726
SELECT + COUNT( * ) DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1726
SELECT + COUNT ( * ) / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 + + col1 < - col2 )
----

query I rowsort
SELECT + + col1 * - + col1 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT - + col2 * - + col2 * + + 23 + + col1 * + col0 AS col1 FROM tab0 AS cor0
----
225520
4127
52022

query II rowsort
SELECT DISTINCT + col2, + 12 FROM tab1 AS cor0
----
59
12
68
12
96
12

query II rowsort
SELECT - 19, + 68 + + - col2 AS col1 FROM tab2
----
-19
10
-19
28
-19
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - COUNT( DISTINCT - + col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1732
SELECT - COUNT ( DISTINCT - + col1 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1734
SELECT - ( + COUNT( * ) ) * + SUM( - col1 ) + - COUNT( * ) AS col0 FROM tab2
----
582

skipif mysql # not compatible
query I rowsort label-1734
SELECT - ( + COUNT ( * ) ) * + SUM ( - col1 ) + - COUNT ( * ) AS col0 FROM tab2
----
582

query I rowsort
SELECT DISTINCT - + col0 AS col1 FROM tab1 WHERE col2 / + - col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT DISTINCT COUNT( DISTINCT 59 ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT COUNT ( DISTINCT 59 ) AS col2 FROM tab1
----
1

query II rowsort
SELECT ALL col1, 72 FROM tab2 WHERE NOT + col0 * + col1 + col0 IS NULL
----
51
72
67
72
77
72

query I rowsort
SELECT - col1 / + col1 + - ( col1 ) AS col0 FROM tab2 WHERE NOT - ( - col1 ) NOT BETWEEN - - 69 AND NULL
----

query I rowsort
SELECT + 52 * + - col1 FROM tab2
----
-2652
-3484
-4004

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 99 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1741
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + - 18 < NULL
----

skipif mysql # not compatible
query III rowsort label-1741
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + - 18 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL - - MAX( - - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL - - MAX ( - - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - ( + - 76 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1744
SELECT ( + CAST( NULL AS DECIMAL ) ) * AVG ( + col1 ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT col2 * + 2 + + 95 + - + col0 FROM tab1 AS cor0
----
128
140
236

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 - - + col2 * - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT ALL 45 + + col2 * + col1 + - 8 DIV col0 AS col2 FROM tab2 AS cor0
----
1218
3125
3931

skipif mysql # not compatible
query I rowsort label-1747
SELECT ALL 45 + + col2 * + col1 + - 8 / col0 AS col2 FROM tab2 AS cor0
----
1218
3125
3931

query I rowsort
SELECT ( + + col0 ) + - col0 * + col1 + + + 92 - col2 + - col2 + + col2 * - + col0 * - - 19 FROM tab1 AS cor0
----
-121802
-93787
-95651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + 44 + 96 FROM tab1 AS cor0 WHERE ( CAST( col2 AS SIGNED ) * + CAST( - col1 AS SIGNED ) + 73 * + col1 ) IS NOT NULL
----
140
140
140

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 44 + 96 FROM tab1 AS cor0 WHERE ( CAST ( col2 AS INTEGER ) * + CAST ( - col1 AS INTEGER ) + 73 * + col1 ) IS NOT NULL
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + + COUNT( * ) * - + ( - SUM( - col0 ) ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + + COUNT ( * ) * - + ( - SUM ( - col0 ) ) FROM tab2 AS cor0
----
-555

onlyif mysql # DIV for integer division: 
query I rowsort label-1751
SELECT - - col0 DIV + col1 + + ( + col0 ) FROM tab0 AS cor0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-1751
SELECT - - col0 / + col1 + + ( + col0 ) FROM tab0 AS cor0
----
15
194
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT + COUNT( * ) + 72 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-1753
SELECT + COUNT ( * ) + 72 FROM tab1
----
75

query I rowsort
SELECT ALL + 47 - - - col0 AS col1 FROM tab2
----
-17
-28
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL COUNT( * ) - + 24 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COUNT ( * ) - + 24 FROM tab1
----
-21

query III rowsort
SELECT DISTINCT col0, 19 * - col1 + + 85 col0, + 51 AS col0 FROM tab0
----
9 values hashing to d10b9abf5793e1b3092ab11959e3707e

query I rowsort
SELECT DISTINCT 24 * + - col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-1758
SELECT 14 * COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1758
SELECT 14 * COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT DISTINCT + col1 + + col1 + 91 AS col2 FROM tab1
----
101
119
185

query II rowsort
SELECT DISTINCT + 52 * - - ( + + col2 ) col2, + 98 FROM tab2
----
1196
98
2080
98
3016
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 91 - + col2 FROM tab1 AS cor0
----
-5
23
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 + col1 - ( + 0 ) AS col2 FROM tab1 AS cor0
----
124
162
69

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT MAX( + - 88 ) col2 FROM tab0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1765
SELECT MAX ( + - 88 ) col2 FROM tab0
----
-88

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT DISTINCT - - col1 DIV + 27 col2 FROM tab2 AS cor0
----
1
2

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > 66 + - ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT DISTINCT + COUNT( * ) * + + 7 AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-1769
SELECT DISTINCT + COUNT ( * ) * + + 7 AS col2 FROM tab0
----
21

query II rowsort
SELECT DISTINCT col0, 15 FROM tab2
----
46
15
64
15
75
15

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1772
SELECT ALL - 18 + - MAX( ALL - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1772
SELECT ALL - 18 + - MAX ( ALL - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1773
SELECT ALL - 9 * COUNT( * ) AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - 9 * COUNT ( * ) AS col1 FROM tab0
----
-27

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE ( - col0 IS NOT NULL )
----
-51
-67
-77

query II rowsort
SELECT 32, col0 AS col1 FROM tab2 AS cor0
----
32
46
32
64
32
75

query I rowsort
SELECT - 99 - col2 AS col0 FROM tab2 AS cor0
----
-122
-139
-157

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT + col2 + - CAST( NULL AS SIGNED ) + - - 82 / 57 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1778
SELECT + col2 + - CAST ( NULL AS INTEGER ) + - - 82 / 57 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1779
SELECT ALL * FROM tab2 WHERE col1 >= CAST( + col0 AS SIGNED )
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-1779
SELECT ALL * FROM tab2 WHERE col1 >= CAST ( + col0 AS INTEGER )
----
46
51
23
64
77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 37 + - 65 + col2 AS col2, - col2 - + col0 col0 FROM tab0
----
-18
-97
19
-62
71
-196

query III rowsort
SELECT * FROM tab0 WHERE - - col1 NOT BETWEEN + 35 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ( COUNT( * ) ) + + 44 col2 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT ( COUNT ( * ) ) + + 44 col2 FROM tab2
----
47

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - 21 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT + + SUM( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1784
SELECT + + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * col1 col2 FROM tab0
----
1701
21
441

query II rowsort
SELECT 48 AS col2, + 91 AS col1 FROM tab2
----
48
91
48
91
48
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col0 col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1788
SELECT * FROM tab1 cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1788
SELECT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT + - SUM( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT + - SUM ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 0 * - 47 >= NULL
----

query I rowsort
SELECT + 98 * - - col0 AS col2 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT DISTINCT 40 * + COUNT( * ) col2 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1793
SELECT DISTINCT 40 * + COUNT ( * ) col2 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1795
SELECT DISTINCT + + COUNT( * ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1795
SELECT DISTINCT + + COUNT ( * ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + + col1 AS col2 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1798
SELECT DISTINCT + 92 * + COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-1798
SELECT DISTINCT + 92 * + COUNT ( * ) FROM tab2
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-1799
SELECT - - ( + - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1799
SELECT - - ( + - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE - - 47 <> - - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT + + COUNT( * ) + ( 0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1801
SELECT + + COUNT ( * ) + ( 0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 + + + col0 * 53 - + col1 FROM tab1 AS cor0
----
2740
4585
4867

query I rowsort
SELECT - + 20 + - + col0 AS col2 FROM tab1 cor0
----
-105
-111
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1804
SELECT + COUNT( * ) AS col0, CAST( - COUNT( 71 ) AS SIGNED ) + - - MAX( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0
----
3
7287

skipif mysql # not compatible
query II rowsort label-1804
SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( 71 ) AS INTEGER ) + - - MAX ( ALL col1 ) * ( 90 ) AS col0 FROM tab0 AS cor0
----
3
7287

query I rowsort
SELECT ALL col2 - - 61 + + col1 FROM tab2 AS cor0
----
135
178
186

query I rowsort
SELECT ALL 31 + col0 * - 32 FROM tab2
----
-1441
-2017
-2369

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL + COUNT( * ) - + 85 AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL + COUNT ( * ) - + 85 AS col1 FROM tab0
----
-82

query I rowsort
SELECT - - ( - - col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT 90 * + 42 - + col0 FROM tab1
----
3689
3695
3729

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 61 * - - col0 AS col1 FROM tab1 AS cor0
----
-3111
-5185
-5551

query I rowsort
SELECT + 71 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL + col1 * 37 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 68 IS NULL
----
1807
244
614

query I rowsort
SELECT ALL 18 * + col2 * - + col0 FROM tab0 AS cor0
----
-12690
-15660
-172854

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT ( - COUNT( + - col1 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1816
SELECT ( - COUNT ( + - col1 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT + ( + + COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT + ( + + COUNT ( * ) ) col1 FROM tab0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1819
SELECT ALL - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1820
SELECT - MAX( ALL + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1820
SELECT - MAX ( ALL + col0 ) FROM tab0 cor0
----
-97

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL = ( NULL ) )
----

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NOT - + 84 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1823
SELECT ALL 49 DIV + col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-1823
SELECT ALL 49 / + col0 FROM tab0
----
0
0
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 + - col2 IS NULL OR + 49 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1825
SELECT ALL - col1 DIV col2 * - col2 AS col0, 0 FROM tab0
----
0
0
20
0
47
0

skipif mysql # not compatible
query II rowsort label-1825
SELECT ALL - col1 / col2 * - col2 AS col0, 0 FROM tab0
----
0
0
20
0
47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1826
SELECT DISTINCT col1 DIV col0 * + col0 AS col0 FROM tab2
----
0
46
64

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT col1 / col0 * + col0 AS col0 FROM tab2
----
0
46
64

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE NOT + - 99 > - + col0
----
46
64
75

query I rowsort
SELECT - 17 * - ( + + 87 ) FROM tab0
----
1479
1479
1479

query I rowsort
SELECT col2 * 51 FROM tab2
----
1173
2040
2958

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( - 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + + ( - 61 ) + 29 FROM tab2
----
19
35
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col0 * + + 26 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
0

query II rowsort
SELECT ALL - ( + - col1 ) + - + 33 AS col0, + col1 FROM tab1 AS cor0
----
-19
14
-28
5
14
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT COUNT( * ) + + - COUNT( * ) + + 27 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-1835
SELECT COUNT ( * ) + + - COUNT ( * ) + + 27 FROM tab1
----
27

query I rowsort
SELECT col0 * - 66 FROM tab0
----
-5742
-6402
-990

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT 73 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL 53 + + SUM( col2 ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-1838
SELECT ALL 53 + + SUM ( col2 ) FROM tab2 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1839
SELECT ALL col0 - + - col0 - CAST( + col0 AS SIGNED ) * - col0 DIV - col0 - 66 AS col0 FROM tab1 AS cor0
----
-15
19
25

skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL col0 - + - col0 - CAST ( + col0 AS INTEGER ) * - col0 / - col0 - 66 AS col0 FROM tab1 AS cor0
----
-15
19
25

query I rowsort
SELECT + col2 - + + col0 FROM tab1 cor0
----
-23
-26
45

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE - 0 BETWEEN + 45 * col2 AND NULL
----

query I rowsort
SELECT + - col0 FROM tab2 cor0 WHERE - col1 * col1 * + 61 * - 78 BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 - + + col1 + + - col0 col0 FROM tab0 AS cor0
----
-66
-68
-78

query I rowsort
SELECT DISTINCT + 42 + col2 FROM tab2
----
100
65
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL - col0 - - CAST( - col2 AS SIGNED ) FROM tab2
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - col0 - - CAST ( - col2 AS INTEGER ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT + col0 + - ( + 8 ) AS col1 FROM tab1
----
43
77
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT DISTINCT SUM( - 10 ) AS col1 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-1848
SELECT DISTINCT SUM ( - 10 ) AS col1 FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT ALL - COUNT( col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1849
SELECT ALL - COUNT ( col1 ) AS col0 FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT - 20 / - col0 + - - 40 * + ( + + col0 ) / + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - 24 FROM tab1 cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1852
SELECT + col1 DIV + col1 + - - col1 + col0 + col0 * + - ( - col0 ) * + col0 + - col2 + + 90 * col2 FROM tab1 AS cor0
----
141261
619467
759762

skipif mysql # not compatible
query I rowsort label-1852
SELECT + col1 / + col1 + - - col1 + col0 + col0 * + - ( - col0 ) * + col0 + - col2 + + 90 * col2 FROM tab1 AS cor0
----
141261
619467
759762

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 - col0 + - ( col2 ) + + - 14 + + + ( + - col0 ) / col0 * + col1 / - + col2 <> 88 * col1 + + col2 * + 64 + - + 99 * - - col2
----

query I rowsort
SELECT + - 30 * - 16 * col1 AS col0 FROM tab2 cor0
----
24480
32160
36960

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 21 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1856
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST( - - col1 AS DECIMAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1856
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST ( - - col1 AS REAL ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 34 + - col0 + - + 53 * - col0 AS col0 FROM tab2 AS cor0
----
2426
3362
3934

query II rowsort
SELECT ALL col0, + col0 - + + 33 * 17 - col0 + + - col0 * + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-5457
85
-5576
91
-6749

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 13 <> - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1860
SELECT CAST( + - 56 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-56
-56
-56

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

query I rowsort
SELECT DISTINCT + col0 * + + col0 + + col2 + 60 * - + col2 FROM tab2 AS cor0
----
1736
2203
759

query I rowsort
SELECT ALL + + 0 * - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col2 * - + col0 + + 58 + + + col1 + + + ( col0 ) AS col2 FROM tab0
----
-551
-704
-9447

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - - col1 - + - col1, col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
210
14
2256
47
30
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1865
SELECT - col1 + + 95 * + col0 DIV col0 FROM tab1
----
48
81
90

skipif mysql # not compatible
query I rowsort label-1865
SELECT - col1 + + 95 * + col0 / col0 FROM tab1
----
48
81
90

query I rowsort
SELECT col1 + col0 + + 25 - - col2 FROM tab0
----
143
168
222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 IN ( + + col0 + + + 51, + 53 + - col0, - 64, - ( + col2 ) - col2 * - 47 )
----

query I rowsort
SELECT DISTINCT ( col2 ) - + + 10 FROM tab2
----
13
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL MAX( + + 16 ) * - 52 AS col0 FROM tab0
----
-832

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL MAX ( + + 16 ) * - 52 AS col0 FROM tab0
----
-832

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - + 40 * - + COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - + 40 * - + COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1871
SELECT + COUNT( * ) + + - 75 + + - 56 * + SUM( + CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1871
SELECT + COUNT ( * ) + + - 75 + + - 56 * + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT + 41 + col2 * col0 FROM tab0 AS cor0
----
746
911
9644

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 87, 96 )
----

query II rowsort
SELECT col2 AS col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query II rowsort
SELECT + + 94, col0 AS col1 FROM tab1 AS cor0
----
94
51
94
85
94
91

query I rowsort
SELECT ALL + 51 * - 70 AS col2 FROM tab0 AS cor0
----
-3570
-3570
-3570

query I rowsort
SELECT ALL - + ( - col0 ) + col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT ALL - 12 + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1878
SELECT ALL - 12 + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT - col2 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1880
SELECT MIN( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1881
SELECT - COUNT( DISTINCT - 10 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT 28 * + col1 FROM tab2 AS cor0
----
1428
1876
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT + col2 DIV - - col0 + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-1883
SELECT + col2 / - - col0 + col0 AS col0 FROM tab0 AS cor0
----
18
87
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT ALL 7 AS col0 FROM tab0 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT - COUNT( DISTINCT + - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1886
SELECT - COUNT ( DISTINCT + - col0 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT DISTINCT - SUM( - 14 ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT - SUM ( - 14 ) AS col0 FROM tab0 AS cor0
----
42

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 70, + col0 AS col2 FROM tab2 cor0 WHERE + 35 IS NULL
----

query II rowsort
SELECT DISTINCT - 31, + col1 FROM tab0
----
-31
1
-31
21
-31
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT SUM( ALL + 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT SUM ( ALL + 69 ) AS col0 FROM tab2
----
207

query I rowsort
SELECT + 77 * + 83 FROM tab1
----
6391
6391
6391

query II rowsort
SELECT col2 AS col2, col0 - + col1 FROM tab2
----
23
-5
40
-13
58
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1895
SELECT DISTINCT + CAST( - col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1896
SELECT CAST( + ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1896
SELECT CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT col2 + - - 81 FROM tab0
----
128
180
91

query I rowsort
SELECT 5 + - - col1 * col1 FROM tab1
----
201
2214
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT 97 + MIN( + 71 ) + + 88 + + - 42 col2 FROM tab1
----
214

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1899
SELECT 97 + MIN ( + 71 ) + + 88 + + - 42 col2 FROM tab1
----
214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT + col2 + CAST( NULL AS SIGNED ) - - col2 * ( - col2 ) col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL CAST( - col2 AS SIGNED ) * - + col0 FROM tab2
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL CAST ( - col2 AS INTEGER ) * - + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-1902
SELECT ALL - col2 DIV + + 84 + - - col2 * 67 FROM tab1 AS cor0
----
3953
4556
6431

skipif mysql # not compatible
query I rowsort label-1902
SELECT ALL - col2 / + + 84 + - - col2 * 67 FROM tab1 AS cor0
----
3953
4556
6431

query I rowsort
SELECT DISTINCT col1 + col1 * - 88 - - col2 AS col2 FROM tab0 AS cor0
----
-1817
-7000
12

query I rowsort
SELECT DISTINCT 78 - col1 + col2 FROM tab1 cor0
----
132
160
99

query I rowsort
SELECT ALL col2 * - col1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
-123160
-225330
-26956

query III rowsort
SELECT ALL col1 - col0 AS col0, - col1 AS col1, + + col1 AS col0 FROM tab0
----
9 values hashing to 267f15050838967141c93b2b1d51cf7b

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL + col2 DIV + 51 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + col2 / + 51 FROM tab1 WHERE NOT + col2 IS NULL
----
1
1
1

query II rowsort
SELECT DISTINCT 29 - - col0, col2 FROM tab2
----
104
58
75
23
93
40

onlyif mysql # aggregate syntax: 
query II rowsort label-1909
SELECT COUNT( DISTINCT - col1 ) AS col0, SUM( ALL + col0 ) FROM tab1
----
3
227

skipif mysql # not compatible
query II rowsort label-1909
SELECT COUNT ( DISTINCT - col1 ) AS col0, SUM ( ALL + col0 ) FROM tab1
----
3
227

query II rowsort
SELECT ALL + col1 * - - col2, - col2 AS col1 FROM tab2 AS cor0
----
1173
-23
3080
-40
3886
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT DISTINCT 34 * - MIN( + col2 ) FROM tab0 cor0
----
-340

skipif mysql # not compatible
query I rowsort label-1911
SELECT DISTINCT 34 * - MIN ( + col2 ) FROM tab0 cor0
----
-340

query II rowsort
SELECT - col2, 76 AS col0 FROM tab2 AS cor0 WHERE + col2 / - col1 - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1913
SELECT ALL COUNT( * ) + - COUNT( * ) + + + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1913
SELECT ALL COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1914
SELECT DISTINCT + - 69 DIV + + col2 FROM tab2 cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT + - 69 / + + col2 FROM tab2 cor0
----
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT + col0 / + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / + CAST( 91 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT + col0 / + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 / + CAST ( 91 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT DISTINCT SUM( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1917
SELECT DISTINCT SUM ( ALL - col2 ) col2 FROM tab0 AS cor0
----
-156

query II rowsort
SELECT - ( - - 66 ) AS col0, col1 AS col2 FROM tab1 AS cor0
----
-66
14
-66
47
-66
5

query I rowsort
SELECT DISTINCT col1 * - ( + 5 ) FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT DISTINCT 60 * - COUNT( * ) AS col0 FROM tab0
----
-180

skipif mysql # not compatible
query I rowsort label-1920
SELECT DISTINCT 60 * - COUNT ( * ) AS col0 FROM tab0
----
-180

query I rowsort
SELECT ALL col0 * + - ( + 62 ) AS col0 FROM tab0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * 16 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 15 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 12 * + ( - 51 ) AND NULL
----

query I rowsort
SELECT DISTINCT - + 22 + - col1 AS col2 FROM tab2 WHERE NULL <> col1
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT 68 IS NULL
----
-51
-67
-77

query II rowsort
SELECT 1 col1, + 2 AS col1 FROM tab0 cor0
----
1
2
1
2
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT ALL 66 DIV - - col1 FROM tab0 AS cor0
----
0
3
66

skipif mysql # not compatible
query I rowsort label-1929
SELECT ALL 66 / - - col1 FROM tab0 AS cor0
----
0
3
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT + + CAST( - + COUNT( + + col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT + + CAST ( - + COUNT ( + + col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT AVG ( DISTINCT + + col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + 5 * col2 AS col1 FROM tab0 WHERE NOT 56 + - 9 * + col0 BETWEEN - col2 AND ( + 37 * col2 )
----
235
495
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1933
SELECT - ( - CAST( COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT - ( - CAST ( COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1934
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 33 - CAST( col1 AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 33 - CAST ( col1 AS INTEGER ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1935
SELECT + 27 DIV - col2 - 70 AS col2 FROM tab0
----
-70
-70
-72

skipif mysql # not compatible
query I rowsort label-1935
SELECT + 27 / - col2 - 70 AS col2 FROM tab0
----
-70
-70
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT - MIN( col2 ) col2 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1936
SELECT DISTINCT - MIN ( col2 ) col2 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1937
SELECT * FROM tab2 WHERE NOT ( + col1 * - 73 ) NOT BETWEEN col2 + + CAST( + col2 - - 16 AS SIGNED ) AND ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1937
SELECT * FROM tab2 WHERE NOT ( + col1 * - 73 ) NOT BETWEEN col2 + + CAST ( + col2 - - 16 AS INTEGER ) AND ( col2 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-1939
SELECT DISTINCT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT DISTINCT COUNT( ( 5 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT DISTINCT COUNT ( ( 5 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT 48 * - ( 64 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3072
-3072
-3072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT - col2 + - CAST( NULL AS SIGNED ) / - ( - col0 ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 24 * col0 FROM tab0
----
2088
2328
360

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND 68 / 94
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT COUNT( * ) + 89 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT COUNT ( * ) + 89 AS col0 FROM tab1
----
92

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1948
SELECT - 81 + + CAST( - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-128
-180
-91

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 81 + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-128
-180
-91

query I rowsort
SELECT DISTINCT - col2 * + ( 17 ) FROM tab0
----
-1683
-170
-799

query I rowsort
SELECT + col1 FROM tab1 WHERE + ( col0 ) / 16 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + - col2 <> ( 87 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 56 / + 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT - CAST( NULL AS SIGNED ) / - 34 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT + 21 * COUNT( * ) - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1955
SELECT + 21 * COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( + 56 + - 21 * + col2 )
----

query I rowsort
SELECT ALL 36 AS col0 FROM tab2 WHERE NOT 45 - col2 BETWEEN ( col2 ) AND ( NULL )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT + MIN( 71 ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1958
SELECT + MIN ( 71 ) FROM tab2
----
71

query I rowsort
SELECT + 79 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT COUNT( * ) * MIN( 22 ) AS col2 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1960
SELECT COUNT ( * ) * MIN ( 22 ) AS col2 FROM tab2 AS cor0
----
66

query I rowsort
SELECT + + 66 * - 10 AS col1 FROM tab0 AS cor0
----
-660
-660
-660

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

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

query I rowsort
SELECT - ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 * 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1967
SELECT DISTINCT + + COUNT( ALL col1 ) * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( * ) * - 14 AS col1 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) * - 14 AS col1 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - + 92 * - col0 AS col2 FROM tab2 AS cor0
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 > ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND 60
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 NOT BETWEEN col0 AND 56 * - col1
----

query I rowsort
SELECT DISTINCT 39 * + col0 AS col0 FROM tab2
----
1794
2496
2925

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

query I rowsort
SELECT ALL 57 * - + 34 AS col2 FROM tab2
----
-1938
-1938
-1938

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1976
SELECT ALL COUNT( - 5 ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( + CAST( col2 AS DECIMAL ) ) AND ( col0 + + 97 )
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT ALL COUNT ( - 5 ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN ( + CAST ( col2 AS REAL ) ) AND ( col0 + + 97 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL + ( CAST( NULL AS SIGNED ) ) / 63 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT + SUM( + 91 ) AS col2 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-1979
SELECT + SUM ( + 91 ) AS col2 FROM tab2 cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 65 * col1 ) BETWEEN ( 80 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - + 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-1983
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-1984
SELECT ALL ( + + 41 ) + - col1 - + col0 DIV col2 * col2 col2 FROM tab2 AS cor0
----
-56
-76
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1984
SELECT ALL ( + + 41 ) + - col1 - + col0 / col2 * col2 col2 FROM tab2 AS cor0
----
-56
-76
-84

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 19 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1987
SELECT - col1 DIV 63 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1987
SELECT - col1 / 63 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT 75 * MIN( DISTINCT - col2 DIV col1 ) FROM tab1 cor0 WHERE col2 + + col1 + + ( 13 ) > 40
----
-825

skipif mysql # not compatible
query I rowsort label-1988
SELECT 75 * MIN ( DISTINCT - col2 / col1 ) FROM tab1 cor0 WHERE col2 + + col1 + + ( 13 ) > 40
----
-825

query I rowsort
SELECT DISTINCT + + 11 + 31 + + + col2 * col1 AS col0 FROM tab2 cor0
----
1215
3122
3928

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col0 + col0 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 6 FROM tab2 AS cor0 WHERE col2 * - col2 NOT BETWEEN - col0 AND NULL
----
6
6
6

query I rowsort
SELECT DISTINCT col1 * col1 + - col2 + - col1 FROM tab2
----
2527
4364
5812

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1994
SELECT - CAST( - - 95 AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1995
SELECT ( - col2 ) + + + col0 - 32 DIV col2 DIV + ( col2 + + col0 ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-1995
SELECT ( - col2 ) + + + col0 - 32 / col2 / + ( col2 + + col0 ) AS col0 FROM tab1
----
-45
23
26

query III rowsort
SELECT * FROM tab2 WHERE ( - - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * - 58 AS col1 FROM tab0
----
-5046
-5626
-870

query I rowsort
SELECT - 63 + col1 FROM tab0
----
-42
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT DISTINCT + MAX( 58 ) - COUNT( col2 ) * + 61 FROM tab0
----
-125

skipif mysql # not compatible
query I rowsort label-1999
SELECT DISTINCT + MAX ( 58 ) - COUNT ( col2 ) * + 61 FROM tab0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT CAST( NULL AS SIGNED ) * + col1 + + 1 + + - col0 / 62 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT CAST ( NULL AS INTEGER ) * + col1 + + 1 + + - col0 / 62 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2001
SELECT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) + - + 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2001
SELECT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) + - + 32 IS NOT NULL
----

query I rowsort
SELECT ALL - 99 + + col2 FROM tab1 AS cor0
----
-3
-31
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 17
----

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

query I rowsort
SELECT DISTINCT - col0 + + - 48 FROM tab0 AS cor0
----
-135
-145
-63

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE ( 15 * + col0 ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2007
SELECT col0 * 7 AS col1 FROM tab0 AS cor0 WHERE - col0 + + col2 * - + ( - 34 ) NOT IN ( - CAST( + col2 AS SIGNED ) )
----
105
609
679

skipif mysql # not compatible
query I rowsort label-2007
SELECT col0 * 7 AS col1 FROM tab0 AS cor0 WHERE - col0 + + col2 * - + ( - 34 ) NOT IN ( - CAST ( + col2 AS INTEGER ) )
----
105
609
679

onlyif mysql # DIV for integer division: 
query I rowsort label-2008
SELECT ALL - 49 * 22 DIV - col1 + - 20 FROM tab0
----
-7
1058
31

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - 49 * 22 / - col1 + - 20 FROM tab0
----
-7
1058
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2009
SELECT - CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + 9 * 87 FROM tab1 AS cor0
----
-783
-783
-783

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab0 cor0 WHERE NOT NULL >= - 81
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col1 ) * + 25 <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL - MIN( DISTINCT + - col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - MIN ( DISTINCT + - col0 ) AS col2 FROM tab2 cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 / 85 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2017
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 * col0 / 85 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT - COUNT( * ) * + + 59 AS col2 FROM tab2 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2018
SELECT - COUNT ( * ) * + + 59 AS col2 FROM tab2 AS cor0
----
-177

query I rowsort
SELECT + col2 * col0 FROM tab1 AS cor0 WHERE NOT + col1 <= ( - col2 )
----
4896
5015
6188

query I rowsort
SELECT ALL 65 FROM tab2 cor0 WHERE NOT ( ( + + 78 ) / + ( - 84 ) - col0 ) IS NULL
----
65
65
65

query I rowsort
SELECT - 65 * - 75 AS col1 FROM tab0 AS cor0
----
4875
4875
4875

query I rowsort
SELECT 72 - AVG ( col2 + col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + 51 / - col1 AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - 18 col2 FROM tab2 AS cor0
----
1044
414
720

query I rowsort
SELECT ALL - col1 * - + 2 AS col2 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 > ( - + col2 )
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 21 * - col2 * - col2 col1 FROM tab1
----
193536
73101
97104

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 83 + - 78 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT + col0 DIV - + col1 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT + col0 / - + col1 FROM tab0
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2029
SELECT + col1 col0, 36 + + - CAST( NULL AS SIGNED ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2029
SELECT + col1 col0, 36 + + - CAST ( NULL AS INTEGER ) * + col1 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE NOT ( ( 61 - + ( - 60 ) ) IS NULL )
----
2601
7225
8281

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT ( + + col0 + - ( col2 ) * - - 7 ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL + SUM( ALL - 19 ) AS col0 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL + SUM ( ALL - 19 ) AS col0 FROM tab0
----
-57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 22 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 77 + - - 19 AS col2 FROM tab2 AS cor0
----
-58

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 10 * - - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - ( - 44 ) FROM tab0 AS cor0
----
-3564
-44
-924

query III rowsort
SELECT * FROM tab0 WHERE + - 6 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - - col2 * + col1 + + + col2 > ( 51 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE col0 + col2 <= ( NULL )
----

query II rowsort
SELECT DISTINCT - col2 * + - col0 + + + 42 * + + col2 + 68, col2 AS col2 FROM tab0 AS cor0
----
1358
10
13829
99
2747
47

query I rowsort
SELECT + + 70 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT ( - - col1 ) + 85 AS col2 FROM tab2 AS cor0
----
136
152
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2045
SELECT ALL + col0 + 74 - ( - CAST( - - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
143
178
207

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL + col0 + 74 - ( - CAST ( - - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
143
178
207

query I rowsort
SELECT ALL col1 + + 58 * col2 AS col0 FROM tab1 AS cor0 WHERE col1 * - col0 * + - 82 NOT BETWEEN ( NULL ) AND col0 - + 49 + + ( col0 ) - - col1 / col1 * - 66
----
3427
3991
5582

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT + MIN( col1 ) + - + 69 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT + MIN ( col1 ) + - + 69 FROM tab1 AS cor0
----
-64

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

query I rowsort
SELECT - - ( 84 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
84
84
84

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 60 ) * - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 + col2 * - ( - col2 ) / + - col1 + - col1 * 85 ) NOT BETWEEN - col1 * - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT col0 * 38 * + + 37 FROM tab2
----
105450
64676
89984

query III rowsort
SELECT * FROM tab1 WHERE - - 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 22 AS col0, - ( 20 ) FROM tab1
----
22
-20

query I rowsort
SELECT 97 * + - col1 AS col2 FROM tab0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ( COUNT( DISTINCT - 90 ) ) * - 73 AS col0 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2057
SELECT ( COUNT ( DISTINCT - 90 ) ) * - 73 AS col0 FROM tab0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL 39 * - - CAST( NULL AS SIGNED ) + 23 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - + COUNT( * ) - 82 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2059
SELECT - + COUNT ( * ) - 82 FROM tab2 AS cor0
----
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2061
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2061
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL ( + col2 ), col2 + - col1 * + col2 * col2 * + + col2 - - col1 + + col2 AS col0 FROM tab1
----
59
-1026772
68
-14778121
96
-12386098

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2064
SELECT + 2, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query II rowsort label-2064
SELECT + 2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT ALL col1 + - col0 AS col1, + col1 AS col2 FROM tab2 WHERE - + ( + + 73 ) + 21 IS NULL
----

query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab2 AS cor0 WHERE NULL = ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2067
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 - - + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2067
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0 - - + CAST ( + col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT DISTINCT + COUNT( * ) * - MAX( - 24 ) AS col2 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT + COUNT ( * ) * - MAX ( - 24 ) AS col2 FROM tab0 AS cor0
----
72

query II rowsort
SELECT ALL + 23 AS col0, col2 / + col1 * ( + + 40 ) FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2070
SELECT DISTINCT + + col2 DIV + + col1 + - col1 FROM tab2 WHERE NOT - 48 * - + col2 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT + + col2 / + + col1 + - col1 FROM tab2 WHERE NOT - 48 * - + col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + 43 * - - col0 AS col2 FROM tab2
----
1978
2752
3225

query II rowsort
SELECT - col1 AS col0, + 91 FROM tab0
----
-1
91
-21
91
-81
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT - CAST( 71 AS SIGNED ) FROM tab0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-2073
SELECT - CAST ( 71 AS INTEGER ) FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2074
SELECT ALL COUNT( ALL - + col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2074
SELECT ALL COUNT ( ALL - + col1 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT DISTINCT + COUNT( * ) + 51 AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2075
SELECT DISTINCT + COUNT ( * ) + 51 AS col0 FROM tab1
----
54

query II rowsort
SELECT col0 AS col2, - 75 + + col0 * + col1 FROM tab1
----
51
639
85
350
91
4202

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + MIN( ALL - - 64 ) * - COUNT( * ) col0 FROM tab2
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2077
SELECT + MIN ( ALL - - 64 ) * - COUNT ( * ) col0 FROM tab2
----
-192

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

query I rowsort
SELECT DISTINCT 1 * + col2 * - 34 + - 78 + - ( col2 ) * - col2 AS col2 FROM tab0 AS cor0
----
-318
533
6357

query I rowsort
SELECT DISTINCT + 54 + col1 FROM tab2 cor0
----
105
121
131

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT - col1 * + col2 * + - col2 FROM tab1 AS cor0 WHERE 99 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2083
SELECT DISTINCT - col2 * - 33 * CAST( NULL AS SIGNED ) + + + 12 + - 63 / - col2 - - + col0 * - col1 AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 5 + + 12 + - col1 + + col0 * col2 FROM tab2 AS cor0
----
1024
2500
4300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT DISTINCT - - 68 - CAST( + col0 AS SIGNED ) + + + col2 FROM tab2 AS cor0
----
44
45
51

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - - 68 - CAST ( + col0 AS INTEGER ) + + + col2 FROM tab2 AS cor0
----
44
45
51

query I rowsort
SELECT - - col0 * + col1 + - col0 - 2 * - - col1 FROM tab1 AS cor0
----
330
4092
635

onlyif mysql # DIV for integer division: 
query I rowsort label-2087
SELECT ALL - - ( + col0 ) * - - 27 + + col0 + + col1 DIV col0 * 75 FROM tab2 AS cor0
----
1363
1867
2100

skipif mysql # not compatible
query I rowsort label-2087
SELECT ALL - - ( + col0 ) * - - 27 + + col0 + + col1 / col0 * 75 FROM tab2 AS cor0
----
1363
1867
2100

query I rowsort
SELECT DISTINCT - 69 * + - col0 FROM tab0
----
1035
6003
6693

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ALL 44 * + - 1 - - COUNT( * ) AS col1 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL 44 * + - 1 - - COUNT ( * ) AS col1 FROM tab0
----
-41

query I rowsort
SELECT ALL - col1 * - col0 * 63 - - + col2 - + 88 * + 31 * - - col1 + - col1 / col0 AS col0 FROM tab0 WHERE - col0 BETWEEN NULL AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + + + 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 86 * - - 4 + + + 28 * col0 FROM tab2
----
1632
2136
2444

query II rowsort
SELECT DISTINCT ( + + 97 ) col0, 95 * - - col0 * + + col1 AS col1 FROM tab1
----
97
40375
97
406315
97
67830

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2094
SELECT DISTINCT 95 * - col2 AS col2, col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-2185
NULL
-3800
NULL
-5510
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT DISTINCT 95 * - col2 AS col2, col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-2185
NULL
-3800
NULL
-5510
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT DISTINCT - col1 DIV + col1 col0 FROM tab2 AS cor0
----
-1

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

query II rowsort
SELECT col1 * col2, col1 AS col2 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT DISTINCT - ( + COUNT( ALL - - 82 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - ( + COUNT ( ALL - - 82 ) ) FROM tab2
----
-3

query I rowsort
SELECT 20 * 91 * - ( - col1 ) + ( 71 ) AS col2 FROM tab1 AS cor0
----
25551
85611
9171

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT ALL + COUNT( * ) AS col2, + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 + - + col0 <= NULL )
----
0
0

skipif mysql # not compatible
query II rowsort label-2099
SELECT ALL + COUNT ( * ) AS col2, + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col1 + - + col0 <= NULL )
----
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT 35 * + COUNT( * ) + - MAX( ALL + col0 ) FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2101
SELECT 35 * + COUNT ( * ) + - MAX ( ALL + col0 ) FROM tab1 AS cor0
----
14

onlyif mysql # aggregate syntax: 
query II rowsort label-2102
SELECT - COUNT( * ), 59 AS col2 FROM tab0 AS cor0
----
-3
59

skipif mysql # not compatible
query II rowsort label-2102
SELECT - COUNT ( * ), 59 AS col2 FROM tab0 AS cor0
----
-3
59

query I rowsort
SELECT - col2 AS col2 FROM tab2 cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + ( + 33 ) col0, 36 FROM tab1
----
33
36
33
36
33
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2105
SELECT DISTINCT CAST( - MAX( - 96 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT CAST ( - MAX ( - 96 ) AS INTEGER ) FROM tab1
----
96

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( col2, col0 / + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) IN ( + col0 + + - col1, col0 + + + col1 )
----

query I rowsort
SELECT col1 * 27 FROM tab1 AS cor0
----
1269
135
378

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2111
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 26 col1 FROM tab0
----
-2106
-26
-546

query I rowsort
SELECT - col1 FROM tab0 WHERE col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2114
SELECT - + SUM( + - col1 ) * + + 5 * - COUNT( * ) * - - 89 + SUM( - col2 ) FROM tab0 AS cor0
----
-137661

skipif mysql # not compatible
query I rowsort label-2114
SELECT - + SUM ( + - col1 ) * + + 5 * - COUNT ( * ) * - - 89 + SUM ( - col2 ) FROM tab0 AS cor0
----
-137661

query I rowsort
SELECT - - col1 + 74 AS col1 FROM tab0 AS cor0
----
155
75
95

query I rowsort
SELECT DISTINCT + + 75 + - col0 FROM tab2 AS cor0
----
0
11
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2117
SELECT - 68 * - + CAST( NULL AS SIGNED ) - ( COUNT( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT - 68 * - + CAST ( NULL AS INTEGER ) - ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2118
SELECT + - ( - + CAST( NULL AS DECIMAL ) ) * + 87 * + + 28 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2118
SELECT + - ( - + CAST ( NULL AS REAL ) ) * + 87 * + + 28 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2119
SELECT DISTINCT + + col2 DIV - + col1 + + - ( col0 ) DIV CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT + col2 + - 82 FROM tab0 AS cor0
----
-35
-72
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2122
SELECT ALL col1 DIV - - 10 - + col2 AS col0 FROM tab2 cor0
----
-18
-33
-52

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL col1 / - - 10 - + col2 AS col0 FROM tab2 cor0
----
-18
-33
-52

query I rowsort
SELECT DISTINCT col1 * + 53 AS col2 FROM tab1
----
2491
265
742

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT - COUNT( * ) * + 93 - + + 89 FROM tab1
----
-368

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT - COUNT ( * ) * + 93 - + + 89 FROM tab1
----
-368

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 28 + + - 44 IS NOT NULL
----

query I rowsort
SELECT + 87 * - col2 FROM tab0
----
-4089
-8613
-870

query III rowsort
SELECT * FROM tab1 WHERE NOT 16 - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2129
SELECT ALL COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ALL COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2130
SELECT - 77, - 80 * + COUNT( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-77
-240

skipif mysql # not compatible
query II rowsort label-2130
SELECT - 77, - 80 * + COUNT ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-77
-240

query I rowsort
SELECT DISTINCT - ( 43 ) AS col0 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL - 4 * + - 47 AS col0 FROM tab1 AS cor0
----
188
188
188

query I rowsort
SELECT DISTINCT + - 78 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2134
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + ( + + 33 ) * ( + CAST( col1 AS SIGNED ) ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2134
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + + ( + + 33 ) * ( + CAST ( col1 AS INTEGER ) ) + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL 88 + + - COUNT( * ) FROM tab1 cor0
----
85

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL 88 + + - COUNT ( * ) FROM tab1 cor0
----
85

query I rowsort
SELECT - + 5 * - - col0 AS col2 FROM tab1 AS cor0
----
-255
-425
-455

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 * + col2 > - col1 * + - col1 / - col2 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2138
SELECT SUM( + CAST( + col0 AS SIGNED ) ) col0, 90 FROM tab1
----
227
90

skipif mysql # not compatible
query II rowsort label-2138
SELECT SUM ( + CAST ( + col0 AS INTEGER ) ) col0, 90 FROM tab1
----
227
90

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT + 99 * - 9 BETWEEN + + col2 AND NULL
----
10
47
99

query II rowsort
SELECT col2, 83 AS col2 FROM tab2
----
23
83
40
83
58
83

query III rowsort
SELECT * FROM tab0 WHERE - 6 NOT BETWEEN NULL AND 22
----

query I rowsort
SELECT DISTINCT - + col0 + + - col1 * col2 * - - 77 * + 17 * - 2 FROM tab0 AS cor0
----
259085
549693
9966711

query I rowsort
SELECT DISTINCT - col0 * - - col0 + - col1 AS col1 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT ALL 99 * - col2 * - - col1 * - 36 AS col2 FROM tab2
----
10977120
13849704
4180572

query I rowsort
SELECT + + 69 - - col1 AS col0 FROM tab0 AS cor0
----
150
70
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT ALL + COUNT( ALL + 81 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2146
SELECT ALL + COUNT ( ALL + 81 ) FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT ALL - - COUNT( DISTINCT col1 ) - - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - + col2 / 62 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - - COUNT ( DISTINCT col1 ) - - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - + col2 / 62 IS NOT NULL )
----
0

query I rowsort
SELECT + col2 + + - 34 * - 94 + col1 FROM tab2 AS cor0
----
3270
3313
3321

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL + SUM( + + col0 ) * 94 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL col0 * + + 17 FROM tab2
----
1088
1275
782

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE 5 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - col0 * - - ( + ( col1 ) ) * + + col1 AS col1 FROM tab2
----
-119646
-336675
-379456

query I rowsort
SELECT + - col0 AS col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT 2 * - 94 FROM tab2
----
-188
-188
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT DISTINCT COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT ALL COUNT( * ), + SUM( + col0 ) AS col0 FROM tab1 cor0
----
3
227

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL COUNT ( * ), + SUM ( + col0 ) AS col0 FROM tab1 cor0
----
3
227

query II rowsort
SELECT DISTINCT - 56 AS col0, - 65 FROM tab1 AS cor0
----
-56
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2159
SELECT + + ( - + 18 ) DIV 67 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2159
SELECT + + ( - + 18 ) / 67 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 32 * + 56 AS col2 FROM tab1 AS cor0
----
-1792
-1792
-1792

query I rowsort
SELECT ALL col0 * - + col2 / - 13 - - - 85 + - + col0 AS col0 FROM tab2 WHERE NULL >= - + 16 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT - 9 DIV 24 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT - 9 / 24 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT ALL + SUM( DISTINCT + 98 ) AS col1 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-2163
SELECT ALL + SUM ( DISTINCT + 98 ) AS col1 FROM tab2
----
98

query I rowsort
SELECT + - col0 * 11 + + 91 AS col1 FROM tab2 AS cor0
----
-415
-613
-734

query I rowsort
SELECT ALL - col2 * col2 + + 29 AS col1 FROM tab0 AS cor0
----
-2180
-71
-9772

query I rowsort
SELECT - ( - AVG ( DISTINCT 54 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( + 29 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 2 * + col2 < NULL
----

query I rowsort
SELECT col1 + col0 - - - col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT + + 42 + col0 AS col1 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT ALL - 62 * 94 AS col1 FROM tab1 AS cor0
----
-5828
-5828
-5828

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT + 57 + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-2171
SELECT + 57 + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
60

query I rowsort
SELECT ALL + col0 + + 97 AS col1 FROM tab1 AS cor0
----
148
182
188

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL + MAX( DISTINCT + 98 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL + MAX ( DISTINCT + 98 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
95

query II rowsort
SELECT - + col1 / - 41 / + col2 AS col1, + col2 * - 37 AS col1 FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - - SUM( ( - col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2175
SELECT - - SUM ( ( - col0 ) ) FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND - 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT CAST( NULL AS SIGNED ) + - MIN( - 66 ) / COUNT( DISTINCT + col0 ) * - AVG ( ALL + col2 ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT CAST ( NULL AS INTEGER ) + - MIN ( - 66 ) / COUNT ( DISTINCT + col0 ) * - AVG ( ALL + col2 ) + + 8 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 38 - + 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + col2 * - - col0 + + col2 AS col1 FROM tab0 AS cor0
----
752
880
9702

query II rowsort
SELECT - + col1, ( col2 ) FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2182
SELECT col1 * - 56 + - 30 + CAST( - + 25 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-2182
SELECT col1 * - 56 + - 30 + CAST ( - + 25 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= + col2 * - 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2184
SELECT col1 DIV + + col0 AS col1 FROM tab0 AS cor0
----
0
0
5

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

query II rowsort
SELECT DISTINCT + 89, 74 AS col2 FROM tab0 AS cor0
----
89
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT COUNT( * ) AS col0, ( + 58 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NOT + 70 * - ( col2 ) IS NULL ) )
----
3
58

skipif mysql # not compatible
query II rowsort label-2186
SELECT COUNT ( * ) AS col0, ( + 58 ) AS col1 FROM tab0 WHERE NOT ( NOT ( NOT + 70 * - ( col2 ) IS NULL ) )
----
3
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL MAX( DISTINCT - 65 ) AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL MAX ( DISTINCT - 65 ) AS col2 FROM tab2
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT ALL - MAX( - - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - MAX ( - - col2 ) AS col1 FROM tab1
----
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2190
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST( + - col1 AS SIGNED ) * - - col0 + + - col2 + + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2190
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - CAST ( + - col1 AS INTEGER ) * - - col0 + + - col2 + + 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT DISTINCT - col2 * + ( + CAST( + 43 AS SIGNED ) ) col0 FROM tab0
----
-2021
-4257
-430

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT DISTINCT - col2 * + ( + CAST ( + 43 AS INTEGER ) ) col0 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query II rowsort label-2192
SELECT ALL + 1 col2, - COUNT( * ) + 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1
66

skipif mysql # not compatible
query II rowsort label-2192
SELECT ALL + 1 col2, - COUNT ( * ) + 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2193
SELECT ALL - + 53 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * + ( - col2 ) < + 50 * - - col1 + + 6 + - col2
----

skipif mysql # not compatible
query I rowsort label-2193
SELECT ALL - + 53 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + ( - col2 ) < + 50 * - - col1 + + 6 + - col2
----

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

query I rowsort
SELECT DISTINCT - 44 + + col0 AS col0 FROM tab0 AS cor0
----
-29
43
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - col0 ) + - col0 col2 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2197
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
15

query III rowsort
SELECT * FROM tab1 WHERE + col1 + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2199
SELECT - col0 DIV - - 96 + - col1 + - 67 FROM tab1
----
-114
-72
-81

skipif mysql # not compatible
query I rowsort label-2199
SELECT - col0 / - - 96 + - col1 + - 67 FROM tab1
----
-114
-72
-81

query I rowsort
SELECT DISTINCT + 64 * + col1 FROM tab1
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT + COUNT( - col1 ) + + + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-2201
SELECT + COUNT ( - col1 ) + + + 4 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL COUNT( * ) * - 57 AS col1 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL COUNT ( * ) * - 57 AS col1 FROM tab0
----
-171

query II rowsort
SELECT DISTINCT - - col1 + - col2 AS col1, - 66 FROM tab2 AS cor0
----
28
-66
37
-66
9
-66

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

query I rowsort
SELECT DISTINCT + col1 + - + col1 + - 97 FROM tab1 cor0
----
-97

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= 83 / - - 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL + ( + ( + 0 ) ), - MAX( 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
-49

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL + ( + ( + 0 ) ), - MAX ( 49 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2208
SELECT - - 70 + + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2208
SELECT - - 70 + + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 * ( col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

query I rowsort
SELECT - 21 * + - col1 + + col0 FROM tab1 AS cor0
----
1078
190
345

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

query II rowsort
SELECT DISTINCT - - col0 * - - col0 AS col2, - ( + - 77 ) AS col2 FROM tab0 AS cor0
----
225
77
7569
77
9409
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - col1 * - col0 * col1 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col0, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT + MAX( - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2215
SELECT + MAX ( - col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT + col1 + - col2 - - + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 24 AS col0, + col2 FROM tab2
----
24
23
24
40
24
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col2 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT 49 * + MIN( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
2499

skipif mysql # not compatible
query I rowsort label-2219
SELECT 49 * + MIN ( ALL - - col0 ) AS col1 FROM tab1 AS cor0
----
2499

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT - - SUM( 60 ) FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-2221
SELECT - - SUM ( 60 ) FROM tab0 AS cor0
----
180

query II rowsort
SELECT - col0, 18 AS col1 FROM tab1 AS cor0
----
-51
18
-85
18
-91
18

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

query I rowsort
SELECT - 32 + - - ( + col1 ) + col2 FROM tab1 AS cor0
----
32
78
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + col2 + - + 90 * col0 * - + col1 AS col0 FROM tab1 AS cor0
----
38314
385045
64370

query II rowsort
SELECT 43 AS col1, col2 + - + 24 FROM tab0 cor0 WHERE col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 46 * - 81 + + 11 AS col2 FROM tab1 AS cor0
----
3737

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2229
SELECT DISTINCT + CAST( + 31 AS SIGNED ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + CAST ( + 31 AS INTEGER ) FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT + 25 + + col1 DIV + col1 + - col1 col2 FROM tab0 AS cor0
----
-55
25
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2231
SELECT + 25 + + col1 / + col1 + - col1 col2 FROM tab0 AS cor0
----
-55
25
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT 22 + - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2232
SELECT 22 + - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
25

query I rowsort
SELECT ALL - col0 + - - col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + + ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2235
SELECT + CAST( + col0 AS SIGNED ) DIV col2 * 40 AS col0 FROM tab1
----
0
40
40

skipif mysql # not compatible
query I rowsort label-2235
SELECT + CAST ( + col0 AS INTEGER ) / col2 * 40 AS col0 FROM tab1
----
0
40
40

query I rowsort
SELECT - + 32 - 29 FROM tab0 AS cor0
----
-61
-61
-61

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE - col1 > - 85
----
51
67
77

query I rowsort
SELECT col1 * + - 44 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2239
SELECT + 27 * 43 DIV - 2 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-577

skipif mysql # not compatible
query I rowsort label-2239
SELECT + 27 * 43 / - 2 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-577

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT - 1 * + COUNT( * ) * + + 41 FROM tab2
----
-123

skipif mysql # not compatible
query I rowsort label-2240
SELECT - 1 * + COUNT ( * ) * + + 41 FROM tab2
----
-123

query I rowsort
SELECT + col2 * - ( - - col1 ) * + col0 + + col2 FROM tab2
----
-197080
-291392
-53935

query II rowsort
SELECT 10, col2 FROM tab0
----
10
10
10
47
10
99

query II rowsort
SELECT - - 72 * + col0, + col2 FROM tab0 AS cor0
----
1080
47
6264
10
6984
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + - COUNT( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + - COUNT ( - col1 ) AS col1 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT + 97 AS col0, + col2 * + - 18 FROM tab1 AS cor0
----
97
-1062
97
-1224
97
-1728

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2247
SELECT + col1 DIV + 94 AS col1 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2248
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col1, + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2248
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col1, + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
NULL
3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT ALL - SUM( col0 ), COUNT( * ) * + + 77 AS col2 FROM tab2 AS cor0
----
-185
231

skipif mysql # not compatible
query II rowsort label-2250
SELECT ALL - SUM ( col0 ), COUNT ( * ) * + + 77 AS col2 FROM tab2 AS cor0
----
-185
231

query I rowsort
SELECT ALL + 70 * - + 3 FROM tab1 AS cor0
----
-210
-210
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT MAX( DISTINCT + 12 ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2252
SELECT MAX ( DISTINCT + 12 ) FROM tab1
----
12

query I rowsort
SELECT ALL 19 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT MAX( - 16 ) AS col0 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-2254
SELECT MAX ( - 16 ) AS col0 FROM tab1
----
-16

query I rowsort
SELECT + 2 * - - col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + COUNT( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 12 )
----
0

skipif mysql # not compatible
query I rowsort label-2256
SELECT + COUNT ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 12 )
----
0

query I rowsort
SELECT + col1 + - - col2 * + col2 + + + col0 AS col0 FROM tab1
----
3571
4762
9281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2258
SELECT CAST( - col0 AS SIGNED ) + - + 67 AS col2 FROM tab0
----
-154
-164
-82

skipif mysql # not compatible
query I rowsort label-2258
SELECT CAST ( - col0 AS INTEGER ) + - + 67 AS col2 FROM tab0
----
-154
-164
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2259
SELECT DISTINCT col0, 59 + - CAST( NULL AS DECIMAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2259
SELECT DISTINCT col0, 59 + - CAST ( NULL AS REAL ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT 17 * + col0 FROM tab1
----
1445
1547
867

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 / col2 + - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT DISTINCT - ( COUNT( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2262
SELECT DISTINCT - ( COUNT ( DISTINCT - - col0 ) ) + - 73 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2263
SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST( - col1 AS SIGNED ) + + - col0 AS col2 FROM tab2 cor0
----
143
-97
205
-141
217
-142

skipif mysql # not compatible
query II rowsort label-2263
SELECT DISTINCT col0 + + col0 + col1 AS col2, + CAST ( - col1 AS INTEGER ) + + - col0 AS col2 FROM tab2 cor0
----
143
-97
205
-141
217
-142

query I rowsort
SELECT ALL + + 52 + - - col0 AS col1 FROM tab1 AS cor0
----
103
137
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 col2 FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2266
SELECT + CAST( + ( + 18 ) AS SIGNED ) * col1 + - CAST( + - col2 AS SIGNED ) FROM tab2
----
1264
1426
941

skipif mysql # not compatible
query I rowsort label-2266
SELECT + CAST ( + ( + 18 ) AS INTEGER ) * col1 + - CAST ( + - col2 AS INTEGER ) FROM tab2
----
1264
1426
941

query I rowsort
SELECT ALL col1 * - - 45 FROM tab2
----
2295
3015
3465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT CAST( + - col0 AS SIGNED ) + ( - + 47 ) FROM tab1
----
-132
-138
-98

skipif mysql # not compatible
query I rowsort label-2268
SELECT CAST ( + - col0 AS INTEGER ) + ( - + 47 ) FROM tab1
----
-132
-138
-98

query I rowsort
SELECT + 5 + + 60 * - - col1 AS col1 FROM tab0
----
1265
4865
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 col0 FROM tab2 WHERE NULL IS NULL
----
69
69
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2271
SELECT DISTINCT - SUM( - col0 ) DIV 5 AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT - SUM ( - col0 ) / 5 AS col1 FROM tab0
----
39

query II rowsort
SELECT ALL + col2 * 95, 12 FROM tab2 AS cor0 WHERE NOT ( + + 22 * - - col2 * + - 6 * + 9 * + - col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT - + COUNT( ALL col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2273
SELECT - + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + col1 + - ( + + 43 ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 + + - 33 * 72 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 99 + + - 33 * 72 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2276
SELECT + MIN( DISTINCT + 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-2276
SELECT + MIN ( DISTINCT + 14 ) FROM tab0 AS cor0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2277
SELECT col1 DIV - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2277
SELECT col1 / - ( - col2 ) FROM tab0 AS cor0
----
0
1
2

query I rowsort
SELECT col2 * - + ( + - 65 ) FROM tab0 AS cor0
----
3055
6435
650

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2279
SELECT ALL + 43 * - + CAST( - col1 AS SIGNED ) FROM tab2
----
2193
2881
3311

skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL + 43 * - + CAST ( - col1 AS INTEGER ) FROM tab2
----
2193
2881
3311

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT ALL col0 DIV - ( - col2 ) col0 FROM tab1
----
0
1
1

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

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

query I rowsort
SELECT - - 17 * + 39 FROM tab1 WHERE NOT + - 41 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2283
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col1 + - col2 / + - col1 <= - ( 34 )
----
-1

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col1 + - col2 / + - col1 <= - ( 34 )
----
-1

query II rowsort
SELECT - col0 AS col0, - col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

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

query I rowsort
SELECT ALL 21 + + + col1 AS col0 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT DISTINCT - 64 * - - col0 AS col2 FROM tab0
----
-5568
-6208
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + + COUNT( ALL 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2288
SELECT + + COUNT ( ALL 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - + 37 + ( - + ( + col0 ) ) FROM tab1 cor0
----
-122
-128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT COUNT( * ) + - - 94 + + 14 + + 59 FROM tab1 AS cor0
----
170

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT COUNT ( * ) + - - 94 + + 14 + + 59 FROM tab1 AS cor0
----
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2291
SELECT + col2 * - col2 + - CAST( - 86 AS SIGNED ) * + col2 FROM tab2 AS cor0
----
1449
1624
1840

skipif mysql # not compatible
query I rowsort label-2291
SELECT + col2 * - col2 + - CAST ( - 86 AS INTEGER ) * + col2 FROM tab2 AS cor0
----
1449
1624
1840

query I rowsort
SELECT ( 60 ) + + col0 FROM tab0 AS cor0
----
147
157
75

query III rowsort
SELECT * FROM tab2 WHERE col1 * col2 >= NULL
----

query I rowsort
SELECT col2 * + col0 * + col2 * 81 - - - col1 * - col0 AS col2 FROM tab0
----
2685150
706527
77006554

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT - - 64 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT col1 * + CAST( - + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

skipif mysql # not compatible
query I rowsort label-2296
SELECT col1 * + CAST ( - + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT DISTINCT - col2 * + - ( col0 ) AS col2, + col0 AS col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT + + col0 * + col1 + + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0 WHERE 90 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2300
SELECT - ( + + 79 ) * - - CAST( NULL AS SIGNED ) * col0 * - - ( 47 ) + - 21 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT - ( + + 79 ) * - - CAST ( NULL AS INTEGER ) * col0 * - - ( 47 ) + - 21 FROM tab0 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 < + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT ALL - 55 * COUNT( * ) FROM tab1 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL - 55 * COUNT ( * ) FROM tab1 AS cor0
----
-165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 55 / CAST( NULL AS SIGNED ) < - col2
----

skipif mysql # not compatible
query I rowsort label-2305
SELECT col2 * col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 55 / CAST ( NULL AS INTEGER ) < - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 - + col1, 33 )
----

query I rowsort
SELECT ALL - + col1 * 90 FROM tab1 AS cor0
----
-1260
-4230
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2308
SELECT + 60 * - 48 * - - COUNT( * ) AS col2 FROM tab0
----
-8640

skipif mysql # not compatible
query I rowsort label-2308
SELECT + 60 * - 48 * - - COUNT ( * ) AS col2 FROM tab0
----
-8640

query I rowsort
SELECT 12 + col1 FROM tab1 WHERE NOT col0 - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * + col1 col1 FROM tab1
----
2162
230
644

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2311
SELECT + COUNT( * ) * COUNT( * ) DIV - 14 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) * COUNT ( * ) / - 14 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE col2 * + + col1 + col0 + + - 70 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT DISTINCT - CAST( 63 AS SIGNED ) + col1 AS col0 FROM tab0
----
-42
-62
18

skipif mysql # not compatible
query I rowsort label-2313
SELECT DISTINCT - CAST ( 63 AS INTEGER ) + col1 AS col0 FROM tab0
----
-42
-62
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2314
SELECT * FROM tab2 WHERE - CAST( col2 AS SIGNED ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2314
SELECT * FROM tab2 WHERE - CAST ( col2 AS INTEGER ) + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2315
SELECT - CAST( COUNT( ALL + + col1 ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2315
SELECT - CAST ( COUNT ( ALL + + col1 ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT 94 + + COUNT( * ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-2316
SELECT 94 + + COUNT ( * ) FROM tab2
----
97

query I rowsort
SELECT ALL - - col0 + - 88 * - 7 + - + col1 + - - col1 AS col2 FROM tab2 AS cor0
----
662
680
691

query I rowsort
SELECT DISTINCT + + col1 + 61 FROM tab0 AS cor0
----
142
62
82

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT ALL - col0 DIV 58 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - col0 / 58 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + 84 * - + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-756

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + 84 * - + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-756

query I rowsort
SELECT ALL 6 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2322
SELECT ALL ( + + col1 ) * + 51 FROM tab1 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL OR NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL ( + + col1 ) * + 51 FROM tab1 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - + COUNT( * ) - 96 AS col0 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2323
SELECT - + COUNT ( * ) - 96 AS col0 FROM tab1 cor0
----
-99

query I rowsort
SELECT DISTINCT 26 + col0 FROM tab0 AS cor0
----
113
123
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT ( - 75 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL AND NOT ( - 75 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 WHERE ( - + col0 ) IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT col1 + + col2 + + - 85 FROM tab2
----
-11
32
40

query I rowsort
SELECT - 0 + + col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT ALL + MIN( ALL 13 ) FROM tab2, tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2329
SELECT ALL + MIN ( ALL 13 ) FROM tab2, tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT DISTINCT - MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2330
SELECT DISTINCT - MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + ( 84 ) FROM tab1
----
84
84
84

query II rowsort
SELECT DISTINCT - - col2 AS col0, col2 + + - col0 FROM tab2 AS cor0
----
23
-23
40
-24
58
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL + CAST( COUNT( col2 ) AS SIGNED ) + - 14 AS col2 FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL + CAST ( COUNT ( col2 ) AS INTEGER ) + - 14 AS col2 FROM tab1 cor0
----
-11

query I rowsort
SELECT DISTINCT + 37 * + + 37 FROM tab0 AS cor0
----
1369

query I rowsort
SELECT ALL - + 56 * col0 FROM tab0 AS cor0
----
-4872
-5432
-840

query I rowsort
SELECT + + col1 * - - 13 * - ( + col0 ) + + + 36 AS col0 FROM tab2 AS cor0
----
-30462
-64028
-65289

onlyif mysql # aggregate syntax: 
query I rowsort label-2337
SELECT - ( - 3 ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2337
SELECT - ( - 3 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2338
SELECT DISTINCT - 28 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 28 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT col2 + + col0 AS col2, - 56 FROM tab2
----
104
-56
133
-56
69
-56

query I rowsort
SELECT DISTINCT col1 * 11 * + col2 AS col2 FROM tab1
----
14784
3245
35156

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 28 + - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 66 * 99 AS col1 FROM tab2
----
6534
6534
6534

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 col2 FROM tab1 WHERE 80 IS NOT NULL
----
-196
-2209
-25

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

query I rowsort
SELECT - 70 + col2 AS col2 FROM tab0
----
-23
-60
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) - - 61 AS col2 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) - - 61 AS col2 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + + 34 AS col0 FROM tab1
----
39
48
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2349
SELECT + CAST( NULL AS SIGNED ) AS col2, 89 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

skipif mysql # not compatible
query II rowsort label-2349
SELECT + CAST ( NULL AS INTEGER ) AS col2, 89 FROM tab1 AS cor0
----
NULL
89
NULL
89
NULL
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT DISTINCT + SUM( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT + SUM ( ALL - + col1 ) AS col0 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT DISTINCT + 93 + + COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT + 93 + + COUNT ( * ) FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT ALL + COUNT( - + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL + COUNT ( - + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 41 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( ALL - 87 ) col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT + 1, col0 AS col2 FROM tab0
----
1
15
1
87
1
97

query I rowsort
SELECT ALL col0 * - + 90 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT DISTINCT SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
103

query II rowsort
SELECT ALL - 24 AS col2, 54 FROM tab2
----
-24
54
-24
54
-24
54

query I rowsort
SELECT ALL col1 * - + 22 * col1 AS col2 FROM tab1 WHERE - + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2360
SELECT ALL col1, 99 DIV 24 AS col0 FROM tab2
----
51
4
67
4
77
4

skipif mysql # not compatible
query II rowsort label-2360
SELECT ALL col1, 99 / 24 AS col0 FROM tab2
----
51
4
67
4
77
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2361
SELECT DISTINCT - 65 AS col0, CAST( NULL AS SIGNED ) * col0 + + col0 FROM tab1
----
-65
NULL

skipif mysql # not compatible
query II rowsort label-2361
SELECT DISTINCT - 65 AS col0, CAST ( NULL AS INTEGER ) * col0 + + col0 FROM tab1
----
-65
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT ALL - SUM( - 51 ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - SUM ( - 51 ) AS col0 FROM tab1 AS cor0
----
153

query II rowsort
SELECT DISTINCT + - 67, + 78 AS col2 FROM tab0 AS cor0
----
-67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT COUNT( + col1 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2364
SELECT COUNT ( + col1 ) col1 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT + - COUNT( ALL + - 12 ) * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2365
SELECT + - COUNT ( ALL + - 12 ) * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 * - col1 AND - col1 * - col0 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 <= + - 70
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 < - 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL - col0 + + + CAST( - + col1 AS SIGNED ) + + col0 * + ( + + col1 ) AS col1 FROM tab2
----
2249
4787
4883

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - col0 + + + CAST ( - + col1 AS INTEGER ) + + col0 * + ( + + col1 ) AS col1 FROM tab2
----
2249
4787
4883

query I rowsort
SELECT + col1 * - col0 + 25 FROM tab1
----
-400
-4252
-689

query I rowsort
SELECT col0 + - 88 AS col0 FROM tab2
----
-13
-24
-42

query I rowsort
SELECT col1 + - 78 FROM tab1
----
-31
-64
-73

query I rowsort
SELECT DISTINCT 48 * + + 33 FROM tab2
----
1584

query I rowsort
SELECT DISTINCT - col2 + - 10 AS col1 FROM tab0 AS cor0
----
-109
-20
-57

query I rowsort
SELECT ALL + + 35 + col2 * + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
123235
225423
27014

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT - 43 BETWEEN ( NULL ) AND ( - col2 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT 89 * + MAX( col1 ) AS col2 FROM tab1
----
4183

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT 89 * + MAX ( col1 ) AS col2 FROM tab1
----
4183

query I rowsort
SELECT DISTINCT + 24 * col2 FROM tab0
----
1128
2376
240

onlyif mysql # DIV for integer division: 
query I rowsort label-2379
SELECT DISTINCT + col1 DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT DISTINCT + col1 / 85 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2380
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2380
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT 14 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2381
SELECT ALL * FROM tab1 WHERE ( col0 + CAST( col2 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2381
SELECT ALL * FROM tab1 WHERE ( col0 + CAST ( col2 AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( 99 ) <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( 99 ) <= + col2
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2384
SELECT DISTINCT + 63 / CAST( - ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) + COUNT( * ) FROM tab0 WHERE ( CAST( NULL AS SIGNED ) ) BETWEEN 30 * + col2 AND col2 / 76
----
NULL

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + 63 / CAST ( - ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) + COUNT ( * ) FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) ) BETWEEN 30 * + col2 AND col2 / 76
----
NULL

query I rowsort
SELECT DISTINCT + col1 - ( col2 + col1 ) FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2386
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2386
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL - 80 + 12 FROM tab1
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT - MAX( ALL + 39 ) FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2390
SELECT - MAX ( ALL + 39 ) FROM tab2
----
-39

query I rowsort
SELECT DISTINCT 38 + col2 * col0 AS col0 FROM tab1
----
4934
5053
6226

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT + COUNT( ALL col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2392
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab1
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2395
SELECT * FROM tab1 WHERE NOT CAST( CAST( col2 AS DECIMAL ) AS SIGNED ) <> - col1 / ( - 52 * col2 )
----

skipif mysql # not compatible
query III rowsort label-2395
SELECT * FROM tab1 WHERE NOT CAST ( CAST ( col2 AS REAL ) AS INTEGER ) <> - col1 / ( - 52 * col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 10 <= 1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 NOT BETWEEN - col1 + - col0 AND + col1 * col2 + col2
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE col0 NOT IN ( - 11 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT 78 - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT 57 * - ( col0 ) + ( - col2 + col0 ) <= ( NULL )
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2399
SELECT DISTINCT 78 - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT 57 * - ( col0 ) + ( - col2 + col0 ) <= ( NULL )
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + SUM( + col1 ) * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15600

skipif mysql # not compatible
query I rowsort label-2400
SELECT + SUM ( + col1 ) * + 80 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
15600

query I rowsort
SELECT col1 * - 51 FROM tab2 AS cor0
----
-2601
-3417
-3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT - COUNT( * ) DIV MAX( DISTINCT col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT - COUNT ( * ) / MAX ( DISTINCT col1 ) FROM tab0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT DISTINCT - col0 + 40 * CAST( - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1971
-285
-611

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT - col0 + 40 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1971
-285
-611

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT DISTINCT MAX( ALL + col1 ) + COUNT( * ) col0 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2405
SELECT DISTINCT MAX ( ALL + col1 ) + COUNT ( * ) col0 FROM tab1 AS cor0
----
50

query I rowsort
SELECT + 45 * + 60 + + col1 FROM tab0 cor0
----
2701
2721
2781

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

query I rowsort
SELECT DISTINCT + col0 + + 42 FROM tab2 AS cor0
----
106
117
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT - col2 + + ( - CAST( NULL AS SIGNED ) + 44 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 58 + - 57 * col2 FROM tab2 AS cor0
----
-1253
-2222
-3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT 65 + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL = ( 20 )
----

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT 65 + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL = ( 20 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2412
SELECT - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2412
SELECT - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + + col2 + col2 AS col2 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 WHERE NOT + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT DISTINCT + COUNT( - 53 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2415
SELECT DISTINCT + COUNT ( - 53 ) AS col2 FROM tab0
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2417
SELECT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2417
SELECT * FROM tab0 WHERE col0 BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT - col2 AS col2 FROM tab1 WHERE col0 + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-2418
SELECT - col2 AS col2 FROM tab1 WHERE col0 + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + 75 + col2 col1 FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT 45 * col1 DIV - 79 AS col0 FROM tab1
----
-2
-26
-7

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT 45 * col1 / - 79 AS col0 FROM tab1
----
-2
-26
-7

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

query I rowsort
SELECT + + col0 - - col0 AS col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT - col2 - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 10 * - col1 + - col1 FROM tab0 AS cor0
----
-11
-231
-891

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < + 33
----

query I rowsort
SELECT DISTINCT - ( + + 16 ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + ( COUNT( * ) ) AS col2 FROM tab2 WHERE NOT ( - col2 ) IN ( + 98 )
----
3

skipif mysql # not compatible
query I rowsort label-2427
SELECT + ( COUNT ( * ) ) AS col2 FROM tab2 WHERE NOT ( - col2 ) IN ( + 98 )
----
3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 68 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + 9 AS col0, - COUNT( * ) FROM tab0 AS cor0
----
9
-3

skipif mysql # not compatible
query II rowsort label-2430
SELECT + 9 AS col0, - COUNT ( * ) FROM tab0 AS cor0
----
9
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + col0 DIV + - 30 + - col2 AS col1 FROM tab1 AS cor0
----
-61
-71
-97

skipif mysql # not compatible
query I rowsort label-2431
SELECT + col0 / + - 30 + - col2 AS col1 FROM tab1 AS cor0
----
-61
-71
-97

query II rowsort
SELECT ALL + - 73, - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-73
-2
-73
-32
-73
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2434
SELECT ALL + - 79 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-2434
SELECT ALL + - 79 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT DISTINCT SUM( + 37 ) AS col0 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT SUM ( + 37 ) AS col0 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query II rowsort label-2436
SELECT - - COUNT( * ) col1, SUM( DISTINCT + 52 ) FROM tab1 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-2436
SELECT - - COUNT ( * ) col1, SUM ( DISTINCT + 52 ) FROM tab1 AS cor0
----
3
52

query II rowsort
SELECT col0, + col0 * + - 65 AS col2 FROM tab1 AS cor0
----
51
-3315
85
-5525
91
-5915

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND + col1
----

query I rowsort
SELECT ( 2 ) AS col1 FROM tab1
----
2
2
2

query I rowsort
SELECT ALL 49 * - ( + - col1 ) * + 8 + - 55 AS col0 FROM tab2
----
19937
26209
30129

query I rowsort
SELECT ALL - 87 * - + col2 AS col1 FROM tab0
----
4089
8613
870

query I rowsort
SELECT ALL ( - col1 ) * - 66 FROM tab0
----
1386
5346
66

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT - col0 * + 3 * - col1 IS NOT NULL
----

query I rowsort
SELECT - col1 + - col1 FROM tab1 WHERE NOT - col2 IS NULL
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - MIN( - 88 ) * - 87 AS col1 FROM tab2 cor0
----
-7656

skipif mysql # not compatible
query I rowsort label-2445
SELECT - MIN ( - 88 ) * - 87 AS col1 FROM tab2 cor0
----
-7656

query II rowsort
SELECT DISTINCT - col2 + - col2 col0, 91 AS col2 FROM tab2 AS cor0
----
-116
91
-46
91
-80
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT + 86 + + + col1 - - col1 DIV 27 * 46 FROM tab2 AS cor0
----
183
245
255

skipif mysql # not compatible
query I rowsort label-2447
SELECT + 86 + + + col1 - - col1 / 27 * 46 FROM tab2 AS cor0
----
183
245
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT ALL - col1 + col0 * - col2 FROM tab1 AS cor0 WHERE + CAST( - + col0 AS SIGNED ) NOT BETWEEN ( - col0 + col1 ) AND ( 37 )
----
-4910
-5020
-6235

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - col1 + col0 * - col2 FROM tab1 AS cor0 WHERE + CAST ( - + col0 AS INTEGER ) NOT BETWEEN ( - col0 + col1 ) AND ( 37 )
----
-4910
-5020
-6235

query II rowsort
SELECT 24 AS col0, 34 * 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 349660664ebd80b5ac85a6dbcd25216a

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT DISTINCT - SUM( + + col0 ) col2 FROM tab2
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2450
SELECT DISTINCT - SUM ( + + col0 ) col2 FROM tab2
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2451
SELECT * FROM tab1 WHERE col2 * CAST( - col2 AS DECIMAL ) * col0 BETWEEN ( col2 ) AND + col2
----

skipif mysql # not compatible
query III rowsort label-2451
SELECT * FROM tab1 WHERE col2 * CAST ( - col2 AS REAL ) * col0 BETWEEN ( col2 ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL COUNT( DISTINCT - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL COUNT ( DISTINCT - col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL 39 * - col2 AS col1, 32 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1560
32
-2262
32
-897
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2454
SELECT - SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2454
SELECT - SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT ALL + ( - - 99 ) * + 63 + + COUNT( * ) col0 FROM tab1 cor0
----
6240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2455
SELECT ALL + ( - - 99 ) * + 63 + + COUNT ( * ) col0 FROM tab1 cor0
----
6240

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( 58 ) IS NULL
----

query I rowsort
SELECT - col2 * + + 69 + - - 15 FROM tab0
----
-3228
-675
-6816

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + col0 AND - col0
----

query I rowsort
SELECT ALL - 59 - + - col0 AS col2 FROM tab0
----
-44
28
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT + MIN( DISTINCT + - 13 ) + - - COUNT( * ) AS col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-2460
SELECT + MIN ( DISTINCT + - 13 ) + - - COUNT ( * ) AS col1 FROM tab2
----
-10

query I rowsort
SELECT + + col0 FROM tab1 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2462
SELECT - 39 + + CAST( + + col1 AS SIGNED ) FROM tab1
----
-25
-34
8

skipif mysql # not compatible
query I rowsort label-2462
SELECT - 39 + + CAST ( + + col1 AS INTEGER ) FROM tab1
----
-25
-34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT + col0 DIV - + col2 + + col1 FROM tab1
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2463
SELECT + col0 / - + col2 + + col1 FROM tab1
----
14
4
46

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( + - 26 ) * 80 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2467
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 * CAST( NULL AS SIGNED ) ) NOT IN ( + 50 )
----

skipif mysql # not compatible
query III rowsort label-2467
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 * CAST ( NULL AS INTEGER ) ) NOT IN ( + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT - MIN( ALL - - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2468
SELECT - MIN ( ALL - - ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2469
SELECT DISTINCT 13 * - + 15, - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-195
NULL

skipif mysql # not compatible
query II rowsort label-2469
SELECT DISTINCT 13 * - + 15, - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-195
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT + ( col2 ) FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) / + col0 * + - 24 < ( - 51 * - col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + ( col2 ) FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) / + col0 * + - 24 < ( - 51 * - col1 + + col2 )
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2472
SELECT - + col0 * col1 * 38 col0, + 78 DIV + col0 AS col2 FROM tab1 AS cor0
----
-16150
0
-162526
0
-27132
1

skipif mysql # not compatible
query II rowsort label-2472
SELECT - + col0 * col1 * 38 col0, + 78 / + col0 AS col2 FROM tab1 AS cor0
----
-16150
0
-162526
0
-27132
1

query II rowsort
SELECT DISTINCT - 28 * - col1 AS col0, - col0 AS col1 FROM tab2 AS cor0
----
1428
-46
1876
-75
2156
-64

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2475
SELECT ALL - 29 DIV - CAST( + col1 AS SIGNED ), col2 AS col2 FROM tab0
----
0
47
1
10
29
99

skipif mysql # not compatible
query II rowsort label-2475
SELECT ALL - 29 / - CAST ( + col1 AS INTEGER ), col2 AS col2 FROM tab0
----
0
47
1
10
29
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 44 IS NOT NULL
----

query II rowsort
SELECT + col2, + 44 FROM tab2
----
23
44
40
44
58
44

query II rowsort
SELECT ALL - 85 AS col2, 48 FROM tab1
----
-85
48
-85
48
-85
48

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

query I rowsort
SELECT ALL col0 + - + col1 * + 76 FROM tab2
----
-3830
-5017
-5788

query I rowsort
SELECT - - ( 52 ) AS col2 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT DISTINCT - - 2 + + col2 AS col1 FROM tab1 AS cor0
----
61
70
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2483
SELECT DISTINCT + 16 DIV + + COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2483
SELECT DISTINCT + 16 / + + COUNT ( * ) FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT DISTINCT + col1 DIV - 43 + - + 37 AS col2 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-2484
SELECT DISTINCT + col1 / - 43 + - + 37 AS col2 FROM tab2
----
-38

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2485
SELECT DISTINCT MAX( DISTINCT + 2 ) DIV - 41 AS col0 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT MAX ( DISTINCT + 2 ) / - 41 AS col0 FROM tab2, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + - COUNT( DISTINCT + - col2 ) + + - ( - ( - - COUNT( ALL col1 ) ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT + - COUNT ( DISTINCT + - col2 ) + + - ( - ( - - COUNT ( ALL col1 ) ) ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT ALL COUNT( * ) + - 84 AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2487
SELECT ALL COUNT ( * ) + - 84 AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT COUNT( * ) * + - 67 + + 62 FROM tab1 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-2488
SELECT COUNT ( * ) * + - 67 + + 62 FROM tab1 AS cor0
----
-139

query I rowsort
SELECT 29 + + 64 AS col1 FROM tab0 AS cor0
----
93
93
93

query I rowsort
SELECT + + ( - + col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL 46 * + col2 AS col1 FROM tab0 AS cor0
----
2162
4554
460

query I rowsort
SELECT - col2 + 2 AS col0 FROM tab0 AS cor0
----
-45
-8
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2493
SELECT - CAST( + 40 AS SIGNED ) FROM tab1 cor0
----
-40
-40
-40

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE col0 * + col2 + 68 IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 95 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * + - col0 + col1 + - - 11 - 94 FROM tab0 cor0
----
-227
-7631
-9491

query III rowsort
SELECT * FROM tab0 WHERE 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL - MAX( DISTINCT col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab1
----
-91

query I rowsort
SELECT DISTINCT col0 - - ( 53 ) + col0 FROM tab0
----
227
247
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + COUNT( * ) * - COUNT( * ) * - - COUNT( * ) - + ( COUNT( * ) ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-2500
SELECT + COUNT ( * ) * - COUNT ( * ) * - - COUNT ( * ) - + ( COUNT ( * ) ) AS col1 FROM tab1
----
-30

query III rowsort
SELECT * FROM tab1 WHERE NULL <= NULL AND + col1 < + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 > 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + - col1 = - 0
----

query I rowsort
SELECT 36 FROM tab0 AS cor0 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - ( - + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( ( - 50 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 AS col1, 59 + col0 * - col2 + + - 89 FROM tab2
----
23
-1088
40
-2590
58
-4380

onlyif mysql # DIV for integer division: 
query II rowsort label-2508
SELECT DISTINCT - ( + + col1 ), col0 DIV + 79 AS col0 FROM tab1
----
-14
0
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT - ( + + col1 ), col0 / + 79 AS col0 FROM tab1
----
-14
0
-47
1
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT - MAX( ALL + 53 ) * - 41 FROM tab2
----
2173

skipif mysql # not compatible
query I rowsort label-2509
SELECT - MAX ( ALL + 53 ) * - 41 FROM tab2
----
2173

query I rowsort
SELECT - - 85 * - col2 AS col1 FROM tab2 AS cor0
----
-1955
-3400
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT DISTINCT MIN( col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT MIN ( col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 30 * - col1 AS col0 FROM tab1 AS cor0
----
1410
150
420

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 63 ) NOT BETWEEN - 58 + + + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - CAST( NULL AS SIGNED ) * - col1 * + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2515
SELECT + - col0 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT DISTINCT COUNT( * ) * - ( + + 18 ) FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT COUNT ( * ) * - ( + + 18 ) FROM tab1
----
-54

query II rowsort
SELECT ALL + col2 * + col1 * + col2 AS col0, 46 * - + 97 FROM tab1
----
129024
-4462
17405
-4462
217328
-4462

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - ( - 75 ) * 99, + 78 / col0 * 40 - - - ( + col2 ) + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL - + COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL - + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2520
SELECT DISTINCT + 59 AS col0, - col2 DIV col0 - + col0 FROM tab2
----
59
-46
59
-64
59
-75

skipif mysql # not compatible
query II rowsort label-2520
SELECT DISTINCT + 59 AS col0, - col2 / col0 - + col0 FROM tab2
----
59
-46
59
-64
59
-75

query I rowsort
SELECT ALL col0 * - col2 * 48 FROM tab1
----
-235008
-240720
-297024

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + 79 col2 FROM tab1
----
51
79
85
79
91
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2523
SELECT DISTINCT - 44 + + col0 + + 71 * + CAST( - col1 AS SIGNED ) + + CAST( - - 41 AS SIGNED ) / + col0 * - - 20, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2523
SELECT DISTINCT - 44 + + col0 + + 71 * + CAST ( - col1 AS INTEGER ) + + CAST ( - - 41 AS INTEGER ) / + col0 * - - 20, - col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 76 * + col0 FROM tab2 AS cor0
----
-3496
-4864
-5700

query I rowsort
SELECT ALL + 67 + - - 38 FROM tab0 AS cor0
----
105
105
105

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( 90, 1 + + ( - ( 3 ) ), col0 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col1 + - 46 FROM tab2 AS cor0
----
-2647
-4535
-5975

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + CAST( NULL AS DECIMAL ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + CAST ( NULL AS REAL ) > NULL )
----

query I rowsort
SELECT ALL + 34 * - 30 + col2 + + + col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 + - col2 + - col0 AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT ALL - COUNT( * ) - 43 AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2531
SELECT ALL - COUNT ( * ) - 43 AS col2 FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT - ( - - 92 ) - SUM( DISTINCT col0 ) AS col0 FROM tab2
----
-277

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT - ( - - 92 ) - SUM ( DISTINCT col0 ) AS col0 FROM tab2
----
-277

query I rowsort
SELECT 11 * - col1 + + - col0 AS col2 FROM tab0
----
-108
-318
-906

query I rowsort
SELECT col1 + + - 96 FROM tab0
----
-15
-75
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 - col2 col2 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT 27 * + MAX( - - 11 ) * SUM( - col0 ) FROM tab1
----
-67419

skipif mysql # not compatible
query I rowsort label-2536
SELECT 27 * + MAX ( - - 11 ) * SUM ( - col0 ) FROM tab1
----
-67419

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT - 32 * + MAX( + - 76 ) AS col1 FROM tab0
----
2432

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - 32 * + MAX ( + - 76 ) AS col1 FROM tab0
----
2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2538
SELECT ALL col1 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) < NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2539
SELECT ALL + CAST( + + 31 AS SIGNED ) FROM tab0 AS cor0
----
31
31
31

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT - ( - SUM( - + 99 ) ) AS col0 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2540
SELECT - ( - SUM ( - + 99 ) ) AS col0 FROM tab2 AS cor0
----
-297

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + col1 / + - 6 <= col1
----

query II rowsort
SELECT ALL + ( + - col1 ) col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2545
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * 52 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2545
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * 52 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * 87 - 66 FROM tab0 AS cor0
----
-1371
-7635
-8505

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT 84 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT 84 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - + col0 col2 FROM tab2 cor0
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2549
SELECT + COUNT( + - CAST( + col2 AS SIGNED ) ) DIV COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2549
SELECT + COUNT ( + - CAST ( + col2 AS INTEGER ) ) / COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT SUM( DISTINCT - col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-2550
SELECT SUM ( DISTINCT - col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT COUNT( ALL + col2 ) + + 28 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-2551
SELECT COUNT ( ALL + col2 ) + + 28 FROM tab0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2552
SELECT col1 / 11 * - CAST( NULL AS SIGNED ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2552
SELECT col1 / 11 * - CAST ( NULL AS INTEGER ) * 87 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 19 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT + 47 * - - 54 * CAST( NULL AS SIGNED ) * - col2 * 86 / 32 * col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col0 + + 7 - + - col1
----

skipif mysql # not compatible
query I rowsort label-2554
SELECT + 47 * - - 54 * CAST ( NULL AS INTEGER ) * - col2 * 86 / 32 * col2 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + + col0 + + 7 - + - col1
----

query I rowsort
SELECT + + col1 FROM tab2 WHERE col1 >= + - 18
----
51
67
77

query II rowsort
SELECT col0 col0, col1 AS col2 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col0 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2558
SELECT + MIN( DISTINCT + ( - - col2 ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2558
SELECT + MIN ( DISTINCT + ( - - col2 ) ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 89 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT + COUNT( * ) * 25 * + + 72 FROM tab1
----
5400

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT + COUNT ( * ) * 25 * + + 72 FROM tab1
----
5400

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 - col1 FROM tab0 AS cor0
----
1181
1816
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2562
SELECT + - SUM( ALL + CAST( col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2562
SELECT + - SUM ( ALL + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2563
SELECT ALL - + COUNT( * ) DIV 77 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL - + COUNT ( * ) / 77 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * - col1 * + + col2 FROM tab0 AS cor0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL 88 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL 88 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2566
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + 75 * - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2566
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + 75 * - 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - - MAX( ALL + + 68 ) AS col2 FROM tab2 cor0
----
68

skipif mysql # not compatible
query I rowsort label-2567
SELECT - - MAX ( ALL + + 68 ) AS col2 FROM tab2 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT + 68 * - + ( COUNT( + + 66 ) ) * ( - 23 ) FROM tab0 AS cor0
----
4692

skipif mysql # not compatible
query I rowsort label-2568
SELECT + 68 * - + ( COUNT ( + + 66 ) ) * ( - 23 ) FROM tab0 AS cor0
----
4692

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab2 AS cor0
----
-141
-142
-97

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

query I rowsort
SELECT DISTINCT + col0 - - 7 AS col0 FROM tab1
----
58
92
98

query I rowsort
SELECT 55 * - + col1 AS col2 FROM tab1
----
-2585
-275
-770

query II rowsort
SELECT + col2, - col2 AS col0 FROM tab1 WHERE NOT NULL < NULL
----

query II rowsort
SELECT col0 AS col2, 23 FROM tab2
----
46
23
64
23
75
23

query I rowsort
SELECT ALL 97 * - + col1 AS col2 FROM tab2
----
-4947
-6499
-7469

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 36 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2577
SELECT DISTINCT COUNT( * ) * SUM( - + col0 ) AS col0 FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT COUNT ( * ) * SUM ( - + col0 ) AS col0 FROM tab2
----
-555

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 57 * + col0 * 79 = NULL
----

query I rowsort
SELECT ALL col0 * + + col0 AS col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2580
SELECT DISTINCT * FROM tab0 WHERE + ( + CAST( + col2 AS SIGNED ) ) * col1 + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2580
SELECT DISTINCT * FROM tab0 WHERE + ( + CAST ( + col2 AS INTEGER ) ) * col1 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT - - MAX( + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2581
SELECT - - MAX ( + col2 ) AS col1 FROM tab0 AS cor0
----
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 * + - col2 AND - 24 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab1 cor0 WHERE 22 * + - col2 * - + col2 BETWEEN + 50 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL SUM( ALL col0 ) + + 56 AS col1 FROM tab0 cor0
----
255

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL SUM ( ALL col0 ) + + 56 AS col1 FROM tab0 cor0
----
255

query I rowsort
SELECT - col1 AS col0 FROM tab0 cor0 WHERE NOT + col0 * + col0 * + 56 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2587
SELECT - 16 DIV - - col1 * - 35 * 34 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2587
SELECT - 16 / - - col1 * - 35 * 34 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 17 * - + col2 FROM tab2
----
-391
-680
-986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + col2 * 81 col0 FROM tab0
----
3887
8099
890

query II rowsort
SELECT ALL - col2 col2, + 46 AS col0 FROM tab2
----
-23
46
-40
46
-58
46

query I rowsort
SELECT ALL 49 + + col2 FROM tab1
----
108
117
145

query I rowsort
SELECT 87 + + + 81 AS col0 FROM tab1
----
168
168
168

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2594
SELECT col2 + - 17 + + CAST( + - col2 AS SIGNED ) FROM tab2
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-2594
SELECT col2 + - 17 + + CAST ( + - col2 AS INTEGER ) FROM tab2
----
-17
-17
-17

query I rowsort
SELECT + + col2 + - - col2 - 11 * - col2 AS col0 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT + + col0 + + CAST( col1 AS SIGNED ) * col0 FROM tab1 AS cor0
----
4368
510
765

skipif mysql # not compatible
query I rowsort label-2596
SELECT + + col0 + + CAST ( col1 AS INTEGER ) * col0 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2597
SELECT - + ( - - SUM( + ( - col2 ) ) ) + + 25 AS col2 FROM tab1 AS cor0
----
248

skipif mysql # not compatible
query I rowsort label-2597
SELECT - + ( - - SUM ( + ( - col2 ) ) ) + + 25 AS col2 FROM tab1 AS cor0
----
248

query I rowsort
SELECT ALL + 39 AS col1 FROM tab1 AS cor0 WHERE + col2 / + - col2 IS NOT NULL
----
39
39
39

query I rowsort
SELECT ALL - + col2 + + 40 FROM tab0 AS cor0
----
-59
-7
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2600
SELECT DISTINCT col1 * - col2 + + CAST( + col1 AS SIGNED ) + + + 5 + + - col1 * - ( - col1 ) - - col2 FROM tab0 WHERE NOT col0 * + CAST( - col2 AS DECIMAL ) + + col2 + - - 2 IN ( - CAST( 72 AS SIGNED ) / + col1 + - - col1, col0 * - col0 )
----
-10235
-615
5

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT col1 * - col2 + + CAST ( + col1 AS INTEGER ) + + + 5 + + - col1 * - ( - col1 ) - - col2 FROM tab0 WHERE NOT col0 * + CAST ( - col2 AS REAL ) + + col2 + - - 2 IN ( - CAST ( 72 AS INTEGER ) / + col1 + - - col1, col0 * - col0 )
----
-10235
-615
5

query I rowsort
SELECT col2 * + 95 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 20 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2604
SELECT + 52 + + 43 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2604
SELECT + 52 + + 43 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT ALL + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2605
SELECT ALL + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT DISTINCT 54 * - 90, col2 AS col2 FROM tab0
----
-4860
10
-4860
47
-4860
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2607
SELECT ALL - 90 * - CAST( NULL AS SIGNED ) * - 90 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2607
SELECT ALL - 90 * - CAST ( NULL AS INTEGER ) * - 90 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 ) = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 FROM tab2 WHERE + 13 = - col1 / col0 - - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT ALL - MAX( - CAST( + - 68 AS SIGNED ) ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-2610
SELECT ALL - MAX ( - CAST ( + - 68 AS INTEGER ) ) FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2611
SELECT DISTINCT * FROM tab1 WHERE NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2611
SELECT DISTINCT * FROM tab1 WHERE NULL <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( col2 ) * - col1 * 12 AS col2 FROM tab0
----
1188
2520
45684

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + 40 + + + col1 - + col2 IN ( - col0 + 89 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 33 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT col2 DIV col0 * + - col2 FROM tab1
----
-96
0
0

skipif mysql # not compatible
query I rowsort label-2615
SELECT col2 / col0 * + - col2 FROM tab1
----
-96
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( ( + ( col1 ) ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 + 67 AS col0 FROM tab0
----
114
166
77

query I rowsort
SELECT col1 + + col2 - col0 FROM tab0 AS cor0
----
-56
113
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2619
SELECT DISTINCT + CAST( 70 AS SIGNED ) * - col1 AS col2, col0 FROM tab1 AS cor0
----
-3290
91
-350
85
-980
51

skipif mysql # not compatible
query II rowsort label-2619
SELECT DISTINCT + CAST ( 70 AS INTEGER ) * - col1 AS col2, col0 FROM tab1 AS cor0
----
-3290
91
-350
85
-980
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT - + CAST( NULL AS SIGNED ) * - 65 + + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col2 * - 65 + - + col1 AS col2 FROM tab1 AS cor0
----
-3840
-4467
-6254

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT + col1 + - - 35 * - - col2 + + 1 DIV - col2 AS col1 FROM tab2 cor0
----
1477
2097
856

skipif mysql # not compatible
query I rowsort label-2622
SELECT + col1 + - - 35 * - - col2 + + 1 / - col2 AS col1 FROM tab2 cor0
----
1477
2097
856

query II rowsort
SELECT + 47 * + col0 + - col1, + col2 FROM tab0 cor0
----
4068
10
4558
99
624
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 82 col2 FROM tab0 AS cor0
----
1
61
81

query I rowsort
SELECT + col2 + col0 - + 31 * + 0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + - COUNT( * ) + + + 2 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2626
SELECT + - COUNT ( * ) + + + 2 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT + COUNT( * ) + MAX( ALL - 33 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-2627
SELECT + COUNT ( * ) + MAX ( ALL - 33 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( * ) + MAX( ALL + col2 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( * ) + MAX ( ALL + col2 ) AS col2 FROM tab2
----
61

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT + ( 25 ) AS col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
25
25
25

query I rowsort
SELECT + 81 * col2 * col0 AS col1 FROM tab1
----
396576
406215
501228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT DISTINCT CAST( - ( - + col0 ) AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2632
SELECT DISTINCT CAST ( - ( - + col0 ) AS INTEGER ) FROM tab1
----
51
85
91

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT + col0 - col0 DIV col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2634
SELECT + col0 - col0 / col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2636
SELECT - - 55 - + MIN( CAST( - + col0 AS SIGNED ) ) * + 61 FROM tab2 AS cor0
----
4630

skipif mysql # not compatible
query I rowsort label-2636
SELECT - - 55 - + MIN ( CAST ( - + col0 AS INTEGER ) ) * + 61 FROM tab2 AS cor0
----
4630

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT 46 + + 76 - - COUNT( * ) + 46 * + COUNT( * ) * + + 85 AS col2 FROM tab2
----
11855

skipif mysql # not compatible
query I rowsort label-2637
SELECT 46 + + 76 - - COUNT ( * ) + 46 * + COUNT ( * ) * + + 85 AS col2 FROM tab2
----
11855

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT DISTINCT - 69 FROM tab1 WHERE - ( CAST( NULL AS SIGNED ) ) + - 67 NOT BETWEEN + - col0 AND 52
----

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 69 FROM tab1 WHERE - ( CAST ( NULL AS INTEGER ) ) + - 67 NOT BETWEEN + - col0 AND 52
----

query I rowsort
SELECT ALL 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE 58 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2641
SELECT + - COUNT( * ) DIV + 28 + - - 10 * - 50 AS col1 FROM tab1 AS cor0
----
-500

skipif mysql # not compatible
query I rowsort label-2641
SELECT + - COUNT ( * ) / + 28 + - - 10 * - 50 AS col1 FROM tab1 AS cor0
----
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + - col1 DIV + 65 AS col0 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT ALL - - SUM( DISTINCT + 64 ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL - - SUM ( DISTINCT + 64 ) FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT - 72 * + col0 AS col1 FROM tab2 AS cor0
----
-3312
-4608
-5400

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT DISTINCT + - 67 * - + ( + COUNT( * ) ) + 83 FROM tab2 cor0
----
284

skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT + - 67 * - + ( + COUNT ( * ) ) + 83 FROM tab2 cor0
----
284

query II rowsort
SELECT DISTINCT - col2, 14 - + + 8 AS col0 FROM tab1 AS cor0
----
-59
6
-68
6
-96
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2647
SELECT * FROM tab0 WHERE NOT + 66 / - col2 * col0 + col2 * + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2647
SELECT * FROM tab0 WHERE NOT + 66 / - col2 * col0 + col2 * + CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2648
SELECT ALL - COUNT( * ) * - CAST( NULL AS SIGNED ) * + MIN( 81 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2648
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + MIN ( 81 ) AS col2 FROM tab2 WHERE NULL > NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, col0 FROM tab2 WHERE - - col0 NOT BETWEEN + - col2 AND + 13
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2650
SELECT - ( col1 ), - CAST( + col1 AS SIGNED ) FROM tab0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
query II rowsort label-2650
SELECT - ( col1 ), - CAST ( + col1 AS INTEGER ) FROM tab0
----
-1
-1
-21
-21
-81
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 = - + col0 + - + col1 + + + col0 - col1
----

query II rowsort
SELECT - 73 AS col0, - col0 * - 33 * - - col2 FROM tab0
----
-73
23265
-73
28710
-73
316899

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - COUNT( * ) * 31 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-2653
SELECT - COUNT ( * ) * 31 FROM tab1
----
-93

query II rowsort
SELECT + + col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2655
SELECT DISTINCT + + col1 * CAST( NULL AS SIGNED ) * + col0 + - + 97 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-2655
SELECT DISTINCT + + col1 * CAST ( NULL AS INTEGER ) * + col0 + - + 97 AS col0, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

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

query I rowsort
SELECT ALL 76 * col0 AS col2 FROM tab0 AS cor0
----
1140
6612
7372

query I rowsort
SELECT + - 45 FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT ALL + 37 + - + CAST( 41 AS SIGNED ) + - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
701
866
9599

skipif mysql # not compatible
query I rowsort label-2659
SELECT ALL + 37 + - + CAST ( 41 AS INTEGER ) + - col0 * - + col2 AS col1 FROM tab0 AS cor0
----
701
866
9599

onlyif mysql # aggregate syntax: 
query II rowsort label-2660
SELECT DISTINCT - COUNT( * ) + - COUNT( * ), - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6
9

skipif mysql # not compatible
query II rowsort label-2660
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ), - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2661
SELECT ALL + + col2 DIV - + col0 + 72 FROM tab2 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-2661
SELECT ALL + + col2 / - + col0 + 72 FROM tab2 cor0
----
72
72
72

query I rowsort
SELECT ALL + - 50 * - + col2 + + + 11 + col1 FROM tab1 cor0
----
2966
3458
4825

query III rowsort
SELECT * FROM tab0 cor0 WHERE 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2664
SELECT DISTINCT - - col2 * col0 + 41 + - 7 DIV + + 10 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
746
81
911
21
9644
1

skipif mysql # not compatible
query II rowsort label-2664
SELECT DISTINCT - - col2 * col0 + 41 + - 7 / + + 10 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
746
81
911
21
9644
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ALL + MIN( - 46 ) AS col0 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + MIN ( - 46 ) AS col0 FROM tab1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT SUM( DISTINCT - 9 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT SUM ( DISTINCT - 9 ) AS col0 FROM tab2
----
-9

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 < ( + ( col0 ) ) + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT MAX( DISTINCT - col2 ) + - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-2669
SELECT MAX ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT DISTINCT - 27 * col2 + col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-2018
-3306
-6113

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

query II rowsort
SELECT ALL + col0 + + col2 * - col1 * - 0 + 53 * + col0, 33 AS col1 FROM tab1 cor0
----
2754
33
4590
33
4914
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT DISTINCT - SUM( ALL 65 ) * - 10 FROM tab1 cor0
----
1950

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - SUM ( ALL 65 ) * - 10 FROM tab1 cor0
----
1950

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) NOT BETWEEN 45 AND + - 5 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + - + 39 FROM tab0 AS cor0
----
-29
60
8

query I rowsort
SELECT DISTINCT + + 76 - + - 94 AS col2 FROM tab2 AS cor0
----
170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + 85
----

query I rowsort
SELECT ALL + + ( + col0 ) - + ( - col2 ) FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0, + 16 * col0, - - 18 / col0, - + col0 * - 94 * + + 63 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2680
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + - col0 AS SIGNED ) BETWEEN 3 * 72 AND + + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2680
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + - col0 AS INTEGER ) BETWEEN 3 * 72 AND + + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + - col2 - + col0 AS col2 FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2682
SELECT DISTINCT - + MIN( DISTINCT + - CAST( 50 AS SIGNED ) ) * + MAX( - 44 ) + - 34 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT DISTINCT - + MIN ( DISTINCT + - CAST ( 50 AS INTEGER ) ) * + MAX ( - 44 ) + - 34 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT - ( + - COUNT( * ) ) * + 26 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2683
SELECT - ( + - COUNT ( * ) ) * + 26 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col0 NOT BETWEEN 76 AND col0 * + + 99 * + col0 * + 51
----

skipif mysql # not compatible
query III rowsort label-2684
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col0 NOT BETWEEN 76 AND col0 * + + 99 * + col0 * + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 29 ) * + col1 * - col2 col2 FROM tab0
----
-110403
-2871
-6090

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT + MAX( DISTINCT - + col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2686
SELECT + MAX ( DISTINCT - + col0 ) FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + - col1 - 76 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
-123
-81
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2689
SELECT DISTINCT - ( - COUNT( DISTINCT - - ( + - 11 ) ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2689
SELECT DISTINCT - ( - COUNT ( DISTINCT - - ( + - 11 ) ) ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col0 * - col2 + - col2
----

query I rowsort
SELECT - + 44 * + - 33 * col2 FROM tab0 AS cor0
----
143748
14520
68244

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT - SUM( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col0 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - SUM ( ALL col2 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND col0 + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2693
SELECT DISTINCT 59 col2, - COUNT( * ) AS col0 FROM tab1
----
59
-3

skipif mysql # not compatible
query II rowsort label-2693
SELECT DISTINCT 59 col2, - COUNT ( * ) AS col0 FROM tab1
----
59
-3

query II rowsort
SELECT ALL col1, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT - col1 + - - col0 + col2 FROM tab1
----
112
133
139

query I rowsort
SELECT DISTINCT + col2 FROM tab2 cor0 WHERE NOT + col1 + + col2 * col1 + - + 46 - - col1 * col2 * + 44 IS NULL
----
23
40
58

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

query II rowsort
SELECT 97 + - col0, - col2 * - col2 AS col2 FROM tab1 AS cor0
----
12
3481
46
9216
6
4624

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2699
SELECT - + 92 * + CAST( NULL AS DECIMAL ) + + - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2700
SELECT ALL - SUM( 4 ) / - AVG ( + + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - SUM ( 4 ) / - AVG ( + + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 29 * + col1 * + - 59 + + 17 FROM tab0 AS cor0
----
138608
1728
35948

query II rowsort
SELECT ALL - + col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 25 * 23 + + + col1 IS NULL
----

query II rowsort
SELECT + col2, + col2 * + 7 AS col0 FROM tab2 AS cor0
----
23
161
40
280
58
406

onlyif mysql # aggregate syntax: 
query I rowsort label-2706
SELECT MIN( 23 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2706
SELECT MIN ( 23 ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT - 12 * - + 39 AS col2 FROM tab0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-2708
SELECT DISTINCT MAX( DISTINCT + col1 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2708
SELECT DISTINCT MAX ( DISTINCT + col1 ) col2 FROM tab1
----
47

query I rowsort
SELECT ALL - 4 * - + col0 FROM tab1 AS cor0
----
204
340
364

onlyif mysql # aggregate syntax: 
query II rowsort label-2710
SELECT 18 - - - COUNT( * ) + + 52 AS col0, + COUNT( + 17 ) * + - COUNT( * ) FROM tab2 AS cor0
----
67
-9

skipif mysql # not compatible
query II rowsort label-2710
SELECT 18 - - - COUNT ( * ) + + 52 AS col0, + COUNT ( + 17 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
67
-9

query I rowsort
SELECT col0 - - + col2 + - + col0 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - col1 - + col2 * - col1 AS col2 FROM tab1 AS cor0
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + 20 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2715
SELECT 58 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
58
NULL
58
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2715
SELECT 58 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
58
NULL
58
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2716
SELECT col0 AS col0, + 33 DIV col2 + - col1 + + + col2 FROM tab1
----
51
82
85
54
91
21

skipif mysql # not compatible
query II rowsort label-2716
SELECT col0 AS col0, + 33 / col2 + - col1 + + + col2 FROM tab1
----
51
82
85
54
91
21

query II rowsort
SELECT + col2 AS col2, col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2718
SELECT DISTINCT - col1 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2718
SELECT DISTINCT - col1 / - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2

query II rowsort
SELECT DISTINCT 70, col1 AS col1 FROM tab1 cor0
----
70
14
70
47
70
5

query I rowsort
SELECT ALL - ( - - ( + - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 23 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT - ( + - ( + COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT - ( + - ( + COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL 78 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT - 30 DIV - + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT - 30 / - + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ALL - COUNT( * ) * + 41 FROM tab1
----
-123

skipif mysql # not compatible
query I rowsort label-2725
SELECT ALL - COUNT ( * ) * + 41 FROM tab1
----
-123

query I rowsort
SELECT ALL + 21 + 60 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT - - col1 * + col0 + + col2 * 86 AS col2 FROM tab0 AS cor0
----
2687
5257
8611

query I rowsort
SELECT ALL 72 * + col1 AS col1 FROM tab0 cor0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2729
SELECT ALL COUNT( * ) + - - MIN( + col1 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2729
SELECT ALL COUNT ( * ) + - - MIN ( + col1 ) FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT + col0 + 4 FROM tab2 AS cor0
----
50
68
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2731
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + 16 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2732
SELECT DISTINCT - + col0 + + + CAST( NULL AS SIGNED ) * col1 * - col2 * - + CAST( NULL AS SIGNED ) + - col2 + - col0 - + - col0 - - ( + col2 ) * - col1 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT col1 + 42 FROM tab2
----
109
119
93

query I rowsort
SELECT DISTINCT + col0 - 81 AS col2 FROM tab1
----
-30
10
4

query I rowsort
SELECT ALL + ( col0 ) * + ( + col1 ) - col2 + + + col1 AS col2 FROM tab1
----
371
4256
632

query I rowsort
SELECT ALL 63 * - - 53 * + + col1 AS col0 FROM tab2
----
170289
223713
257103

query I rowsort
SELECT - - 28 * + col2 AS col2 FROM tab2 cor0
----
1120
1624
644

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2740
SELECT DISTINCT - + col0 AS col0, - CAST( NULL AS SIGNED ) * col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2740
SELECT DISTINCT - + col0 AS col0, - CAST ( NULL AS INTEGER ) * col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT + + COUNT( * ) - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-2741
SELECT + + COUNT ( * ) - - 44 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2744
SELECT col2 DIV - - 30 + - + ( + col1 ) col0 FROM tab2 cor0
----
-51
-66
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2744
SELECT col2 / - - 30 + - + ( + col1 ) col0 FROM tab2 cor0
----
-51
-66
-76

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

query I rowsort
SELECT - col0 * + + col0 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT ALL - COUNT( * ) * + + 76 + + + MIN( + col1 ) AS col1 FROM tab0 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - COUNT ( * ) * + + 76 + + + MIN ( + col1 ) AS col1 FROM tab0 AS cor0
----
-227

query I rowsort
SELECT col2 + + col1 + - - col1 FROM tab1 AS cor0
----
124
162
69

query II rowsort
SELECT + 38 * - col0 AS col1, + ( - + col0 ) AS col1 FROM tab0 AS cor0
----
-3306
-87
-3686
-97
-570
-15

query I rowsort
SELECT 60 * + col0 * col0 * - - 99 FROM tab1
----
15449940
42916500
49189140

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT COUNT( * ), + MAX( + - col2 ) AS col0 FROM tab2
----
3
-23

skipif mysql # not compatible
query II rowsort label-2752
SELECT COUNT ( * ), + MAX ( + - col2 ) AS col0 FROM tab2
----
3
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2753
SELECT ALL - col0 col2, CAST( - - 1 AS SIGNED ) FROM tab1
----
-51
1
-85
1
-91
1

skipif mysql # not compatible
query II rowsort label-2753
SELECT ALL - col0 col2, CAST ( - - 1 AS INTEGER ) FROM tab1
----
-51
1
-85
1
-91
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, col2 col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2755
SELECT ALL col1 DIV + + col2 AS col1 FROM tab2
----
1
1
2

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

query I rowsort
SELECT DISTINCT - 50 * - + col0 FROM tab0
----
4350
4850
750

query I rowsort
SELECT ( - + col2 ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN 71 AND - col0
----

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

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

query I rowsort
SELECT ALL - + 40 - - col2 * + col1 FROM tab2 AS cor0
----
1133
3040
3846

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 48 - + + 21 + - 32 IS NULL
----

query II rowsort
SELECT - col0 * - col0, col0 FROM tab2 AS cor0
----
2116
46
4096
64
5625
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2765
SELECT + ( + - 85 ), SUM( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-85
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2765
SELECT + ( + - 85 ), SUM ( DISTINCT - - col0 ) col0 FROM tab0 AS cor0
----
-85
199

query II rowsort
SELECT + col2 AS col2, col2 AS col2 FROM tab0 cor0 WHERE - col0 >= 55
----

query I rowsort
SELECT DISTINCT 26 + + - col2 FROM tab1
----
-33
-42
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT ALL col2 * - 97 * - CAST( - 39 AS SIGNED ) FROM tab0
----
-177801
-374517
-37830

skipif mysql # not compatible
query I rowsort label-2768
SELECT ALL col2 * - 97 * - CAST ( - 39 AS INTEGER ) FROM tab0
----
-177801
-374517
-37830

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > + - ( + - CAST( - col0 AS DECIMAL ) ) * + ( 38 ) AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2769
SELECT DISTINCT * FROM tab1 WHERE NOT col2 > + - ( + - CAST ( - col0 AS REAL ) ) * + ( 38 ) AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2770
SELECT DISTINCT MIN( 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-2770
SELECT DISTINCT MIN ( 87 ) FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2771
SELECT DISTINCT + ( + SUM( + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + ( + SUM ( + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT - 27 * - col0 FROM tab1
----
1377
2295
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2773
SELECT - - ( + - CAST( + MAX( ALL + + col0 ) AS SIGNED ) ) FROM tab2 AS cor0
----
-75

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2774
SELECT DISTINCT - ( + + CAST( NULL AS SIGNED ) ) * - col1 col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + - col0 * - ( - col2 ) AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT DISTINCT 90 * SUM( ALL - col1 ) FROM tab2 cor0
----
-17550

skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT 90 * SUM ( ALL - col1 ) FROM tab2 cor0
----
-17550

query I rowsort
SELECT DISTINCT col1 * - 39 AS col0 FROM tab0
----
-3159
-39
-819

onlyif mysql # aggregate syntax: 
query II rowsort label-2778
SELECT DISTINCT + COUNT( * ) AS col1, + 93 * 17 AS col2 FROM tab2
----
3
1581

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT + COUNT ( * ) AS col1, + 93 * 17 AS col2 FROM tab2
----
3
1581

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT 30 col2, COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
30
3

skipif mysql # not compatible
query II rowsort label-2779
SELECT 30 col2, COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
30
3

query I rowsort
SELECT + - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + 45 IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 79 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 53 + + 75 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query II rowsort
SELECT + - col1 AS col1, + 39 AS col1 FROM tab1 AS cor0
----
-14
39
-47
39
-5
39

query I rowsort
SELECT DISTINCT - 78 * + col1 FROM tab1 cor0
----
-1092
-3666
-390

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

query II rowsort
SELECT ALL - col0 + col0 + ( + - 88 ) AS col0, + col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-88
1344
-88
295
-88
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT + - 89 - - - CAST( NULL AS SIGNED ) * - + col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 8 + + - col2 * col0 * col1 / + col2 / col2 AND - - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT + - 89 - - - CAST ( NULL AS INTEGER ) * - + col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 8 + + - col2 * col0 * col1 / + col2 / col2 AND - - 64
----
NULL

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

query I rowsort
SELECT - 18 * + 15 AS col0 FROM tab2
----
-270
-270
-270

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

query II rowsort
SELECT DISTINCT + ( + col2 ), - col2 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2794
SELECT - col2 DIV CAST( - + col1 AS SIGNED ) DIV col0 + - + col2, + 21 AS col1 FROM tab1
----
-59
21
-68
21
-96
21

skipif mysql # not compatible
query II rowsort label-2794
SELECT - col2 / CAST ( - + col1 AS INTEGER ) / col0 + - + col2, + 21 AS col1 FROM tab1
----
-59
21
-68
21
-96
21

query I rowsort
SELECT + ( 43 ) + + col0 FROM tab2 cor0
----
107
118
89

query I rowsort
SELECT DISTINCT + + col1 + - + 1 + + 44 * col1 * + col2 FROM tab2 AS cor0
----
135596
171050
51662

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 1 IS NOT NULL
----

query I rowsort
SELECT - + 39 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 + + + 17 AS col0 FROM tab2 AS cor0
----
-51
40
-67
75
-77
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT col0, col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + ( + - CAST( NULL AS SIGNED ) ) * - + 61 AND - col1
----

skipif mysql # not compatible
query II rowsort label-2800
SELECT col0, col0 FROM tab1 cor0 WHERE NULL NOT BETWEEN + ( + - CAST ( NULL AS INTEGER ) ) * - + 61 AND - col1
----

query I rowsort
SELECT DISTINCT - 73 + - col1 * - - col1 AS col0 FROM tab1 AS cor0
----
-2282
-269
-98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * - col0 / - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 - + col0 < - + col0
----

query I rowsort
SELECT DISTINCT - col0 * + col0 * - col0 * + 17 + 45 FROM tab2 cor0
----
1654757
4456493
7171920

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE col0 * - - col2 * col1 + - col2 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT + SUM( col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2806
SELECT + SUM ( col2 ) col1 FROM tab1
----
223

query II rowsort
SELECT ALL + 29 * - + col0, col1 AS col0 FROM tab0
----
-2523
21
-2813
1
-435
81

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

query I rowsort
SELECT - 72 * 67 FROM tab0 AS cor0
----
-4824
-4824
-4824

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT 36 * SUM( ALL - 77 ) col2 FROM tab0 AS cor0
----
-8316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2810
SELECT 36 * SUM ( ALL - 77 ) col2 FROM tab0 AS cor0
----
-8316

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-2813
SELECT + 26, COUNT( * ) + + COUNT( * ) + - 22 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
26
-4

skipif mysql # not compatible
query II rowsort label-2813
SELECT + 26, COUNT ( * ) + + COUNT ( * ) + - 22 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
26
-4

query I rowsort
SELECT DISTINCT + col2 + + col2 * col1 * col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > - col2
----

query II rowsort
SELECT DISTINCT col0, col1 + + col0 * - col1 FROM tab1 cor0
----
51
-700
85
-420
91
-4230

query I rowsort
SELECT ALL - col0 * - col2 * 18 FROM tab0 AS cor0
----
12690
15660
172854

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2818
SELECT - CAST( NULL AS SIGNED ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2818
SELECT - CAST ( NULL AS INTEGER ) + + 81 * + ( - col2 ) * + col1 AS col0, - CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2819
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + - col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT 73 + + + ( + 43 ) + - + 92 + col2 col2, + 53 + + col2 - - - 77, + + col1 AS col0 FROM tab0 AS cor0
----
9 values hashing to 82f7814643a0e46361530a1123a9e74c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2821
SELECT + CAST( NULL AS SIGNED ) * + col1 / + col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 23 * + + col1 AS col2 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT 36 AS col2, + MAX( ( + col2 ) ) AS col0 FROM tab2
----
36
58

skipif mysql # not compatible
query II rowsort label-2823
SELECT DISTINCT 36 AS col2, + MAX ( ( + col2 ) ) AS col0 FROM tab2
----
36
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT DISTINCT + COUNT( * ) AS col1, SUM( DISTINCT + - col2 ) col1 FROM tab2
----
3
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2824
SELECT DISTINCT + COUNT ( * ) AS col1, SUM ( DISTINCT + - col2 ) col1 FROM tab2
----
3
-121

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 57 IS NOT NULL
----

query I rowsort
SELECT ( + - 55 ) FROM tab1
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT ALL - MIN( 9 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - MIN ( 9 ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col1 IS NULL )
----
0

query I rowsort
SELECT + col1 + + 62 FROM tab2 AS cor0
----
113
129
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL CAST( - col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2830
SELECT ALL CAST ( - col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT + - COUNT( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 < - 64 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2831
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE ( + col0 < - 64 )
----
0

query I rowsort
SELECT DISTINCT + 21 * + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1239

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2833
SELECT COUNT( * ) * 23 * ( - ( - CAST( NULL AS SIGNED ) ) ) + + MIN( ALL + 19 ) / ( + MAX( - 62 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2833
SELECT COUNT ( * ) * 23 * ( - ( - CAST ( NULL AS INTEGER ) ) ) + + MIN ( ALL + 19 ) / ( + MAX ( - 62 ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2834
SELECT ALL * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2834
SELECT ALL * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2835
SELECT MAX( 75 ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
query II rowsort label-2835
SELECT MAX ( 75 ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT DISTINCT - + ( + - col1 ) FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 23 BETWEEN + 80 AND col0 + - - col2 * + col2 + + col1 - - + 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2838
SELECT DISTINCT 99 DIV col1 AS col2 FROM tab1 AS cor0
----
19
2
7

skipif mysql # not compatible
query I rowsort label-2838
SELECT DISTINCT 99 / col1 AS col2 FROM tab1 AS cor0
----
19
2
7

query II rowsort
SELECT ALL - 64, col2 FROM tab0
----
-64
10
-64
47
-64
99

query I rowsort
SELECT ALL col0 * - + 57 - - + col1 AS col2 FROM tab0 WHERE - 76 < - col0
----
-774

query III rowsort
SELECT * FROM tab2 WHERE NOT 6 <= + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT - COUNT( * ) * 89 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 / + - 4 - col2 ) <= col0
----
0

skipif mysql # not compatible
query I rowsort label-2842
SELECT - COUNT ( * ) * 89 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 / + - 4 - col2 ) <= col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT - ( + SUM( ALL - - col0 ) ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2843
SELECT - ( + SUM ( ALL - - col0 ) ) FROM tab0 cor0
----
-199

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

query I rowsort
SELECT + ( - 10 ) AS col0 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2846
SELECT ALL - col1 + ( - CAST( NULL AS SIGNED ) ) * col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT ALL + 74 * - COUNT( * ) + MAX( + col0 ) / COUNT( * ) FROM tab1 WHERE NULL IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL + 74 * - COUNT ( * ) + MAX ( + col0 ) / COUNT ( * ) FROM tab1 WHERE NULL IN ( + col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2848
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) * 28 - + COUNT( col2 + col1 ) FROM tab0 WHERE col2 IN ( 73 * - CAST( NULL AS SIGNED ) + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) * 28 - + COUNT ( col2 + col1 ) FROM tab0 WHERE col2 IN ( 73 * - CAST ( NULL AS INTEGER ) + + col1 )
----
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( + 27 * col0 ) = ( 59 )
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE col2 <> ( + 55 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 73 FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
73
73
73

query I rowsort
SELECT ALL 36 * - 8 AS col2 FROM tab1
----
-288
-288
-288

query I rowsort
SELECT col0 * ( col2 ) FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT DISTINCT + ( + COUNT( * ) ) * 12 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT + ( + COUNT ( * ) ) * 12 FROM tab1
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2855
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN - 27 * - 85 AND 14 - + CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2855
SELECT * FROM tab1 WHERE ( col1 ) NOT BETWEEN - 27 * - 85 AND 14 - + CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + col2 + 30 AS col2 FROM tab0
----
129
240
3837

query I rowsort
SELECT + ( col2 ) + col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT + 78 + + col2 FROM tab2
----
101
118
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * col0 col2 FROM tab0
----
1170
6786
7566

query I rowsort
SELECT - col0 * 77 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-3927
-6545
-7007

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + 93 / - col1 )
----

query I rowsort
SELECT ALL 57 + - col2 FROM tab2
----
-1
17
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / 64 + - col1 * col0 BETWEEN + 46 * col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - col2 * 51 - col2 AS col1 FROM tab1
----
-3068
-3536
-4992

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN ( NULL ) AND 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT ALL + ( + col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / + col2 BETWEEN - col2 * - col0 AND - 35
----

skipif mysql # not compatible
query I rowsort label-2868
SELECT ALL + ( + col0 ) * - col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / + col2 BETWEEN - col2 * - col0 AND - 35
----

query I rowsort
SELECT DISTINCT + col2 * + 93 FROM tab1 cor0
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2870
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT ALL 58 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL 58 / + col1 AS col1 FROM tab0 AS cor0
----
0
2
58

query I rowsort
SELECT DISTINCT + col2 + 48 FROM tab0 AS cor0 WHERE NOT + col2 <= col0
----
147
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT DISTINCT - SUM( DISTINCT col2 ) + + AVG ( ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL <> + 46 * + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2873
SELECT DISTINCT - SUM ( DISTINCT col2 ) + + AVG ( ( + col0 ) ) FROM tab2 AS cor0 WHERE NULL <> + 46 * + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT + col2 DIV 5 FROM tab2 AS cor0
----
11
4
8

skipif mysql # not compatible
query I rowsort label-2874
SELECT + col2 / 5 FROM tab2 AS cor0
----
11
4
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + COUNT( * ) * - MIN( ALL 23 ) FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2875
SELECT + COUNT ( * ) * - MIN ( ALL 23 ) FROM tab0 AS cor0
----
-69

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT NULL <= ( + col2 ) OR col2 NOT BETWEEN + 76 + - 42 AND ( NULL )
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2877
SELECT DISTINCT - COUNT( ALL ( col0 ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2877
SELECT DISTINCT - COUNT ( ALL ( col0 ) ) col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2878
SELECT DISTINCT 17 * + MIN( - CAST( col2 AS SIGNED ) ) AS col1 FROM tab2
----
-986

skipif mysql # not compatible
query I rowsort label-2878
SELECT DISTINCT 17 * + MIN ( - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2
----
-986

query I rowsort
SELECT DISTINCT 44 * - 45 FROM tab1
----
-1980

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT ALL 62 DIV + col1 AS col0 FROM tab0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL 62 / + col1 AS col0 FROM tab0
----
0
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT ALL COUNT( * ) * COUNT( * ) * + 99 col0 FROM tab1
----
891

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2881
SELECT ALL COUNT ( * ) * COUNT ( * ) * + 99 col0 FROM tab1
----
891

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col0 FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT DISTINCT 73 * + 79 - - 86 + + 86 * COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
6111

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT 73 * + 79 - - 86 + + 86 * COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
6111

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT + SUM( DISTINCT + col0 ) * ( COUNT( * ) ) FROM tab0 AS cor0
----
597

skipif mysql # not compatible
query I rowsort label-2885
SELECT + SUM ( DISTINCT + col0 ) * ( COUNT ( * ) ) FROM tab0 AS cor0
----
597

query I rowsort
SELECT ALL 7 + - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col2 + + 63 * - col1 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2888
SELECT DISTINCT * FROM tab0 WHERE 88 * CAST( NULL AS SIGNED ) IN ( + 62 + + ( col0 ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-2888
SELECT DISTINCT * FROM tab0 WHERE 88 * CAST ( NULL AS INTEGER ) IN ( + 62 + + ( col0 ) / - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2889
SELECT DISTINCT MAX( 79 ) - - 13 AS col2 FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) + - 76 * - 71 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2889
SELECT DISTINCT MAX ( 79 ) - - 13 AS col2 FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) + - 76 * - 71 ) < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 57 FROM tab0 AS cor0 WHERE col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT ALL SUM( - col2 ) + - 0 * COUNT( * ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2892
SELECT ALL SUM ( - col2 ) + - 0 * COUNT ( * ) FROM tab1 AS cor0
----
-223

query I rowsort
SELECT - col1 + + col1 + - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + + 48 + - 48 IS NULL
----

query I rowsort
SELECT ALL 21 * - col1 + + 90 FROM tab2 AS cor0
----
-1317
-1527
-981

query I rowsort
SELECT + col0 * - 70 FROM tab1 AS cor0 WHERE ( col1 ) * + col2 IS NOT NULL
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2897
SELECT ALL - - CAST( NULL AS DECIMAL ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + col1 + - 96 AS col2 FROM tab1 AS cor0
----
-49
-82
-91

query I rowsort
SELECT + col1 + - 72 FROM tab0 AS cor0
----
-51
-71
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2900
SELECT DISTINCT - col0 + + + ( ( - CAST( - col2 AS SIGNED ) ) ) FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT - col0 + + + ( ( - CAST ( - col2 AS INTEGER ) ) ) FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2901
SELECT ALL - COUNT( * ) + - MAX( DISTINCT ( 70 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2901
SELECT ALL - COUNT ( * ) + - MAX ( DISTINCT ( 70 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT - col1 * + col0 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2904
SELECT DISTINCT COUNT( * ) * - COUNT( * ), 69 * - + 52 * 8 AS col0 FROM tab2
----
-9
-28704

skipif mysql # not compatible
query II rowsort label-2904
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ), 69 * - + 52 * 8 AS col0 FROM tab2
----
-9
-28704

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT ALL 67 + - - COUNT( ALL col0 ) * 21 AS col0 FROM tab0
----
130

skipif mysql # not compatible
query I rowsort label-2905
SELECT ALL 67 + - - COUNT ( ALL col0 ) * 21 AS col0 FROM tab0
----
130

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE ( - + col0 ) NOT IN ( + col2 * + 23 )
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT COUNT( * ) * MAX( col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-2908
SELECT COUNT ( * ) * MAX ( col2 ) AS col1 FROM tab1
----
288

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE col2 * + + 5 - - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT col2 FROM tab1 WHERE ( - col2 ) BETWEEN ( NULL ) AND CAST( 10 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2910
SELECT col2 FROM tab1 WHERE ( - col2 ) BETWEEN ( NULL ) AND CAST ( 10 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT ALL COUNT( * ) * - 55 AS col1 FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL COUNT ( * ) * - 55 AS col1 FROM tab2
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT COUNT( * ) - + MIN( DISTINCT + - 45 ) AS col1 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-2914
SELECT COUNT ( * ) - + MIN ( DISTINCT + - 45 ) AS col1 FROM tab1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + - col0 + + col0 col2 FROM tab1 AS cor0
----
51
85
91

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

query I rowsort
SELECT - 32 - + 20 + - + 71 FROM tab1 AS cor0
----
-123
-123
-123

query I rowsort
SELECT col1 * - 91 + - col1 - + col2 FROM tab1 AS cor0
----
-1384
-4392
-519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 4 col2 FROM tab0 AS cor0
----
103
14
51

query I rowsort
SELECT + col1 + - + 65 * + - 77 + - 48 AS col1 FROM tab1 AS cor0
----
4962
4971
5004

query I rowsort
SELECT ALL + + col2 + + - 60 AS col2 FROM tab2 AS cor0
----
-2
-20
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2922
SELECT DISTINCT + col1 + col2 + + CAST( NULL AS SIGNED ) / + 87 - + CAST( col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2923
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab1 WHERE NOT - col0 IS NULL
----
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2925
SELECT DISTINCT - CAST( - col2 AS SIGNED ) DIV - col1 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-2925
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) / - col1 FROM tab1
----
-1
-11
-6

query I rowsort
SELECT - - col0 * + 82 FROM tab1 AS cor0
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT - COUNT( * ) * + + 86 AS col1 FROM tab0 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT - COUNT ( * ) * + + 86 AS col1 FROM tab0 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT - COUNT( * ) * + + 58 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-2928
SELECT - COUNT ( * ) * + + 58 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT ALL + ( - col1 ) / - 57 FROM tab2 AS cor0 WHERE NOT - col0 >= ( NULL )
----

query I rowsort
SELECT ALL - - 86 * - - col1 AS col2 FROM tab1 AS cor0
----
1204
4042
430

query I rowsort
SELECT + 55 * 21 AS col0 FROM tab1 AS cor0
----
1155
1155
1155

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 > NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT DISTINCT - AVG ( DISTINCT col2 ) * + MIN( - col0 ) FROM tab1 WHERE ( + + col2 + + col0 + col2 - + + 34 / 67 / + col0 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2934
SELECT DISTINCT - AVG ( DISTINCT col2 ) * + MIN ( - col0 ) FROM tab1 WHERE ( + + col2 + + col0 + col2 - + + 34 / 67 / + col0 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT ALL - COUNT( * ) * + 69 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-2935
SELECT ALL - COUNT ( * ) * + 69 FROM tab1
----
-207

onlyif mysql # aggregate syntax: 
query II rowsort label-2936
SELECT 69 AS col0, + COUNT( * ) FROM tab1
----
69
3

skipif mysql # not compatible
query II rowsort label-2936
SELECT 69 AS col0, + COUNT ( * ) FROM tab1
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT DISTINCT + - 86 + - SUM( ALL 28 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2937
SELECT DISTINCT + - 86 + - SUM ( ALL 28 ) FROM tab0 WHERE ( NOT - col2 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL col1 * - 38 * + 40 FROM tab0
----
-123120
-1520
-31920

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) NOT BETWEEN NULL AND 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + COUNT( * ) FROM tab2 WHERE NOT + - col1 * + - 27 NOT BETWEEN NULL AND - + 16
----
0

skipif mysql # not compatible
query I rowsort label-2940
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + - col1 * + - 27 NOT BETWEEN NULL AND - + 16
----
0

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2942
SELECT 93 col1, col0 DIV + + col2 FROM tab1
----
93
0
93
1
93
1

skipif mysql # not compatible
query II rowsort label-2942
SELECT 93 col1, col0 / + + col2 FROM tab1
----
93
0
93
1
93
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * - col2 * + ( - 81 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT + MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT 0 - + + col1 + + col2 + - + 96 / col2 * - col1 = NULL OR NOT ( 80 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 + + 39 ) IS NOT NULL
----

query I rowsort
SELECT - + 45 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT + col0 FROM tab2 WHERE + + col2 > ( 52 - - ( col1 ) / col0 * + col0 / - col2 )
----
75

query I rowsort
SELECT ALL + col0 + - 19 FROM tab1
----
32
66
72

query I rowsort
SELECT 96 + col1 FROM tab0
----
117
177
97

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

query II rowsort
SELECT DISTINCT + - col0 AS col2, col1 + col0 + + 66 AS col1 FROM tab0 AS cor0
----
-15
162
-87
174
-97
164

query II rowsort
SELECT ALL - 93 AS col0, - col1 FROM tab2 AS cor0
----
-93
-51
-93
-67
-93
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-2954
SELECT + + 65 DIV + - 42 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2954
SELECT + + 65 / + - 42 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2955
SELECT ALL 90 * col1 + + 25 + - 8 DIV 77 * + + col2 * ( col2 ) * - ( + 73 + + 56 DIV col2 ) FROM tab0 WHERE col1 IS NOT NULL
----
115
1915
7315

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL 90 * col1 + + 25 + - 8 / 77 * + + col2 * ( col2 ) * - ( + 73 + + 56 / col2 ) FROM tab0 WHERE col1 IS NOT NULL
----
115
1915
7315

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - 24 * - - col1 AS col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-2959
SELECT ALL + SUM( ( - col1 ) ) * - 19 * - 93 AS col1 FROM tab0 AS cor0
----
-182001

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL + SUM ( ( - col1 ) ) * - 19 * - 93 AS col1 FROM tab0 AS cor0
----
-182001

query I rowsort
SELECT - 24 * col0 * - col2 AS col2 FROM tab2
----
104400
25392
61440

query I rowsort
SELECT ALL + col2 * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT MIN( - - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2962
SELECT MIN ( - - col2 ) AS col1 FROM tab2
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2963
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT - CAST( - 70 AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT - CAST ( - 70 AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2964
SELECT ALL + + col1 + - col2 + col1 + CAST( ( col0 ) AS DECIMAL ) * + col1 AS col1 FROM tab1 WHERE ( + col2 + + - col2 ) IN ( col1, col1 )
----

skipif mysql # not compatible
query I rowsort label-2964
SELECT ALL + + col1 + - col2 + col1 + CAST ( ( col0 ) AS REAL ) * + col1 AS col1 FROM tab1 WHERE ( + col2 + + - col2 ) IN ( col1, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 91 * col0 / + col1 + + col2 + + 0 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT ALL - col1 DIV - - col2 AS col2 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + SUM( DISTINCT - 75 ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + SUM ( DISTINCT - 75 ) FROM tab0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2968
SELECT ALL col0 DIV + 34 AS col1 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2968
SELECT ALL col0 / + 34 AS col1 FROM tab1
----
1
2
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT IN ( + 97 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2970
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2971
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) + - col1 * 25 / col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 68 * + + col1 FROM tab2 AS cor0
----
3468
4556
5236

query I rowsort
SELECT + - col0 * + - ( col0 ) FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - 78 * + ( + 20 ) * col1 FROM tab1 AS cor0
----
-21840
-73320
-7800

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + 77 * - 67 AND NULL
----

query I rowsort
SELECT - - col2 * - - 27 AS col1 FROM tab2 AS cor0
----
1080
1566
621

query I rowsort
SELECT + 75 * - col1 + + - col1 FROM tab1 WHERE + + ( + - col1 ) IN ( - 13 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2978
SELECT + + col1 AS col0 FROM tab0 WHERE + + ( - CAST( - - col1 AS DECIMAL ) ) IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2978
SELECT + + col1 AS col0 FROM tab0 WHERE + + ( - CAST ( - - col1 AS REAL ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 BETWEEN NULL AND - + 8
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + + 23 col2 FROM tab2
----
91
91
91

query I rowsort
SELECT - col1 * - col1 + - 80 FROM tab2 AS cor0
----
2521
4409
5849

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

query I rowsort
SELECT ALL + + ( - col0 ) + - 56 AS col1 FROM tab2 AS cor0
----
-102
-120
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2984
SELECT + - COUNT( * ) + - 53 + - 76 col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2984
SELECT + - COUNT ( * ) + - 53 + - 76 col1 FROM tab1 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT DISTINCT 9 + + + COUNT( * ) - + + ( + MAX( 24 ) ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2985
SELECT DISTINCT 9 + + + COUNT ( * ) - + + ( + MAX ( 24 ) ) FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col2 + - - col1 + - - col1 * 58 * - - 65 AS col0 FROM tab1 AS cor0
----
177305
18914
52890

query II rowsort
SELECT col1 AS col2, - ( - 95 ) * + col0 FROM tab1 cor0
----
14
4845
47
8645
5
8075

query II rowsort
SELECT + col2 AS col2, - ( + 28 ) FROM tab2 AS cor0
----
23
-28
40
-28
58
-28

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( + col2 ) NOT IN ( + + 42, - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 - - 38 col1 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 WHERE 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT COUNT( DISTINCT - + 88 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2992
SELECT COUNT ( DISTINCT - + 88 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 25 <> NULL )
----

query I rowsort
SELECT + + 43 AS col2 FROM tab2 WHERE NULL IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL MAX( 20 ) col1 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2995
SELECT ALL MAX ( 20 ) col1 FROM tab0
----
20

query I rowsort
SELECT + 81 - - - col0 + + 62 FROM tab0
----
128
46
56

query II rowsort
SELECT ALL + col1 + - - 64 AS col0, - col1 * - 73 FROM tab0 cor0
----
145
5913
65
73
85
1533

query II rowsort
SELECT - + 91 + - + col0 AS col2, col0 + col1 FROM tab2 cor0
----
-137
97
-155
141
-166
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT MAX( ALL - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT ALL - SUM( + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

skipif mysql # not compatible
query I rowsort label-3000
SELECT ALL - SUM ( + col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-185

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL MAX( - 30 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL MAX ( - 30 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( 87 * + 95 ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3005
SELECT - - col2 DIV - - 28 AS col0 FROM tab1 AS cor0
----
2
2
3

skipif mysql # not compatible
query I rowsort label-3005
SELECT - - col2 / - - 28 AS col0 FROM tab1 AS cor0
----
2
2
3

query II rowsort
SELECT + 27 AS col2, col0 AS col1 FROM tab2
----
27
46
27
64
27
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT CAST( NULL AS SIGNED ) * - - 28 * - col2 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - ( - 93 ) * + + col1 FROM tab1 cor0
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) = - + col0
----

skipif mysql # not compatible
query III rowsort label-3010
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) = - + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 >= + 19 * 57 )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 58 * + col1 AS col1 FROM tab1
----
-2726
-290
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT MAX( ALL 63 ) AS col1 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT MAX ( ALL 63 ) AS col1 FROM tab2
----
63

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col0 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT DISTINCT - COUNT( ALL + - 10 ) + + MAX( + - col1 ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT - COUNT ( ALL + - 10 ) + + MAX ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 65 + - + 87 - + + col2 < NULL
----

query I rowsort
SELECT ALL + 70 + 96 FROM tab0 AS cor0
----
166
166
166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, - col1 * 7 col1 FROM tab2
----
51
-357
67
-469
77
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT + COUNT( * ) - - 71 * + - COUNT( * ) AS col2 FROM tab1, tab0 cor0
----
-630

skipif mysql # not compatible
query I rowsort label-3021
SELECT + COUNT ( * ) - - 71 * + - COUNT ( * ) AS col2 FROM tab1, tab0 cor0
----
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT + 1 - + 28 DIV - + col1 AS col2 FROM tab2 AS cor0
----
1
1
1

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

query I rowsort
SELECT ALL - 48 + + - 50 - - + 17 FROM tab1 AS cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 + - col2 col0 FROM tab1 AS cor0
----
-51
-82
-85
-54
-91
-21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL + + SUM( ALL CAST( - ( col0 ) AS SIGNED ) ) FROM tab0 cor0
----
-199

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

query I rowsort
SELECT ALL + + 26 * - ( - + col2 ) - + + 2 AS col0 FROM tab2 AS cor0
----
1038
1506
596

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 18 + - + col2 NOT BETWEEN + 34 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 - + 13 AS col1 FROM tab0 AS cor0
----
-112
-23
-60

query I rowsort
SELECT - 0 * + col2 * - + col0 * col0 + 92 FROM tab0
----
92
92
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3030
SELECT ALL - 25 - 92 DIV - - COUNT( * ) FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-3030
SELECT ALL - 25 - 92 / - - COUNT ( * ) FROM tab0
----
-55

query I rowsort
SELECT col0 * - + 33 + + 94 + - col0 AS col1 FROM tab2
----
-1470
-2082
-2456

query III rowsort
SELECT * FROM tab2 WHERE - ( + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT - COUNT( * ) DIV + + 6 + + COUNT( * ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3033
SELECT - COUNT ( * ) / + + 6 + + COUNT ( * ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT - 58 * + + col0 DIV col0 + + col1 FROM tab0
----
-37
-57
23

skipif mysql # not compatible
query I rowsort label-3034
SELECT - 58 * + + col0 / col0 + + col1 FROM tab0
----
-37
-57
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col1 + - col2 AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT - ( - + 61 ) FROM tab1 WHERE NOT + col1 IS NULL
----
61

query III rowsort
SELECT - col0 AS col2, - col2 AS col1, col1 * col0 + + col1 AS col1 FROM tab2
----
9 values hashing to d90392ce24a5c1901fa9224b86555788

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 + - 2 = + 32 - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT + + MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3040
SELECT + + MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT - col1 + - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - - 31 * + + 84 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - - COUNT( * ) + + - 15 col0 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3042
SELECT ALL - - COUNT ( * ) + + - 15 col0 FROM tab2 AS cor0
----
-12

query III rowsort
SELECT + + 1 + 36 AS col0, col0 AS col2, + col1 FROM tab1 cor0
----
9 values hashing to 6123ae70d079c39b27f6a77801160e3f

query I rowsort
SELECT DISTINCT + ( - 84 ) + - col1 FROM tab1 AS cor0
----
-131
-89
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3045
SELECT ALL col2 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3046
SELECT + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - + 62 + col1 + + + 25 FROM tab0 AS cor0
----
-16
-36
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3048
SELECT DISTINCT - COUNT( DISTINCT + 40 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - COUNT ( DISTINCT + 40 ) AS col2 FROM tab0
----
-1

query II rowsort
SELECT ALL col2 AS col0, ( ( col0 ) ) FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3050
SELECT + + CAST( - - ( + + col2 ) AS SIGNED ) FROM tab1 WHERE + ( + col2 ) * - - 71 BETWEEN - + 49 * + + 22 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3050
SELECT + + CAST ( - - ( + + col2 ) AS INTEGER ) FROM tab1 WHERE + ( + col2 ) * - - 71 BETWEEN - + 49 * + + 22 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( NOT NULL IS NULL ) )
----

query II rowsort
SELECT + 68 AS col1, 95 * - + 82 AS col1 FROM tab2 cor0
----
68
-7790
68
-7790
68
-7790

query I rowsort
SELECT 70 FROM tab2 AS cor0 WHERE NULL IN ( 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT COUNT( * ) + + 58 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3054
SELECT COUNT ( * ) + + 58 FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3055
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) - + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3055
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) - + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + ( - ( + 98 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 24 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + 87 FROM tab2 AS cor0
----
-4002
-5568
-6525

query I rowsort
SELECT ALL - + col2 + + col2 + + 0 + + col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - - col2 + - + col2 + - + col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + - 70 * col1 - + col0 AS col0 FROM tab2 AS cor0
----
-3616
-4765
-5454

query I rowsort
SELECT DISTINCT + + col2 + + - 4 AS col1 FROM tab2 AS cor0
----
19
36
54

query I rowsort
SELECT + col1 - ( + 52 ) AS col2 FROM tab2 AS cor0
----
-1
15
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * + col2 = - - 12
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 39 AS col2, 45 + - col2 FROM tab0
----
39
-2
39
-54
39
35

query II rowsort
SELECT + col2, 47 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT ALL + ( - ( + SUM( - 38 ) ) ) * - SUM( DISTINCT + 65 ) AS col2 FROM tab2
----
-7410

skipif mysql # not compatible
query I rowsort label-3067
SELECT ALL + ( - ( + SUM ( - 38 ) ) ) * - SUM ( DISTINCT + 65 ) AS col2 FROM tab2
----
-7410

query I rowsort
SELECT ALL + col0 * + - col2 * - - col2 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT + 55 * + - ( + 15 ) FROM tab2
----
-825
-825
-825

query II rowsort
SELECT - col1 * - 82 * - col1, col1 + + ( + col2 ) AS col1 FROM tab0 cor0
----
-36162
31
-538002
128
-82
100

query II rowsort
SELECT ALL + col0, + col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT - col1 * - 46 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col2, 83 AS col2 FROM tab1
----
-59
83
-68
83
-96
83

onlyif mysql # aggregate syntax: 
query II rowsort label-3074
SELECT 18 AS col0, COUNT( * ) * - COUNT( ALL - + 92 ) FROM tab0
----
18
-9

skipif mysql # not compatible
query II rowsort label-3074
SELECT 18 AS col0, COUNT ( * ) * - COUNT ( ALL - + 92 ) FROM tab0
----
18
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-3075
SELECT + + ( 51 ), MAX( + + col0 ) AS col2 FROM tab0 AS cor0
----
51
97

skipif mysql # not compatible
query II rowsort label-3075
SELECT + + ( 51 ), MAX ( + + col0 ) AS col2 FROM tab0 AS cor0
----
51
97

query I rowsort
SELECT DISTINCT - + col0 + + 77 FROM tab0 cor0
----
-10
-20
62

query I rowsort
SELECT ALL - col1 + - + 43 FROM tab0 AS cor0
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3078
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3078
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col2 + 73 < + col1 + - + col2
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 64 + 78 FROM tab2 AS cor0
----
142

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

query I rowsort
SELECT 94 + + 77 + - col1 FROM tab1
----
124
157
166

query I rowsort
SELECT - col0 + - col2 + + col0 AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT MAX( + col2 ) + - - COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3084
SELECT MAX ( + col2 ) + - - COUNT ( * ) FROM tab1
----
99

query I rowsort
SELECT - col0 + + - 92 * + - col2 + + 99 AS col1 FROM tab2
----
2169
3715
5360

query I rowsort
SELECT - col1 + 86 AS col2 FROM tab0
----
5
65
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3087
SELECT ALL MIN( DISTINCT 72 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3087
SELECT ALL MIN ( DISTINCT 72 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT + 60 + + + COUNT( * ) AS col1 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 60 + + + COUNT ( * ) AS col1 FROM tab0
----
63

query II rowsort
SELECT ALL - ( + - col2 ) AS col2, + col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3090
SELECT ALL ( + SUM( - col0 ) ) + - ( + 49 ) FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-3090
SELECT ALL ( + SUM ( - col0 ) ) + - ( + 49 ) FROM tab2
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT 43 + + + COUNT( * ) AS col1 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-3091
SELECT 43 + + + COUNT ( * ) AS col1 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3092
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 7, CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3092
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + + 7, CAST ( NULL AS INTEGER ) * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 83 * + ( 41 ) + - col0 + - col0 col1 FROM tab0 AS cor0
----
3209
3229
3373

query I rowsort
SELECT ALL - + col0 - col2 + - - 43 AS col1 FROM tab2 AS cor0
----
-26
-61
-90

query II rowsort
SELECT DISTINCT - ( - - col0 ) - - - 14 AS col1, 26 - + 82 AS col1 FROM tab1
----
-105
-56
-65
-56
-99
-56

query I rowsort
SELECT + col0 AS col2 FROM tab2 cor0 WHERE col2 IS NOT NULL
----
46
64
75

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

query II rowsort
SELECT + 31, 25 AS col2 FROM tab2 AS cor0
----
31
25
31
25
31
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL + COUNT( * ) * + 98 AS col1 FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + COUNT ( * ) * + 98 AS col1 FROM tab1
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3100
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + COUNT( + col1 ) FROM tab1
----
NULL

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

query I rowsort
SELECT 16 * col0 AS col2 FROM tab2
----
1024
1200
736

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT ALL - ( + col2 ) DIV + 22 FROM tab0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - ( + col2 ) / + 22 FROM tab0
----
-2
-4
0

query I rowsort
SELECT DISTINCT col1 * + + 10 AS col0 FROM tab0
----
10
210
810

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT ALL + 53 DIV + COUNT( ALL - col1 ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + 53 / + COUNT ( ALL - col1 ) FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT + ( - + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3105
SELECT + ( - + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col0 * + - col1 * - col0 FROM tab2 AS cor0
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT CAST( + - 51 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

skipif mysql # not compatible
query I rowsort label-3107
SELECT CAST ( + - 51 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

query II rowsort
SELECT + 23 + + ( - col0 ) AS col0, + 60 FROM tab1 AS cor0
----
-28
60
-62
60
-68
60

query I rowsort
SELECT - 28 + - col1 FROM tab0 AS cor0
----
-109
-29
-49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( col1 ) + + + col0 * - col2 * - 8 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 6 ) AS col2 FROM tab2
----
-6
-6
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3112
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col0 ) >= - CAST( + - ( ( - 39 ) ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3112
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col0 ) >= - CAST ( + - ( ( - 39 ) ) AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT ALL COUNT( * ) DIV + 28 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL COUNT ( * ) / + 28 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - + 39 * - 71 >= + 59
----

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 FROM tab0
----
1
99
21
10
81
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT ALL COUNT( * ) FROM tab2 WHERE NOT col0 + + 53 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3117
SELECT ALL COUNT ( * ) FROM tab2 WHERE NOT col0 + + 53 = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col2 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab1 WHERE col1 + + col2 + - 47 + + + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + + col1 * - - 40 AS col1 FROM tab1
----
1971
285
611

query II rowsort
SELECT DISTINCT + ( 97 ), - col0 AS col2 FROM tab2
----
97
-46
97
-64
97
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3122
SELECT CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab2
----
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + 66 + + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * + + col1 + col1 - + col2 FROM tab0 AS cor0
----
-1
1249
1838

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3125
SELECT * FROM tab0 cor0 WHERE col1 + + CAST( - - 80 AS SIGNED ) * - col2 * - - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3125
SELECT * FROM tab0 cor0 WHERE col1 + + CAST ( - - 80 AS INTEGER ) * - col2 * - - col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + + 93 + col1 AS col0 FROM tab1 AS cor0
----
11
39
72

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3129
SELECT col2 DIV + - col1 AS col1, + 7 col1 FROM tab0 AS cor0
----
-99
7
0
7
0
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3129
SELECT col2 / + - col1 AS col1, + 7 col1 FROM tab0 AS cor0
----
-99
7
0
7
0
7

onlyif mysql # DIV for integer division: 
query II rowsort label-3130
SELECT + col2 DIV + 3 col2, col2 AS col1 FROM tab2 cor0
----
13
40
19
58
7
23

skipif mysql # not compatible
query II rowsort label-3130
SELECT + col2 / + 3 col2, col2 AS col1 FROM tab2 cor0
----
13
40
19
58
7
23

query II rowsort
SELECT + - col0 * + 37, 2 AS col0 FROM tab1 AS cor0
----
-1887
2
-3145
2
-3367
2

query I rowsort
SELECT 42 * - col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3133
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0 WHERE 89 - + col1 * + - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3133
SELECT ALL + ( + col1 ) col2 FROM tab1 AS cor0 WHERE 89 - + col1 * + - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3134
SELECT + col0 DIV + col2, col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
1
0
3
8
0

skipif mysql # not compatible
query II rowsort label-3134
SELECT + col0 / + col2, col2 / + col0 AS col0 FROM tab0 AS cor0
----
0
1
0
3
8
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - 63 col1 FROM tab1 AS cor0
----
-3717
-4284
-6048

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT ALL + MAX( col1 ) - - 88 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL + MAX ( col1 ) - - 88 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3138
SELECT + COUNT( * ), + 20 AS col2 FROM tab0
----
3
20

skipif mysql # not compatible
query II rowsort label-3138
SELECT + COUNT ( * ), + 20 AS col2 FROM tab0
----
3
20

query II rowsort
SELECT ALL - 98 AS col0, - ( + - col1 ) FROM tab1
----
-98
14
-98
47
-98
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3140
SELECT ALL - CAST( col1 AS SIGNED ) DIV - + 98 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - CAST ( col1 AS INTEGER ) / - + 98 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - 86 IS NOT NULL
----

query I rowsort
SELECT ALL - 4 * 33 FROM tab2
----
-132
-132
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 61 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 61 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * - col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT DISTINCT - SUM( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3145
SELECT DISTINCT - SUM ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + + 3 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 21 + 7 IS NULL
----

query I rowsort
SELECT ALL + - col2 + col0 - - 84 FROM tab0 AS cor0
----
161
52
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL 6 + + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL 6 + + + COUNT ( * ) FROM tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col1, - 22 AS col0 FROM tab0
----
1
-22
21
-22
81
-22

query I rowsort
SELECT ALL - 59 - col0 * - col0 AS col1 FROM tab1
----
2542
7166
8222

onlyif mysql # DIV for integer division: 
query I rowsort label-3152
SELECT col0 DIV + col1 + + col1 AS col1 FROM tab2
----
51
68
77

skipif mysql # not compatible
query I rowsort label-3152
SELECT col0 / + col1 + + col1 AS col1 FROM tab2
----
51
68
77

query I rowsort
SELECT - 37 * + - col0 + + - col1 + + - 14 FROM tab1
----
1859
3126
3306

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3154
SELECT CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 70 * + - col1
----

query I rowsort
SELECT - + 20 * - col1 * + - col2 * + - 38 FROM tab2 AS cor0
----
2340800
2953360
891480

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT DISTINCT + MIN( col2 ) - COUNT( * ) FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3157
SELECT DISTINCT + MIN ( col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
56

query I rowsort
SELECT ALL + col0 - - col1 * - - col0 AS col0 FROM tab0
----
1230
1914
194

query II rowsort
SELECT ALL - col2, ( col0 ) FROM tab2
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT - + 13, + 57 AS col0 FROM tab2 AS cor0
----
-13
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - - MIN( ALL + + 11 ) * COUNT( * ) AS col1 FROM tab2 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3162
SELECT - - MIN ( ALL + + 11 ) * COUNT ( * ) AS col1 FROM tab2 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3163
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - col0 IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT DISTINCT - - COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT - - COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 66 * col2 FROM tab2 AS cor0
----
1518
2640
3828

query I rowsort
SELECT - col1 * - ( + + col0 ) FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT col1 DIV ( col1 ) col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3167
SELECT col1 / ( col1 ) col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT - MIN( DISTINCT 93 ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3168
SELECT - MIN ( DISTINCT 93 ) FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT + MAX( 81 ) * - 59 col1 FROM tab1
----
-4779

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3169
SELECT DISTINCT + MAX ( 81 ) * - 59 col1 FROM tab1
----
-4779

onlyif mysql # aggregate syntax: 
query I rowsort label-3170
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( ( + - col1 ) * - col0 * col2 * - 34 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( ( + - col1 ) * - col0 * col2 * - 34 ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT ALL col0 * - col1 DIV col1 + - + col0 * + col0 * col0 AS col2 FROM tab0
----
-3390
-658590
-912770

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL col0 * - col1 / col1 + - + col0 * + col0 * col0 AS col2 FROM tab0
----
-3390
-658590
-912770

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - - col2 ) > + col2 + - col1
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT - MAX( + col1 ) * - 99 FROM tab2 AS cor0
----
7623

skipif mysql # not compatible
query I rowsort label-3173
SELECT - MAX ( + col1 ) * - 99 FROM tab2 AS cor0
----
7623

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL = - ( + - col1 ) * - + col2
----

query I rowsort
SELECT DISTINCT 38 + + col1 AS col2 FROM tab1
----
43
52
85

query I rowsort
SELECT DISTINCT + 21 * - ( - col1 ) FROM tab2
----
1071
1407
1617

query I rowsort
SELECT - + col1 + + 97 * col0 AS col1 FROM tab1 AS cor0
----
4933
8240
8780

query I rowsort
SELECT DISTINCT 80 + - col1 FROM tab0 AS cor0
----
-1
59
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3179
SELECT ALL - ( - col0 ) + col2 AS col2, + col0 DIV col2 * 44 + 93 - col1 + - col0 * + 99 * col1 FROM tab0 AS cor0
----
196
-9511
62
-120273
97
-180449

skipif mysql # not compatible
query II rowsort label-3179
SELECT ALL - ( - col0 ) + col2 AS col2, + col0 / col2 * 44 + 93 - col1 + - col0 * + 99 * col1 FROM tab0 AS cor0
----
196
-9511
62
-120273
97
-180449

query II rowsort
SELECT col1 AS col1, + col1 * + col2 + - - col1 FROM tab0 AS cor0
----
1
100
21
231
81
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT + - 62 - + SUM( + col0 ) AS col1 FROM tab2 AS cor0
----
-247

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + - 62 - + SUM ( + col0 ) AS col1 FROM tab2 AS cor0
----
-247

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 37 NOT BETWEEN + 87 / + col2 AND + + 86
----

query I rowsort
SELECT 99 AS col0 FROM tab1 WHERE NULL IS NULL
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3184
SELECT ALL - col1 DIV - col1 - + col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-3184
SELECT ALL - col1 / - col1 - + col2 FROM tab2
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col1 AS col2, col1 + col2 col1 FROM tab1
----
196
110
2209
115
25
64

query I rowsort
SELECT + 97 - 24 AS col1 FROM tab2
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT ALL + CAST( ( - 97 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL + CAST ( ( - 97 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT MAX( - 10 ) + SUM( ALL + col1 ) * - - COUNT( * ) FROM tab2 AS cor0
----
575

skipif mysql # not compatible
query I rowsort label-3188
SELECT MAX ( - 10 ) + SUM ( ALL + col1 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
575

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 12 IS NOT NULL )
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + ( + + 40 ) col0 FROM tab2 AS cor0
----
-1840
-2560
-3000

query I rowsort
SELECT DISTINCT + 3 * col1 AS col2 FROM tab1 AS cor0
----
141
15
42

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3193
SELECT + CAST( NULL AS SIGNED ) * + CAST( NULL AS DECIMAL ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3194
SELECT DISTINCT - CAST( + ( + SUM( - col0 ) ) AS SIGNED ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3194
SELECT DISTINCT - CAST ( + ( + SUM ( - col0 ) ) AS INTEGER ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3195
SELECT ALL - 95 * + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE 25 * - - ( - col1 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL - 95 * + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE 25 * - - ( - col1 ) IS NOT NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT COUNT( DISTINCT - 77 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT COUNT ( DISTINCT - 77 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT ALL + 44, col1 AS col1 FROM tab1
----
44
14
44
47
44
5

query I rowsort
SELECT - ( + ( 94 ) ) FROM tab0
----
-94
-94
-94

query III rowsort
SELECT 75 AS col2, col2, - col2 + + 35 + col2 AS col2 FROM tab1
----
9 values hashing to 01acd3de8db1789af95550eb0979747b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query II rowsort
SELECT 50, col0 AS col2 FROM tab1
----
50
51
50
85
50
91

query II rowsort
SELECT 87 AS col1, + col0 FROM tab2
----
87
46
87
64
87
75

query I rowsort
SELECT + 1 * - + col1 AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT - col1 + + - col2 FROM tab2 cor0
----
-117
-125
-74

query II rowsort
SELECT + col2 * col1, col0 FROM tab2
----
1173
46
3080
64
3886
75

query I rowsort
SELECT 71 * + col0 FROM tab1
----
3621
6035
6461

query I rowsort
SELECT DISTINCT col1 - + - col0 * + col2 FROM tab0 AS cor0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-3209
SELECT DISTINCT - + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 + + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3209
SELECT DISTINCT - + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 + + col2 < NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col0 ) * - + 86 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 - + - 95 + - col1 + 99 * + col2 AS col2 FROM tab2 AS cor0
----
2344
4018
5828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT + 75 + + + col1 * - CAST( - col0 AS SIGNED ) col2 FROM tab0
----
1290
172
1902

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3212
SELECT + 75 + + + col1 * - CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
1290
172
1902

query I rowsort
SELECT DISTINCT 54 + col2 FROM tab2
----
112
77
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3214
SELECT DISTINCT + CAST( - + 0 AS SIGNED ) - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3214
SELECT DISTINCT + CAST ( - + 0 AS INTEGER ) - COUNT ( * ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 32 col2 FROM tab0
----
2592
32
672

query I rowsort
SELECT ALL 21 * + - col2 FROM tab0
----
-2079
-210
-987

query II rowsort
SELECT col1, + 22 FROM tab2
----
51
22
67
22
77
22

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE - 23 <> NULL
----

query I rowsort
SELECT ALL + 14 - + col1 AS col2 FROM tab2
----
-37
-53
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-3220
SELECT - col1 DIV + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3220
SELECT - col1 / + col2 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT - + col0, col0 * - col0 AS col1 FROM tab2 cor0
----
-46
-2116
-64
-4096
-75
-5625

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 > + ( + - 14 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3223
SELECT ALL + CAST( col0 AS SIGNED ) * + col0 * col2 col2 FROM tab0
----
10575
75690
931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3223
SELECT ALL + CAST ( col0 AS INTEGER ) * + col0 * col2 col2 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3224
SELECT DISTINCT - COUNT( * ) DIV + 38 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - COUNT ( * ) / + 38 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - AVG ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT DISTINCT + - CAST( + MAX( ( + 42 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + - CAST ( + MAX ( ( + 42 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3228
SELECT + 38 * - col1 * col0 + - 70 * CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-191744
-196200
-92368

skipif mysql # not compatible
query I rowsort label-3228
SELECT + 38 * - col1 * col0 + - 70 * CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-191744
-196200
-92368

onlyif mysql # aggregate syntax: 
query I rowsort label-3229
SELECT + 93 * + - MIN( col0 ) FROM tab0
----
-1395

skipif mysql # not compatible
query I rowsort label-3229
SELECT + 93 * + - MIN ( col0 ) FROM tab0
----
-1395

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL + COUNT( * ) * COUNT( - + col1 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL + COUNT ( * ) * COUNT ( - + col1 ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT + 78 * + + COUNT( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
234

skipif mysql # not compatible
query I rowsort label-3231
SELECT + 78 * + + COUNT ( DISTINCT - ( col2 ) ) AS col0 FROM tab0
----
234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col1 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3233
SELECT ALL - col0 AS col1, - CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3233
SELECT ALL - col0 AS col1, - CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 * 8 + 9 * - + 22 - 64 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 * - + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT - - COUNT( DISTINCT col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - 84 - 77 * col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3236
SELECT - - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 WHERE NULL BETWEEN - 84 - 77 * col0 AND NULL
----
0

query II rowsort
SELECT + col1 AS col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT - col2 * - 66 AS col0 FROM tab1 AS cor0
----
3894
4488
6336

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3239
SELECT + CAST( NULL AS SIGNED ) AS col1, - col0 col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3239
SELECT + CAST ( NULL AS INTEGER ) AS col1, - col0 col1 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL + + col0 + + + ( col1 ) * + 39 - + - col1 AS col1 FROM tab0 cor0
----
137
3255
927

query I rowsort
SELECT + col2 * 90 FROM tab1 cor0
----
5310
6120
8640

query II rowsort
SELECT - col0 * col2 + - col1 AS col1, 83 / - 98 AS col0 FROM tab2 AS cor0 WHERE - col2 + + ( + + 48 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT + + ( + + 89 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3243
SELECT + + ( + + 89 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
267

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 NOT BETWEEN col1 AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3246
SELECT ALL COUNT( * ) * - - 22 + ( - + CAST( + 80 AS SIGNED ) ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL COUNT ( * ) * - - 22 + ( - + CAST ( + 80 AS INTEGER ) ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT 71 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
270
3246
943

query I rowsort
SELECT ( - col2 ) - - col2 * 28 AS col0 FROM tab0
----
1269
2673
270

query I rowsort
SELECT ALL + col1 / + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT COUNT( * ) AS col1 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3250
SELECT COUNT ( * ) AS col1 FROM tab0, tab2 cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 IS NOT NULL
----

query I rowsort
SELECT 55 * + - 68 AS col0 FROM tab0
----
-3740
-3740
-3740

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + COUNT( - col2 ) * 24 AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3253
SELECT + COUNT ( - col2 ) * 24 AS col1 FROM tab0 AS cor0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT + col0 DIV col1 * col0 FROM tab2 cor0
----
0
0
75

skipif mysql # not compatible
query I rowsort label-3254
SELECT + col0 / col1 * col0 FROM tab2 cor0
----
0
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT MIN( ALL - ( + 91 ) ) AS col2 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-3255
SELECT MIN ( ALL - ( + 91 ) ) AS col2 FROM tab2
----
-91

query I rowsort
SELECT + AVG ( col1 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL > + 34
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT DISTINCT + + col2, - 54 DIV + col0 FROM tab0 AS cor0
----
10
0
47
-3
99
0

skipif mysql # not compatible
query II rowsort label-3258
SELECT DISTINCT + + col2, - 54 / + col0 FROM tab0 AS cor0
----
10
0
47
-3
99
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * + col2 + + col0 * - col2 col0 FROM tab0 AS cor0
----
-1782
-80
3008

query II rowsort
SELECT - col0 * + - ( + - 85 ) AS col1, col2 AS col2 FROM tab2 AS cor0
----
-3910
23
-5440
40
-6375
58

query I rowsort
SELECT DISTINCT + 40 + + 46 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3262
SELECT DISTINCT SUM( DISTINCT + + col1 ) col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3262
SELECT DISTINCT SUM ( DISTINCT + + col1 ) col1 FROM tab0 cor0
----
103

query II rowsort
SELECT ALL col1 * - + 92, col2 AS col0 FROM tab1 AS cor0 WHERE 85 NOT BETWEEN NULL AND + col1 - + + col1
----
-1288
96
-4324
68
-460
59

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----

query I rowsort
SELECT + 7 * - 94 FROM tab0 AS cor0
----
-658
-658
-658

query II rowsort
SELECT DISTINCT + 47 * 34 AS col1, - 29 FROM tab2
----
1598
-29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - + col2 - 98 IS NULL ) OR - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT - 95 * - MIN( DISTINCT col2 ) FROM tab0
----
950

skipif mysql # not compatible
query I rowsort label-3269
SELECT - 95 * - MIN ( DISTINCT col2 ) FROM tab0
----
950

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3270
SELECT + CAST( NULL AS DECIMAL ) * + col1 + - ( + col1 ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 60 + - col0 + + + col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 + + + 23 + col1 FROM tab0
----
185
25
65

onlyif mysql # DIV for integer division: 
query II rowsort label-3273
SELECT + - col1 * - 66 + col1 DIV - - col2, - col2 * - col2 + - col1 DIV + col2 + + 6 AS col2 FROM tab1 cor0
----
3102
4630
330
3487
924
9222

skipif mysql # not compatible
query II rowsort label-3273
SELECT + - col1 * - 66 + col1 / - - col2, - col2 * - col2 + - col1 / + col2 + + 6 AS col2 FROM tab1 cor0
----
3102
4630
330
3487
924
9222

query I rowsort
SELECT ALL col1 + - + 53 + col2 AS col2 FROM tab2 AS cor0
----
21
64
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3275
SELECT DISTINCT MIN( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT + 62 DIV col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3276
SELECT + 62 / col2 FROM tab2
----
1
1
2

query I rowsort
SELECT col2 + + col0 FROM tab2 AS cor0 WHERE ( NULL ) < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3278
SELECT ALL + CAST( 19 AS SIGNED ) + + col0 AS col1 FROM tab1 cor0
----
104
110
70

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + CAST ( 19 AS INTEGER ) + + col0 AS col1 FROM tab1 cor0
----
104
110
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL OR ( - 41 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3280
SELECT ALL CAST( NULL AS SIGNED ) + + ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT ALL 98 - + CAST( - + CAST( - 46 AS SIGNED ) AS SIGNED ) * - col0 + - - 2 AS col2 FROM tab2 AS cor0
----
2216
3044
3550

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL 98 - + CAST ( - + CAST ( - 46 AS INTEGER ) AS INTEGER ) * - col0 + - - 2 AS col2 FROM tab2 AS cor0
----
2216
3044
3550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 62, col0 + + 73 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
62
160
62
170
62
88

query II rowsort
SELECT - - ( - col0 ), col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - 69 AS col1 FROM tab2
----
-46
-69
-64
-69
-75
-69

query I rowsort
SELECT DISTINCT col0 * + + 19 * - col0 AS col0 FROM tab2
----
-106875
-40204
-77824

query II rowsort
SELECT - col0, 47 AS col1 FROM tab2
----
-46
47
-64
47
-75
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT DISTINCT CAST( ( ( + - ( CAST( NULL AS SIGNED ) ) ) ) AS SIGNED ) FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + col0 * col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3289
SELECT + COUNT( - col0 ) AS col2, 17 col1 FROM tab1
----
3
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3289
SELECT + COUNT ( - col0 ) AS col2, 17 col1 FROM tab1
----
3
17

query I rowsort
SELECT + col2 * + + col1 AS col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 <> + 58
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 18 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT DISTINCT + COUNT( + - col2 ) + + COUNT( + 85 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT + COUNT ( + - col2 ) + + COUNT ( + 85 ) AS col1 FROM tab0 AS cor0
----
6

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0, col2, + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3297
SELECT + COUNT( * ) * + + CAST( + + SUM( ALL + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
363

skipif mysql # not compatible
query I rowsort label-3297
SELECT + COUNT ( * ) * + + CAST ( + + SUM ( ALL + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
363

query I rowsort
SELECT - 74 * col1 + col0 AS col2 FROM tab0 AS cor0
----
-1467
-5979
23

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT - col1 DIV + + 59 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3299
SELECT - col1 / + + 59 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3300
SELECT COUNT( ALL col2 ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( ALL col2 ) * + COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3301
SELECT CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-3301
SELECT CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query II rowsort
SELECT DISTINCT - col2 AS col0, + col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3303
SELECT ALL COUNT( * ), + 55 * - 52 col1 FROM tab0
----
3
-2860

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3303
SELECT ALL COUNT ( * ), + 55 * - 52 col1 FROM tab0
----
3
-2860

query II rowsort
SELECT - + col1 AS col1, + col2 FROM tab1 cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT ALL + col2 * 46 * - + col2 FROM tab1 AS cor0
----
-160126
-212704
-423936

onlyif mysql # aggregate syntax: 
query II rowsort label-3306
SELECT ALL + - COUNT( ALL col0 ) + ( 7 ), ( 86 ) AS col0 FROM tab0 AS cor0
----
4
86

skipif mysql # not compatible
query II rowsort label-3306
SELECT ALL + - COUNT ( ALL col0 ) + ( 7 ), ( 86 ) AS col0 FROM tab0 AS cor0
----
4
86

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + + col1 * - 78 * col0 IS NULL
----

query I rowsort
SELECT ( - 10 ) * - col1 FROM tab0
----
10
210
810

query I rowsort
SELECT DISTINCT + ( col2 ) + ( 3 ) FROM tab2
----
26
43
61

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 70 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( + col0 ) * - col1 ) NOT IN ( col0 )
----

query I rowsort
SELECT + 25 + 39 FROM tab0 WHERE NOT ( + ( + 94 ) ) IS NULL
----
64
64
64

query I rowsort
SELECT - 53 * - col0 FROM tab0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT + 42 * COUNT( * ) AS col2 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-3315
SELECT + 42 * COUNT ( * ) AS col2 FROM tab0
----
126

query I rowsort
SELECT + 53 * - 13 FROM tab1
----
-689
-689
-689

query I rowsort
SELECT ALL 52 AS col2 FROM tab1 WHERE NOT + 14 * - col0 NOT BETWEEN 46 AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3318
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 8 AND 19 + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-3318
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 8 AND 19 + CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT ALL + col0 * - col2 + + col1 AS col2 FROM tab1
----
-4882
-5010
-6141

query I rowsort
SELECT col0 FROM tab0 WHERE NULL <> 54 / 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT SUM( + ( col1 ) ) col2 FROM tab2 WHERE NOT ( col0 ) * ( + col2 ) BETWEEN NULL AND col0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3321
SELECT SUM ( + ( col1 ) ) col2 FROM tab2 WHERE NOT ( col0 ) * ( + col2 ) BETWEEN NULL AND col0
----
195

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN ( + col1 + - col0 ) AND ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + 95 + 69 / col0 NOT BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 17 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 30 * + 10 ) NOT BETWEEN - 30 AND col0 + - 95
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3326
SELECT DISTINCT col1 FROM tab0 WHERE NOT + CAST( - 32 AS DECIMAL ) + + 45 >= col2 + col2
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT col1 FROM tab0 WHERE NOT + CAST ( - 32 AS REAL ) + + 45 >= col2 + col2
----
1
21
81

query I rowsort
SELECT + col0 * + 16 AS col0 FROM tab1 AS cor0
----
1360
1456
816

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col2 * - ( ( ( + col1 ) ) * col2 ) ) IS NOT NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 67 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( 21 + 29 )
----

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

query I rowsort
SELECT ALL - col2 * col1 FROM tab1 WHERE ( + col1 + 75 ) NOT BETWEEN NULL AND ( + 7 )
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-3333
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1
----
9

query I rowsort
SELECT DISTINCT 17 AS col1 FROM tab2 WHERE col0 * - col0 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 18 AND NULL
----

query I rowsort
SELECT - 64 / + 35 FROM tab1 AS cor0 WHERE ( NULL ) = NULL
----

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

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) + + 98 AS col2 FROM tab2 AS cor0
----
-2248
-4830
-4927

query I rowsort
SELECT DISTINCT - col2 + col0 * 47 AS col2 FROM tab0 cor0
----
4079
4460
658

query I rowsort
SELECT ALL - 13 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( 45 * - 42 + col2 )
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT 26 + 23 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT col1 DIV + col0 + col1 DIV col0 FROM tab2
----
0
2
2

skipif mysql # not compatible
query I rowsort label-3343
SELECT col1 / + col0 + col1 / col0 FROM tab2
----
0
2
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT - 15 + - ( 29 ) + + MIN( col0 ) col1 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3345
SELECT - 15 + - ( 29 ) + + MIN ( col0 ) col1 FROM tab1
----
7

query I rowsort
SELECT - col1 + col2 * 52 FROM tab2
----
1145
2003
2949

query III rowsort
SELECT * FROM tab0 WHERE - col0 > + col0 * - 70
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + col0 + - col2 FROM tab1 cor0
----
-24
-59
21

query I rowsort
SELECT DISTINCT + 97 * col0 + 52 FROM tab1 AS cor0
----
4999
8297
8879

query I rowsort
SELECT + ( + col1 ) * - - col0 * col1 - 46 * - col0 AS col1 FROM tab1
----
12342
205205
6035

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

query I rowsort
SELECT DISTINCT 36 * + col2 AS col2 FROM tab2
----
1440
2088
828

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < ( + 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3354
SELECT DISTINCT + MAX( - 12 ) DIV - 27 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + MAX ( - 12 ) / - 27 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + 10 FROM tab0 AS cor0 WHERE NOT - col1 * col0 / - col0 + ( - 94 ) IS NULL
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3356
SELECT ALL col2 DIV - - 67 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL col2 / - - 67 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - 56 ) * col2 )
----

skipif mysql # not compatible
query I rowsort label-3357
SELECT + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - 56 ) * col2 )
----

query II rowsort
SELECT - 29 AS col1, ( + 17 ) FROM tab2 AS cor0
----
-29
17
-29
17
-29
17

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 20 * col2 >= NULL
----

query I rowsort
SELECT + 33 - - col2 AS col2 FROM tab1 AS cor0 WHERE NOT - 50 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT - + CAST( + - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3361
SELECT - + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3362
SELECT - CAST( - - ( - - 80 ) AS SIGNED ) DIV + SUM( col0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT - CAST ( - - ( - - 80 ) AS INTEGER ) / + SUM ( col0 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT DISTINCT + 36 * ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3364
SELECT + 87 DIV col0 AS col2 FROM tab1
----
0
1
1

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - - 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 98 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + 88 NOT BETWEEN NULL AND ( - col1 * col1 )
----
3

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + 88 NOT BETWEEN NULL AND ( - col1 * col1 )
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 + col1 + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - CAST( - 98 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT - CAST ( - 98 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3371
SELECT DISTINCT - col2 + + - ( - CAST( - col0 AS SIGNED ) ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
643
773
9407

skipif mysql # not compatible
query I rowsort label-3371
SELECT DISTINCT - col2 + + - ( - CAST ( - col0 AS INTEGER ) ) + col2 * col0 AS col2 FROM tab0 AS cor0
----
643
773
9407

query I rowsort
SELECT ( 98 ) + + col2 * + + col1 - col1 AS col1 FROM tab1 AS cor0
----
1428
3247
388

onlyif mysql # DIV for integer division: 
query I rowsort label-3373
SELECT + col1 + - col2 DIV + 93 + + col1 - + + col0 * col2 FROM tab0 AS cor0
----
-543
-828
-9602

skipif mysql # not compatible
query I rowsort label-3373
SELECT + col1 + - col2 / + 93 + + col1 - + + col0 * col2 FROM tab0 AS cor0
----
-543
-828
-9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT - - 64 + CAST( NULL AS SIGNED ) + - SUM( + 46 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3374
SELECT - - 64 + CAST ( NULL AS INTEGER ) + - SUM ( + 46 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 96 * + 76 + 22 FROM tab1 AS cor0
----
-7274
-7274
-7274

onlyif mysql # aggregate syntax: 
query I rowsort label-3376
SELECT + + SUM( + col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3376
SELECT + + SUM ( + col2 ) AS col2 FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query II rowsort label-3377
SELECT DISTINCT - + COUNT( * ) AS col1, + 8 FROM tab0 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-3377
SELECT DISTINCT - + COUNT ( * ) AS col1, + 8 FROM tab0 AS cor0
----
-3
8

query I rowsort
SELECT - 25 * - + 6 * + - col2 FROM tab1
----
-10200
-14400
-8850

query I rowsort
SELECT + 68 + 61 AS col1 FROM tab2 WHERE col2 < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 * + 70 col1 FROM tab2
----
-5180
-5180
-5180

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL 45 * ( - - COUNT( * ) ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL 45 * ( - - COUNT ( * ) ) FROM tab0
----
135

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col1 * col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + col2 ) * 41 AS col1 FROM tab2
----
-1640
-2378
-943

query I rowsort
SELECT + ( - 32 ) + - + col1 + 50 * + col1 * 1 AS col2 FROM tab2 cor0
----
2467
3251
3741

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 0 NOT IN ( - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3386
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 * + col0 AS col0, - col1 FROM tab2
----
1058
-51
2560
-77
4350
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3388
SELECT ALL COUNT( * ) DIV + + 86 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL COUNT ( * ) / + + 86 AS col2 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col2, 67 AS col1 FROM tab0 cor0 WHERE ( col0 IS NOT NULL )
----
10
67
47
67
99
67

query I rowsort
SELECT col1 * - col2 * + + 3 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-369600
-676164
-80937

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( * ) * MAX( - + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( * ) * MAX ( - + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
153

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + 7, + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 / 59 - + col0 NOT BETWEEN 65 / + col1 + - - col2 AND ( NULL )
----

query I rowsort
SELECT ALL + col0 * + col1 * + 24 AS col1 FROM tab0
----
2328
29160
43848

query I rowsort
SELECT ALL - col0 * - col1 + col1 * 48 AS col2 FROM tab0 AS cor0
----
145
2835
5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT + CAST( NULL AS SIGNED ) + - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL 7 col0, col0 * - col1 - + col2 FROM tab0 AS cor0
----
7
-1262
7
-1837
7
-196

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3399
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col1, ( + 13 ) + + col2 * col0 FROM tab0
----
15
718
87
883
97
9616

skipif mysql # not compatible
query II rowsort label-3399
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col1, ( + 13 ) + + col2 * col0 FROM tab0
----
15
718
87
883
97
9616

query I rowsort
SELECT ALL 36 + 84 FROM tab1
----
120
120
120

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - col2 / col2 > - 44 - + ( - col2 ) + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 + - col2 + - col1 * - + col0, col2 col1 FROM tab2 AS cor0
----
2277
23
4824
40
4892
58

query I rowsort
SELECT ALL + col1 + - 13 AS col0 FROM tab2 AS cor0
----
38
54
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT + - CAST( NULL AS SIGNED ) + + col1 * col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3405
SELECT col1 * + + col2 + + - col0 * CAST( NULL AS SIGNED ) + + col2 + + 39 + - - col1 + - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 21 - - col1 FROM tab1
----
26
35
68

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col2 IN ( + - 21 - + - col2 - - - col1, 6 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3408
SELECT ALL COUNT( * ) - SUM( - + 6 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL COUNT ( * ) - SUM ( - + 6 ) FROM tab0
----
21

query I rowsort
SELECT - col0 + - col2 + + 81 AS col1 FROM tab2
----
-23
-52
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3410
SELECT + CAST( col1 AS SIGNED ) * + col2 * - - 89 + + - col1 DIV - 13 AS col1 FROM tab1
----
119617
26255
284447

skipif mysql # not compatible
query I rowsort label-3410
SELECT + CAST ( col1 AS INTEGER ) * + col2 * - - 89 + + - col1 / - 13 AS col1 FROM tab1
----
119617
26255
284447

query I rowsort
SELECT col1 + - 11 AS col1 FROM tab1
----
-6
3
36

query II rowsort
SELECT col2 * ( ( - + 36 ) ) + - col0, + col2 FROM tab1
----
-2209
59
-2539
68
-3507
96

query I rowsort
SELECT 92 * 74 * col2 FROM tab2
----
156584
272320
394864

query II rowsort
SELECT - col0 AS col0, - col1 + - col0 * + + col0 FROM tab2
----
-46
-2167
-64
-4173
-75
-5692

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT - MAX( DISTINCT + 13 ) AS col2 FROM tab2 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT - MAX ( DISTINCT + 13 ) AS col2 FROM tab2 AS cor0
----
-13

query III rowsort
SELECT ALL * FROM tab0 WHERE - 9 IN ( + 64, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 + 0 + + - 13 + + col0 * + - CAST( - 74 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3417
SELECT * FROM tab0 WHERE NOT - 99 + 0 + + - 13 + + col0 * + - CAST ( - 74 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3418
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3419
SELECT ALL - COUNT( * ), + MAX( - col2 ) col0 FROM tab2 AS cor0
----
-3
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3419
SELECT ALL - COUNT ( * ), + MAX ( - col2 ) col0 FROM tab2 AS cor0
----
-3
-23

query I rowsort
SELECT DISTINCT - 33 * + col1 AS col2 FROM tab2 AS cor0
----
-1683
-2211
-2541

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT - 79 * + 98 - - - 12 FROM tab0 AS cor0
----
-7754

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3424
SELECT - 0 * - CAST( + AVG ( DISTINCT - 2 ) AS SIGNED ) AS col0, 86 * - 15 FROM tab0 AS cor0
----
0
-1290

skipif mysql # not compatible
query II rowsort label-3424
SELECT - 0 * - CAST ( + AVG ( DISTINCT - 2 ) AS INTEGER ) AS col0, 86 * - 15 FROM tab0 AS cor0
----
0
-1290

query I rowsort
SELECT ALL + col0 * col1 * 62 AS col0 FROM tab0 AS cor0
----
113274
6014
75330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3426
SELECT 42 DIV - COUNT( * ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-3426
SELECT 42 / - COUNT ( * ) FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT DISTINCT + 43 / - - 73 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT + 43 / - - 73 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3428
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3428
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 13 * - ( col1 ) FROM tab0
----
-1053
-13
-273

query I rowsort
SELECT DISTINCT + 80 * col1 + - col0 FROM tab2 AS cor0
----
4034
5285
6096

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 50 IN ( - - col2, - ( + col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT - - col1 DIV + + 18 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3434
SELECT - - col1 / + + 18 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT DISTINCT + col1 + + 75 * + col1 FROM tab1 AS cor0
----
1064
3572
380

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 97 + + - CAST( NULL AS SIGNED ) * - col2 AND 28
----

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 97 + + - CAST ( NULL AS INTEGER ) * - col2 AND 28
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN 31 - col1 * + col1 + + col2 AND - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT ALL MIN( + col2 ) + COUNT( * ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3439
SELECT ALL MIN ( + col2 ) + COUNT ( * ) FROM tab2
----
26

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3440
SELECT DISTINCT ( + MIN( + - col2 ) ) - - COUNT( * ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3440
SELECT DISTINCT ( + MIN ( + - col2 ) ) - - COUNT ( * ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) NOT IN ( + col0, 59 * - 96 - + + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - + col0 + + - 80 AS col2 FROM tab2
----
-1138
-2640
-4430

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 4 + + col1 * 48 IN ( col1 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 - - - col2 * - + col0 + - 2 AS col0 FROM tab0
----
750
878
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + COUNT( * ) * + 33 * + - MAX( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-1386

skipif mysql # not compatible
query I rowsort label-3445
SELECT + COUNT ( * ) * + 33 * + - MAX ( DISTINCT 14 ) AS col1 FROM tab2 AS cor0
----
-1386

onlyif mysql # DIV for integer division: 
query I rowsort label-3446
SELECT - - 0 DIV col2 * - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3446
SELECT - - 0 / col2 * - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3447
SELECT ALL + COUNT( * ) * + 25, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
75
NULL

skipif mysql # not compatible
query II rowsort label-3447
SELECT ALL + COUNT ( * ) * + 25, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
75
NULL

query I rowsort
SELECT - ( + col2 ) * + col0 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL + col1 * - 38 + + col0 - - col2 * - - col2, - col0 AS col0 FROM tab0 AS cor0
----
-611
-87
-854
-15
9860
-97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = col2 * + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT DISTINCT MAX( ALL + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3451
SELECT DISTINCT MAX ( ALL + + col1 ) FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT DISTINCT + SUM( ALL - 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-288

skipif mysql # not compatible
query I rowsort label-3452
SELECT DISTINCT + SUM ( ALL - 32 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-288

query I rowsort
SELECT ALL + 85 * - col0 AS col1 FROM tab1 AS cor0
----
-4335
-7225
-7735

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN + col1 + - 56 + - col0 + + 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT MIN( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3455
SELECT MIN ( - ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT + col0 * - + col0 FROM tab2 cor0
----
-2116
-4096
-5625

query I rowsort
SELECT - col0 FROM tab1 cor0 WHERE NOT ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3458
SELECT - MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 / - + col1 IN ( - col1 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT ALL - SUM( ALL - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3460
SELECT ALL - SUM ( ALL - + col1 ) FROM tab2
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT DISTINCT 77 * 41 * + + CAST( - col2 AS SIGNED ) * col0 + - col2 AS col2 FROM tab0
----
-2225732
-2746600
-30316770

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT 77 * 41 * + + CAST ( - col2 AS INTEGER ) * col0 + - col2 AS col2 FROM tab0
----
-2225732
-2746600
-30316770

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

query I rowsort
SELECT ALL col2 + - 55 AS col1 FROM tab1 AS cor0
----
13
4
41

query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2 AS cor0 WHERE NOT - 1 IS NULL
----
-12

query I rowsort
SELECT DISTINCT col0 * - 1 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 1 + + col0 AS col1 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL + 57 + - ( + col1 ) FROM tab0 cor0
----
-24
36
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 AND - col0
----

query I rowsort
SELECT ALL + col0 + - 45 AS col2 FROM tab1 cor0
----
40
46
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 84 + - - 23 + - - col2 IS NULL
----

query I rowsort
SELECT + 96 + - 16 AS col1 FROM tab0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + + col1 / 48 - + + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT MIN( ALL - 28 ) + - - 55 + + + COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3473
SELECT MIN ( ALL - 28 ) + - - 55 + + + COUNT ( * ) FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT COUNT( * ) + + ( + ( + + ( - COUNT( * ) ) ) ) AS col2 FROM tab0 WHERE NOT - - 93 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) + + ( + ( + + ( - COUNT ( * ) ) ) ) AS col2 FROM tab0 WHERE NOT - - 93 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col2 * col2 * 54 FROM tab0
----
119286
529254
5400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 col1 FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT - - MIN( 79 ) AS col0 FROM tab0 cor0
----
79

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT - - MIN ( 79 ) AS col0 FROM tab0 cor0
----
79

onlyif mysql # DIV for integer division: 
query II rowsort label-3478
SELECT DISTINCT + col1, - ( + - col2 ) DIV + col2 FROM tab2 cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-3478
SELECT DISTINCT + col1, - ( + - col2 ) / + col2 FROM tab2 cor0
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT - COUNT( ALL 41 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT - COUNT ( ALL 41 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NOT NULL < ( col0 ) ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 79 + + 0 * + - 71 col0 FROM tab2 AS cor0
----
-79

query II rowsort
SELECT + ( col2 ) * - 19 + - - ( + col0 ), col0 AS col2 FROM tab1 AS cor0
----
-1036
85
-1201
91
-1773
51

onlyif mysql # DIV for integer division: 
query II rowsort label-3484
SELECT col1 * col0 + - col0 + + + 49 DIV + col0 AS col0, 14 AS col0 FROM tab0 AS cor0
----
0
14
1203
14
1740
14

skipif mysql # not compatible
query II rowsort label-3484
SELECT col1 * col0 + - col0 + + + 49 / + col0 AS col0, 14 AS col0 FROM tab0 AS cor0
----
0
14
1203
14
1740
14

query I rowsort
SELECT - + col2 * - + col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col1 * - 95 AS col0 FROM tab2
----
4845
6365
7315

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 62 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3488
SELECT - col2 - col2 DIV - col0 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-3488
SELECT - col2 - col2 / - col0 FROM tab1 AS cor0
----
-59
-68
-95

query I rowsort
SELECT - col0 + 98 + - - col2 * + + col1 AS col0 FROM tab1 AS cor0
----
1391
308
3203

query I rowsort
SELECT ALL 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT DISTINCT + col1 + - col1 DIV - col2 AS col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + col1 + - col1 / - col2 AS col0 FROM tab2
----
53
68
78

query II rowsort
SELECT - 43 AS col1, col1 AS col0 FROM tab2
----
-43
51
-43
67
-43
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3493
SELECT DISTINCT ( + col0 ) * + col1 * - - 13 + + CAST( NULL AS DECIMAL ) + + 33 - 91 * - 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3493
SELECT DISTINCT ( + col0 ) * + col1 * - - 13 + + CAST ( NULL AS REAL ) + + 33 - 91 * - 2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3494
SELECT 61 AS col1, + 56 + - - col0 DIV + - 15 AS col1 FROM tab0 AS cor0
----
61
50
61
51
61
55

skipif mysql # not compatible
query II rowsort label-3494
SELECT 61 AS col1, + 56 + - - col0 / + - 15 AS col1 FROM tab0 AS cor0
----
61
50
61
51
61
55

query II rowsort
SELECT - col0 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = 65
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3497
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 AS col1, + 85 FROM tab2
----
NULL
85

skipif mysql # not compatible
query II rowsort label-3497
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 AS col1, + 85 FROM tab2
----
NULL
85

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

query II rowsort
SELECT ALL col0 * 34, - 97 AS col2 FROM tab1
----
1734
-97
2890
-97
3094
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT MIN( - 83 ) AS col0 FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT MIN ( - 83 ) AS col0 FROM tab1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3501
SELECT DISTINCT - ( + COUNT( * ) ) DIV - 33 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - ( + COUNT ( * ) ) / - 33 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3502
SELECT DISTINCT - ( CAST( col2 AS SIGNED ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

skipif mysql # not compatible
query II rowsort label-3502
SELECT DISTINCT - ( CAST ( col2 AS INTEGER ) ) AS col2, + col1 + - col1 - col1 AS col2 FROM tab2
----
-23
-51
-40
-77
-58
-67

query II rowsort
SELECT ALL + 40 col1, - 37 * + - 50 * 32 + - 0 AS col2 FROM tab2
----
40
59200
40
59200
40
59200

query I rowsort
SELECT ALL - 46 + + ( + col2 ) + - col0 FROM tab2 AS cor0
----
-63
-69
-70

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 * - col0 IN ( + 34 - - 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + col0 - + - col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT + - COUNT( DISTINCT 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-3507
SELECT + - COUNT ( DISTINCT 51 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1

query I rowsort
SELECT ALL - col2 + + + ( + col1 ) - + + col2 * + - 28 + + col1 AS col1 FROM tab2 AS cor0
----
1234
1700
723

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL + COUNT( - 66 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL + COUNT ( - 66 ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 AS col0, 49 col0 FROM tab1 AS cor0
----
-14
49
-47
49
-5
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3511
SELECT DISTINCT 27 + - + col1 + + col0 DIV + 17 AS col1 FROM tab2 AS cor0
----
-22
-36
-47

skipif mysql # not compatible
query I rowsort label-3511
SELECT DISTINCT 27 + - + col1 + + col0 / + 17 AS col1 FROM tab2 AS cor0
----
-22
-36
-47

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 50 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 84 + - col0 FROM tab1
----
-1
-7
33

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

query II rowsort
SELECT col0 + - + 10 AS col1, - 92 FROM tab0
----
5
-92
77
-92
87
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3517
SELECT DISTINCT - 5 + - CAST( + - col1 AS SIGNED ) FROM tab2
----
46
62
72

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT - 5 + - CAST ( + - col1 AS INTEGER ) FROM tab2
----
46
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + + ( + + 50 ) * + + col2 col2 FROM tab1 AS cor0
----
2945
3353
4786

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT - 15 - + COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT - 15 - + COUNT ( * ) AS col0 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3521
SELECT COUNT( * ) - 57 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-3521
SELECT COUNT ( * ) - 57 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3522
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col1 + - col2 + - + col0 - - + col1 FROM tab2 AS cor0
----
1
33
50

query II rowsort
SELECT ALL - col2, + col0 * + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-59
-425
-68
-4277
-96
-714

onlyif mysql # aggregate syntax: 
query II rowsort label-3525
SELECT ALL 76 AS col2, COUNT( * ) AS col2 FROM tab1 cor0
----
76
3

skipif mysql # not compatible
query II rowsort label-3525
SELECT ALL 76 AS col2, COUNT ( * ) AS col2 FROM tab1 cor0
----
76
3

query II rowsort
SELECT DISTINCT - col2 AS col0, - 76 FROM tab0 AS cor0
----
-10
-76
-47
-76
-99
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT + COUNT( col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3527
SELECT + COUNT ( col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT COUNT( + ( - ( + + 91 ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT COUNT ( + ( - ( + + 91 ) ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 + - + 79 * - + col2 FROM tab1 WHERE - + 15 * col2 + + + col2 BETWEEN 3 AND 85
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3530
SELECT DISTINCT COUNT( * ) DIV 32, 66 AS col0 FROM tab0
----
0
66

skipif mysql # not compatible
query II rowsort label-3530
SELECT DISTINCT COUNT ( * ) / 32, 66 AS col0 FROM tab0
----
0
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3531
SELECT DISTINCT * FROM tab0 WHERE + - col0 IN ( - 9, + col0 + - + 94 + + 29, + + CAST( 6 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3531
SELECT DISTINCT * FROM tab0 WHERE + - col0 IN ( - 9, + col0 + - + 94 + + 29, + + CAST ( 6 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT + CAST( NULL AS SIGNED ) * - + 83 AS col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT DISTINCT - 78 DIV - col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3533
SELECT DISTINCT - 78 / - col0 FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 68 * - 93 col0 FROM tab1
----
51
-6324
85
-6324
91
-6324

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - + COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3535
SELECT - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - COUNT( * ) * + MIN( ALL + 48 ) * - COUNT( * ) FROM tab1 AS cor0
----
432

skipif mysql # not compatible
query I rowsort label-3537
SELECT - COUNT ( * ) * + MIN ( ALL + 48 ) * - COUNT ( * ) FROM tab1 AS cor0
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT DISTINCT 9 * ( + COUNT( * ) ) col1 FROM tab0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3538
SELECT DISTINCT 9 * ( + COUNT ( * ) ) col1 FROM tab0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT + 11 + + + 11 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-3539
SELECT + 11 + + + 11 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 6 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - col1 ) + 43 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT DISTINCT + col1 * + + col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NULL < - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2, col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3545
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3546
SELECT + 48 DIV - - col2 AS col0 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 48 / - - col2 AS col0 FROM tab0
----
0
1
4

query I rowsort
SELECT 3 + + + col0 FROM tab2 AS cor0
----
49
67
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT 65 + + - COUNT( * ) * - - COUNT( + col1 ) AS col1 FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-3549
SELECT 65 + + - COUNT ( * ) * - - COUNT ( + col1 ) AS col1 FROM tab2 AS cor0
----
56

query I rowsort
SELECT DISTINCT col2 * + 2 - - 51 FROM tab2
----
131
167
97

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

query I rowsort
SELECT 92 + + + ( - + col1 ) FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3553
SELECT + CAST( + 53 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
53
53
53

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3554
SELECT - col0 DIV + col0 AS col0, + 75 DIV - col2 FROM tab2 AS cor0
----
-1
-1
-1
-1
-1
-3

skipif mysql # not compatible
query II rowsort label-3554
SELECT - col0 / + col0 AS col0, + 75 / - col2 FROM tab2 AS cor0
----
-1
-1
-1
-1
-1
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3555
SELECT + COUNT( * ) * + 38 + + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3557
SELECT + COUNT( ALL - col1 ) FROM tab1 WHERE NOT + 83 + 48 + - - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3557
SELECT + COUNT ( ALL - col1 ) FROM tab1 WHERE NOT + 83 + 48 + - - col2 IS NULL
----
3

query I rowsort
SELECT ALL 20 * - + col1 FROM tab2
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT + MIN( ALL + 75 ) AS col2 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3559
SELECT + MIN ( ALL + 75 ) AS col2 FROM tab0
----
75

query I rowsort
SELECT - + col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT + col1 AS col1, + 99 AS col0 FROM tab1 AS cor0
----
14
99
47
99
5
99

query I rowsort
SELECT ALL - + 42 * + 75 FROM tab1 AS cor0
----
-3150
-3150
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3563
SELECT ALL + MAX( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + MAX ( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3564
SELECT + col0 DIV 88 - - 29 + + col2 + + + 44 FROM tab1 AS cor0
----
132
142
169

skipif mysql # not compatible
query I rowsort label-3564
SELECT + col0 / 88 - - 29 + + col2 + + + 44 FROM tab1 AS cor0
----
132
142
169

query II rowsort
SELECT - + col0 + + col1 + - 61, + 41 AS col2 FROM tab1 WHERE NOT - 26 IS NULL
----
-105
41
-141
41
-98
41

query I rowsort
SELECT 27 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT + ( - - 66 ) * + - col2 + + - col0 FROM tab2
----
-1564
-2704
-3903

query II rowsort
SELECT DISTINCT 32, + col1 FROM tab2
----
32
51
32
67
32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT 89 DIV - 8 FROM tab2
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-3569
SELECT 89 / - 8 FROM tab2
----
-11
-11
-11

query II rowsort
SELECT - 15 AS col1, 69 * - ( - - 57 ) * col0 + + ( - col0 ) FROM tab2 AS cor0
----
-15
-180964
-15
-251776
-15
-295050

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + ( - 17 ) / + + CAST( CAST( 64 AS SIGNED ) AS SIGNED ) - - ( + 2 ) NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3571
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 + ( - 17 ) / + + CAST ( CAST ( 64 AS INTEGER ) AS INTEGER ) - - ( + 2 ) NOT IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - + MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3572
SELECT - + MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3574
SELECT DISTINCT SUM( - col0 ) + COUNT( * ) / CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT SUM ( - col0 ) + COUNT ( * ) / CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 8 + + col2 AS col1 FROM tab0 cor0
----
2
39
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3576
SELECT ALL + 48 + + + 51 AS col1, COUNT( - col1 ) DIV - 19 AS col0 FROM tab1 cor0
----
99
0

skipif mysql # not compatible
query II rowsort label-3576
SELECT ALL + 48 + + + 51 AS col1, COUNT ( - col1 ) / - 19 AS col0 FROM tab1 cor0
----
99
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT ALL - col2 DIV col0 * - col2 + + - 23 DIV + 16 FROM tab0 AS cor0
----
-1
140
98

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL - col2 / col0 * - col2 + + - 23 / + 16 FROM tab0 AS cor0
----
-1
140
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT ALL - ( + col0 ) - + CAST( + 29 AS SIGNED ) * + - col2 AS col0 FROM tab2 AS cor0
----
1096
1607
621

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL - ( + col0 ) - + CAST ( + 29 AS INTEGER ) * + - col2 AS col0 FROM tab2 AS cor0
----
1096
1607
621

onlyif mysql # aggregate syntax: 
query I rowsort label-3579
SELECT DISTINCT + COUNT( ALL - col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT + COUNT ( ALL - col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT - + COUNT( * ) FROM tab1 WHERE - col1 BETWEEN - 90 AND col0
----
-3

skipif mysql # not compatible
query I rowsort label-3580
SELECT - + COUNT ( * ) FROM tab1 WHERE - col1 BETWEEN - 90 AND col0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT DISTINCT - COUNT( * ) - + 79 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-3581
SELECT DISTINCT - COUNT ( * ) - + 79 FROM tab2
----
-82

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3583
SELECT + col2 * CAST( NULL AS SIGNED ) + 99 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 58 + - + 46 + + col2 * + col2 + + + col2 AS col0 FROM tab1
----
3552
4704
9324

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT 36 * - 11 * + + MIN( DISTINCT + + 34 ) AS col0 FROM tab2
----
-13464

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT 36 * - 11 * + + MIN ( DISTINCT + + 34 ) AS col0 FROM tab2
----
-13464

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

query I rowsort
SELECT DISTINCT ( 12 ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NULL <> NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT DISTINCT SUM( ALL + 83 ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-3591
SELECT DISTINCT SUM ( ALL + 83 ) FROM tab1
----
249

query I rowsort
SELECT DISTINCT 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3593
SELECT DISTINCT + 14 DIV COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3593
SELECT DISTINCT + 14 / COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
1

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3595
SELECT + + 89 DIV col1 AS col2 FROM tab2 AS cor0
----
1
1
1

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

query I rowsort
SELECT ALL + - col1 + + - col0 + ( + 10 ) + + col0 + - 14 AS col1 FROM tab0 AS cor0
----
-25
-5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT DISTINCT col0 * - + col0 * - - col2 DIV - col2 col0 FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3597
SELECT DISTINCT col0 * - + col0 * - - col2 / - col2 col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + 0 * + col0 * - col1 + 63 - - - 35 * - 78 AS col0 FROM tab0
----
2793
2793
2793

query I rowsort
SELECT ALL + col2 + - 67 AS col0 FROM tab1
----
-8
1
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT - COUNT( * ) DIV COUNT( * ) + - SUM( + col0 ) AS col1 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-3600
SELECT - COUNT ( * ) / COUNT ( * ) + - SUM ( + col0 ) AS col1 FROM tab1
----
-228

query I rowsort
SELECT DISTINCT - col2 + 26 FROM tab1 AS cor0
----
-33
-42
-70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + 38
----

query I rowsort
SELECT ALL col2 + - + 8 AS col2 FROM tab0 AS cor0
----
2
39
91

query I rowsort
SELECT - + 30 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
-127
-2445
-717

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT + COUNT( * ) * SUM( - col1 ) * 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT + COUNT ( * ) * SUM ( - col1 ) * 0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col2 * + 74 FROM tab0 cor0
----
-3478
-7326
-740

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - - SUM( - 69 ) AS col2 FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3608
SELECT - - SUM ( - 69 ) AS col2 FROM tab2 AS cor0
----
-207

query I rowsort
SELECT 55 - 79 AS col2 FROM tab2
----
-24
-24
-24

query II rowsort
SELECT + col1, + col2 FROM tab0 cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL 10 * + MAX( + - col2 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL 10 * + MAX ( + - col2 ) FROM tab0 AS cor0
----
-100

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) * - 84 >= 4 - - col1 * + col2 - col0 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3612
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) * - 84 >= 4 - - col1 * + col2 - col0 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( - 15 * - col1 < + 54 * + - col1 ) )
----

query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3615
SELECT + 27 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT COUNT( * ) * + + 57 FROM tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-3616
SELECT COUNT ( * ) * + + 57 FROM tab2 cor0
----
171

query II rowsort
SELECT + col1 AS col2, + 87 + + col0 FROM tab0
----
1
184
21
174
81
102

query II rowsort
SELECT DISTINCT col1 AS col1, col0 + col1 FROM tab0
----
1
98
21
108
81
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > - - ( - col1 )
----

query I rowsort
SELECT 87 + + - col2 + + col0 AS col0 FROM tab2
----
104
110
111

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 11 * + + 80 AND + col0
----

query I rowsort
SELECT 94 + + col1 * - col1 * - 32 + + - col2 AS col0 FROM tab0
----
14196
209999
27

query I rowsort
SELECT - 2 + 20 + - col2 * col2 FROM tab2 AS cor0
----
-1582
-3346
-511

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE - col2 <> col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - col0 * + CAST( - 33 AS SIGNED ) AS col2 FROM tab2
----
1518
2112
2475

skipif mysql # not compatible
query I rowsort label-3625
SELECT - col0 * + CAST ( - 33 AS INTEGER ) AS col2 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3626
SELECT ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col0 + col1 - - col0 FROM tab2 AS cor0
----
143
205
217

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - 72 - - SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-3628
SELECT - 72 - - SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT DISTINCT + + 29 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - 88 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3629
SELECT DISTINCT + + 29 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - 88 AND NULL
----

query I rowsort
SELECT col1 - - 94 + - 7 AS col2 FROM tab2 AS cor0
----
138
154
164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col2 * col1 col2 FROM tab1 cor0 WHERE col1 * + 14 < - col1 / + col0
----

query I rowsort
SELECT 4 * + 14 + 88 AS col0 FROM tab1 AS cor0
----
144
144
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + col1 col0 FROM tab2
----
104
114
88

query I rowsort
SELECT DISTINCT - col1 - - 25 FROM tab1
----
-22
11
20

query I rowsort
SELECT col2 + - + 8 FROM tab2
----
15
32
50

query I rowsort
SELECT ALL - 78 * - 67 - + + col0 * - 78 AS col0 FROM tab0
----
12012
12792
6396

query I rowsort
SELECT DISTINCT 31 * 18 FROM tab2
----
558

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT - 46 DIV 9 FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-3638
SELECT - 46 / 9 FROM tab2
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL <> + 58
----

query I rowsort
SELECT + col2 * - 15 FROM tab0
----
-1485
-150
-705

query I rowsort
SELECT + 42 AS col2 FROM tab1 WHERE NOT + - col0 * col1 + - ( + col0 ) >= NULL
----

query I rowsort
SELECT - 77 * + 16 FROM tab0
----
-1232
-1232
-1232

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 60 AS col1, - col0 FROM tab0
----
60
-15
60
-87
60
-97

query I rowsort
SELECT + col1 * + ( + 22 ) FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT 53 * - - MAX( DISTINCT + - 94 ) AS col0 FROM tab2 AS cor0
----
-4982

skipif mysql # not compatible
query I rowsort label-3646
SELECT 53 * - - MAX ( DISTINCT + - 94 ) AS col0 FROM tab2 AS cor0
----
-4982

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col1 * + 61
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3648
SELECT DISTINCT COUNT( * ) AS col0, + 23 FROM tab0 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-3648
SELECT DISTINCT COUNT ( * ) AS col0, + 23 FROM tab0 AS cor0
----
3
23

query II rowsort
SELECT - 99, col0 FROM tab1 AS cor0
----
-99
51
-99
85
-99
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3650
SELECT DISTINCT COUNT( * ), - MAX( - 75 ) AS col1 FROM tab2 AS cor0
----
3
75

skipif mysql # not compatible
query II rowsort label-3650
SELECT DISTINCT COUNT ( * ), - MAX ( - 75 ) AS col1 FROM tab2 AS cor0
----
3
75

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3652
SELECT ALL - 16 * + col1 + col2 + + CAST( + ( col0 ) AS SIGNED ), col1 AS col1 FROM tab1 AS cor0
----
-593
47
-77
14
64
5

skipif mysql # not compatible
query II rowsort label-3652
SELECT ALL - 16 * + col1 + col2 + + CAST ( + ( col0 ) AS INTEGER ), col1 AS col1 FROM tab1 AS cor0
----
-593
47
-77
14
64
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3653
SELECT 68 DIV + 36 + + 37 AS col2 FROM tab2 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-3653
SELECT 68 / + 36 + + 37 AS col2 FROM tab2 AS cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - + COUNT( * ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3654
SELECT - + COUNT ( * ) * - 51 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + - col2 col2, - col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL 59 + + col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT + - col0 * 93, - col2 AS col0 FROM tab2 AS cor0
----
-4278
-23
-5952
-40
-6975
-58

query I rowsort
SELECT DISTINCT + + col0 / col2 AS col1 FROM tab1 AS cor0 WHERE col2 + - - 56 / + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT - CAST( + col1 AS SIGNED ) + col1 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3659
SELECT - CAST ( + col1 AS INTEGER ) + col1 + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + ( - + col0 ) col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3661
SELECT DISTINCT 22 + - col0 DIV col0 AS col1, 71 AS col1 FROM tab1
----
21
71

skipif mysql # not compatible
query II rowsort label-3661
SELECT DISTINCT 22 + - col0 / col0 AS col1, 71 AS col1 FROM tab1
----
21
71

query I rowsort
SELECT ( 28 ) * - + col2 FROM tab2 AS cor0
----
-1120
-1624
-644

query II rowsort
SELECT + 27 AS col2, - col1 AS col2 FROM tab0 AS cor0
----
27
-1
27
-21
27
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT - 41 * + - COUNT( * ) FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-3664
SELECT - 41 * + - COUNT ( * ) FROM tab1 cor0
----
123

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3665
SELECT + CAST( NULL AS DECIMAL ) * - col2 * + 57 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3666
SELECT ALL - - 75 DIV SUM( - + 15 ), CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3666
SELECT ALL - - 75 / SUM ( - + 15 ), CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-1
NULL

query I rowsort
SELECT ALL - + col2 - 34 AS col0 FROM tab1 AS cor0
----
-102
-130
-93

query II rowsort
SELECT 5 AS col0, - 63 * 51 AS col1 FROM tab0 AS cor0
----
5
-3213
5
-3213
5
-3213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 - 14 * - + col1 col0 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT DISTINCT col2 * + ( + + col2 ) FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT ALL col1 - CAST( NULL AS SIGNED ) - - col1 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 28 * 6 FROM tab1
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-3673
SELECT ALL - col0 DIV + 59 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT ALL - col0 / + 59 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3674
SELECT ALL + - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL + - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + col1 BETWEEN - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 4 * + 13 FROM tab2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT DISTINCT - COUNT( * ) * - COUNT( DISTINCT - - col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - COUNT ( * ) * - COUNT ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-3677
SELECT - + 12 DIV 28 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3677
SELECT - + 12 / 28 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col1 * - 34 FROM tab2 AS cor0
----
1734
2278
2618

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT ALL col1 DIV + 45 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3679
SELECT ALL col1 / + 45 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT - 26 * - ( + COUNT( * ) ) col2 FROM tab2, tab0 AS cor0
----
234

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT - 26 * - ( + COUNT ( * ) ) col2 FROM tab2, tab0 AS cor0
----
234

query I rowsort
SELECT + col0 * 39 FROM tab1
----
1989
3315
3549

onlyif mysql # DIV for integer division: 
query I rowsort label-3682
SELECT DISTINCT - 21 + + col0 + + col2 DIV - - col1 AS col0 FROM tab2 AS cor0
----
25
43
54

skipif mysql # not compatible
query I rowsort label-3682
SELECT DISTINCT - 21 + + col0 + + col2 / - - col1 AS col0 FROM tab2 AS cor0
----
25
43
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3683
SELECT DISTINCT - - COUNT( * ) + - 14 DIV + ( - COUNT( * ) ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT - - COUNT ( * ) + - 14 / + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT DISTINCT + 98 * - ( COUNT( ALL col2 ) ) AS col1 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-3684
SELECT DISTINCT + 98 * - ( COUNT ( ALL col2 ) ) AS col1 FROM tab0 AS cor0
----
-294

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 15 * - 53 * - col2 BETWEEN - + col2 + + 11 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3686
SELECT ALL - col0 * 70 DIV + + col0 AS col1 FROM tab2 AS cor0
----
-70
-70
-70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT DISTINCT SUM( - - ( + + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT SUM ( - - ( + + col0 ) ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3688
SELECT * FROM tab2 WHERE + 76 = ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3688
SELECT * FROM tab2 WHERE + 76 = ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 17 + - + ( - - 11 ) + - col1 - + - col1 + - col0 + - - col2 - + 6 FROM tab2
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3690
SELECT + 52 + - - col0 DIV - col0 - - col0 FROM tab0
----
138
148
66

skipif mysql # not compatible
query I rowsort label-3690
SELECT + 52 + - - col0 / - col0 - - col0 FROM tab0
----
138
148
66

query I rowsort
SELECT DISTINCT - + 84 + - 70 FROM tab0 AS cor0
----
-154

query I rowsort
SELECT ALL + col0 + + 65 FROM tab2 AS cor0
----
111
129
140

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL - - SUM( DISTINCT + - CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - - SUM ( DISTINCT + - CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
103

query I rowsort
SELECT + - col1 + + col2 + + ( - + col1 ) * + col0 FROM tab1 AS cor0
----
-371
-4256
-632

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT MIN( ALL - - 14 ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT MIN ( ALL - - 14 ) AS col0 FROM tab0 AS cor0
----
14

query I rowsort
SELECT ALL col2 + - + col1 - col1 + + 93 AS col1 FROM tab0 AS cor0
----
-22
190
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / + col2 + 7
----

query II rowsort
SELECT - ( + col0 ) AS col1, + col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col1 * + - 4 * + + col1 + + col0 AS col1 FROM tab1 AS cor0
----
-15
-733
-8745

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 30 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 31 AS col0, + col2 AS col2 FROM tab0
----
31
10
31
47
31
99

query I rowsort
SELECT DISTINCT + col2 * - 98 AS col1 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT col1 col0 FROM tab1 WHERE NOT - col1 + + col0 * + 18 + + + col0 NOT IN ( - - 30, 84, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3703
SELECT col1 col0 FROM tab1 WHERE NOT - col1 + + col0 * + 18 + + + col0 NOT IN ( - - 30, 84, - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT + col1 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + 42 >= col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3705
SELECT + col1 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + 42 >= col0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3706
SELECT - 44 * 60 DIV 62 + 49 col2 FROM tab0 cor0
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3706
SELECT - 44 * 60 / 62 + 49 col2 FROM tab0 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT COUNT( * ) * ( + 77 ) FROM tab0 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-3707
SELECT COUNT ( * ) * ( + 77 ) FROM tab0 AS cor0
----
231

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL + - MIN( - 27 ) AS col2 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + - MIN ( - 27 ) AS col2 FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3709
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3709
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT col2 + + col1 IS NOT NULL
----

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

query I rowsort
SELECT - 30 - + col0 AS col2 FROM tab1
----
-115
-121
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3713
SELECT - 19 - 29 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT - 19 - 29 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT ALL - ( - col2 ) * CAST( - ( 70 ) AS SIGNED ) AS col0 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL - ( - col2 ) * CAST ( - ( 70 ) AS INTEGER ) AS col0 FROM tab1
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 16 ) BETWEEN NULL AND 30
----

query I rowsort
SELECT + 76 AS col2 FROM tab1 WHERE ( 72 ) NOT BETWEEN - col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT - col1 * - col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT 81 * + col0 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT ALL + MAX( col1 ) + COUNT( * ) * COUNT( * ) FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL + MAX ( col1 ) + COUNT ( * ) * COUNT ( * ) FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT ALL + MAX( DISTINCT col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3722
SELECT ALL + MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL COUNT( ALL - col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL COUNT ( ALL - col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL - 41 * 92 AS col2 FROM tab1
----
-3772
-3772
-3772

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3726
SELECT ALL CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + 24 * 17 IS NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + 24 * 17 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + 78 + COUNT( * ) * MIN( ALL col2 ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3727
SELECT + 78 + COUNT ( * ) * MIN ( ALL col2 ) AS col0 FROM tab2
----
147

query III rowsort
SELECT * FROM tab1 WHERE NOT 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT DISTINCT 48 * - COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-3730
SELECT DISTINCT 48 * - COUNT ( * ) FROM tab2
----
-144

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3731
SELECT - COUNT( * ) * - CAST( + 56 AS SIGNED ) + - SUM( ALL 12 ) AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-3731
SELECT - COUNT ( * ) * - CAST ( + 56 AS INTEGER ) + - SUM ( ALL 12 ) AS col1 FROM tab1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT col2 * CAST( - 20 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
-1235
-506
-864

skipif mysql # not compatible
query I rowsort label-3732
SELECT col2 * CAST ( - 20 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
-1235
-506
-864

onlyif mysql # DIV for integer division: 
query I rowsort label-3733
SELECT col1 DIV + col2 + ( 90 ) AS col2 FROM tab2 AS cor0
----
91
91
92

skipif mysql # not compatible
query I rowsort label-3733
SELECT col1 / + col2 + ( 90 ) AS col2 FROM tab2 AS cor0
----
91
91
92

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

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

query I rowsort
SELECT ALL 63 FROM tab0 WHERE - col1 + col1 IS NOT NULL
----
63
63
63

query III rowsort
SELECT * FROM tab0 WHERE 67 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - MIN( ALL 37 ) col2 FROM tab2
----
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3738
SELECT - MIN ( ALL 37 ) col2 FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT ALL - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3739
SELECT ALL - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 71 * ( col0 ) FROM tab2 AS cor0
----
3266
4544
5325

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + 23 <> ( 51 + col1 * col2 )
----

query I rowsort
SELECT col1 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( + 22 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 8 >= + col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 + - 80 FROM tab2 AS cor0 WHERE 87 IS NOT NULL
----
-131
-147
-157

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND ( - 1 + + 35 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3746
SELECT CAST( NULL AS SIGNED ) + + SUM( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3746
SELECT CAST ( NULL AS INTEGER ) + + SUM ( col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT - MIN( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT - MIN ( col2 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 48 * 8 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - 80 * + 11 FROM tab2 WHERE + col1 + - 55 / 63 NOT IN ( CAST( NULL AS SIGNED ) * - 59 + 97 )
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - 80 * + 11 FROM tab2 WHERE + col1 + - 55 / 63 NOT IN ( CAST ( NULL AS INTEGER ) * - 59 + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3752
SELECT ALL + ( MIN( col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL + ( MIN ( col1 ) ) FROM tab2
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 7 + + col2 >= ( + ( + col2 ) / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + + SUM( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3754
SELECT + + SUM ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3755
SELECT CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * - col2 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-3755
SELECT CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 + - col0 * - col2 NOT IN ( col2 )
----

query I rowsort
SELECT + + ( col0 ) * - 4 AS col0 FROM tab2 AS cor0
----
-184
-256
-300

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 33 / 88 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + - 20 >= + 65
----

query I rowsort
SELECT ALL col0 + + - 96 AS col2 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT ALL 47 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT - + MAX( ALL 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3763
SELECT - + MAX ( ALL 21 ) FROM tab0 AS cor0
----
-21

query II rowsort
SELECT + - col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col0 / + col2 + - 1 ) IN ( 33 )
----

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

query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT DISTINCT - SUM( 24 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT - SUM ( 24 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3769
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND col2
----
0

query I rowsort
SELECT DISTINCT + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN 40 + - 37 AND NULL
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 + + 8 FROM tab1
----
-51
-60
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ALL + 31 * COUNT( col1 ) FROM tab2 WHERE NOT ( + col0 * - + col0 * col0 + - col0 * - col1 ) IS NULL
----
93

skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL + 31 * COUNT ( col1 ) FROM tab2 WHERE NOT ( + col0 * - + col0 * col0 + - col0 * - col1 ) IS NULL
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT MIN( - col1 ) * - SUM( DISTINCT - 39 ) + - 84 * - 89 AS col1 FROM tab1
----
5643

skipif mysql # not compatible
query I rowsort label-3774
SELECT MIN ( - col1 ) * - SUM ( DISTINCT - 39 ) + - 84 * - 89 AS col1 FROM tab1
----
5643

query I rowsort
SELECT DISTINCT - 26 FROM tab1 WHERE NOT ( col0 + - col0 ) IS NULL
----
-26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3777
SELECT DISTINCT col1 * col2 AS col0, - col1 DIV + - ( col0 ) AS col0 FROM tab0
----
210
0
3807
5
99
0

skipif mysql # not compatible
query II rowsort label-3777
SELECT DISTINCT col1 * col2 AS col0, - col1 / + - ( col0 ) AS col0 FROM tab0
----
210
0
3807
5
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3778
SELECT DISTINCT SUM( col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - 21 + col1 AND ( 34 * + col0 )
----
109

skipif mysql # not compatible
query I rowsort label-3778
SELECT DISTINCT SUM ( col2 ) AS col2 FROM tab0 WHERE NOT col2 NOT BETWEEN - 21 + col1 AND ( 34 * + col0 )
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT 17 * MIN( ALL col0 ) FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-3779
SELECT 17 * MIN ( ALL col0 ) FROM tab0
----
255

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( + + ( + - col1 ) ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3781
SELECT * FROM tab0 cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3781
SELECT * FROM tab0 cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 * + - col0 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3783
SELECT ALL - - CAST( - 62 AS SIGNED ) DIV col1 + - col0 + ( 56 + + 83 DIV col1 ) * 33 FROM tab1 AS cor0
----
1789
1958
2279

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL - - CAST ( - 62 AS INTEGER ) / col1 + - col0 + ( 56 + + 83 / col1 ) * 33 FROM tab1 AS cor0
----
1789
1958
2279

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT - col0 / + 40 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE ( - 53 * col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 93 * + col0 - + + col0 FROM tab0
----
1380
8004
8924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3789
SELECT MIN( + col2 ) DIV + 92 - - + MIN( + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3789
SELECT MIN ( + col2 ) / + 92 - - + MIN ( + col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL col2 - + 54 AS col0 FROM tab1
----
14
42
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col1 * - + col0 ) BETWEEN 83 / - 52 AND + 35
----

query I rowsort
SELECT - 20 * - 36 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to bbc4aef4b8d2e37384ad44c9235ab9f5

query I rowsort
SELECT ALL - 68 * - col2 FROM tab0 AS cor0 WHERE NOT ( - col1 * + + 71 ) IN ( + 77 * col1 )
----
3196
6732
680

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 93 >= - col1
----

query II rowsort
SELECT - col1, 91 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL 54 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 59 IN ( - ( - + 94 ) )
----
162

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL 54 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 59 IN ( - ( - + 94 ) )
----
162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 - 70 NOT IN ( + col0 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3799
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST( + + 93 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3799
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( CAST ( + + 93 AS INTEGER ) )
----

query I rowsort
SELECT + 58 AS col1 FROM tab2 AS cor0 WHERE NOT - 52 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 64 ) col1 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT + 44 + - + AVG ( ALL col0 ) - + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3803
SELECT + 44 + - + AVG ( ALL col0 ) - + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 NOT IN ( col2 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3804
SELECT - CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3804
SELECT - CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) FROM tab1
----
NULL
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * + 31 + - 65 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 6 AS col0, 83 FROM tab2
----
6
83
6
83
6
83

query II rowsort
SELECT 41 AS col2, - 29 - - col2 FROM tab2
----
41
-6
41
11
41
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT + - MAX( - col0 ) * MIN( ALL - col0 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4641

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT + - MAX ( - col0 ) * MIN ( ALL - col0 ) AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4641

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3809
SELECT + COUNT( * ) + - COUNT( * ) DIV - + 55 AS col1 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3809
SELECT + COUNT ( * ) + - COUNT ( * ) / - + 55 AS col1 FROM tab2, tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT 10 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col2 * 43 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # DIV for integer division: 
query I rowsort label-3813
SELECT + 0 * + 37 DIV 71 * - ( 59 ) * - col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3813
SELECT + 0 * + 37 / 71 * - ( 59 ) * - col1 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( + col0 + - col2, - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 + + col2, + col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3816
SELECT DISTINCT - 81 DIV + - col1 + + + col1 FROM tab1
----
19
21
48

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT - 81 / + - col1 + + + col1 FROM tab1
----
19
21
48

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * + col1 + + col2 col1 FROM tab0 AS cor0
----
1186
155
4583

query I rowsort
SELECT ALL + col0 * col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 68 / - col0 - - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT ( COUNT( * ) ) * COUNT( * ) + - - 48 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) + - - 48 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT DISTINCT - + col1 + + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT ALL MIN( DISTINCT - - col1 ) + 41 + + ( - 38 ) AS col2 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL MIN ( DISTINCT - - col1 ) + 41 + + ( - 38 ) AS col2 FROM tab1 AS cor0
----
8

query II rowsort
SELECT + - 7 * + - col0 col1, + col2 FROM tab1 cor0
----
357
96
595
59
637
68

query I rowsort
SELECT ALL 59 FROM tab0 AS cor0 WHERE ( NULL ) > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT col2 - 19 AS col2 FROM tab1
----
40
49
77

query II rowsort
SELECT ALL + col2 AS col2, col0 * col0 AS col2 FROM tab1
----
59
7225
68
8281
96
2601

query I rowsort
SELECT col0 - - + 30 AS col1 FROM tab2
----
105
76
94

query I rowsort
SELECT DISTINCT + col2 * - 87 FROM tab0
----
-4089
-8613
-870

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3832
SELECT col2 DIV - CAST( - - col0 AS SIGNED ) + + col0, 23 + + col0 - + ( col1 ) + - col0 AS col1 FROM tab2 cor0
----
46
-28
64
-54
75
-44

skipif mysql # not compatible
query II rowsort label-3832
SELECT col2 / - CAST ( - - col0 AS INTEGER ) + + col0, 23 + + col0 - + ( col1 ) + - col0 AS col1 FROM tab2 cor0
----
46
-28
64
-54
75
-44

query I rowsort
SELECT - col0 * + 58 + - col1 * + col0 FROM tab1 AS cor0
----
-3672
-5355
-9555

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT ALL - SUM( - - 20 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-3834
SELECT ALL - SUM ( - - 20 ) FROM tab2
----
-60

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3836
SELECT ALL + CAST( - 62 AS SIGNED ) * col1 AS col0 FROM tab0
----
-1302
-5022
-62

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL + CAST ( - 62 AS INTEGER ) * col1 AS col0 FROM tab0
----
-1302
-5022
-62

query II rowsort
SELECT + 43 * - 17 AS col0, + col0 * - + col2 FROM tab2
----
-731
-1058
-731
-2560
-731
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT DISTINCT - 72 DIV - col2 FROM tab2 AS cor0
----
1
3

skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT - 72 / - col2 FROM tab2 AS cor0
----
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT ALL ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT - COUNT( ALL 89 ) * + SUM( + col2 ) FROM tab1 AS cor0
----
-669

skipif mysql # not compatible
query I rowsort label-3840
SELECT - COUNT ( ALL 89 ) * + SUM ( + col2 ) FROM tab1 AS cor0
----
-669

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT ALL + SUM( DISTINCT + 92 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-3842
SELECT ALL + SUM ( DISTINCT + 92 ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT - 59 * + col0 AS col0 FROM tab1 AS cor0
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3844
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 5 col1 FROM tab2 WHERE + ( ( - 66 ) ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 IN ( col0 )
----

query I rowsort
SELECT + 57 * - 79 + + col1 * - + ( - + col2 ) + - + col0 + col1 + + + col1 FROM tab1
----
-1304
-3182
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-3848
SELECT DISTINCT - col1 DIV - + 27 AS col0 FROM tab1 AS cor0
----
0
1

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - col2 / col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3850
SELECT ALL - - col1, + col1 DIV 37 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
2

skipif mysql # not compatible
query II rowsort label-3850
SELECT ALL - - col1, + col1 / 37 AS col2 FROM tab2 AS cor0
----
51
1
67
1
77
2

query I rowsort
SELECT + - col0 FROM tab0 WHERE NULL <> + 98 + + 19
----

query I rowsort
SELECT + 48 * - col2 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT ( + + ( - SUM( 26 ) ) ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-3853
SELECT ( + + ( - SUM ( 26 ) ) ) AS col0 FROM tab2
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL - col0 * - col2 + - col1 DIV + col2 + + - ( ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL - col0 * - col2 + - col1 / + col2 + + - ( ( - - col2 ) ) AS col2 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT 9 - + - col1 + + col1 AS col2 FROM tab0 AS cor0
----
11
171
51

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3856
SELECT CAST( NULL AS SIGNED ) * + - col1 * - col1 + col1, - col2 DIV - col1 - + + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
2

skipif mysql # not compatible
query II rowsort label-3856
SELECT CAST ( NULL AS INTEGER ) * + - col1 * - col1 + col1, - col2 / - col1 - + + col0 AS col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
2

query I rowsort
SELECT DISTINCT + 45 - - col1 AS col0 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT ALL - 34 - 87 + col0 * - col0 + 18 + - + CAST( col1 AS SIGNED ) FROM tab0
----
-409
-7693
-9513

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - 34 - 87 + col0 * - col0 + 18 + - + CAST ( col1 AS INTEGER ) FROM tab0
----
-409
-7693
-9513

query I rowsort
SELECT - 46 + - col1 FROM tab0
----
-127
-47
-67

query I rowsort
SELECT DISTINCT col1 - + - col0 AS col1 FROM tab2
----
141
142
97

query II rowsort
SELECT ( + col0 ) AS col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3862
SELECT COUNT( - - col1 ) * - 66 AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-3862
SELECT COUNT ( - - col1 ) * - 66 AS col0 FROM tab2
----
-198

query I rowsort
SELECT ALL + 8 * + 87 FROM tab1
----
696
696
696

query II rowsort
SELECT + ( - - 92 ) AS col0, col2 AS col1 FROM tab0
----
92
10
92
47
92
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT 58 * + ( + - COUNT( * ) ) AS col0 FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-3865
SELECT 58 * + ( + - COUNT ( * ) ) AS col0 FROM tab1
----
-174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + col2 AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + col2 * + 74 * col2 FROM tab1 cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - - 65 FROM tab2 AS cor0 WHERE NOT - col0 < - + 87
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT - - SUM( - - 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

skipif mysql # not compatible
query I rowsort label-3871
SELECT - - SUM ( - - 31 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
279

query II rowsort
SELECT DISTINCT - col0 AS col0, 2 * + col1 AS col0 FROM tab0 cor0
----
-15
162
-87
42
-97
2

query II rowsort
SELECT ALL col0 AS col2, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3874
SELECT DISTINCT COUNT( * ) * ( + - COUNT( * ) ) AS col0, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-3874
SELECT DISTINCT COUNT ( * ) * ( + - COUNT ( * ) ) AS col0, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3875
SELECT + CAST( NULL AS SIGNED ) / + - 69 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3876
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - 60 + - + 30 - ( col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3876
SELECT DISTINCT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - 60 + - + 30 - ( col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3877
SELECT - 19 DIV + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3877
SELECT - 19 / + col2 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + ( col0 ) * - + 20 AS col2 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT SUM( DISTINCT col2 ) * - 49 FROM tab1
----
-10927

skipif mysql # not compatible
query I rowsort label-3879
SELECT SUM ( DISTINCT col2 ) * - 49 FROM tab1
----
-10927

query I rowsort
SELECT ALL + col2 * + + col1 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT ALL + COUNT( * ) DIV - COUNT( * ) + - + COUNT( * ) + + + 31 + + - COUNT( * ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL + COUNT ( * ) / - COUNT ( * ) + - + COUNT ( * ) + + + 31 + + - COUNT ( * ) AS col2 FROM tab2
----
24

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 = - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 82 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 WHERE - col2 < 30
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - - col0 + 30 AS col0 FROM tab2 AS cor0
----
105
76
94

query II rowsort
SELECT - col1 + col1, 48 AS col0 FROM tab1 cor0
----
0
48
0
48
0
48

query I rowsort
SELECT 12 + + col0 AS col2 FROM tab2 AS cor0
----
58
76
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT DISTINCT - 58 DIV - col2 col1 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3888
SELECT DISTINCT - 58 / - col2 col1 FROM tab0 AS cor0
----
0
1
5

query I rowsort
SELECT - 56 + - - col1 AS col2 FROM tab0
----
-35
-55
25

query I rowsort
SELECT - col1 + - - 24 FROM tab0
----
-57
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3891
SELECT + CAST( NULL AS SIGNED ) FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3891
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - COUNT( 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - COUNT ( 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ( col1 ) * - col0 AS col2 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3895
SELECT - col0 DIV col0 DIV + 59 AS col0, - 86 FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

skipif mysql # not compatible
query II rowsort label-3895
SELECT - col0 / col0 / + 59 AS col0, - 86 FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

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

query II rowsort
SELECT ALL - - 39 * + 11 + - + 45 * col0 * - + col0 * col2 AS col2, + col0 * - - col2 AS col0 FROM tab1 AS cor0
----
11236749
4896
19182804
5015
25340289
6188

query II rowsort
SELECT + 38 AS col1, - col2 FROM tab0 AS cor0
----
38
-10
38
-47
38
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT ALL + COUNT( col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL + COUNT ( col0 ) AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL - CAST( + 82 AS SIGNED ) + + 96 AS col0 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - CAST ( + 82 AS INTEGER ) + + 96 AS col0 FROM tab0 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3902
SELECT DISTINCT col0 + + + 9 + - - CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 28 + + 21 AS col1 FROM tab0 AS cor0
----
49
49
49

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT DISTINCT + - col2 - - ( + 6 ) DIV - + col1 FROM tab1 AS cor0
----
-60
-68
-96

skipif mysql # not compatible
query I rowsort label-3904
SELECT DISTINCT + - col2 - - ( + 6 ) / - + col1 FROM tab1 AS cor0
----
-60
-68
-96

query II rowsort
SELECT + 94, 93 AS col1 FROM tab1 AS cor0
----
94
93
94
93
94
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + 90 - + COUNT( DISTINCT - - col0 ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3906
SELECT + 90 - + COUNT ( DISTINCT - - col0 ) AS col2 FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - ( - 41 ) col0 FROM tab1
----
-27
-36
6

query I rowsort
SELECT DISTINCT ( - - 40 ) FROM tab2
----
40

query I rowsort
SELECT + - col0 + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT ALL + COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT + 77 < + + col1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3910
SELECT ALL + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT + 77 < + + col1
----
3

query II rowsort
SELECT ALL - - col1, col0 + - col2 AS col2 FROM tab0 AS cor0
----
1
-2
21
77
81
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3912
SELECT DISTINCT 98 AS col1, - 14 - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
98
NULL

skipif mysql # not compatible
query II rowsort label-3912
SELECT DISTINCT 98 AS col1, - 14 - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
98
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + - MAX( ( col2 ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + - MAX ( ( col2 ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3914
SELECT DISTINCT - - COUNT( * ) DIV + + 51 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT - - COUNT ( * ) / + + 51 FROM tab2 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT 62 * col0 * - - 69 AS col1, 10 FROM tab1
----
218178
10
363630
10
389298
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT - ( - COUNT( * ) ) * - 31 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3916
SELECT - ( - COUNT ( * ) ) * - 31 FROM tab1 cor0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT - + COUNT( * ) * - - 70 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT - + COUNT ( * ) * - - 70 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-207

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3918
SELECT ALL * FROM tab0 cor0 WHERE - col2 <> - col1 / - CAST( 44 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3918
SELECT ALL * FROM tab0 cor0 WHERE - col2 <> - col1 / - CAST ( 44 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > ( 73 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3920
SELECT ALL - ( + - COUNT( * ) ), 40 AS col2 FROM tab0 AS cor0
----
3
40

skipif mysql # not compatible
query II rowsort label-3920
SELECT ALL - ( + - COUNT ( * ) ), 40 AS col2 FROM tab0 AS cor0
----
3
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 74 - - 67 col2 FROM tab2 cor0
----
16
33
51

query I rowsort
SELECT ALL + ( - - col0 ) * + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-3923
SELECT ALL ( - col0 ) DIV col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-3923
SELECT ALL ( - col0 ) / col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3924
SELECT ALL 70 col0, - col0 + + + CAST( NULL AS SIGNED ) + + col2 * + ( col0 ) FROM tab2
----
70
NULL
70
NULL
70
NULL

skipif mysql # not compatible
query II rowsort label-3924
SELECT ALL 70 col0, - col0 + + + CAST ( NULL AS INTEGER ) + + col2 * + ( col0 ) FROM tab2
----
70
NULL
70
NULL
70
NULL

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col2 + + - col1 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3926
SELECT - 59 - - + 62, MAX( + - col2 ) AS col2 FROM tab1 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
3
-59

skipif mysql # not compatible
query II rowsort label-3926
SELECT - 59 - - + 62, MAX ( + - col2 ) AS col2 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
3
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT MAX( ALL 82 ) FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT MAX ( ALL 82 ) FROM tab1
----
82

query I rowsort
SELECT col1 * + - 55 * - col0 + - 3 AS col0 FROM tab0
----
100482
5332
66822

query I rowsort
SELECT ALL + 14 + - 18 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab1
----
-64

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

query I rowsort
SELECT DISTINCT - ( + + col2 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT - 68 IS NULL )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT ALL - COUNT( - + col1 ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3933
SELECT ALL - COUNT ( - + col1 ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL - + 25 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT DISTINCT COUNT( * ) * - 55 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NOT NULL
----
-165

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT COUNT ( * ) * - 55 FROM tab0 AS cor0 WHERE - col1 - - col0 IS NOT NULL
----
-165

query III rowsort
SELECT * FROM tab1 WHERE + 36 + + 61 + col0 + + col0 IS NULL
----

query I rowsort
SELECT + 72 * + 79 FROM tab1
----
5688
5688
5688

query I rowsort
SELECT ALL + col1 + + 30 AS col2 FROM tab1 WHERE 75 NOT BETWEEN + - col0 AND - col2
----
35
44
77

query III rowsort
SELECT * FROM tab0 WHERE NOT + 23 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3940
SELECT DISTINCT MIN( - 10 ) AS col0 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT MIN ( - 10 ) AS col0 FROM tab2
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT - COUNT( ALL - + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3941
SELECT - COUNT ( ALL - + col0 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 94 - - col0 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0 col2, col1 + - col1 + + - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + col0 * 64 AS col1 FROM tab1
----
3264
5440
5824

query I rowsort
SELECT + col1 * - 44 + - + col2 AS col2 FROM tab2 WHERE NOT - 71 <= + ( + - 96 ) - - + col2
----
-2267

query II rowsort
SELECT - col1 * - + col0 * + + col2 AS col2, + col0 * - col1 * - - col2 AS col2 FROM tab2
----
197120
-197120
291450
-291450
53958
-53958

query I rowsort
SELECT ALL + + col0 + + + ( + col1 ) FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND - ( - col0 ) + + 27 - - 95
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 56 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT DISTINCT SUM( + - col1 ), 17 AS col2 FROM tab0 cor0
----
-103
17

skipif mysql # not compatible
query II rowsort label-3951
SELECT DISTINCT SUM ( + - col1 ), 17 AS col2 FROM tab0 cor0
----
-103
17

query I rowsort
SELECT 42 AS col0 FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT DISTINCT - + 23 * - ( + col1 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-3954
SELECT ALL - + COUNT( * ) AS col0, - MIN( ALL 14 ) FROM tab0 AS cor0
----
-3
-14

skipif mysql # not compatible
query II rowsort label-3954
SELECT ALL - + COUNT ( * ) AS col0, - MIN ( ALL 14 ) FROM tab0 AS cor0
----
-3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT - COUNT( DISTINCT - ( + col1 ) ) * COUNT( - - 60 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3955
SELECT - COUNT ( DISTINCT - ( + col1 ) ) * COUNT ( - - 60 ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-3956
SELECT DISTINCT + 81 AS col1, col2 + - + 39 DIV - col2 + - col1 AS col2 FROM tab2 AS cor0
----
81
-27
81
-37
81
-9

skipif mysql # not compatible
query II rowsort label-3956
SELECT DISTINCT + 81 AS col1, col2 + - + 39 / - col2 + - col1 AS col2 FROM tab2 AS cor0
----
81
-27
81
-37
81
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3957
SELECT MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT ALL - 18, - col0 + - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT MAX ( - - col0 ) FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-3960
SELECT 21 DIV 61, + col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-3960
SELECT 21 / 61, + col0 FROM tab1
----
0
51
0
85
0
91

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

query I rowsort
SELECT - ( col0 ) + - 58 AS col2 FROM tab0 AS cor0
----
-145
-155
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3963
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 78 * - ( col1 ) + - CAST( NULL AS SIGNED ), + col0, + col0 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3963
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 78 * - ( col1 ) + - CAST ( NULL AS INTEGER ), + col0, + col0 + - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL COUNT( - col2 ) - - COUNT( - + 79 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL COUNT ( - col2 ) - - COUNT ( - + 79 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE ( NOT + 41 + 58 + + + 2 * ( + 85 ) * - + 67 * - 80 * 48 IS NULL )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3965
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE ( NOT + 41 + 58 + + + 2 * ( + 85 ) * - + 67 * - 80 * 48 IS NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT COUNT( DISTINCT 63 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3966
SELECT COUNT ( DISTINCT 63 ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3967
SELECT + - col2 DIV 79 col1 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT DISTINCT ( col2 ) + col2 - CAST( NULL AS SIGNED ) * + col2 - + col2 * 50 * col0 + - 37 * - ( - col1 ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT - 42 DIV col1 FROM tab0 AS cor0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-3969
SELECT - 42 / col1 FROM tab0 AS cor0
----
-2
-42
0

query II rowsort
SELECT - col2 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT - col2 * + - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST( NULL AS SIGNED ) / col0, + col1 )
----

skipif mysql # not compatible
query III rowsort label-3972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 IN ( + CAST ( NULL AS INTEGER ) / col0, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT + 52 - - COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-3973
SELECT + 52 - - COUNT ( * ) FROM tab2 AS cor0
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 + - col1 col1 FROM tab0 AS cor0
----
-14
-34
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT 27 + + ( + + COUNT( + - 56 ) ) AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3975
SELECT DISTINCT 27 + + ( + + COUNT ( + - 56 ) ) AS col2 FROM tab2 AS cor0
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT MIN( + 37 ) FROM tab2 WHERE NOT col1 / col1 * col2 + - + CAST( NULL AS SIGNED ) <> + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3976
SELECT MIN ( + 37 ) FROM tab2 WHERE NOT col1 / col1 * col2 + - + CAST ( NULL AS INTEGER ) <> + + col1
----
NULL

query I rowsort
SELECT col1 * - 83 AS col0 FROM tab0
----
-1743
-6723
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + 47 + + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
105
70
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL + CAST( NULL AS SIGNED ) * + MAX( ALL + col1 ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT + + 98 * - col2 FROM tab2 AS cor0
----
-2254
-3920
-5684

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3982
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3982
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3984
SELECT DISTINCT MIN( - ( - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3984
SELECT DISTINCT MIN ( - ( - col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3985
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT - + col1 <= - + CAST( - - col0 AS DECIMAL ) + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT DISTINCT col2 col2 FROM tab1 WHERE NOT - + col1 <= - + CAST ( - - col0 AS REAL ) + + col0
----

query I rowsort
SELECT ALL col0 + 40 FROM tab2 AS cor0
----
104
115
86

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = + - ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col0, - 61 + + col1 + + col1 FROM tab2
----
46
41
64
93
75
73

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT ALL - COUNT( * ) col1, 64 AS col1 FROM tab1
----
-3
64

skipif mysql # not compatible
query II rowsort label-3990
SELECT ALL - COUNT ( * ) col1, 64 AS col1 FROM tab1
----
-3
64

query I rowsort
SELECT col0 + - + 56 AS col0 FROM tab1
----
-5
29
35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + 91 ) >= col0 OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60 + + + col1 AS col2, + col0 FROM tab1 AS cor0
----
107
91
65
85
74
51

query I rowsort
SELECT + 11 FROM tab2 AS cor0 WHERE - 45 IS NOT NULL
----
11
11
11

query I rowsort
SELECT ALL - col2 + 96 FROM tab0 cor0
----
-3
49
86

onlyif mysql # DIV for integer division: 
query III rowsort label-3996
SELECT ALL col1 * col2 + - + col1 * + 90 AS col1, - col2 + + 72 DIV + - col2, - - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to fb21a402466e34bb37209457f75759a2

skipif mysql # not compatible
query III rowsort label-3996
SELECT ALL col1 * col2 + - + col1 * + 90 AS col1, - col2 + + 72 / + - col2, - - col0 AS col2 FROM tab2 AS cor0
----
9 values hashing to fb21a402466e34bb37209457f75759a2

query II rowsort
SELECT + col1, col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3998
SELECT - col0 - + + CAST( NULL AS DECIMAL ) + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # DIV for integer division: 
query I rowsort label-4000
SELECT DISTINCT - 65 DIV col0 col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4000
SELECT DISTINCT - 65 / col0 col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4001
SELECT - - CAST( NULL AS SIGNED ) / + + 62, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4001
SELECT - - CAST ( NULL AS INTEGER ) / + + 62, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4003
SELECT COUNT( * ), - 43 DIV COUNT( * ) AS col1 FROM tab2
----
3
-14

skipif mysql # not compatible
query II rowsort label-4003
SELECT COUNT ( * ), - 43 / COUNT ( * ) AS col1 FROM tab2
----
3
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT COUNT( * ) * - 26 * + 55 * - COUNT( * ) FROM tab0
----
12870

skipif mysql # not compatible
query I rowsort label-4004
SELECT COUNT ( * ) * - 26 * + 55 * - COUNT ( * ) FROM tab0
----
12870

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT - COUNT( * ) AS col2, COUNT( col0 ) FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-4005
SELECT - COUNT ( * ) AS col2, COUNT ( col0 ) FROM tab2
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4006
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 - + 89 IN ( + 1, + col1, + 22 )
----
3

skipif mysql # not compatible
query I rowsort label-4006
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 - + 89 IN ( + 1, + col1, + 22 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE - - 32 + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE - - 32 + col2 <> NULL
----
0

query II rowsort
SELECT - + col0 AS col1, col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col2 / - col2 * - col0 AS col2 FROM tab1
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, - 69 * col1 col2 FROM tab1 AS cor0
----
-59
-345
-68
-3243
-96
-966

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT - COUNT( ALL - + col0 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT - COUNT ( ALL - + col0 ) AS col2 FROM tab1 cor0
----
-3

query II rowsort
SELECT + - col2 AS col2, ( col0 ) * + - col2 AS col0 FROM tab1 cor0
----
-59
-5015
-68
-6188
-96
-4896

query I rowsort
SELECT ALL col0 * + - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( - 78 )
----

query I rowsort
SELECT 89 + + col0 FROM tab2 AS cor0
----
135
153
164

query I rowsort
SELECT ALL 15 + + col1 FROM tab0 cor0
----
16
36
96

query I rowsort
SELECT ALL - col2 + - 3 + + ( - + 59 ) * + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-41645
-51343
-566679

query II rowsort
SELECT DISTINCT + col0 + + 28 AS col0, - ( col1 ) FROM tab2 AS cor0
----
103
-67
74
-51
92
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL ( + + ( + COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL ( + + ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 77 + - + col2 FROM tab2 cor0
----
19
37
54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4022
SELECT ALL + + CAST( NULL AS DECIMAL ) + - MIN( - - 42 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL + + CAST ( NULL AS REAL ) + - MIN ( - - 42 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 39 IS NULL
----
-8
13
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4025
SELECT COUNT( * ) DIV + 62 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4025
SELECT COUNT ( * ) / + 62 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 25 + - col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 cor0 WHERE NOT - col0 BETWEEN col0 AND + + 93
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT + 34 * + COUNT( - ( col1 ) ) FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT + 34 * + COUNT ( - ( col1 ) ) FROM tab1 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT - MIN( 50 ) + + - SUM( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL < ( NULL ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT - MIN ( 50 ) + + - SUM ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( NULL < ( NULL ) ) )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - + 72 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT ALL + COUNT( * ) * + + 50 AS col0 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + COUNT ( * ) * + + 50 AS col0 FROM tab0
----
150

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 96 * + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 10 * + + 91 AS col0 FROM tab1
----
910
910
910

query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT + col0 * col0 + + col2 + + - 93 FROM tab2 AS cor0
----
2046
4043
5590

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT 34 <> + - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 + + col2 FROM tab0
----
NULL
NULL
NULL

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

query II rowsort
SELECT 57 AS col0, col2 AS col2 FROM tab1 AS cor0
----
57
59
57
68
57
96

query I rowsort
SELECT ALL - col2 + + col1 - 39 AS col1 FROM tab2 AS cor0
----
-11
-2
-30

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT ALL - col0 - + CAST( NULL AS SIGNED ) / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 52 AS col1 FROM tab0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT - col0 + col1 * 75 AS col2 FROM tab0
----
-22
1488
6060

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT col1 * + - col2 + + + 10 + - col2 = + col0 * - + 75 * + + col1
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4047
SELECT - CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT - MAX( DISTINCT + + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4048
SELECT - MAX ( DISTINCT + + col1 ) FROM tab0
----
-81

query II rowsort
SELECT ALL + - 75 AS col2, 85 FROM tab2 cor0
----
-75
85
-75
85
-75
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4050
SELECT + COUNT( * ) * - SUM( + col0 ) / CAST( NULL AS SIGNED ) / COUNT( col2 ) + COUNT( * ) + - ( + 10 ) * - 82 FROM tab0 AS cor0 WHERE NOT col2 <> col0 + col1 + + + 7 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT + COUNT ( * ) * - SUM ( + col0 ) / CAST ( NULL AS INTEGER ) / COUNT ( col2 ) + COUNT ( * ) + - ( + 10 ) * - 82 FROM tab0 AS cor0 WHERE NOT col2 <> col0 + col1 + + + 7 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT - MIN( DISTINCT + - 12 ) * + + 0 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - MIN ( DISTINCT + - 12 ) * + + 0 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4052
SELECT - + 97 * ( - 92 ) DIV col0 * + col1 AS col0 FROM tab2 AS cor0
----
10703
7906
9894

skipif mysql # not compatible
query I rowsort label-4052
SELECT - + 97 * ( - 92 ) / col0 * + col1 AS col0 FROM tab2 AS cor0
----
10703
7906
9894

query I rowsort
SELECT DISTINCT - col0 * 75 AS col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + 44 col0 FROM tab2 AS cor0
----
1012
1760
2552

query I rowsort
SELECT ALL - 29 AS col1 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT + COUNT( DISTINCT - - 81 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4056
SELECT + COUNT ( DISTINCT - - 81 ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 col0, - col1 * + col1 + + 22 col1 FROM tab1
----
-42
-174
-42
-2187
-42
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4058
SELECT DISTINCT + COUNT( 51 ) * + + COUNT( * ) AS col0 FROM tab0 WHERE + - ( + 23 ) + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT + COUNT ( 51 ) * + + COUNT ( * ) AS col0 FROM tab0 WHERE + - ( + 23 ) + + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT ALL + ( ( - COUNT( - - 35 ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + ( ( - COUNT ( - - 35 ) ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - col1 * col0 * + col2 AS col2 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-4061
SELECT 79 AS col2, + 0 DIV - col1 col2 FROM tab2 AS cor0
----
79
0
79
0
79
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4061
SELECT 79 AS col2, + 0 / - col1 col2 FROM tab2 AS cor0
----
79
0
79
0
79
0

query II rowsort
SELECT + 38 AS col0, col1 AS col2 FROM tab0 AS cor0
----
38
1
38
21
38
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT col0 DIV - - 74 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT col0 / - - 74 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-15

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + - + col2 <> - col0 - col0 - + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4066
SELECT DISTINCT + + 97 + - - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
16
76
96

skipif mysql # not compatible
query I rowsort label-4066
SELECT DISTINCT + + 97 + - - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
16
76
96

query II rowsort
SELECT ( + - col1 ) AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 * ( ( + col1 ) ) NOT IN ( - ( - + col0 ) + col2 + + 70 * - + col0 - - col1 + 48 * + - col1, + col2 + + 11, - - 21 * col1 - + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT ALL 47 AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + - + col0 IS NOT NULL
----
47
47
47

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL 47 AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + - + col0 IS NOT NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 - + - col1 col1 FROM tab2
----
65
81
91

query I rowsort
SELECT + 6 - - col2 * + ( + - ( col1 ) ) AS col2 FROM tab2
----
-1167
-3074
-3880

onlyif mysql # aggregate syntax: 
query II rowsort label-4072
SELECT ALL - 13 AS col1, + COUNT( * ) AS col1 FROM tab2
----
-13
3

skipif mysql # not compatible
query II rowsort label-4072
SELECT ALL - 13 AS col1, + COUNT ( * ) AS col1 FROM tab2
----
-13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - ( 43 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - ( 43 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4074
SELECT CAST( - 61 AS SIGNED ) + + - col1 AS col2, - col2 * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-142
2209
-62
9801
-82
100

skipif mysql # not compatible
query II rowsort label-4074
SELECT CAST ( - 61 AS INTEGER ) + + - col1 AS col2, - col2 * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-142
2209
-62
9801
-82
100

onlyif mysql # DIV for integer division: 
query I rowsort label-4075
SELECT - 3 DIV + col2 AS col1 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT + + 74 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-4076
SELECT + + 74 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
222

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

query I rowsort
SELECT DISTINCT col0 / + + 8 FROM tab2 WHERE col0 / + + 24 BETWEEN NULL AND + 95 * 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4079
SELECT + CAST( NULL AS SIGNED ) + - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4079
SELECT + CAST ( NULL AS INTEGER ) + - 21 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + - 23 * - + col0, col0 FROM tab0 AS cor0
----
2001
87
2231
97
345
15

query I rowsort
SELECT col1 * + - 89 * + - 41 * 4 AS col1 FROM tab0 AS cor0
----
1182276
14596
306516

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - col1 * - - 6 * + col2
----

query I rowsort
SELECT - + col2 * - 69 AS col1 FROM tab1 AS cor0
----
4071
4692
6624

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / + ( - 85 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 65 * col0 * - col1 + + col1 AS col0, col2 col2 FROM tab0 AS cor0
----
118776
10
6306
99
79056
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 91 ) col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
91
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 * - 38 * - + 34 col0 FROM tab1 AS cor0
----
52972
52972
52972

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4088
SELECT + + MIN( col0 ) AS col2 FROM tab2 WHERE NOT NULL = CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT + + MIN ( col0 ) AS col2 FROM tab2 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT DISTINCT SUM( DISTINCT + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT SUM ( DISTINCT + 34 ) FROM tab1
----
34

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col1 FROM tab0 WHERE 19 NOT BETWEEN NULL AND - - 48
----

query I rowsort
SELECT col0 + - + 76 * 46 * - col0 FROM tab1
----
178347
297245
318227

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4092
SELECT COUNT( + 22 ) + + MIN( DISTINCT + CAST( ( - col1 ) AS SIGNED ) ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-4092
SELECT COUNT ( + 22 ) + + MIN ( DISTINCT + CAST ( ( - col1 ) AS INTEGER ) ) FROM tab0
----
-78

query I rowsort
SELECT DISTINCT + col0 + + 59 FROM tab1
----
110
144
150

query I rowsort
SELECT ALL 6 * + + ( col1 ) + - 3 AS col1 FROM tab0 AS cor0
----
123
3
483

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT - col1 * + + col2 + - col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT + - COUNT( * ) * - + ( + + COUNT( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81

skipif mysql # not compatible
query I rowsort label-4096
SELECT + - COUNT ( * ) * - + ( + + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT col2 DIV col1 DIV - + col2 FROM tab0
----
-1
0
0

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

query I rowsort
SELECT + + 27 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query II rowsort
SELECT DISTINCT col2, + col1 - + col2 AS col0 FROM tab0
----
10
11
47
34
99
-98

query I rowsort
SELECT - 39 + + + col1 AS col1 FROM tab0 AS cor0
----
-18
-38
42

query I rowsort
SELECT + + ( + + col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 / 20 BETWEEN + 10 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 0 - 47 AS col0 FROM tab0 AS cor0
----
-134
-144
-62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4104
SELECT ALL 23 * - + MIN( - - ( + - col0 ) ) * COUNT( * ) DIV + + COUNT( * ) col2 FROM tab0
----
2231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4104
SELECT ALL 23 * - + MIN ( - - ( + - col0 ) ) * COUNT ( * ) / + + COUNT ( * ) col2 FROM tab0
----
2231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4105
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST( 38 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4105
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - CAST ( 38 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT - + COUNT( ALL CAST( - 4 AS SIGNED ) ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT - + COUNT ( ALL CAST ( - 4 AS INTEGER ) ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4107
SELECT ALL + MIN( DISTINCT + - col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4108
SELECT - COUNT( DISTINCT - + col2 ) AS col0, 70 + ( COUNT( * ) ) FROM tab2
----
-3
73

skipif mysql # not compatible
query II rowsort label-4108
SELECT - COUNT ( DISTINCT - + col2 ) AS col0, 70 + ( COUNT ( * ) ) FROM tab2
----
-3
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT DISTINCT ( + CAST( ( - + col0 ) AS SIGNED ) ) AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT ( + CAST ( ( - + col0 ) AS INTEGER ) ) AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT + 29 * COUNT( * ) * + COUNT( * ) FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + 29 * COUNT ( * ) * + COUNT ( * ) FROM tab1
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4111
SELECT DISTINCT - COUNT( * ) * - MAX( + CAST( + 63 AS SIGNED ) ) FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-4111
SELECT DISTINCT - COUNT ( * ) * - MAX ( + CAST ( + 63 AS INTEGER ) ) FROM tab0
----
189

query I rowsort
SELECT ALL - 12 * col2 FROM tab1
----
-1152
-708
-816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 66 col2, col0 col1 FROM tab0 cor0
----
66
15
66
87
66
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT col2 < 57 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT - ( - + COUNT( * ) ) * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4115
SELECT - ( - + COUNT ( * ) ) * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

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

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND NULL
----

query II rowsort
SELECT + + col0 AS col1, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4119
SELECT ALL COUNT( col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4119
SELECT ALL COUNT ( col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4120
SELECT - 29 AS col1, CAST( + 71 AS SIGNED ) col1 FROM tab1 AS cor0
----
-29
71
-29
71
-29
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4120
SELECT - 29 AS col1, CAST ( + 71 AS INTEGER ) col1 FROM tab1 AS cor0
----
-29
71
-29
71
-29
71

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

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( 88 - - + 57 + - col1 IS NOT NULL )
----

query I rowsort
SELECT ALL - + 17 AS col1 FROM tab0 AS cor0 WHERE NOT - 69 * + col0 IS NULL
----
-17
-17
-17

query I rowsort
SELECT + - col1 * 74 * col2 FROM tab2 AS cor0
----
-227920
-287564
-86802

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT + 54 - + 82 + + COUNT( * ) AS col0 FROM tab0 WHERE ( + 64 * + 15 * + - col1 IS NOT NULL ) OR + col1 / - ( + col0 ) + 3 * + col2 + - 7 + - col2 <> 32
----
-25

skipif mysql # not compatible
query I rowsort label-4125
SELECT + 54 - + 82 + + COUNT ( * ) AS col0 FROM tab0 WHERE ( + 64 * + 15 * + - col1 IS NOT NULL ) OR + col1 / - ( + col0 ) + 3 * + col2 + - 7 + - col2 <> 32
----
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT + 79 DIV - 66 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4126
SELECT + 79 / - 66 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT 24 * - - MIN( - + col0 ) * + - ( - 30 ) AS col1 FROM tab1
----
-65520

skipif mysql # not compatible
query I rowsort label-4127
SELECT 24 * - - MIN ( - + col0 ) * + - ( - 30 ) AS col1 FROM tab1
----
-65520

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL ( ( COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL ( ( COUNT ( * ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT COUNT( DISTINCT - 85 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT COUNT ( DISTINCT - 85 ) FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN + + 69 + + col0 AND + - ( 3 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - 54 )
----

query I rowsort
SELECT col1 * + - col1 - - - 20 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 + - - col0 FROM tab2 AS cor0
----
102
120
131

query I rowsort
SELECT - col2 + + 57 AS col1 FROM tab0
----
-42
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT + ( - + MIN( 42 ) ) * + 31 * - COUNT( * ) FROM tab2
----
3906

skipif mysql # not compatible
query I rowsort label-4135
SELECT + ( - + MIN ( 42 ) ) * + 31 * - COUNT ( * ) FROM tab2
----
3906

onlyif mysql # aggregate syntax: 
query I rowsort label-4136
SELECT DISTINCT COUNT( * ) + 30 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4136
SELECT DISTINCT COUNT ( * ) + 30 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4137
SELECT ALL - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT ALL + COUNT( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + COUNT ( * ) + - 50 AS col2 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT 33 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
33
33
33

query I rowsort
SELECT ALL ( + col0 ) + + + 30 * + col0 FROM tab2 AS cor0
----
1426
1984
2325

query I rowsort
SELECT ALL - 84 + 38 AS col0 FROM tab1 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT ALL 4 * COUNT( * ) - + + 26 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4142
SELECT ALL 4 * COUNT ( * ) - + + 26 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT 28 - col1 + + 4 AS col0 FROM tab0 AS cor0
----
-49
11
31

query I rowsort
SELECT DISTINCT col1 - - col2 * + 52 FROM tab2
----
1247
2157
3083

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT 51 * + + MIN( 70 ) AS col1 FROM tab0
----
3570

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT 51 * + + MIN ( 70 ) AS col1 FROM tab0
----
3570

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL - MIN( ALL - 3 ) FROM tab0 WHERE + 18 BETWEEN + col2 - - - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL - MIN ( ALL - 3 ) FROM tab0 WHERE + 18 BETWEEN + col2 - - - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT ALL + MAX( ( - 86 ) ) * + + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4148
SELECT ALL + MAX ( ( - 86 ) ) * + + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2
----
-255

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4150
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4150
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 col0, col1 * 81 + + col1 + + 27 FROM tab1 AS cor0
----
-59
437
-68
3881
-96
1175

onlyif mysql # aggregate syntax: 
query I rowsort label-4152
SELECT + COUNT( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4152
SELECT + COUNT ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 33 * - - col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
1551
47
3267
99
330
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT DISTINCT - - COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4154
SELECT DISTINCT - - COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT DISTINCT - MIN( DISTINCT - 68 ) * MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
5508

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - MIN ( DISTINCT - 68 ) * MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT + col0 FROM tab2 WHERE NOT NULL >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4156
SELECT + col0 FROM tab2 WHERE NOT NULL >= + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 67 FROM tab2 WHERE NULL NOT BETWEEN 49 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT + - SUM( + col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4158
SELECT + - SUM ( + col1 ) col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT col1 * 81 + - col0 + 11 - - col2 FROM tab1 AS cor0
----
1190
3795
390

query I rowsort
SELECT col2 * + 98 FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT DISTINCT + 60 + col1 FROM tab1 AS cor0
----
107
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - ( COUNT( ALL + col0 ) ) * + + 75 AS col0 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4162
SELECT - ( COUNT ( ALL + col0 ) ) * + + 75 AS col0 FROM tab0 AS cor0
----
-225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 < - ( - 25 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT ALL CAST( - 88 AS SIGNED ) FROM tab0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL CAST ( - 88 AS INTEGER ) FROM tab0
----
-88
-88
-88

query I rowsort
SELECT DISTINCT + col0 + col0 FROM tab2 WHERE NOT 6 >= ( 78 )
----
128
150
92

query II rowsort
SELECT - col2, + 87 FROM tab2 WHERE ( 90 BETWEEN + 88 * + col1 AND col1 )
----

query I rowsort
SELECT ALL + ( - - col0 ) AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col1 + - - ( + col2 ) AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT 23 + + col0 * col1 AS col1 FROM tab0 cor0
----
120
1238
1850

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4171
SELECT DISTINCT - col0 DIV + ( 10 ) FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-4171
SELECT DISTINCT - col0 / + ( 10 ) FROM tab2
----
-4
-6
-7

query I rowsort
SELECT 21 * col0 - + col2 AS col0 FROM tab1
----
1726
1843
975

onlyif mysql # DIV for integer division: 
query I rowsort label-4173
SELECT col0 DIV - 21 AS col0 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-4173
SELECT col0 / - 21 AS col0 FROM tab1
----
-2
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT 38 + - CAST( 32 + 0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4174
SELECT * FROM tab2 WHERE NOT 38 + - CAST ( 32 + 0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 38 - + 27 FROM tab0
----
11
11
11

query I rowsort
SELECT ALL + 72 + - 48 FROM tab1
----
24
24
24

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

query I rowsort
SELECT + col0 - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

query I rowsort
SELECT DISTINCT + col1 + ( col0 ) AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT 18 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4182
SELECT DISTINCT - col2 - + CAST( + col1 AS SIGNED ) DIV col0 FROM tab0
----
-10
-52
-99

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - col2 - + CAST ( + col1 AS INTEGER ) / col0 FROM tab0
----
-10
-52
-99

query I rowsort
SELECT - col2 * - 70 AS col0 FROM tab2
----
1610
2800
4060

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * col2 IS NULL
----

query I rowsort
SELECT ALL 62 + col1 AS col2 FROM tab2
----
113
129
139

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col0 < NULL
----

query I rowsort
SELECT DISTINCT + 52 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 10 * - 49 >= + ( col2 ) * - ( 21 )
----
87
21
10

query I rowsort
SELECT - col1 * 15 AS col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT ALL - col0 * + 26 FROM tab0
----
-2262
-2522
-390

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + col0 AND col2
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4192
SELECT + 41 + CAST( ( 26 ) AS SIGNED ) DIV col2 col1 FROM tab0
----
41
41
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4192
SELECT + 41 + CAST ( ( 26 ) AS INTEGER ) / col2 col1 FROM tab0
----
41
41
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT 73 * - COUNT( * ) col2 FROM tab2
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4193
SELECT 73 * - COUNT ( * ) col2 FROM tab2
----
-219

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 26 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT SUM( col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT SUM ( col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col0 * 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT - COUNT( * ) - - 19 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT - COUNT ( * ) - - 19 FROM tab1
----
16

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

query I rowsort
SELECT DISTINCT col2 * - col2 + col0 FROM tab1
----
-3396
-4533
-9165

query I rowsort
SELECT - 64 AS col0 FROM tab1 WHERE NULL IS NULL
----
-64
-64
-64

query I rowsort
SELECT - col1 + + col1 * - col0 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT - 73 + - col1 * - 57 AS col0 FROM tab1
----
212
2606
725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4204
SELECT 83 * 18 + col2 AS col0 FROM tab2 WHERE NOT ( - 26 ) IN ( - col0 + CAST( - col2 AS SIGNED ) * col1 )
----
1517
1534
1552

skipif mysql # not compatible
query I rowsort label-4204
SELECT 83 * 18 + col2 AS col0 FROM tab2 WHERE NOT ( - 26 ) IN ( - col0 + CAST ( - col2 AS INTEGER ) * col1 )
----
1517
1534
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT - 35 * COUNT( * ) FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4205
SELECT - 35 * COUNT ( * ) FROM tab0 cor0
----
-105

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4206
SELECT ALL - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4207
SELECT DISTINCT - col2 DIV 1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4207
SELECT DISTINCT - col2 / 1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 / + col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT ALL COUNT( * ) AS col1 FROM tab2 WHERE - col1 <> ( col1 + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL COUNT ( * ) AS col1 FROM tab2 WHERE - col1 <> ( col1 + col0 )
----
3

query I rowsort
SELECT ALL 82 * col2 + 87 * + 98 FROM tab1
----
13364
14102
16398

onlyif mysql # DIV for integer division: 
query I rowsort label-4211
SELECT DISTINCT col0 + 16 DIV 61 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT col0 + 16 / 61 FROM tab0 cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE ( col2 * + col2 ) >= ( + col1 )
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col1 AND ( + col2 * col1 + - ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT + + col2 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 3 + 66 * + col2 AS col1 FROM tab2 AS cor0
----
1521
2643
3831

query I rowsort
SELECT ALL - 87 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - 58 + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT COUNT( DISTINCT - 99 ) * 89 FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4218
SELECT COUNT ( DISTINCT - 99 ) * 89 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4219
SELECT DISTINCT 62 + COUNT( * ) DIV 82 AS col2 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT 62 + COUNT ( * ) / 82 AS col2 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT 47 * COUNT( * ) FROM tab0 AS cor0 WHERE NULL < + 67
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT 47 * COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < + 67
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN 13 AND - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col1 * - 33 col0 FROM tab1
----
100815
10725
30030

query I rowsort
SELECT col2 * - 34 FROM tab2
----
-1360
-1972
-782

query III rowsort
SELECT * FROM tab0 WHERE col1 * 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT - COUNT( * ) + 0 AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4225
SELECT - COUNT ( * ) + 0 AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT - - COUNT( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4226
SELECT DISTINCT - - COUNT ( DISTINCT + + col2 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col0 + - 30 + col1 FROM tab1 AS cor0
----
108
35
60

query I rowsort
SELECT DISTINCT col0 + + 30 FROM tab2 AS cor0
----
105
76
94

query I rowsort
SELECT - + 39 + + + col1 AS col0 FROM tab1 AS cor0
----
-25
-34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT ALL - 40 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-4230
SELECT ALL - 40 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT ALL 22 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 col2 FROM tab1
----
NULL

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

query I rowsort
SELECT + 99 AS col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( 87 ) IN ( 8 * 23 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT * FROM tab1 WHERE ( NULL > col0 + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4236
SELECT DISTINCT col2, - 42 - col2 * CAST( col2 + - col0 AS SIGNED ) AS col2 FROM tab0
----
10
728
47
-1546
99
-240

skipif mysql # not compatible
query II rowsort label-4236
SELECT DISTINCT col2, - 42 - col2 * CAST ( col2 + - col0 AS INTEGER ) AS col2 FROM tab0
----
10
728
47
-1546
99
-240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 91 * + + 57 * - 58 + + ( - 39 ) NOT IN ( + col1 / 90 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN ( 42 * - col2 ) AND 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col0, - ( - col1 ) AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4240
SELECT - 57 DIV - ( + COUNT( * ) ) + 55 AS col1 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-4240
SELECT - 57 / - ( + COUNT ( * ) ) + 55 AS col1 FROM tab2 cor0
----
74

query I rowsort
SELECT ( - - col2 ) * + 89 + col2 FROM tab0 AS cor0
----
4230
8910
900

query II rowsort
SELECT ALL 65 AS col1, 10 + - - col0 AS col1 FROM tab0 AS cor0
----
65
107
65
25
65
97

query I rowsort
SELECT - col2 * + col0 * - 68 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN col1 AND - col2
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 * - col0 * + col1 >= - col0
----
51
67
77

query II rowsort
SELECT col1, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-4248
SELECT + col1, - 51 - - 23 - 42 * + col0 DIV col0 FROM tab1 AS cor0
----
14
-70
47
-70
5
-70

skipif mysql # not compatible
query II rowsort label-4248
SELECT + col1, - 51 - - 23 - 42 * + col0 / col0 FROM tab1 AS cor0
----
14
-70
47
-70
5
-70

query I rowsort
SELECT ALL 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 1 FROM tab2 WHERE + + col0 * - - 99 + 7 * ( col0 ) IS NULL
----

query I rowsort
SELECT - ( + 43 ) AS col2 FROM tab2
----
-43
-43
-43

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = + col2 - - 29 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT ALL - COUNT( * ) + - - SUM( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-4253
SELECT ALL - COUNT ( * ) + - - SUM ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-226

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 76 + - col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT DISTINCT + - CAST( - + 48 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT + - CAST ( - + 48 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - 93
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4257
SELECT - CAST( - MIN( + + col1 ) AS SIGNED ) + + + COUNT( ALL col0 ) + + 76 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-4257
SELECT - CAST ( - MIN ( + + col1 ) AS INTEGER ) + + + COUNT ( ALL col0 ) + + 76 FROM tab0 cor0
----
80

query I rowsort
SELECT 75 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4259
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4259
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 12 + - + col0 + col1 * col1 AS col1 FROM tab2 AS cor0
----
2567
4426
5877

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - + col0 * - col0 > NULL AND NOT - 72 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) - ( ( + col1 ) ) FROM tab0
----
-108
-96
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT COUNT( * ) + + MIN( ALL - col2 ) AS col2 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-4264
SELECT COUNT ( * ) + + MIN ( ALL - col2 ) AS col2 FROM tab2
----
-55

query I rowsort
SELECT ALL + 94 FROM tab2 WHERE NOT NULL BETWEEN ( 86 + - 60 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT ( COUNT( * ) ) + - 82 - COUNT( ALL - + col0 ) AS col2 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-4266
SELECT ( COUNT ( * ) ) + - 82 - COUNT ( ALL - + col0 ) AS col2 FROM tab0
----
-82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4267
SELECT * FROM tab1 WHERE col2 BETWEEN - CAST( + + col0 AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4267
SELECT * FROM tab1 WHERE col2 BETWEEN - CAST ( + + col0 AS INTEGER ) * + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + col0 col0, col1 + 54 col0 FROM tab1
----
-425
59
-4277
101
-714
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN ( NULL ) AND 26 * + - ( - - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 - - + ( - ( 47 ) ) AS col1 FROM tab2 AS cor0
----
-24
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT ALL - SUM( col2 ) + + 91 col0 FROM tab1
----
-132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4271
SELECT ALL - SUM ( col2 ) + + 91 col0 FROM tab1
----
-132

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE + - col1 * 95 + - col1 BETWEEN NULL AND 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL COUNT( + 44 ) + - - 5 * - 30 * - + 55 - 80 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
7539

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL COUNT ( + 44 ) + - - 5 * - 30 * - + 55 - 80 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
7539

query II rowsort
SELECT col1 * col2 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 51 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4276
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col0 + - 57 + + - 68 * - col2 * col0 + 80 * CAST( NULL AS DECIMAL ) ) BETWEEN col1 AND ( NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4276
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( + col0 + - 57 + + - 68 * - col2 * col0 + 80 * CAST ( NULL AS REAL ) ) BETWEEN col1 AND ( NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4278
SELECT - ( + MIN( ALL - CAST( NULL AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4279
SELECT DISTINCT + ( CAST( 91 AS SIGNED ) ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4279
SELECT DISTINCT + ( CAST ( 91 AS INTEGER ) ) FROM tab2
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4280
SELECT ALL + CAST( NULL AS SIGNED ) col0, 56 FROM tab1
----
NULL
56
NULL
56
NULL
56

skipif mysql # not compatible
query II rowsort label-4280
SELECT ALL + CAST ( NULL AS INTEGER ) col0, 56 FROM tab1
----
NULL
56
NULL
56
NULL
56

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT - 69 DIV + - 6 AS col2 FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-4281
SELECT - 69 / + - 6 AS col2 FROM tab2
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4282
SELECT SUM( + 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-4282
SELECT SUM ( + 40 ) FROM tab2
----
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4283
SELECT DISTINCT + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4283
SELECT DISTINCT + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT DISTINCT - - COUNT( * ) * + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4284
SELECT DISTINCT - - COUNT ( * ) * + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 / 52 > - + 92
----

query I rowsort
SELECT col1 * - + 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT ALL - - 40 + col2 AS col0 FROM tab1 AS cor0
----
108
136
99

query I rowsort
SELECT ALL + col0 * + col1 + - - col1 FROM tab0 AS cor0
----
1296
1848
98

query II rowsort
SELECT ALL + col1 + + col2, - 50 AS col0 FROM tab2 AS cor0
----
117
-50
125
-50
74
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT DISTINCT + MAX( + col0 ) * - + COUNT( * ) AS col0 FROM tab2 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-4290
SELECT DISTINCT + MAX ( + col0 ) * - + COUNT ( * ) AS col0 FROM tab2 cor0
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT DISTINCT - col2 * + ( - - CAST( - col1 AS SIGNED ) ) + - 68 FROM tab1 AS cor0
----
1276
227
3128

skipif mysql # not compatible
query I rowsort label-4291
SELECT DISTINCT - col2 * + ( - - CAST ( - col1 AS INTEGER ) ) + - 68 FROM tab1 AS cor0
----
1276
227
3128

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4293
SELECT + - CAST( + 68 AS SIGNED ) * + col0 * col1 + 20 DIV col1 + + - ( col1 ) FROM tab1 AS cor0
----
-28901
-290883
-48565

skipif mysql # not compatible
query I rowsort label-4293
SELECT + - CAST ( + 68 AS INTEGER ) * + col0 * col1 + 20 / col1 + + - ( col1 ) FROM tab1 AS cor0
----
-28901
-290883
-48565

query I rowsort
SELECT ALL - + col2 + + + 58 FROM tab0 AS cor0
----
-41
11
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4295
SELECT ALL + + SUM( ALL - + col1 ) AS col1, 2 AS col2 FROM tab1 AS cor0
----
-66
2

skipif mysql # not compatible
query II rowsort label-4295
SELECT ALL + + SUM ( ALL - + col1 ) AS col1, 2 AS col2 FROM tab1 AS cor0
----
-66
2

query I rowsort
SELECT + 7 * - 64 FROM tab2
----
-448
-448
-448

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT DISTINCT + 32 - COUNT( * ) AS col1 FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT + 32 - COUNT ( * ) AS col1 FROM tab0
----
29

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) IS NULL AND - ( - + 76 ) * col2 * + col1 + + 27 * - - col1 - col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) * col1 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT + CAST( 66 AS SIGNED ) + + col2 FROM tab2 cor0
----
106
124
89

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + CAST ( 66 AS INTEGER ) + + col2 FROM tab2 cor0
----
106
124
89

query I rowsort
SELECT - col2 * - col0 + ( + - col1 ) + + 79 * + 20 * - col1 AS col2 FROM tab2 AS cor0
----
-101577
-119177
-79573

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT ALL - MAX( + 51 ) * + 97 AS col0 FROM tab2
----
-4947

skipif mysql # not compatible
query I rowsort label-4302
SELECT ALL - MAX ( + 51 ) * + 97 AS col0 FROM tab2
----
-4947

query I rowsort
SELECT ALL 70 FROM tab0 WHERE - 2 / + + 39 + - col1 + + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4304
SELECT ALL CAST( 23 AS SIGNED ) col1 FROM tab2
----
23
23
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4304
SELECT ALL CAST ( 23 AS INTEGER ) col1 FROM tab2
----
23
23
23

query II rowsort
SELECT ALL col0, + ( col2 ) + + col1 * col1 AS col0 FROM tab1 AS cor0
----
51
292
85
84
91
2277

query I rowsort
SELECT col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4307
SELECT DISTINCT + - col0 AS col1, - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-4307
SELECT DISTINCT + - col0 AS col1, - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

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

query II rowsort
SELECT DISTINCT - col0 AS col0, - ( - col0 ) FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - + 83 > - - ( + + col1 )
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4311
SELECT col1 DIV + col1 AS col0, - col0 FROM tab0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
query II rowsort label-4311
SELECT col1 / + col1 AS col0, - col0 FROM tab0
----
1
-15
1
-87
1
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab2 WHERE NOT 25 - - col1 * - 82 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT COUNT( col0 ) + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4314
SELECT COUNT ( col0 ) + 96 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT - SUM( DISTINCT + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT - SUM ( DISTINCT + col0 ) FROM tab0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-4316
SELECT ALL + 83 DIV col0 + col1 AS col2 FROM tab2 cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL + 83 / col0 + col1 AS col2 FROM tab2 cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT DISTINCT - 11 + + COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - 11 + + COUNT ( * ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT DISTINCT col0 + - 59 - - - 88 * 78 AS col2 FROM tab2
----
-6848
-6859
-6877

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
1
21
81

query I rowsort
SELECT ALL + 82 AS col1 FROM tab0 AS cor0 WHERE col0 * + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT - - col2 * - CAST( NULL AS SIGNED ) + + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL 85 + + - col2 FROM tab2 cor0
----
27
45
62

query II rowsort
SELECT DISTINCT + - 9 + - 49 + - 78, 37 AS col2 FROM tab2 AS cor0
----
-136
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + 57 + + - col2 - - col2 FROM tab1 cor0
----
57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 23
----

query I rowsort
SELECT ALL col0 - + - col0 + col0 AS col2 FROM tab0
----
261
291
45

query II rowsort
SELECT col1 + 63, ( - col2 ) * + col1 * + col0 AS col0 FROM tab0
----
144
-57105
64
-9603
84
-18270

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT COUNT( * ) * + - 73 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-4329
SELECT COUNT ( * ) * + - 73 FROM tab0
----
-219

onlyif mysql # aggregate syntax: 
query I rowsort label-4330
SELECT COUNT( DISTINCT col0 ) * - 10 AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4330
SELECT COUNT ( DISTINCT col0 ) * - 10 AS col0 FROM tab1
----
-30

query I rowsort
SELECT ALL col2 + - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 57, - CAST( NULL AS SIGNED ) * + - ( - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4333
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + 57, - CAST ( NULL AS INTEGER ) * + - ( - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4334
SELECT DISTINCT col0 * + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4335
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4337
SELECT + COUNT( * ) AS col2, + 90 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4337
SELECT + COUNT ( * ) AS col2, + 90 col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
90

query I rowsort
SELECT ALL - 13 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT - - SUM( - 46 ) FROM tab2 cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4339
SELECT - - SUM ( - 46 ) FROM tab2 cor0
----
-138

query II rowsort
SELECT col0, 99 FROM tab0 AS cor0
----
15
99
87
99
97
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= col1 / + 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT col2 AS col2, CAST( NULL AS SIGNED ) / + + 57 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4342
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) / + + 57 AS col2 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT + COUNT( * ) * 65 FROM tab0
----
195

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT + COUNT ( * ) * 65 FROM tab0
----
195

query I rowsort
SELECT ALL 75 + + col0 AS col0 FROM tab2
----
121
139
150

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * + 40 - col1 NOT BETWEEN + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 IN ( + + col1, col0 )
----

query I rowsort
SELECT ALL - - 95 AS col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE + ( - 29 ) IS NULL
----

query I rowsort
SELECT + + col2 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 38
----

query I rowsort
SELECT ALL 8 + + col1 AS col0 FROM tab2 AS cor0
----
59
75
85

onlyif mysql # DIV for integer division: 
query I rowsort label-4352
SELECT + col1 + - - col1 DIV 82 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4352
SELECT + col1 + - - col1 / 82 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - col1 + - col1 + col2 + col2 FROM tab1 AS cor0
----
108
164
42

onlyif mysql # aggregate syntax: 
query II rowsort label-4354
SELECT + SUM( - 50 ) + - 97, - COUNT( * ) AS col0 FROM tab2
----
-247
-3

skipif mysql # not compatible
query II rowsort label-4354
SELECT + SUM ( - 50 ) + - 97, - COUNT ( * ) AS col0 FROM tab2
----
-247
-3

query I rowsort
SELECT ALL + + col1 * - col1 + + - col0 AS col2 FROM tab2 WHERE NOT - + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4356
SELECT DISTINCT - MAX( DISTINCT col1 ) * - COUNT( * ) * COUNT( * ) + + 21 * + 61 FROM tab1 WHERE NOT + + 32 <= - 43 * + 26 / + ( + + col1 )
----
1704

skipif mysql # not compatible
query I rowsort label-4356
SELECT DISTINCT - MAX ( DISTINCT col1 ) * - COUNT ( * ) * COUNT ( * ) + + 21 * + 61 FROM tab1 WHERE NOT + + 32 <= - 43 * + 26 / + ( + + col1 )
----
1704

onlyif mysql # aggregate syntax: 
query II rowsort label-4357
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col0, - 7 AS col2 FROM tab2 AS cor0
----
0
-7

skipif mysql # not compatible
query II rowsort label-4357
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col0, - 7 AS col2 FROM tab2 AS cor0
----
0
-7

query I rowsort
SELECT ALL - col0 + - col0 + 79 AS col2 FROM tab1 AS cor0
----
-103
-23
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4359
SELECT ALL + CAST( 59 AS SIGNED ) + - + 77, + 11 col0 FROM tab1 AS cor0
----
-18
11
-18
11
-18
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4359
SELECT ALL + CAST ( 59 AS INTEGER ) + - + 77, + 11 col0 FROM tab1 AS cor0
----
-18
11
-18
11
-18
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT DISTINCT - MAX( - + col1 ) + + 9 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4360
SELECT DISTINCT - MAX ( - + col1 ) + + 9 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT SUM( ALL 59 ) FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4361
SELECT SUM ( ALL 59 ) FROM tab0 AS cor0
----
177

query I rowsort
SELECT DISTINCT + col2 * + col2 + 18 AS col1 FROM tab2 AS cor0
----
1618
3382
547

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT COUNT( * ) - - 71 AS col2 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4363
SELECT COUNT ( * ) - - 71 AS col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT - col1 - - - col2 + - col2 FROM tab2 AS cor0
----
-157
-183
-97

query I rowsort
SELECT ALL + + col1 - - 10 AS col1 FROM tab1 AS cor0
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + 72 - - MIN( ALL 71 ) FROM tab0 AS cor0
----
143

skipif mysql # not compatible
query I rowsort label-4366
SELECT + 72 - - MIN ( ALL 71 ) FROM tab0 AS cor0
----
143

query I rowsort
SELECT col1 - + - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT col2 - + ( col0 ) * + 16 AS col0 FROM tab1
----
-1301
-1388
-720

query III rowsort
SELECT * FROM tab2 WHERE NOT + 63 + col2 + col0 NOT IN ( - col1, col0, - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 < + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT DISTINCT - 40 * - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col0
----
0

skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT - 40 * - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - - col0
----
0

query I rowsort
SELECT DISTINCT + + 45 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
45

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - - col0 < NULL
----

query I rowsort
SELECT ALL - 67 * - 24 AS col2 FROM tab1 AS cor0
----
1608
1608
1608

query I rowsort
SELECT ALL - col2 * + + 25 * + col1 FROM tab0 cor0
----
-2475
-5250
-95175

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT MIN( col2 ) + + COUNT( - - col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-4377
SELECT MIN ( col2 ) + + COUNT ( - - col2 ) FROM tab1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 63 col2 FROM tab0
----
150
160
78

query I rowsort
SELECT col2 + + 26 AS col0 FROM tab0
----
125
36
73

query I rowsort
SELECT - col2 * - + 14 * + col0 + - col0 AS col2 FROM tab1
----
68493
70125
86541

onlyif mysql # aggregate syntax: 
query II rowsort label-4382
SELECT DISTINCT + 2 AS col1, + COUNT( * ) FROM tab0
----
2
3

skipif mysql # not compatible
query II rowsort label-4382
SELECT DISTINCT + 2 AS col1, + COUNT ( * ) FROM tab0
----
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col0 - - col2 + 82 col1 FROM tab2
----
174
226
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT DISTINCT + MIN( - 2 ) + - ( - + 47 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + MIN ( - 2 ) + - ( - + 47 ) FROM tab2 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + - col1 AND ( - - col1 * - CAST( - 87 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4385
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col0 + - col1 AND ( - - col1 * - CAST ( - 87 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + + col1 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL col0 - + + 76 AS col1 FROM tab0
----
-61
11
21

query I rowsort
SELECT ALL - 33 AS col0 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT - + CAST( 12 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-12

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT COUNT( 6 ) AS col2 FROM tab1 AS cor0 WHERE 80 + col1 / - - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT COUNT ( 6 ) AS col2 FROM tab1 AS cor0 WHERE 80 + col1 / - - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4393
SELECT - - 67 FROM tab2 AS cor0 WHERE + col2 * CAST( NULL AS SIGNED ) / + + 63 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4393
SELECT - - 67 FROM tab2 AS cor0 WHERE + col2 * CAST ( NULL AS INTEGER ) / + + 63 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 * + + ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT + MAX( DISTINCT - col1 ) FROM tab1 WHERE NOT + + 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4395
SELECT + MAX ( DISTINCT - col1 ) FROM tab1 WHERE NOT + + 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL - - SUM( 38 ) FROM tab1 WHERE - col1 IS NOT NULL
----
114

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL - - SUM ( 38 ) FROM tab1 WHERE - col1 IS NOT NULL
----
114

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

query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4399
SELECT CAST( NULL AS SIGNED ) * - col0 AS col1, col0 + + col1 + + col0 FROM tab0
----
NULL
111
NULL
195
NULL
195

skipif mysql # not compatible
query II rowsort label-4399
SELECT CAST ( NULL AS INTEGER ) * - col0 AS col1, col0 + + col1 + + col0 FROM tab0
----
NULL
111
NULL
195
NULL
195

query II rowsort
SELECT + col2 * - + col2 AS col1, col1 FROM tab1
----
-3481
5
-4624
47
-9216
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + ( - ( - col1 ) ) + - 71 = ( NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT DISTINCT + - COUNT( * ) FROM tab0 AS cor0 WHERE + CAST( - 30 AS SIGNED ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + - COUNT ( * ) FROM tab0 AS cor0 WHERE + CAST ( - 30 AS INTEGER ) IS NOT NULL
----
-3

query I rowsort
SELECT - col0 * - 69 * - col0 * - col2 FROM tab2 AS cor0
----
11304960
22511250
3358092

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT DISTINCT + + COUNT( * ) + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT + + COUNT ( * ) + 73 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL COUNT( * ) * 64 AS col2 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-4405
SELECT ALL COUNT ( * ) * 64 AS col2 FROM tab0
----
192

query III rowsort
SELECT * FROM tab0 WHERE NOT + 94 * - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( 20, - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 * 28 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT DISTINCT - COUNT( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4409
SELECT DISTINCT - COUNT ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT col1 * - CAST( + 76 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1596
-6156
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4410
SELECT col1 * - CAST ( + 76 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1596
-6156
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, + col0 col2 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4412
SELECT ALL CAST( NULL AS SIGNED ) col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-4412
SELECT ALL CAST ( NULL AS INTEGER ) col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

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

query I rowsort
SELECT + col2 * + + 75 AS col0 FROM tab1 cor0
----
4425
5100
7200

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT ALL + 26 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL + 26 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL COUNT( + 99 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL COUNT ( + 99 ) AS col1 FROM tab1
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4419
SELECT - col0 / + col1 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 67 NOT BETWEEN + ( 19 ) * - col2 AND + ( - 11 ) * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4421
SELECT + col2 DIV - 2 FROM tab2
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-4421
SELECT + col2 / - 2 FROM tab2
----
-11
-20
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4422
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - col1 AS col1 FROM tab2 cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4423
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 - + CAST( NULL AS SIGNED ) * - 12, - col0, - + col2 )
----

skipif mysql # not compatible
query III rowsort label-4423
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - col0 - + CAST ( NULL AS INTEGER ) * - 12, - col0, - + col2 )
----

query I rowsort
SELECT - + 50 + + 40 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT ALL + - 20 * - 60 + - + col1 FROM tab0 AS cor0
----
1119
1179
1199

query I rowsort
SELECT - + col0 * - + 84 + - col1 * + - col2 * - 8 * 58 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1765188
-37788
-90132

query II rowsort
SELECT ALL ( + ( - col0 ) ) - - - col0 + + + col1 AS col1, + ( col2 ) FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4428
SELECT - 56 AS col2, COUNT( * ) - + MAX( DISTINCT 70 ) AS col1 FROM tab1 AS cor0
----
-56
-67

skipif mysql # not compatible
query II rowsort label-4428
SELECT - 56 AS col2, COUNT ( * ) - + MAX ( DISTINCT 70 ) AS col1 FROM tab1 AS cor0
----
-56
-67

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL = 63
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4430
SELECT 35 - + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col0 * ( - 37 ) AS col1 FROM tab2 AS cor0
----
-1702
-2368
-2775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4432
SELECT - - CAST( 84 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
84
84
84

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

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

query I rowsort
SELECT col0 * col2 * col0 * col0 - - 11 AS col2 FROM tab0 AS cor0
----
158636
6585041
90354638

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + 87 <= - 45
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4436
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4437
SELECT DISTINCT + 53 DIV ( col0 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-4437
SELECT DISTINCT + 53 / ( col0 ) FROM tab2
----
0
1

query II rowsort
SELECT - col1 AS col0, + col1 AS col2 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT - col0 * 6 AS col2 FROM tab2 AS cor0
----
-276
-384
-450

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + 88 + col2 * - 38 NOT IN ( + col1, - col0, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - 61 > - col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + 37 col0 FROM tab0 AS cor0
----
-50
-60
22

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + 71 ) = 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 2 AS col0 FROM tab0 AS cor0 WHERE NOT 27 BETWEEN + col1 AND NULL
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 15 col1 FROM tab2
----
31
49
60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 76 * - + 37 ) = ( - 79 ) * + 64
----

query I rowsort
SELECT - col0 + + - col2 + - ( 11 ) * col2 FROM tab1
----
-1203
-793
-907

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + col1 DIV col0 * col2 AS col1 FROM tab0
----
0
0
235

skipif mysql # not compatible
query I rowsort label-4449
SELECT + col1 / col0 * col2 AS col1 FROM tab0
----
0
0
235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4450
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 WHERE 91 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
8

query II rowsort
SELECT - col1, - 90 AS col0 FROM tab0 AS cor0
----
-1
-90
-21
-90
-81
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-4453
SELECT + 84 AS col1, + COUNT( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
query II rowsort label-4453
SELECT + 84 AS col1, + COUNT ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
84
3

query I rowsort
SELECT 55 - - + ( - + col0 ) AS col0 FROM tab2
----
-20
-9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4455
SELECT ( - - COUNT( 3 ) ) + 28 AS col0, 22 FROM tab0
----
31
22

skipif mysql # not compatible
query II rowsort label-4455
SELECT ( - - COUNT ( 3 ) ) + 28 AS col0, 22 FROM tab0
----
31
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4456
SELECT col1 DIV 33 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-4456
SELECT col1 / 33 FROM tab2
----
1
2
2

query I rowsort
SELECT ALL - col0 * - ( - - col2 ) - + ( col0 ) AS col0 FROM tab2 AS cor0
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT MAX( ALL + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT MAX ( ALL + + col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - - col1 DIV + col0 + + col2 FROM tab0 AS cor0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-4460
SELECT - - col1 / + col0 + + col2 FROM tab0 AS cor0
----
10
52
99

query I rowsort
SELECT DISTINCT - col2 * + + 45 FROM tab1 AS cor0
----
-2655
-3060
-4320

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT - 23 * + COUNT( * ) * - COUNT( * ) AS col1 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-4462
SELECT - 23 * + COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1
----
207

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 44 > - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4464
SELECT ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4465
SELECT col0 * + col0 + 52 * 14 DIV col2 * + - col2 FROM tab2
----
1403
3376
4929

skipif mysql # not compatible
query I rowsort label-4465
SELECT col0 * + col0 + 52 * 14 / col2 * + - col2 FROM tab2
----
1403
3376
4929

onlyif mysql # aggregate syntax: 
query I rowsort label-4466
SELECT ALL + + SUM( + col0 ) + + 28 FROM tab1 WHERE + col2 + - col1 * + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT ALL + + SUM ( + col0 ) + + 28 FROM tab1 WHERE + col2 + - col1 * + col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - - 77 * + col0 / col2 + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT - col0, 50 + - - 88 * - - col1 AS col2 FROM tab0 AS cor0
----
-15
7178
-87
1898
-97
138

query I rowsort
SELECT ALL col0 + - + col1 + - col1 FROM tab2 AS cor0
----
-56
-59
-90

query I rowsort
SELECT DISTINCT + - col1 * + + 22 + - col2 FROM tab0 AS cor0
----
-121
-1829
-472

query II rowsort
SELECT ALL + col0 * col2 + 10 + - col1, col2 FROM tab2 AS cor0
----
1017
23
2493
40
4293
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4473
SELECT 48 AS col1, - 61 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
48
-64

skipif mysql # not compatible
query II rowsort label-4473
SELECT 48 AS col1, - 61 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
48
-64

query I rowsort
SELECT ALL 73 - + - ( 22 ) FROM tab1 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4475
SELECT + ( + COUNT( * ) ) DIV COUNT( * ) DIV - SUM( + 19 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4475
SELECT + ( + COUNT ( * ) ) / COUNT ( * ) / - SUM ( + 19 ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN + 2 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 80 ) col1 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT - + 47 * - + col1 + col0 AS col1 FROM tab1 AS cor0
----
2300
320
709

query I rowsort
SELECT + 14 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
-37
-71
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT DISTINCT - col1 - + col0 + CAST( 79 AS SIGNED ) * + - ( 99 ) FROM tab1 AS cor0
----
-7886
-7911
-7959

skipif mysql # not compatible
query I rowsort label-4480
SELECT DISTINCT - col1 - + col0 + CAST ( 79 AS INTEGER ) * + - ( 99 ) FROM tab1 AS cor0
----
-7886
-7911
-7959

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT ALL - 61 * + MIN( - 45 ) FROM tab2
----
2745

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - 61 * + MIN ( - 45 ) FROM tab2
----
2745

query I rowsort
SELECT 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 58 col0, + col1 col0 FROM tab0 AS cor0
----
58
1
58
21
58
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT + + MIN( ALL + 12 ) col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4485
SELECT + + MIN ( ALL + 12 ) col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + 54 * + col2 - - col0 FROM tab2 AS cor0
----
1288
2224
3207

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT + + col1 DIV + + 94 AS col0 FROM tab2 cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4488
SELECT DISTINCT - - col2 * + col0 * col2 AS col0, - 70 + + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
102400
NULL
24334
NULL
252300
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4488
SELECT DISTINCT - - col2 * + col0 * col2 AS col0, - 70 + + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
102400
NULL
24334
NULL
252300
NULL

query I rowsort
SELECT ALL - - ( - - col1 ) * 58 AS col0 FROM tab0 AS cor0
----
1218
4698
58

query II rowsort
SELECT - col1 * + 42 col2, col0 AS col1 FROM tab1
----
-1974
91
-210
85
-588
51

query I rowsort
SELECT ALL + col1 * + col1 / + 57 FROM tab1 WHERE NULL BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 + col0 + 59 / - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 20 * + - ( + - 58 ) FROM tab1
----
1160

query I rowsort
SELECT DISTINCT - 76 * - 5 FROM tab0
----
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4495
SELECT ALL + 65 * - CAST( - 47 AS SIGNED ) FROM tab1
----
3055
3055
3055

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL + 65 * - CAST ( - 47 AS INTEGER ) FROM tab1
----
3055
3055
3055

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) + col1 FROM tab1
----
NULL

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

query I rowsort
SELECT 59 + - ( col1 ) FROM tab1
----
12
45
54

query I rowsort
SELECT DISTINCT - + 33 * - 45 + - - 14 AS col0 FROM tab2 AS cor0
----
1499

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4499
SELECT + - CAST( 51 AS SIGNED ) + + CAST( 24 AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 <> + + 38
----
-27

skipif mysql # not compatible
query I rowsort label-4499
SELECT + - CAST ( 51 AS INTEGER ) + + CAST ( 24 AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 * col1 <> + + 38
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 BETWEEN - - col2 AND 24 + - col1
----

query II rowsort
SELECT - col1 AS col2, + col0 AS col0 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT - COUNT( * ) * + COUNT( + + 13 ) * + 29 FROM tab2
----
-261

skipif mysql # not compatible
query I rowsort label-4502
SELECT - COUNT ( * ) * + COUNT ( + + 13 ) * + 29 FROM tab2
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4503
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( + 5 AS SIGNED ) < + - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4503
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( + 5 AS INTEGER ) < + - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT ALL - + MAX( - - 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - + MAX ( - - 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT col1 * col2 + + 49 - 15 AS col0 FROM tab2 AS cor0
----
1207
3114
3920

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT DISTINCT + COUNT( * ) + - 4 col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4506
SELECT DISTINCT + COUNT ( * ) + - 4 col2 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4507
SELECT + col1 DIV - col0 + + 75 col2 FROM tab2 AS cor0
----
74
74
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4507
SELECT + col1 / - col0 + + 75 col2 FROM tab2 AS cor0
----
74
74
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL + + COUNT( * ) + + + 33 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL + + COUNT ( * ) + + + 33 FROM tab1 AS cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + - col1 - + 60 col1 FROM tab0
----
-501
-61
-6621

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT + col2 DIV + col1 - + ( - + col1 ) AS col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT + col2 / + col1 - + ( - + col1 ) AS col1 FROM tab0
----
100
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT 17 * MAX( ALL - - col2 ) AS col1 FROM tab0
----
1683

skipif mysql # not compatible
query I rowsort label-4512
SELECT 17 * MAX ( ALL - - col2 ) AS col1 FROM tab0
----
1683

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 < - + 96
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4514
SELECT col0 DIV - CAST( col0 AS SIGNED ) FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4514
SELECT col0 / - CAST ( col0 AS INTEGER ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + ( + - 75 ) FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT DISTINCT MAX( ALL - + col2 ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT MAX ( ALL - + col2 ) FROM tab2
----
-23

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT + 33 DIV - col0 * 64 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT + 33 / - col0 * 64 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4519
SELECT + col2 * + 25 * + 75 * + 38 * - + col1 DIV + col1 AS col2 FROM tab1 cor0
----
-4203750
-4845000
-6840000

skipif mysql # not compatible
query I rowsort label-4519
SELECT + col2 * + 25 * + 75 * + 38 * - + col1 / + col1 AS col2 FROM tab1 cor0
----
-4203750
-4845000
-6840000

query I rowsort
SELECT ( + + col1 ) * 48 FROM tab1
----
2256
240
672

onlyif mysql # aggregate syntax: 
query II rowsort label-4521
SELECT 57 AS col1, 57 * COUNT( * ) FROM tab1
----
57
171

skipif mysql # not compatible
query II rowsort label-4521
SELECT 57 AS col1, 57 * COUNT ( * ) FROM tab1
----
57
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT 41 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL - 39, - col2 AS col2 FROM tab1
----
-39
-59
-39
-68
-39
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4524
SELECT ALL 31 + COUNT( * ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL 31 + COUNT ( * ) FROM tab2
----
34

query I rowsort
SELECT ALL + col1 + - 59 AS col1 FROM tab2
----
-8
18
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT ALL - + MIN( DISTINCT 5 ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - + MIN ( DISTINCT 5 ) AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ( + - col1 ) AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT - - col1 + + + col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-27

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

query II rowsort
SELECT DISTINCT + col0 + - + col0, col1 AS col0 FROM tab1 AS cor0
----
0
14
0
47
0
5

query II rowsort
SELECT ALL col2 - - col1 AS col2, + col1 * - - col0 AS col0 FROM tab0 AS cor0
----
100
97
128
1215
31
1827

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL + SUM( ALL + + col0 ) col2 FROM tab2 cor0 WHERE NOT col2 + ( + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4534
SELECT ALL + SUM ( ALL + + col0 ) col2 FROM tab2 cor0 WHERE NOT col2 + ( + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 23 * col1 / + + col2 + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4535
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - 23 * col1 / + + col2 + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4536
SELECT - col1 - col1 + + col2 + - CAST( NULL AS SIGNED ) + + col2 + - col0 * + 29, + ( 5 ) AS col2 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-4536
SELECT - col1 - col1 + + col2 + - CAST ( NULL AS INTEGER ) + + col2 + - col0 * + 29, + ( 5 ) AS col2 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4537
SELECT 29 / - col2 - - CAST( NULL AS SIGNED ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4537
SELECT 29 / - col2 - - CAST ( NULL AS INTEGER ), + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT - 14 * - COUNT( * ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT - 14 * - COUNT ( * ) FROM tab1
----
42

query I rowsort
SELECT + 60 * + col0 AS col2 FROM tab2 AS cor0
----
2760
3840
4500

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col1 ) <> + 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT + SUM( - 67 ) FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4541
SELECT + SUM ( - 67 ) FROM tab1 AS cor0
----
-201

query II rowsort
SELECT ALL - col0 col0, - col1 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT - col1 * - - col2 * 71 FROM tab0 AS cor0
----
-14910
-270297
-7029

query I rowsort
SELECT ALL + ( col1 ) * - - 79 * 16 - + + col0 FROM tab1
----
17645
59317
6235

query I rowsort
SELECT col1 + + + col1 * - 55 FROM tab2
----
-2754
-3618
-4158

query I rowsort
SELECT col1 * + 54 + + + 63 FROM tab1
----
2601
333
819

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT ALL - ( + MAX( DISTINCT col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL - ( + MAX ( DISTINCT col1 ) ) FROM tab2
----
-77

query II rowsort
SELECT DISTINCT ( col1 ) col0, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT ALL MIN( + - 44 ) AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-4549
SELECT ALL MIN ( + - 44 ) AS col2 FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4550
SELECT CAST( - ( - 55 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4550
SELECT CAST ( - ( - 55 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
55
55
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col0 + - - col1 col0 FROM tab2 AS cor0
----
24
37
45

query I rowsort
SELECT DISTINCT col2 + - + col1 + + col1 + + ( - + col1 ) AS col1 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-4553
SELECT + 10 + - col2 DIV col2 AS col0 FROM tab1 AS cor0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-4553
SELECT + 10 + - col2 / col2 AS col0 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - col1 + - col1 * + 69 FROM tab2 cor0
----
-3570
-4690
-5390

query I rowsort
SELECT DISTINCT ( - 24 ) + + 34 FROM tab2 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT MIN( ALL 71 ) + - 25 AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT MIN ( ALL 71 ) + - 25 AS col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 - + - ( + col0 ) - + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 33 * - - col0 AS col2 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + MIN( DISTINCT + col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4559
SELECT + MIN ( DISTINCT + col1 ) AS col0 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT + MIN( DISTINCT - 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-4560
SELECT + MIN ( DISTINCT - 90 ) FROM tab2
----
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT ( 55 ) * COUNT( * ) + SUM( ALL + col1 ) FROM tab0
----
268

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT ( 55 ) * COUNT ( * ) + SUM ( ALL + col1 ) FROM tab0
----
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 8 col1 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT - 45 * col1 * - col1 FROM tab0
----
19845
295245
45

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
10
47
99

query I rowsort
SELECT + 94 * - 10 AS col0 FROM tab1
----
-940
-940
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-4567
SELECT ALL 33 DIV - 46 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL 33 / - 46 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT - CAST( + - COUNT( * ) AS SIGNED ) * - + ( ( 35 ) ) AS col2 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4568
SELECT - CAST ( + - COUNT ( * ) AS INTEGER ) * - + ( ( 35 ) ) AS col2 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT DISTINCT + ( - MAX( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT + ( - MAX ( ALL + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + col1 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4572
SELECT COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4574
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col1 AND + col2 * - CAST( col1 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4574
SELECT * FROM tab2 AS cor0 WHERE NOT - 93 BETWEEN + col1 AND + col2 * - CAST ( col1 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ALL + ( SUM( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4575
SELECT ALL + ( SUM ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 20
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT COUNT( * ) DIV - MIN( 25 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT COUNT ( * ) / - MIN ( 25 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 IS NULL OR NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 59 AS col1 FROM tab2
----
-23
59
-40
59
-58
59

query I rowsort
SELECT - + col1 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

query II rowsort
SELECT + 77 AS col0, col0 + - col2 * + - col2 + + col0 AS col0 FROM tab2
----
77
1728
77
3514
77
621

query II rowsort
SELECT + col2 * - col0 AS col0, - 58 FROM tab1
----
-4896
-58
-5015
-58
-6188
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4583
SELECT 99 AS col2, + COUNT( * ) FROM tab0
----
99
3

skipif mysql # not compatible
query II rowsort label-4583
SELECT 99 AS col2, + COUNT ( * ) FROM tab0
----
99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4584
SELECT ( - SUM( - col0 ) ) * + COUNT( * ) AS col2 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4584
SELECT ( - SUM ( - col0 ) ) * + COUNT ( * ) AS col2 FROM tab1
----
681

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT MIN( - ( + 72 ) ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4585
SELECT MIN ( - ( + 72 ) ) AS col0 FROM tab2
----
-72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * - + col1 < + col0
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT ALL - 50 + + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4587
SELECT ALL - 50 + + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT + col0 DIV - + col1 + + col0 AS col2 FROM tab0 AS cor0
----
0
15
83

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

query II rowsort
SELECT DISTINCT - col1, - 20 AS col2 FROM tab1 AS cor0
----
-14
-20
-47
-20
-5
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col1 col0 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT DISTINCT - SUM( DISTINCT + 17 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-17

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - SUM ( DISTINCT + 17 ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-17

query I rowsort
SELECT ALL + ( col1 ) * + 84 AS col2 FROM tab1
----
1176
3948
420

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + 11 / - 26 / - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT ALL 83 * COUNT( * ) AS col0, - 88 FROM tab2 cor0
----
249
-88

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL 83 * COUNT ( * ) AS col0, - 88 FROM tab2 cor0
----
249
-88

query I rowsort
SELECT DISTINCT + - col2 - col2 - - col0 + 87 AS col2 FROM tab0 AS cor0
----
-14
154
8

query I rowsort
SELECT + - 50 * + 82 - + + col2 + col1 FROM tab1 AS cor0
----
-4121
-4154
-4182

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4597
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < NULL
----
0

query I rowsort
SELECT - col1 - + - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT ( - ( - 96 ) ) FROM tab2
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col2 * - 99 col0 FROM tab1
----
-14
9504
-47
6732
-5
5841

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4602
SELECT - col1 DIV col0 + + + 5 * - col2 AS col2 FROM tab2 AS cor0
----
-116
-201
-290

skipif mysql # not compatible
query I rowsort label-4602
SELECT - col1 / col0 + + + 5 * - col2 AS col2 FROM tab2 AS cor0
----
-116
-201
-290

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT - ( 44 ) FROM tab0
----
-44
-44
-44

query I rowsort
SELECT DISTINCT ( 94 ) + + col1 FROM tab2
----
145
161
171

query I rowsort
SELECT ALL - 57 + ( + col2 ) * + col0 FROM tab1 WHERE ( + col2 * + col0 + col2 ) <= + col1
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4610
SELECT DISTINCT - 29 + - COUNT( * ) AS col1 FROM tab0 WHERE NOT ( - CAST( - 77 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----
-29

skipif mysql # not compatible
query I rowsort label-4610
SELECT DISTINCT - 29 + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( - CAST ( - 77 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT COUNT( * ) FROM tab0 WHERE NOT - ( 9 ) <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4611
SELECT COUNT ( * ) FROM tab0 WHERE NOT - ( 9 ) <> ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE 65 >= 93 + 13 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL + COUNT( DISTINCT col0 ) * - 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL + COUNT ( DISTINCT col0 ) * - 15 FROM tab1
----
-45

query I rowsort
SELECT DISTINCT + 98 * - 11 FROM tab1
----
-1078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4615
SELECT ALL 49 * CAST( + col1 AS SIGNED ) FROM tab1
----
2303
245
686

skipif mysql # not compatible
query I rowsort label-4615
SELECT ALL 49 * CAST ( + col1 AS INTEGER ) FROM tab1
----
2303
245
686

query I rowsort
SELECT ( - col1 ) FROM tab1 WHERE ( 75 / col0 ) NOT IN ( - col2 + - col0 )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + ( - col2 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 58 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + ( - SUM( col0 ) ) * COUNT( DISTINCT col2 ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-4621
SELECT + ( - SUM ( col0 ) ) * COUNT ( DISTINCT col2 ) FROM tab2
----
-555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * 41 col0 FROM tab0
----
-3546
-3976
-534

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 51 / 4 - + col1 / - col1 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * + 59 col2 FROM tab1
----
1888
1888
1888

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) = col0 + 61
----

query I rowsort
SELECT ALL + col0 + + col1 / col1 FROM tab1 WHERE NULL < ( + 41 )
----

query I rowsort
SELECT 43 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4628
SELECT - CAST( - 37 AS SIGNED ) * 68 AS col2 FROM tab2 WHERE ( + col0 ) <= col1
----
2516
2516

skipif mysql # not compatible
query I rowsort label-4628
SELECT - CAST ( - 37 AS INTEGER ) * 68 AS col2 FROM tab2 WHERE ( + col0 ) <= col1
----
2516
2516

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col1 * 76 + 49 BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT + 5 * - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * 28 )
----

skipif mysql # not compatible
query I rowsort label-4630
SELECT + 5 * - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 * 28 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT ALL - 75 DIV + col0 FROM tab0 WHERE NOT 82 IN ( col2 + - 37 )
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4631
SELECT ALL - 75 / + col0 FROM tab0 WHERE NOT 82 IN ( col2 + - 37 )
----
-5
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE col1 * + 25 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
1536
3289
483

query I rowsort
SELECT ALL + 88 FROM tab0 AS cor0 WHERE - 33 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4635
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT 10 + 30 DIV + col0 ) FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT 10 + 30 / + col0 ) FROM tab1 AS cor0
----
13

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 / ( col0 * 8 ) - - 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 IN ( - col0 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 0 + col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT + 81 * - CAST( 87 * + MIN( ALL - col1 ) AS SIGNED ) + + 17 * COUNT( * ) FROM tab1
----
331260

skipif mysql # not compatible
query I rowsort label-4640
SELECT + 81 * - CAST ( 87 * + MIN ( ALL - col1 ) AS INTEGER ) + + 17 * COUNT ( * ) FROM tab1
----
331260

onlyif mysql # aggregate syntax: 
query I rowsort label-4641
SELECT COUNT( * ) * - 19 + + COUNT( * ) AS col2 FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4641
SELECT COUNT ( * ) * - 19 + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT ALL - ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT - 60 * + 12 AS col0 FROM tab1 AS cor0
----
-720

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 35 * + ( + 74 ) BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL col1 * - - 33 FROM tab1
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE - ( - col2 ) IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE - ( - col2 ) IN ( - col0 )
----
0

query I rowsort
SELECT ALL 92 * + 5 AS col2 FROM tab1
----
460
460
460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4650
SELECT SUM( DISTINCT + col1 ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT + AVG ( ALL - 37 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT ALL col0 / ( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4653
SELECT ALL + col2 DIV - col2 FROM tab2 WHERE + 40 < col2
----
-1

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL + col2 / - col2 FROM tab2 WHERE + 40 < col2
----
-1

query I rowsort
SELECT 78 + + col1 * - col2 FROM tab1
----
-1266
-217
-3118

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 22 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 13 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NULL IN ( 58 )
----

query II rowsort
SELECT - col2 AS col1, + col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - - col0 * - - col1 * + col2 + - 64 * col2 FROM tab2 AS cor0
----
194560
287738
52486

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

query I rowsort
SELECT - 9 * - col1 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4662
SELECT ALL - 92 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

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

query I rowsort
SELECT ALL + col1 * - ( + - col2 ) AS col0 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4665
SELECT ALL col2 DIV 96 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4665
SELECT ALL col2 / 96 FROM tab1
----
0
0
1

query I rowsort
SELECT col2 * - 81 AS col0 FROM tab2
----
-1863
-3240
-4698

query II rowsort
SELECT - col0 * + col2 AS col1, - 43 AS col1 FROM tab1
----
-4896
-43
-5015
-43
-6188
-43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - + col2 * + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4669
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - + col2 * + col2 ) IS NOT NULL
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + col2 ) NOT IN ( 20 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL - col0 + - CAST( NULL AS SIGNED ) - + + ( - - ( col0 ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col2 * - col0 + - col1 FROM tab0 AS cor0
----
624
849
9602

query III rowsort
SELECT * FROM tab2 WHERE 56 * + + 47 * + - 3 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4676
SELECT CAST( NULL AS SIGNED ) / - 13 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4676
SELECT CAST ( NULL AS INTEGER ) / - 13 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - COUNT( * ) * + MAX( ALL + 15 ) col2 FROM tab1 cor0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT - COUNT ( * ) * + MAX ( ALL + 15 ) col2 FROM tab1 cor0
----
-45

query I rowsort
SELECT ALL ( - 94 ) FROM tab0 cor0 WHERE NOT ( NULL ) IN ( - - col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4680
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4681
SELECT + COUNT( * ), 16 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-4681
SELECT + COUNT ( * ), 16 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + + - 81 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT DISTINCT - 40 + ( ( + COUNT( * ) ) ) FROM tab1 WHERE col0 * - 24 - + 88 - - + col2 * - 57 IS NOT NULL
----
-37

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 40 + ( ( + COUNT ( * ) ) ) FROM tab1 WHERE col0 * - 24 - + 88 - - + col2 * - 57 IS NOT NULL
----
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-4685
SELECT - col2 DIV - 66 AS col0, 24 * col2 * col1 FROM tab0 AS cor0
----
0
5040
0
91368
1
2376

skipif mysql # not compatible
query II rowsort label-4685
SELECT - col2 / - 66 AS col0, 24 * col2 * col1 FROM tab0 AS cor0
----
0
5040
0
91368
1
2376

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( + + col1 AS SIGNED ) + 80 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4686
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( + + col1 AS INTEGER ) + 80 ) < - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT 95 - - - 10 + - ( - COUNT( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
94

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT 95 - - - 10 + - ( - COUNT ( * ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4690
SELECT DISTINCT - CAST( - col2 AS SIGNED ) - col0 * col0 FROM tab0 WHERE - ( - col1 ) IN ( - col1 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-4690
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) - col0 * col0 FROM tab0 WHERE - ( - col1 ) IN ( - col1 + - col2 )
----

query II rowsort
SELECT ALL + 83 + - col1 AS col0, col1 * - 48 AS col0 FROM tab2 AS cor0
----
16
-3216
32
-2448
6
-3696

onlyif mysql # DIV for integer division: 
query I rowsort label-4692
SELECT - 24 + + col2 DIV 2 FROM tab2 AS cor0
----
-13
-4
5

skipif mysql # not compatible
query I rowsort label-4692
SELECT - 24 + + col2 / 2 FROM tab2 AS cor0
----
-13
-4
5

query I rowsort
SELECT ALL + - 31 + - - col2 - + - col1 AS col2 FROM tab2 cor0
----
43
86
94

query I rowsort
SELECT 54 + - col1 AS col2 FROM tab1 AS cor0
----
40
49
7

query I rowsort
SELECT DISTINCT + - col1 + col2 * - 40 + col0 + + ( - col2 ) + - 20 * 5 AS col2 FROM tab1 AS cor0
----
-2439
-2844
-3999

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab1 AS cor0 WHERE col1 + + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + ( 16 ) * col1 + - - col0 FROM tab0 AS cor0 WHERE 90 IS NOT NULL
----
113
1311
423

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4699
SELECT DISTINCT col1 * col0 * + col1 - - - 89 + + CAST( NULL AS SIGNED ) * - - 76 + - + 46 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4699
SELECT DISTINCT col1 * col0 * + col1 - - - 89 + + CAST ( NULL AS INTEGER ) * - - 76 + - + 46 AS col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col0, + 72 + col1 * 83 FROM tab1
----
-14
1234
-47
3973
-5
487

query I rowsort
SELECT ALL ( - - 94 ) FROM tab1
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4702
SELECT DISTINCT - SUM( 16 ) AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - SUM ( 16 ) AS col0 FROM tab0
----
-48

query II rowsort
SELECT DISTINCT 83 AS col1, - col1 * + 43 AS col2 FROM tab0
----
83
-3483
83
-43
83
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT COUNT( * ) * + 8 AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-4704
SELECT COUNT ( * ) * + 8 AS col1 FROM tab0
----
24

query I rowsort
SELECT ALL col1 * 30 AS col0 FROM tab2
----
1530
2010
2310

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4707
SELECT ALL + col2 / + + col0 + + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - + col1 - + - 41 FROM tab0 AS cor0
----
-40
20
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL SUM( DISTINCT 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL SUM ( DISTINCT 84 ) FROM tab0
----
84

query I rowsort
SELECT col2 * + + col2 AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4712
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-4712
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - AVG ( DISTINCT - 77 ) FROM tab2 AS cor0 WHERE NOT 60 NOT IN ( + + col0, col1 )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT + ( COUNT( + + 92 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT + ( COUNT ( + + 92 ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + + 33 FROM tab0 WHERE NULL IS NULL
----
33

query II rowsort
SELECT DISTINCT col2 AS col1, col2 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 BETWEEN + + col2 - 20 AND ( - col0 )
----

query II rowsort
SELECT col2, - 91 AS col2 FROM tab1
----
59
-91
68
-91
96
-91

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - 2 IS NOT NULL
----

query I rowsort
SELECT ALL - - 56 AS col0 FROM tab0 cor0
----
56
56
56

query II rowsort
SELECT DISTINCT col0, ( + ( col1 ) ) FROM tab2
----
46
51
64
77
75
67

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 37 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4725
SELECT * FROM tab1 AS cor0 WHERE + CAST( - 92 AS SIGNED ) NOT BETWEEN ( col0 ) AND - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4725
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - 92 AS INTEGER ) NOT BETWEEN ( col0 ) AND - col2 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2, col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - + col1 - 9 AS col2 FROM tab2 AS cor0
----
-60
-76
-86

query I rowsort
SELECT DISTINCT col1 + - 56 + - + col0 + col1 * - col0 FROM tab0 AS cor0
----
-1205
-1949
-249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4729
SELECT - CAST( NULL AS DECIMAL ) * ( + + MAX( ALL + + ( + - col0 ) ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT - 26 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + col2 - - - 10 FROM tab0 AS cor0
----
695
860
9593

query II rowsort
SELECT ALL + + 79 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
79
-51
79
-85
79
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT ALL 4 * COUNT( * ) * - 36 FROM tab0
----
-432

skipif mysql # not compatible
query I rowsort label-4733
SELECT ALL 4 * COUNT ( * ) * - 36 FROM tab0
----
-432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * col1 col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col2 - - 37 FROM tab0
----
136
47
84

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col1 <> - 29
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 5 * - 62 AS col2 FROM tab0
----
-310

query I rowsort
SELECT DISTINCT col1 * 72 AS col0 FROM tab1 AS cor0
----
1008
3384
360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4741
SELECT + MIN( DISTINCT + + CAST( - ( - + col2 ) AS SIGNED ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4741
SELECT + MIN ( DISTINCT + + CAST ( - ( - + col2 ) AS INTEGER ) ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE col1 - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE col1 - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 60 * + 89 col2 FROM tab0
----
1
-5340
21
-5340
81
-5340

query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0 WHERE + col1 * + 8 * + col1 IS NOT NULL
----
91

query I rowsort
SELECT + col2 + - + col0 AS col1 FROM tab0 WHERE NOT - + 87 + - 51 * + col1 <> ( + 6 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4746
SELECT ALL + col1 DIV 63 * 66, + col2 FROM tab0 AS cor0
----
0
10
0
99
66
47

skipif mysql # not compatible
query II rowsort label-4746
SELECT ALL + col1 / 63 * 66, + col2 FROM tab0 AS cor0
----
0
10
0
99
66
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT + + SUM( ALL - 82 ) FROM tab0 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4748
SELECT + + SUM ( ALL - 82 ) FROM tab0 cor0
----
-246

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

query I rowsort
SELECT DISTINCT col1 * - - col2 * - - 20 AS col2 FROM tab2
----
23460
61600
77720

query I rowsort
SELECT ALL - ( + - col2 ) * - - col1 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT DISTINCT + MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-4752
SELECT DISTINCT + MAX ( - col1 ) AS col1 FROM tab2
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4753
SELECT 95 * col1 / 40 + + CAST( NULL AS SIGNED ) * + + col1 * - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT 95 * col1 / 40 + + CAST ( NULL AS INTEGER ) * + + col1 * - ( + col2 ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / - 73 - - 74 + + - col0 col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4755
SELECT DISTINCT 88 col0, MAX( DISTINCT - col1 ) / + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
88
NULL

skipif mysql # not compatible
query II rowsort label-4755
SELECT DISTINCT 88 col0, MAX ( DISTINCT - col1 ) / + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
88
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT - - 88 * + + 68 + - COUNT( * ) AS col2 FROM tab1 cor0
----
5981

skipif mysql # not compatible
query I rowsort label-4756
SELECT - - 88 * + + 68 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
5981

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - + AVG ( DISTINCT - col0 ) * - COUNT( * ) FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4757
SELECT - + AVG ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab1 WHERE ( NOT - col1 IS NOT NULL )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + + 89 FROM tab0 AS cor0
----
104
176
186

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT ALL - COUNT( * ) - + + 9 + - 42 * - - 96 FROM tab2
----
-4044

skipif mysql # not compatible
query I rowsort label-4763
SELECT ALL - COUNT ( * ) - + + 9 + - 42 * - - 96 FROM tab2
----
-4044

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4764
SELECT CAST( 41 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
123

skipif mysql # not compatible
query I rowsort label-4764
SELECT CAST ( 41 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
123

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 = NULL
----

query I rowsort
SELECT DISTINCT - 22 * + col1 FROM tab0
----
-1782
-22
-462

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT COUNT( DISTINCT - + col1 ) * + + 55 AS col2 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4767
SELECT COUNT ( DISTINCT - + col1 ) * + + 55 AS col2 FROM tab1
----
165

query III rowsort
SELECT * FROM tab0 WHERE + - ( col2 ) * + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 * - col1 * col1 AS col1 FROM tab2
----
187272
323208
426888

query I rowsort
SELECT - 48 * - + col0 AS col1 FROM tab2
----
2208
3072
3600

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4772
SELECT - - 73 AS col2, + COUNT( * ) * - COUNT( * ) * + 80 FROM tab1 AS cor0
----
73
-720

skipif mysql # not compatible
query II rowsort label-4772
SELECT - - 73 AS col2, + COUNT ( * ) * - COUNT ( * ) * + 80 FROM tab1 AS cor0
----
73
-720

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col2 <> - - col2
----
51
85
91

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( + - 84 ) ) * - + 30 col1 FROM tab1
----
2520
2520
2520

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT DISTINCT + COUNT( 36 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4776
SELECT DISTINCT + COUNT ( 36 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + 90 FROM tab2 cor0
----
90

query I rowsort
SELECT - ( - col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL IN ( - - col0 + - 90 * + col0 ) AND NOT - col1 <> NULL
----

query I rowsort
SELECT ALL 6 * - col0 FROM tab0
----
-522
-582
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT + 85 DIV col1 AS col1 FROM tab0
----
1
4
85

skipif mysql # not compatible
query I rowsort label-4781
SELECT + 85 / col1 AS col1 FROM tab0
----
1
4
85

query II rowsort
SELECT ALL 50 AS col0, + col0 AS col2 FROM tab2
----
50
46
50
64
50
75

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col0 * - 35 < NULL
----

query I rowsort
SELECT DISTINCT col0 + - 71 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT DISTINCT + 17 - - col0 AS col2 FROM tab2
----
63
81
92

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + ( - col0 ) - - 45 FROM tab2 AS cor0
----
-1
-19
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 2 col0 FROM tab2 AS cor0
----
48
66
77

query I rowsort
SELECT DISTINCT + col0 + + col1 + col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT DISTINCT - ( + - col1 ) - + col0 + - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-4792
SELECT DISTINCT - 95 + col2 DIV col2 AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT - 95 + col2 / col2 AS col1 FROM tab0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4793
SELECT CAST( - CAST( + 49 AS SIGNED ) AS SIGNED ) FROM tab1 WHERE NOT NULL NOT IN ( + 47 * - 84 + + + CAST( NULL AS SIGNED ) + + 28 )
----

skipif mysql # not compatible
query I rowsort label-4793
SELECT CAST ( - CAST ( + 49 AS INTEGER ) AS INTEGER ) FROM tab1 WHERE NOT NULL NOT IN ( + 47 * - 84 + + + CAST ( NULL AS INTEGER ) + + 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT - 30 * COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-4794
SELECT - 30 * COUNT ( * ) FROM tab0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL IN ( + 35 + + col1, - col1 + - col0, - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( + 35 + + col1, - col1 + - col0, - 11 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT + CAST( - + 23 AS SIGNED ) FROM tab1 AS cor0
----
-23
-23
-23

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-4798
SELECT DISTINCT - MAX( ALL - col2 ), MIN( ALL + 23 ) * COUNT( * ) + - COUNT( * ) * + 45 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4798
SELECT DISTINCT - MAX ( ALL - col2 ), MIN ( ALL + 23 ) * COUNT ( * ) + - COUNT ( * ) * + 45 col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4799
SELECT ALL CAST( 75 AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL CAST ( 75 AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0
----
3825
5025
5775

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4800
SELECT - 40 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4800
SELECT - 40 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col1 + + col2 - - - 93 * - 45 AS col1, 74 + - col1 + - 86 AS col0 FROM tab0 cor0
----
4216
-33
4285
-13
4313
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 60 * + col1 col0 FROM tab2 AS cor0
----
3060
4020
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT - + COUNT( + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4803
SELECT - + COUNT ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT - 50 * + - MAX( col2 ) AS col0 FROM tab2 AS cor0
----
2900

skipif mysql # not compatible
query I rowsort label-4804
SELECT - 50 * + - MAX ( col2 ) AS col0 FROM tab2 AS cor0
----
2900

query I rowsort
SELECT DISTINCT - + 17 + + col2 + 27 + 55 + + + col1 AS col1 FROM tab2 AS cor0
----
139
182
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT ALL + 54 * MAX( ALL + + col0 ) FROM tab1 AS cor0
----
4914

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL + 54 * MAX ( ALL + + col0 ) FROM tab1 AS cor0
----
4914

query I rowsort
SELECT - - 74 * + col2 FROM tab2 AS cor0
----
1702
2960
4292

query II rowsort
SELECT ALL - 15 AS col0, col1 * col1 FROM tab1 AS cor0
----
-15
196
-15
2209
-15
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 51 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4810
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + + col0 AS col2, col1 FROM tab2 WHERE NOT NULL BETWEEN - 67 + col1 AND 46
----

skipif mysql # not compatible
query II rowsort label-4810
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + + col0 AS col2, col1 FROM tab2 WHERE NOT NULL BETWEEN - 67 + col1 AND 46
----

query I rowsort
SELECT - 23 * col0 + 11 AS col0 FROM tab0
----
-1990
-2220
-334

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT - MAX( - ( + col2 ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4812
SELECT - MAX ( - ( + col2 ) ) col1 FROM tab1
----
59

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 93 / + - ( - ( - + col1 ) )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 53 / col1 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 58 FROM tab1 cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( * ) - 61 AS col0 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( * ) - 61 AS col0 FROM tab0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT 29 - + - COUNT( * ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-4817
SELECT 29 - + - COUNT ( * ) AS col0 FROM tab2
----
32

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - col1
----

query I rowsort
SELECT DISTINCT col0 - - 1 AS col0 FROM tab2
----
47
65
76

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 cor0 WHERE NOT 52 * - col1 + - - 69 = - col1
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT ALL col2 - col1 AS col0 FROM tab0 AS cor0
----
-11
-34
98

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

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 26 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT DISTINCT col1 * + 1 DIV 78 * + col1 * + col2 DIV + col0 * - - 36 * + ( + col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT col1 * + 1 / 78 * + col1 * + col2 / + col0 * - - 36 * + ( + col2 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + 90 * + col2 AS col1 FROM tab1
----
5310
6120
8640

query I rowsort
SELECT DISTINCT ( + ( - + col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT 94 = col2 + + 27 + col1 * ( + col2 ) + - - 40 + + col2
----
-46
-64
-75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - 22 * col2 FROM tab1
----
-1298
-1496
-2112

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + - col2 col2 FROM tab2
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT DISTINCT + COUNT( * ) * + 95 AS col2 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT + COUNT ( * ) * + 95 AS col2 FROM tab0 AS cor0
----
285

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 83 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 * + col2 + + + 0 col0 FROM tab2 AS cor0 WHERE NOT ( - 0 NOT BETWEEN - col2 AND + 98 - - col1 + + + col1 + col0 )
----
-1720
-2494
-989

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( ( - + ( - col1 ) ) + + col1 <> + 98 )
----

query I rowsort
SELECT - + 21 FROM tab2 AS cor0 WHERE + col0 BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + col2 + col1 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT - COUNT( col2 ) * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4841
SELECT - COUNT ( col2 ) * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - col0 * - - 97 FROM tab1 AS cor0
----
-4947
-8245
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT 71 * + - MIN( - + 37 ) AS col1 FROM tab0 cor0
----
2627

skipif mysql # not compatible
query I rowsort label-4843
SELECT 71 * + - MIN ( - + 37 ) AS col1 FROM tab0 cor0
----
2627

query II rowsort
SELECT ALL col2 AS col1, + col2 * - 66 AS col1 FROM tab0 AS cor0
----
10
-660
47
-3102
99
-6534

query II rowsort
SELECT DISTINCT + col0, - col0 + - col0 AS col2 FROM tab0
----
15
-30
87
-174
97
-194

onlyif mysql # DIV for integer division: 
query II rowsort label-4846
SELECT ALL col0 AS col1, + col0 DIV - col1 FROM tab2
----
46
0
64
0
75
-1

skipif mysql # not compatible
query II rowsort label-4846
SELECT ALL col0 AS col1, + col0 / - col1 FROM tab2
----
46
0
64
0
75
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT DISTINCT + COUNT( * ) * + - 29 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4847
SELECT DISTINCT + COUNT ( * ) * + - 29 FROM tab1
----
-87

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 - + + 13 * - - 65 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4849
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 25 + + - 65 * - - col0 AS col2, col1 + + 44 col1 FROM tab1
----
NULL
49
NULL
58
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4849
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 25 + + - 65 * - - col0 AS col2, col1 + + 44 col1 FROM tab1
----
NULL
49
NULL
58
NULL
91

query I rowsort
SELECT - col1 * col0 + - + col2 * - + 93 * - + col1 AS col0 FROM tab1
----
-125706
-27860
-301505

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT DISTINCT MIN( - + col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4851
SELECT DISTINCT MIN ( - + col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4852
SELECT ALL + 19, 87 * 65 + + col1 + col2 * + - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
19
NULL
19
NULL
19
NULL

skipif mysql # not compatible
query II rowsort label-4852
SELECT ALL + 19, 87 * 65 + + col1 + col2 * + - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
19
NULL
19
NULL
19
NULL

query I rowsort
SELECT + col2 + + + 67 + + - 52 FROM tab0 AS cor0
----
114
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4854
SELECT CAST( NULL AS SIGNED ) + + + col1 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4855
SELECT MIN( 72 ) * - - 84 + + + 24 DIV + + 51 FROM tab2 AS cor0
----
6048

skipif mysql # not compatible
query I rowsort label-4855
SELECT MIN ( 72 ) * - - 84 + + + 24 / + + 51 FROM tab2 AS cor0
----
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4857
SELECT - - 13 DIV + - col2 FROM tab0 AS cor0
----
-1
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4858
SELECT - CAST( NULL AS DECIMAL ) * + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4859
SELECT ALL CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4859
SELECT ALL CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT - MAX( DISTINCT + 29 ) * + - MIN( ALL - - col1 ) * COUNT( ALL - col2 ) - + COUNT( * ) FROM tab2 AS cor0
----
4434

skipif mysql # not compatible
query I rowsort label-4860
SELECT - MAX ( DISTINCT + 29 ) * + - MIN ( ALL - - col1 ) * COUNT ( ALL - col2 ) - + COUNT ( * ) FROM tab2 AS cor0
----
4434

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - COUNT( - col2 ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4861
SELECT - COUNT ( - col2 ) col2 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL - - 3 * + 9 AS col0 FROM tab2 WHERE + + col2 IS NOT NULL
----
27
27
27

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col1 ) IS NULL
----

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

query I rowsort
SELECT 71 / 87 AS col1 FROM tab0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4866
SELECT ALL col2, - CAST( - col2 AS SIGNED ) * + + col2 FROM tab2
----
23
529
40
1600
58
3364

skipif mysql # not compatible
query II rowsort label-4866
SELECT ALL col2, - CAST ( - col2 AS INTEGER ) * + + col2 FROM tab2
----
23
529
40
1600
58
3364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT col1 FROM tab1 WHERE NOT + - 92 * + CAST( NULL AS SIGNED ) + + col0 BETWEEN NULL AND + col1
----

skipif mysql # not compatible
query I rowsort label-4867
SELECT col1 FROM tab1 WHERE NOT + - 92 * + CAST ( NULL AS INTEGER ) + + col0 BETWEEN NULL AND + col1
----

query II rowsort
SELECT col2, + col1 * + 95 FROM tab2
----
23
4845
40
7315
58
6365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT 0 * - - CAST( + 26 AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4869
SELECT 0 * - - CAST ( + 26 AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4870
SELECT ALL - - CAST( - 19 AS SIGNED ) FROM tab1 AS cor0
----
-19
-19
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT DISTINCT - - SUM( ALL + 16 ) AS col1 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-4872
SELECT DISTINCT - - SUM ( ALL + 16 ) AS col1 FROM tab2 cor0
----
48

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4874
SELECT * FROM tab2 WHERE NOT - + col1 <= + 73 * - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4874
SELECT * FROM tab2 WHERE NOT - + col1 <= + 73 * - CAST ( NULL AS REAL )
----

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

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 93 col2 FROM tab2 AS cor0
----
139
157
168

query I rowsort
SELECT + col0 + + 70 AS col0 FROM tab1 AS cor0
----
121
155
161

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT ALL + - MAX( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4879
SELECT ALL + - MAX ( DISTINCT 95 ) AS col0 FROM tab2 cor0
----
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - + 31 + 8 - - 73 * 6 * - col0 + + col0 col2 FROM tab0 AS cor0
----
-38032
-42313
-6531

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 70 IN ( + ( - + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT ALL col0 + - col0 * 94 DIV + ( + + col1 ) FROM tab2 AS cor0
----
-14
-30
-38

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL col0 + - col0 * 94 / + ( + + col1 ) FROM tab2 AS cor0
----
-14
-30
-38

query I rowsort
SELECT ALL 61 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 85 * - 6 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + + - 86 AS col1 FROM tab0
----
-5
-65
-85

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

query I rowsort
SELECT ALL col0 + + 63 AS col0 FROM tab2
----
109
127
138

query II rowsort
SELECT col2, 68 AS col0 FROM tab0
----
10
68
47
68
99
68

query I rowsort
SELECT DISTINCT 37 + + + col0 + col2 FROM tab0
----
134
233
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4892
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) - - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) - - ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL ( + - 31 ) FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4894
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 * + + col2 + - - ( + - col2 ) IN ( + 54 * + 65 * + + col2, CAST( 74 AS SIGNED ), + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4894
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 81 * + + col2 + - - ( + - col2 ) IN ( + 54 * + 65 * + + col2, CAST ( 74 AS INTEGER ), + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 - + col2 NOT BETWEEN - col2 AND col2 + - 64 * - col2 * - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT MIN( ALL + col0 ) AS col2 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4896
SELECT MIN ( ALL + col0 ) AS col2 FROM tab0 cor0
----
15

query I rowsort
SELECT 5 * + col2 * + col1 FROM tab1
----
1475
15980
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT ( COUNT( * ) ) * 18 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4898
SELECT ( COUNT ( * ) ) * 18 FROM tab1
----
54

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 > ( + + ( 49 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4900
SELECT DISTINCT + CAST( + 65 AS SIGNED ) AS col2, - col1 FROM tab1
----
65
-14
65
-47
65
-5

skipif mysql # not compatible
query II rowsort label-4900
SELECT DISTINCT + CAST ( + 65 AS INTEGER ) AS col2, - col1 FROM tab1
----
65
-14
65
-47
65
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT DISTINCT - - 81 + + - col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - - 81 + + - col2 / + col0 AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT + col2 * + col0 * col2 + - + col2 + 72 * + + ( col0 ) AS col0 FROM tab1 AS cor0
----
301946
427268
473592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4903
SELECT ( + + col1 ) + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-4903
SELECT ( + + col1 ) + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + col2 + - + 88 FROM tab2
----
-30
-48
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT ALL COUNT( * ) + - + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL COUNT ( * ) + - + 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-4906
SELECT DISTINCT col2 + + 0 DIV + 31 AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4906
SELECT DISTINCT col2 + + 0 / + 31 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - + col2 + 95 AS col2 FROM tab2 AS cor0
----
37
55
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 62
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4909
SELECT DISTINCT ( + col1 ) - CAST( NULL AS DECIMAL ) + 49 * - + 64 * - 31 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT ( + col1 ) - CAST ( NULL AS REAL ) + 49 * - + 64 * - 31 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT DISTINCT + MAX( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT + MAX ( DISTINCT - col1 ) AS col0 FROM tab1
----
-5

query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab2
----
104
133
69

query I rowsort
SELECT - ( - - col1 ) + + 4 FROM tab0
----
-17
-77
3

query II rowsort
SELECT - col2 + col0 col0, 45 * col1 AS col2 FROM tab2
----
17
3015
23
2295
24
3465

query I rowsort
SELECT DISTINCT + - col1 + 11 + + 24 * - + 77 AS col0 FROM tab0 AS cor0
----
-1838
-1858
-1918

query I rowsort
SELECT ALL - 99 + + col0 * - col1 FROM tab2 AS cor0
----
-2445
-5027
-5124

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

query I rowsort
SELECT ( + 56 ) - - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 * + 10 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 * + 16 * 72 col2 FROM tab1
----
-5640192
-5777280
-7128576

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4920
SELECT - + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT col2 DIV - 73 FROM tab0 AS cor0
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4922
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT - + 9 * col2 DIV - + col1 FROM tab1 AS cor0
----
106
13
61

skipif mysql # not compatible
query I rowsort label-4923
SELECT - + 9 * col2 / - + col1 FROM tab1 AS cor0
----
106
13
61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 95 <> ( - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4925
SELECT ALL + CAST( NULL AS SIGNED ) * + + 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL + CAST ( NULL AS INTEGER ) * + + 62 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + ( + 44 ) * col0 * + col2 * + 85 FROM tab1 AS cor0
----
18311040
18756100
23143120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4927
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / CAST( + + 31 AS SIGNED ) / - + 74 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4927
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 / CAST ( + + 31 AS INTEGER ) / - + 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT DISTINCT + 34 * - - COUNT( * ) col1 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4928
SELECT DISTINCT + 34 * - - COUNT ( * ) col1 FROM tab1
----
102

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 50 - + - 44
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( ( NOT + ( col1 ) * - 91 / + + col0 * - 14 + 50 * + - 87 IS NULL ) )
----
15
87
97

onlyif mysql # DIV for integer division: 
query III rowsort label-4931
SELECT - col1 AS col0, + col2 DIV col0 + + col1 AS col2, - col0 FROM tab1
----
9 values hashing to c6609382ec16b293413f50152ab0da20

skipif mysql # not compatible
query III rowsort label-4931
SELECT - col1 AS col0, + col2 / col0 + + col1 AS col2, - col0 FROM tab1
----
9 values hashing to c6609382ec16b293413f50152ab0da20

onlyif mysql # aggregate syntax: 
query I rowsort label-4932
SELECT COUNT( * ) * - SUM( ALL - 57 ) AS col1 FROM tab1
----
513

skipif mysql # not compatible
query I rowsort label-4932
SELECT COUNT ( * ) * - SUM ( ALL - 57 ) AS col1 FROM tab1
----
513

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT ALL - col0 DIV + col0 + - 82 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL - col0 / + col0 + - 82 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT ALL 45 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4934
SELECT ALL 45 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - col0 + - + col1 + - + 27 FROM tab0 AS cor0
----
-123
-125
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT col2 DIV - col1 + + + col2 + - col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4937
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 + 50 + - col0 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 + + ( - col2 ) AS col2, + col1 col1 FROM tab1 AS cor0
----
-110
14
-115
47
-64
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4939
SELECT 81 DIV + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4939
SELECT 81 / + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT - col0 - - col2 * - + col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab0 cor0 WHERE NULL NOT BETWEEN - col1 * + col2 * - - col0 * + 49 / - col0 AND - ( - col2 )
----

query I rowsort
SELECT DISTINCT + col1 + + col2 AS col1 FROM tab2 WHERE NOT - - 82 * - col0 IN ( 64 )
----
117
125
74

query I rowsort
SELECT DISTINCT 44 - - + col2 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT - COUNT( * ) * - 13 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-4944
SELECT - COUNT ( * ) * - 13 FROM tab1
----
39

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4946
SELECT ALL COUNT( * ) * 64 * + - CAST( NULL AS SIGNED ) + - 9 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4946
SELECT ALL COUNT ( * ) * 64 * + - CAST ( NULL AS INTEGER ) + - 9 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4947
SELECT + + 66 * ( - CAST( 60 AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e

skipif mysql # not compatible
query I rowsort label-4947
SELECT + + 66 * ( - CAST ( 60 AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c734db9ad3b45132c768ae6c828c7e2e

query I rowsort
SELECT 66 FROM tab0 AS cor0 WHERE NOT 80 / + + col0 = - col2
----
66
66
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4949
SELECT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT - + col2 * col0 + - 64 * + - col1 FROM tab2 AS cor0
----
-62
2206
2368

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT DISTINCT - + COUNT( * ) * - 66 + - COUNT( * ) FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4951
SELECT DISTINCT - + COUNT ( * ) * - 66 + - COUNT ( * ) FROM tab0 AS cor0
----
195

query I rowsort
SELECT + col1 * - + col0 + 93 AS col1 FROM tab2 AS cor0
----
-2253
-4835
-4932

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT + MAX( - - col2 ) * - COUNT( * ) FROM tab0 cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4953
SELECT + MAX ( - - col2 ) * - COUNT ( * ) FROM tab0 cor0
----
-297

query I rowsort
SELECT DISTINCT col1 * - 79 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - COUNT( * ) * 57 AS col0 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-4955
SELECT - COUNT ( * ) * 57 AS col0 FROM tab2
----
-171

query III rowsort
SELECT * FROM tab1 WHERE NOT + 46 - + - ( - col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4957
SELECT ALL 35 DIV + col2 AS col2 FROM tab2
----
0
0
1

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

query II rowsort
SELECT + col2 AS col2, - 75 * col2 AS col2 FROM tab2
----
23
-1725
40
-3000
58
-4350

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

query I rowsort
SELECT ALL + + col0 + + 79 - + + col2 FROM tab1 cor0
----
102
105
34

query I rowsort
SELECT DISTINCT + ( - + col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT ALL + 58 DIV - 17 FROM tab2 cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL + 58 / - 17 FROM tab2 cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ALL - - 38 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL - - 38 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
41

query I rowsort
SELECT + + col0 + - col1 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1063
-2573
-4342

query II rowsort
SELECT ALL col2, 56 FROM tab2
----
23
56
40
56
58
56

query II rowsort
SELECT + col2 + + - col2, + ( + 46 ) AS col2 FROM tab1
----
0
46
0
46
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT ALL + SUM( ALL + + col2 ) col0 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4967
SELECT ALL + SUM ( ALL + + col2 ) col0 FROM tab2
----
121

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4968
SELECT - MIN( DISTINCT + 29 ) * CAST( NULL AS DECIMAL ) col0 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL - col2 + - - col0 * - ( - col2 ) AS col0 FROM tab0
----
658
860
9504

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 AND - 63 + + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 64 / col1 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 + + - col0 * - col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT DISTINCT - - 84 + + col2 FROM tab1 cor0
----
143
152
180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4974
SELECT ALL col0 col1, col0 * + - CAST( NULL AS SIGNED ) + - 94 AS col0 FROM tab2 cor0 WHERE NOT - 84 * 75 IS NULL
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4974
SELECT ALL col0 col1, col0 * + - CAST ( NULL AS INTEGER ) + - 94 AS col0 FROM tab2 cor0 WHERE NOT - 84 * 75 IS NULL
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4975
SELECT ALL - 63 + 1 / + - CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL - 63 + 1 / + - CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 44 - - 40 * - 46 FROM tab0 AS cor0
----
-1796

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

query I rowsort
SELECT ALL - - ( + - col0 ) + + col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL + 22 * + 15 - - + col1 FROM tab2 AS cor0
----
381
397
407

query II rowsort
SELECT - 0 - + col0 * col0 + - col2 AS col1, 67 AS col2 FROM tab1 AS cor0
----
-2697
67
-7284
67
-8349
67

query I rowsort
SELECT ALL col2 - - col2 + - - col2 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT col0 - + col1 * 45 FROM tab2 cor0
----
-2249
-2940
-3401

onlyif mysql # aggregate syntax: 
query II rowsort label-4983
SELECT - 62 AS col0, 24 - - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-62
24

skipif mysql # not compatible
query II rowsort label-4983
SELECT - 62 AS col0, 24 - - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-62
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 * ( + - 55 ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5fedd640e1c0a9ea3fae9fb61fc59c31

query II rowsort
SELECT DISTINCT + col1 - + 16, col0 * + col0 AS col2 FROM tab1
----
-11
7225
-2
2601
31
8281

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= - col0 + - - col2 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 * + ( col2 ) col2 FROM tab1 cor0
----
-3540
-4080
-5760

query II rowsort
SELECT + ( col1 ), col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + + ( ( + - 79 ) ) col0 FROM tab1 AS cor0
----
4661
5372
7584

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4990
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col1 + + - CAST( NULL AS SIGNED ) < + col0
----

skipif mysql # not compatible
query III rowsort label-4990
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 * + col1 + + - CAST ( NULL AS INTEGER ) < + col0
----

query I rowsort
SELECT col0 + col0 FROM tab2 WHERE NOT - col1 IS NULL
----
128
150
92

query II rowsort
SELECT DISTINCT col1 AS col1, col1 AS col0 FROM tab2 WHERE col1 * - ( + - col1 ) IS NOT NULL
----
51
51
67
67
77
77

query II rowsort
SELECT DISTINCT col0 AS col1, + ( - - 99 ) FROM tab2 AS cor0
----
46
99
64
99
75
99

query I rowsort
SELECT + col1 * + - col1 * col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4995
SELECT CAST( NULL AS DECIMAL ) * 47 FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT - 0 * - 11 + + CAST( NULL AS SIGNED ) + ( + col2 ) - - 55 + + 80 * - 42 / - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT - 0 * - 11 + + CAST ( NULL AS INTEGER ) + ( + col2 ) - - 55 + + 80 * - 42 / - 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4997
SELECT DISTINCT COUNT( ALL 53 ) * + COUNT( * ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-4997
SELECT DISTINCT COUNT ( ALL 53 ) * + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
9
3

query I rowsort
SELECT ALL - col0 + - + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-174
-194
-30

query I rowsort
SELECT + col0 * - 89 + - - ( - 1 ) + - - col2 + - - 16 * - 1 FROM tab1 AS cor0
----
-4460
-7523
-8048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5000
SELECT AVG ( col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

query I rowsort
SELECT ALL ( - 58 ) AS col0 FROM tab0
----
-58
-58
-58

query II rowsort
SELECT DISTINCT - ( - + 96 ), col0 FROM tab2
----
96
46
96
64
96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT - COUNT( * ) + + 94 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT - COUNT ( * ) + + 94 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE - 29 <> NULL
----

query I rowsort
SELECT + col2 + col2 + 71 FROM tab2
----
117
151
187

query I rowsort
SELECT ALL 60 + - col0 + - col0 AS col0 FROM tab2 AS cor0
----
-32
-68
-90

query I rowsort
SELECT DISTINCT + col1 + col1 + col2 + + col1 FROM tab1 AS cor0
----
138
209
74

query II rowsort
SELECT - col0 + - ( 74 ) col1, 31 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-161
31
-171
31
-89
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL MAX( ALL - 28 ) - 8 * 21 / CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 55 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL MAX ( ALL - 28 ) - 8 * 21 / CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 55 IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 60 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 + col2 col0 FROM tab1
----
129
138
166

query I rowsort
SELECT ALL col1 + + 16 FROM tab1
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT - ( MAX( + - col0 ) ) + - - 66 + + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT - ( MAX ( + - col0 ) ) + - - 66 + + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
109

query I rowsort
SELECT ALL - col1 * - ( - - col2 ) + + + 49 + 79 * + col0 * - - col0 FROM tab2 AS cor0
----
168386
326713
448310

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT - SUM( DISTINCT - 90 ) FROM tab0 AS cor0 WHERE + 74 / ( + col1 ) * - 77 IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT - SUM ( DISTINCT - 90 ) FROM tab0 AS cor0 WHERE + 74 / ( + col1 ) * - 77 IS NOT NULL
----
90

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL - COUNT( * ) + + 46 AS col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - COUNT ( * ) + + 46 AS col2 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT - SUM( - + 64 ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5018
SELECT - SUM ( - + 64 ) FROM tab0 AS cor0
----
192

query III rowsort
SELECT * FROM tab0 WHERE - ( + ( + ( - col0 ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 - + col2 + ( + 72 ) AS col2 FROM tab2
----
-32
-61
3

query I rowsort
SELECT DISTINCT - ( - - ( col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + ( - ( - - col0 ) ) FROM tab1
----
-51
-85
-91

query II rowsort
SELECT 47 * 16, col1 FROM tab1
----
752
14
752
47
752
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5024
SELECT col0 DIV + CAST( + - col1 AS SIGNED ) FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5024
SELECT col0 / + CAST ( + - col1 AS INTEGER ) FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT DISTINCT 25 * COUNT( * ) col2 FROM tab0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5025
SELECT DISTINCT 25 * COUNT ( * ) col2 FROM tab0
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-5026
SELECT DISTINCT + col1, + col2 DIV + col1 + + col0 FROM tab1 AS cor0
----
14
57
47
92
5
96

skipif mysql # not compatible
query II rowsort label-5026
SELECT DISTINCT + col1, + col2 / + col1 + + col0 FROM tab1 AS cor0
----
14
57
47
92
5
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5027
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5027
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5028
SELECT DISTINCT 23 DIV - col0 * + col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5028
SELECT DISTINCT 23 / - col0 * + col0 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT MIN( col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5029
SELECT MIN ( col1 ) AS col0 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL - + MIN( ALL + - col0 ) + 63 col2 FROM tab2 cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5030
SELECT ALL - + MIN ( ALL + - col0 ) + 63 col2 FROM tab2 cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - - col1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 21 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5033
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( 78 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5033
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( 78 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5034
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= - CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + + 47 FROM tab0 WHERE ( NOT col2 IS NULL )
----
47
47
47

query I rowsort
SELECT DISTINCT + ( + 98 ) AS col0 FROM tab2
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 18 AS col0, + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + col1 ) + col0 AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT + - col1 * + 92 + + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-10653
-13013
-7293

query II rowsort
SELECT col0 * - - col1 * + col2 - col0 + ( col0 ) col0, col0 FROM tab1 AS cor0
----
25075
85
290836
91
68544
51

query I rowsort
SELECT col1 + + - col1 * col0 * col2 AS col0 FROM tab0 cor0
----
-18249
-57024
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col1 + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5042
SELECT col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 AND col1 + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - MAX( col2 ) DIV 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - MAX ( col2 ) / 80 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE 70 + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 col0 FROM tab2 WHERE NOT + col0 IS NULL
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT 78 / - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT + CAST( 0 AS SIGNED ) - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + CAST ( 0 AS INTEGER ) - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5048
SELECT MAX( DISTINCT - col2 ) DIV 59 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5048
SELECT MAX ( DISTINCT - col2 ) / 59 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT DISTINCT MAX( - col1 ) + 9 col0 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT DISTINCT MAX ( - col1 ) + 9 col0 FROM tab1
----
4

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 - - col0 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 < - 55
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( col0 + + CAST( NULL AS DECIMAL ) ) NOT BETWEEN col0 * 31 + + col0 / 89 AND col2
----

skipif mysql # not compatible
query III rowsort label-5054
SELECT ALL * FROM tab0 WHERE NOT ( col0 + + CAST ( NULL AS REAL ) ) NOT BETWEEN col0 * 31 + + col0 / 89 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 43 col1 FROM tab2 WHERE NOT NULL BETWEEN col1 * + 51 AND + col0 * col0 - 30
----

query I rowsort
SELECT 19 + + col2 * - 44 FROM tab2
----
-1741
-2533
-993

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 2 + - col0 NOT IN ( - col0 )
----

query I rowsort
SELECT - col1 * 22 FROM tab1 cor0
----
-1034
-110
-308

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 + - col2 * - 48 NOT IN ( - col0 + col2 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + 81 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT COUNT( * ) * + 92 FROM tab0 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-5062
SELECT COUNT ( * ) * + 92 FROM tab0 AS cor0
----
276

query I rowsort
SELECT ALL 53 * 72 AS col1 FROM tab2 AS cor0
----
3816
3816
3816

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / + col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT DISTINCT - COUNT( * ) + 83 AS col1 FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - COUNT ( * ) + 83 AS col1 FROM tab1
----
80

query I rowsort
SELECT col0 + - ( - 73 ) FROM tab1 AS cor0
----
124
158
164

onlyif mysql # DIV for integer division: 
query I rowsort label-5068
SELECT + 2 DIV col0 + 66 * + col1 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 2 / col0 + 66 * + col1 AS col0 FROM tab2 AS cor0
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT ALL COUNT( * ) * + 67 + - 21 AS col2 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5069
SELECT ALL COUNT ( * ) * + 67 + - 21 AS col2 FROM tab2 AS cor0
----
180

onlyif mysql # DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT + - 35 DIV col0 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT + - 35 / col0 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + - 55 * + 35 AS col2 FROM tab1 AS cor0
----
-1925
-1925
-1925

query I rowsort
SELECT ALL - + 58 * 2 AS col2 FROM tab1 AS cor0
----
-116
-116
-116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5073
SELECT + 13 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( col1 ) = NULL
----

skipif mysql # not compatible
query I rowsort label-5073
SELECT + 13 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( col1 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 * 2 ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( 88 )
----

query I rowsort
SELECT + 35 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 63 ) NOT IN ( 80 )
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) NOT IN ( 72 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + 31
----

query I rowsort
SELECT ALL + col2 + 11 FROM tab0
----
110
21
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5083
SELECT CAST( NULL AS SIGNED ) * + + ( 82 ) * - col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - ( col0 ) + + 55 AS col1 FROM tab2
----
-20
-9
9

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + - col1 + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1637
-3373
-557

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 76 NOT IN ( + 41 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + 78 + - col0 + + - 70 AS col1 FROM tab0
----
-7
-79
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT col1 AS col2 FROM tab0 WHERE - col2 BETWEEN ( - CAST( NULL AS SIGNED ) ) AND col0 + + col0 * - col2
----

skipif mysql # not compatible
query I rowsort label-5090
SELECT col1 AS col2 FROM tab0 WHERE - col2 BETWEEN ( - CAST ( NULL AS INTEGER ) ) AND col0 + + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT COUNT( * ) + + 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

skipif mysql # not compatible
query I rowsort label-5091
SELECT COUNT ( * ) + + 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
52

query I rowsort
SELECT ALL 44 * - col2 AS col0 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL - - 94 * COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL - - 94 * COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
846

query I rowsort
SELECT + ( + col2 ) + + + 42 FROM tab1
----
101
110
138

query I rowsort
SELECT - - 88 * + 54 + + col2 + - 78 FROM tab2 cor0
----
4697
4714
4732

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT ALL + COUNT( * ) col2, SUM( col1 ) * 84 + + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
3
16259

skipif mysql # not compatible
query II rowsort label-5096
SELECT ALL + COUNT ( * ) col2, SUM ( col1 ) * 84 + + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3
16259

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT + - MIN( - col0 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5097
SELECT + - MIN ( - col0 ) col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT DISTINCT - + col0, col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT ALL 10 FROM tab1 AS cor0 WHERE ( + col2 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT + SUM( ALL - + 84 ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5100
SELECT + SUM ( ALL - + 84 ) FROM tab1 AS cor0
----
-252

query I rowsort
SELECT - col0 AS col2 FROM tab1 cor0 WHERE NOT + col2 * col2 <= ( col2 * + ( - 19 * col1 ) )
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 56 - + col2 )
----

query I rowsort
SELECT DISTINCT col2 * 32 * - col0 * - col0 FROM tab2
----
10440000
1557376
5242880

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT SUM( DISTINCT - + 24 ) AS col1, - COUNT( * ) AS col1 FROM tab1
----
-24
-3

skipif mysql # not compatible
query II rowsort label-5104
SELECT SUM ( DISTINCT - + 24 ) AS col1, - COUNT ( * ) AS col1 FROM tab1
----
-24
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 90 ) col2 FROM tab0
----
90
90
90

query I rowsort
SELECT + col0 * col1 * 70 FROM tab2
----
164220
344960
351750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT ALL + CAST( NULL AS SIGNED ) / - 92 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5108
SELECT + col1 DIV - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5108
SELECT + col1 / - col2 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-2
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 99 + - 74 )
----

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

query I rowsort
SELECT ALL + 90 * + 60 FROM tab2
----
5400
5400
5400

query I rowsort
SELECT col2 + - 36 AS col1 FROM tab2
----
-13
22
4

query I rowsort
SELECT + col2 + + col2 + - - col1 FROM tab0
----
175
199
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5114
SELECT + 46 * CAST( NULL AS SIGNED ) + + col2 + col1 + + col2 * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col2 + - col2 * - - col0 * 69 FROM tab1 AS cor0
----
-337728
-345976
-426904

query II rowsort
SELECT ALL - ( - + col2 ) * col1 col1, ( + 21 ) AS col0 FROM tab2 cor0
----
1173
21
3080
21
3886
21

query I rowsort
SELECT ALL - 84 + col0 * - + col2 AS col2 FROM tab0 AS cor0
----
-789
-954
-9687

query I rowsort
SELECT col2 * - col0 - col1 FROM tab1 AS cor0
----
-4910
-5020
-6235

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * col1 <> ( + - 70 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( - 31 ) - col0 FROM tab1
----
-116
-122
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT - COUNT( * ) FROM tab2 WHERE ( + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5123
SELECT - COUNT ( * ) FROM tab2 WHERE ( + col0 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5124
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + 35, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5124
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + + 35, CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT - - col1 + 66 AS col0 FROM tab1 cor0
----
113
71
80

query II rowsort
SELECT + 44 col1, + 29 + + col2 FROM tab2 AS cor0
----
44
52
44
69
44
87

onlyif mysql # DIV for integer division: 
query I rowsort label-5128
SELECT ALL col1 DIV - 2 - - col2 + - 61 * 97 - + col1 FROM tab0 AS cor0
----
-5819
-5938
-5991

skipif mysql # not compatible
query I rowsort label-5128
SELECT ALL col1 / - 2 - - col2 + - 61 * 97 - + col1 FROM tab0 AS cor0
----
-5819
-5938
-5991

query II rowsort
SELECT 21 * - col0 AS col0, 37 + - col0 FROM tab2 AS cor0
----
-1344
-27
-1575
-38
-966
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT DISTINCT - + COUNT( + + 34 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT - + COUNT ( + + 34 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5132
SELECT - 29 DIV + 89 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5132
SELECT - 29 / + 89 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * + 53 * + col1 AS col0 FROM tab1 AS cor0
----
-22525
-226681
-37842

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + MIN( - 54 ) * - 26 AS col2 FROM tab1 AS cor0
----
1404

skipif mysql # not compatible
query I rowsort label-5134
SELECT + MIN ( - 54 ) * - 26 AS col2 FROM tab1 AS cor0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - COUNT( ALL col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - COUNT ( ALL col1 ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT ALL MIN( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL MIN ( DISTINCT col1 ) AS col2 FROM tab1 WHERE + + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 94 AS col1 FROM tab1 AS cor0
----
-1316
-4418
-470

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5138
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-5138
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT * FROM tab1 WHERE ( 25 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 81 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 2 + + col0 + + col1 / ( + + 70 ) * - - 95 AND ( - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT DISTINCT + col2 + + col2 DIV - 17 col0 FROM tab2 AS cor0
----
22
38
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5142
SELECT DISTINCT + col2 + + col2 / - 17 col0 FROM tab2 AS cor0
----
22
38
55

query II rowsort
SELECT + col2 + + 64 + + col0 + - + 32 * + col2 AS col0, + col1 FROM tab0 AS cor0
----
-1378
81
-159
21
-2908
1

query I rowsort
SELECT - - 41 + + 96 AS col0 FROM tab0 AS cor0
----
137
137
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5145
SELECT 53 + + 24 * + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5145
SELECT 53 + + 24 * + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 61 IN ( - 75, 93, 47 )
----

query II rowsort
SELECT DISTINCT + col2 - + col1 AS col1, col0 FROM tab0 AS cor0
----
-11
87
-34
15
98
97

query I rowsort
SELECT ALL - - 53 FROM tab1 WHERE NOT + + col1 * col2 IS NULL
----
53
53
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + col0 * + + col2 col0 FROM tab0
----
-23265
-28710
-316899

query I rowsort
SELECT DISTINCT + 36 * - col1 + - 3 FROM tab0
----
-2919
-39
-759

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

query III rowsort
SELECT * FROM tab1 WHERE - ( + + 62 ) IS NULL
----

query I rowsort
SELECT - 18 * + col0 AS col0 FROM tab0
----
-1566
-1746
-270

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 + + 4 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT - COUNT( * ) * + 19 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-5155
SELECT - COUNT ( * ) * + 19 FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT ALL - 7 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL - 7 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT 56 - - - SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5157
SELECT 56 - - - SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
-171

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( NOT - + 98 IS NULL )
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NOT + 0 + - 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT + ( SUM( col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-5161
SELECT + ( SUM ( col2 ) ) AS col2 FROM tab2
----
121

query I rowsort
SELECT - + ( - col1 ) - 15 AS col2 FROM tab1 WHERE NOT NULL >= + + col1 - + 41
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 = + + col0 + 57 ) OR ( NULL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 98 AS col0 FROM tab2 AS cor0 WHERE NOT 15 - - + 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT ALL SUM( ALL + 31 ) FROM tab1 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5165
SELECT ALL SUM ( ALL + 31 ) FROM tab1 cor0
----
93

query II rowsort
SELECT DISTINCT - col0 col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 76 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 76 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5168
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 91 IS NULL
----
3

query II rowsort
SELECT ALL - col2 AS col1, col0 AS col1 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - 53 ) + - + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT ALL ( + 75 ) * - COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL ( + 75 ) * - COUNT ( * ) FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5172
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN + ( - CAST( + col1 AS SIGNED ) ) * - 26 - col1 + + CAST( NULL AS SIGNED ) * 23 AND ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5172
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN + ( - CAST ( + col1 AS INTEGER ) ) * - 26 - col1 + + CAST ( NULL AS INTEGER ) * 23 AND ( + col0 )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - 70
----

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

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col1, - 51 FROM tab2 AS cor0
----
-1173
-51
-3080
-51
-3886
-51

query I rowsort
SELECT ALL + col0 + - + 87 + + col2 AS col2 FROM tab0 AS cor0
----
-25
10
109

query I rowsort
SELECT DISTINCT + col2 * + 35 + - 28 AS col1 FROM tab0 AS cor0
----
1617
322
3437

query I rowsort
SELECT ALL 23 * - col1 AS col2 FROM tab0
----
-1863
-23
-483

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - 37 AND + + col2
----

query I rowsort
SELECT ALL + col2 + - 65 FROM tab1 AS cor0
----
-6
3
31

query I rowsort
SELECT ALL - ( - + 17 ) AS col1 FROM tab2 AS cor0 WHERE - col2 <> col2
----
17
17
17

query I rowsort
SELECT DISTINCT + 69 + 34 FROM tab0 cor0
----
103

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + col2 * + + col0 + col2 FROM tab0 AS cor0
----
-10528
-75680
-931392

query I rowsort
SELECT ( - - 76 ) FROM tab1 AS cor0 WHERE 27 * col2 IS NOT NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5187
SELECT ALL + COUNT( * ) - + 36 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5187
SELECT ALL + COUNT ( * ) - + 36 FROM tab1 AS cor0
----
-33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + col0 + + - 50 IS NOT NULL
----

query II rowsort
SELECT ALL + - col2 AS col1, - 59 + - col0 AS col0 FROM tab0 WHERE NOT - + 56 IS NULL
----
-10
-146
-47
-74
-99
-156

query I rowsort
SELECT 61 + - - col0 + - 28 + col2 FROM tab1
----
177
180
192

query I rowsort
SELECT ALL 58 * - + col2 - - ( col1 ) FROM tab2
----
-1283
-2243
-3297

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL + - COUNT( * ) col0 FROM tab1 WHERE NOT 55 <> - 80
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5192
SELECT ALL + - COUNT ( * ) col0 FROM tab1 WHERE NOT 55 <> - 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT DISTINCT + ( - 82 ) * + 46 * - ( COUNT( * ) ) + - - COUNT( * ) FROM tab1
----
11319

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + ( - 82 ) * + 46 * - ( COUNT ( * ) ) + - - COUNT ( * ) FROM tab1
----
11319

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 97 * + - col2 * col1 col2 FROM tab1
----
-130368
-28615
-310012

query I rowsort
SELECT DISTINCT + col1 * 83 * - - col0 FROM tab0
----
100845
151641
8051

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5196
SELECT * FROM tab1 WHERE + - 92 - - 68 * + col0 / - col2 < + - col0 / col0 / col1 * - - CAST( NULL AS SIGNED ) + + 15
----

skipif mysql # not compatible
query III rowsort label-5196
SELECT * FROM tab1 WHERE + - 92 - - 68 * + col0 / - col2 < + - col0 / col0 / col1 * - - CAST ( NULL AS INTEGER ) + + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL + + SUM( col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL + + SUM ( col2 ) FROM tab2 AS cor0
----
121

query II rowsort
SELECT - col0 * - + 46 * + + col0 + + + col1, 53 AS col2 FROM tab1 AS cor0
----
119660
53
332355
53
380973
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT + col1 / - + col2 * + + col1 FROM tab0 cor0 WHERE NOT - CAST( - + 48 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5199
SELECT + col1 / - + col2 * + + col1 FROM tab0 cor0 WHERE NOT - CAST ( - + 48 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5200
SELECT + - 55 DIV - + 85 col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5200
SELECT + - 55 / - + 85 col2 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - + col0 * + 80 col2 FROM tab2 AS cor0
----
187680
394240
402000

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT + col2 IS NOT NULL )
----

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

query I rowsort
SELECT - 70 * + 79 * - col0 FROM tab1 AS cor0
----
282030
470050
503230

onlyif mysql # aggregate syntax: 
query I rowsort label-5205
SELECT + - SUM( DISTINCT + - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5205
SELECT + - SUM ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-5206
SELECT ( + - COUNT( * ) ) + + 54 col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5206
SELECT ( + - COUNT ( * ) ) + + 54 col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT ( + - 32 ) * - ( - COUNT( * ) ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT ( + - 32 ) * - ( - COUNT ( * ) ) FROM tab2
----
-96

query I rowsort
SELECT DISTINCT 33 + - + col2 FROM tab1
----
-26
-35
-63

query II rowsort
SELECT ( - - 17 ) AS col0, - col1 * + col1 FROM tab0 AS cor0
----
17
-1
17
-441
17
-6561

query I rowsort
SELECT DISTINCT col1 * - + col2 + - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 cor0 WHERE NOT - col0 * + - 91 + + col2 + + + col0 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + - col1 + 15 AS col2 FROM tab0 AS cor0
----
-6
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT - + SUM( + - 43 ) AS col2 FROM tab2 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT - + SUM ( + - 43 ) AS col2 FROM tab2 AS cor0
----
129

query II rowsort
SELECT DISTINCT col0 AS col1, col2 AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5216
SELECT DISTINCT - ( + ( + - COUNT( DISTINCT + col0 ) ) ) + - + 1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - ( + ( + - COUNT ( DISTINCT + col0 ) ) ) + - + 1 FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT + COUNT( * ) + + COUNT( DISTINCT + 57 ) FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-5217
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + 57 ) FROM tab2 AS cor0
----
4

query II rowsort
SELECT - + 82 * - + col0 + - col1 AS col1, + 8 * - + col2 AS col1 FROM tab1 AS cor0
----
4168
-768
6965
-472
7415
-544

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

query II rowsort
SELECT + + col0 + + col0, 32 AS col1 FROM tab1 AS cor0
----
102
32
170
32
182
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5221
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 * + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5221
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 * + 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + 2 col2 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col0 + + 22 + + col2 * col0 AS col0 FROM tab2 AS cor0
----
1126
2646
4447

query I rowsort
SELECT ALL 52 * - 41 AS col2 FROM tab0
----
-2132
-2132
-2132

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT MAX( ALL + + col0 ) * - 98 AS col2 FROM tab2
----
-7350

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT MAX ( ALL + + col0 ) * - 98 AS col2 FROM tab2
----
-7350

query II rowsort
SELECT ALL - col0 * - col2 - 97 AS col0, 54 + col0 AS col1 FROM tab0
----
608
69
773
141
9506
151

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT ALL + col2 DIV 99 * 45 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT ALL + col2 / 99 * 45 FROM tab1
----
0
0
0

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

query II rowsort
SELECT ALL - + col0 AS col1, + col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL + col0 * + + 84 FROM tab0 AS cor0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query II rowsort label-5232
SELECT DISTINCT - 49 AS col2, COUNT( * ) FROM tab2 cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-5232
SELECT DISTINCT - 49 AS col2, COUNT ( * ) FROM tab2 cor0
----
-49
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT ALL - CAST( + 25 AS SIGNED ) FROM tab1 AS cor0
----
-25
-25
-25

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

query II rowsort
SELECT DISTINCT - col2 * - + col2 AS col1, - col2 * + col0 * - col1 AS col0 FROM tab1
----
3481
25075
4624
290836
9216
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT ALL col0 * col1 DIV + col2 AS col2 FROM tab0
----
0
182
25

skipif mysql # not compatible
query I rowsort label-5235
SELECT ALL col0 * col1 / + col2 AS col2 FROM tab0
----
0
182
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= + col0
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5237
SELECT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT 97 * 2 IN ( - col1, col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5237
SELECT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT 97 * 2 IN ( - col1, col2 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5238
SELECT DISTINCT col1 * col1 + - + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - col2 / + col1 IS NOT NULL
----
2509
4339
5801

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT col1 * col1 + - + col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - col2 / + col1 IS NOT NULL
----
2509
4339
5801

query I rowsort
SELECT ALL - ( - col0 ) FROM tab2 cor0 WHERE NOT + col1 + - 63 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT - col1 DIV + 90 + + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5240
SELECT - col1 / + 90 + + col1 * + + col0 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + + col2 * col2 + - 0 + + + 20 AS col2 FROM tab1 AS cor0
----
3501
4644
9236

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT - MAX( DISTINCT + - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT - MAX ( DISTINCT + - col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 59 IN ( - 25 * - + col1 + + 39 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL <= + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT 24 + - 12 FROM tab2 WHERE + - CAST( - col1 AS SIGNED ) * + 29 * CAST( - col2 AS SIGNED ) IN ( 53 + + - col0 )
----

skipif mysql # not compatible
query I rowsort label-5245
SELECT 24 + - 12 FROM tab2 WHERE + - CAST ( - col1 AS INTEGER ) * + 29 * CAST ( - col2 AS INTEGER ) IN ( 53 + + - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT col2 DIV + 61 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5246
SELECT col2 / + 61 * + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + - 39 * - 84 + 99 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5248
SELECT + col2 col0 FROM tab1 WHERE - CAST( + 3 AS SIGNED ) / + col1 * 93 * + ( + col1 ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5248
SELECT + col2 col0 FROM tab1 WHERE - CAST ( + 3 AS INTEGER ) / + col1 * 93 * + ( + col1 ) IS NOT NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5249
SELECT ALL 98 DIV col1 AS col1 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL 98 / col1 AS col1 FROM tab1
----
19
2
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT - COUNT( * ) + + COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT - COUNT ( * ) + + COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - 13 AS col2, - col0 * - col2 * + ( + col0 ) FROM tab2 AS cor0
----
-13
163840
-13
326250
-13
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT - + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5252
SELECT - + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT DISTINCT - MAX( + col1 ) + - MAX( ( - 91 ) ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5253
SELECT DISTINCT - MAX ( + col1 ) + - MAX ( ( - 91 ) ) FROM tab2 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT col0 / col0 - + col0 + 90 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT DISTINCT - - 36 DIV 41 + + COUNT( * ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5255
SELECT DISTINCT - - 36 / 41 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 > - col0 * + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 21 + - - 30 - + col2 FROM tab1 AS cor0
----
-50
-59
-87

query I rowsort
SELECT - 6 - - 99 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT DISTINCT ( - - col0 ) * - col0 - - 37 * + 69 FROM tab0 AS cor0
----
-5016
-6856
2328

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL + + ( + ( COUNT( * ) ) ) - - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + + ( + ( COUNT ( * ) ) ) - - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5261
SELECT CAST( NULL AS SIGNED ) + + col1 * - - col1 / - - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

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

query II rowsort
SELECT DISTINCT ( - 83 ) AS col1, + 20 FROM tab1
----
-83
20

query I rowsort
SELECT col1 * - - ( - - 86 ) * - - 90 FROM tab0 AS cor0
----
162540
626940
7740

query I rowsort
SELECT DISTINCT - col1 * - col0 * - 16 FROM tab2 AS cor0
----
-37536
-78848
-80400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT - - MAX( ALL + col2 ) DIV - 46 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5265
SELECT - - MAX ( ALL + col2 ) / - 46 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-5266
SELECT ALL + 11 * col2 DIV - - col1, + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1089
-99
5
-10
6
-47

skipif mysql # not compatible
query II rowsort label-5266
SELECT ALL + 11 * col2 / - - col1, + ( - col2 ) AS col1 FROM tab0 AS cor0
----
1089
-99
5
-10
6
-47

query I rowsort
SELECT - col0 * ( + 52 ) AS col1 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - - COUNT( * ) * - ( + COUNT( * ) ) + - MAX( + 12 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - - COUNT ( * ) * - ( + COUNT ( * ) ) + - MAX ( + 12 ) FROM tab1 AS cor0
----
-21

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

query I rowsort
SELECT 37 * ( + col2 ) * col0 AS col2 FROM tab2
----
160950
39146
94720

query II rowsort
SELECT ALL - col0, + col2 * - + 52 AS col1 FROM tab0 AS cor0
----
-15
-2444
-87
-520
-97
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5272
SELECT - ( + col1 ) * + CAST( - 7 AS SIGNED ) FROM tab0 AS cor0
----
147
567
7

skipif mysql # not compatible
query I rowsort label-5272
SELECT - ( + col1 ) * + CAST ( - 7 AS INTEGER ) FROM tab0 AS cor0
----
147
567
7

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT + + COUNT( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

skipif mysql # not compatible
query II rowsort label-5273
SELECT + + COUNT ( * ) AS col1, 7 FROM tab1 AS cor0
----
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT + - 67 * - + COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5274
SELECT + - 67 * - + COUNT ( * ) FROM tab2 AS cor0
----
201

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5275
SELECT ALL CAST( NULL AS DECIMAL ) * + col0 + col2 + - - col2 + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 * - - col2 FROM tab0 cor0
----
100
2209
9801

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5277
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( ( - + 91 ) ) NOT BETWEEN CAST( - col2 AS DECIMAL ) + + col1 AND col0
----
-97

skipif mysql # not compatible
query I rowsort label-5277
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( ( - + 91 ) ) NOT BETWEEN CAST ( - col2 AS REAL ) + + col1 AND col0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5278
SELECT + 42 * + col2 + 35 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5279
SELECT ( - col1 ) + 30 AS col2, col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-21
0
-37
0
-47
0

skipif mysql # not compatible
query II rowsort label-5279
SELECT ( - col1 ) + 30 AS col2, col2 / col1 AS col1 FROM tab2 AS cor0
----
-21
0
-37
0
-47
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT DISTINCT + + col2 DIV + + 19 col1 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5280
SELECT DISTINCT + + col2 / + + 19 col1 FROM tab2 cor0
----
1
2
3

query I rowsort
SELECT ALL + 15 * - - col2 + + - 93 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT - SUM( - 39 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
117

skipif mysql # not compatible
query I rowsort label-5282
SELECT - SUM ( - 39 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
117

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5283
SELECT ALL 53 DIV + 14 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL
3
NULL
3
NULL

skipif mysql # not compatible
query II rowsort label-5283
SELECT ALL 53 / + 14 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL
3
NULL
3
NULL

query I rowsort
SELECT + 73 * + col1 FROM tab2
----
3723
4891
5621

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ALL - - col2 + - col1 DIV col0 * - + col1 AS col0 FROM tab0 AS cor0
----
10
452
99

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL - - col2 + - col1 / col0 * - + col1 AS col0 FROM tab0 AS cor0
----
10
452
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT + CAST( NULL AS SIGNED ) + - + col0 - + col0 * col0 * + - col0 FROM tab2 AS cor0 WHERE - 75 = - col2 + 22
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT + CAST ( NULL AS INTEGER ) + - + col0 - + col0 * col0 * + - col0 FROM tab2 AS cor0 WHERE - 75 = - col2 + 22
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * + col1 * + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5289
SELECT DISTINCT + col1 DIV 58 + 35 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-64
25

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT + col1 / 58 + 35 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-64
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN 25 AND + col0 AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

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

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 AS cor0 WHERE - 80 BETWEEN - col2 / + col2 + + + 2 AND - col2 * - col1 + - + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - MAX( DISTINCT + 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - MAX ( DISTINCT + 29 ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( - col1 * 38 IS NOT NULL )
----

query I rowsort
SELECT + 7 FROM tab0 AS cor0 WHERE NOT + col2 - + col0 >= - + col1
----
7

query I rowsort
SELECT + - ( - 68 ) * + + 86 - - col0 AS col2 FROM tab2 AS cor0
----
5894
5912
5923

query II rowsort
SELECT DISTINCT + col1 AS col2, + 12 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
12
47
12
5
12

query I rowsort
SELECT ( - col1 ) * + ( + + col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5300
SELECT ALL - 9 * col1 * + + CAST( NULL AS SIGNED ) * ( + col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT ALL SUM( ALL + 28 ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-5301
SELECT ALL SUM ( ALL + 28 ) AS col0 FROM tab0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5302
SELECT ALL - CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5302
SELECT ALL - CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query II rowsort
SELECT - 87, + col0 FROM tab2
----
-87
46
-87
64
-87
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5304
SELECT ALL 32 AS col1, COUNT( * ) FROM tab2
----
32
3

skipif mysql # not compatible
query II rowsort label-5304
SELECT ALL 32 AS col1, COUNT ( * ) FROM tab2
----
32
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 17 + + 54 IN ( col0, - col0, 17, - - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5306
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col2, - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5306
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col2, - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT ALL - - 51 * - COUNT( * ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - - 51 * - COUNT ( * ) FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT col2 * col1 + + 17 AS col0 FROM tab0 AS cor0
----
116
227
3824

onlyif mysql # DIV for integer division: 
query II rowsort label-5309
SELECT ALL - col0 AS col1, - ( + col1 ) + - + col2 + col0 DIV + - col1 + + col2 + - col1 - - - col2 - + col0 + + col2 * ( - col2 ) * + + ( + 71 ) FROM tab0 AS cor0
----
-15
-157063
-87
-7243
-97
-696166

skipif mysql # not compatible
query II rowsort label-5309
SELECT ALL - col0 AS col1, - ( + col1 ) + - + col2 + col0 / + - col1 + + col2 + - col1 - - - col2 - + col0 + + col2 * ( - col2 ) * + + ( + 71 ) FROM tab0 AS cor0
----
-15
-157063
-87
-7243
-97
-696166

query I rowsort
SELECT ALL - 39 + + col1 AS col0 FROM tab0 AS cor0
----
-18
-38
42

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

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - + 18 FROM tab2 WHERE NULL IS NULL
----
33
49
59

query I rowsort
SELECT DISTINCT + ( 42 ) FROM tab2
----
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5317
SELECT - 32 + CAST( NULL AS SIGNED ) + - - col2 / 28 / - + col2 + 67 + + 22 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5317
SELECT - 32 + CAST ( NULL AS INTEGER ) + - - col2 / 28 / - + col2 + 67 + + 22 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 69 + + 92 FROM tab0
----
161

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 66 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 99 ) + + col0 BETWEEN - + col0 * - 14 * col2 - - col2 + - ( - + col2 ) + - 18 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT + 50 + + + 23 + + + 21 * + + COUNT( * ) FROM tab0 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-5321
SELECT + 50 + + + 23 + + + 21 * + + COUNT ( * ) FROM tab0 AS cor0
----
136

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NULL >= - col1
----

query I rowsort
SELECT 37 + + col0 FROM tab2 AS cor0
----
101
112
83

query I rowsort
SELECT ALL - col2 - + - col2 * + + col2 AS col0 FROM tab0
----
2162
90
9702

onlyif mysql # DIV for integer division: 
query I rowsort label-5325
SELECT - 77 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + SUM( + 30 ) AS col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5326
SELECT + SUM ( + 30 ) AS col2 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT ALL + 21 FROM tab2 WHERE NULL >= col1 * - - 15 / CAST( NULL AS SIGNED ) + + + 13
----

skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL + 21 FROM tab2 WHERE NULL >= col1 * - - 15 / CAST ( NULL AS INTEGER ) + + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - ( - + MAX( + + col0 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - ( - + MAX ( + + col0 ) ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - + ( + + 35 ) - + - MIN( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-5329
SELECT - + ( + + 35 ) - + - MIN ( + col0 ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 WHERE 9 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5330
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 WHERE 9 + - col1 IS NOT NULL
----
3

query II rowsort
SELECT ALL - ( + ( + 50 ) ), + col1 FROM tab1
----
-50
14
-50
47
-50
5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col1 <= - 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 50 ) FROM tab2
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + ( COUNT( * ) ) * + - COUNT( * ) * + 35 FROM tab2 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-5334
SELECT + ( COUNT ( * ) ) * + - COUNT ( * ) * + 35 FROM tab2 AS cor0
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + ( + + MAX( + + col1 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5335
SELECT + ( + + MAX ( + + col1 ) ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT DISTINCT ( + MAX( DISTINCT + 63 ) ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT ( + MAX ( DISTINCT + 63 ) ) FROM tab2
----
63

query I rowsort
SELECT ALL + - col0 + + - 42 * col1 AS col1 FROM tab2 AS cor0
----
-2188
-2889
-3298

query I rowsort
SELECT + 53 + col1 FROM tab0 cor0
----
134
54
74

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

query I rowsort
SELECT DISTINCT - col0 / 12 * - ( - col1 ) + + - ( + - 3 ) AS col0 FROM tab1 AS cor0 WHERE - col2 >= ( 19 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 92 * 9 + + 59 < - + 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 42 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 43 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5343
SELECT ALL - CAST( - + 8 AS SIGNED ) FROM tab1 AS cor0
----
8
8
8

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

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT 69 NOT BETWEEN + + col0 AND + col1
----

query I rowsort
SELECT DISTINCT - col1 + + col2 + + col1 * - + col1 FROM tab1
----
-114
-2188
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5346
SELECT ALL + ( + col1 ), - CAST( 86 AS SIGNED ) AS col2 FROM tab2
----
51
-86
67
-86
77
-86

skipif mysql # not compatible
query II rowsort label-5346
SELECT ALL + ( + col1 ), - CAST ( 86 AS INTEGER ) AS col2 FROM tab2
----
51
-86
67
-86
77
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 + + 89 AS col1 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - COUNT( * ) * 24 col2 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5349
SELECT DISTINCT - COUNT ( * ) * 24 col2 FROM tab1
----
-72

query III rowsort
SELECT ALL * FROM tab0 WHERE - 13 NOT IN ( + - 81, 23 ) OR NOT - col1 / + ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5351
SELECT ALL - SUM( ALL + + col1 ) + + 45 AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - SUM ( ALL + + col1 ) + + 45 AS col2 FROM tab0
----
-58

query I rowsort
SELECT + col1 * 83 * + 57 + - 5 AS col2 FROM tab2 AS cor0
----
241276
316972
364282

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT ALL CAST( NULL AS SIGNED ) * + - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT + CAST( NULL AS SIGNED ) * - - col0 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 39 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 16 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + 26 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5358
SELECT ALL - COUNT( * ) / - - AVG ( DISTINCT + col1 ) + + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - col2 col2 FROM tab1 cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-5360
SELECT ALL 6 AS col2, + ( 3 ) + COUNT( * ) col0 FROM tab2 AS cor0
----
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5360
SELECT ALL 6 AS col2, + ( 3 ) + COUNT ( * ) col0 FROM tab2 AS cor0
----
6
6

query I rowsort
SELECT ALL - ( + - col0 ) FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT - ( + + COUNT( * ) ) * ( - - COUNT( * ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-5362
SELECT - ( + + COUNT ( * ) ) * ( - - COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5363
SELECT - 4 * + CAST( + col2 AS SIGNED ) FROM tab2
----
-160
-232
-92

skipif mysql # not compatible
query I rowsort label-5363
SELECT - 4 * + CAST ( + col2 AS INTEGER ) FROM tab2
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MIN( - 35 ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-5364
SELECT MIN ( - 35 ) FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT MIN( DISTINCT + - ( - 94 ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5365
SELECT MIN ( DISTINCT + - ( - 94 ) ) FROM tab2
----
94

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

query I rowsort
SELECT 62 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + + col1 + - - col2 + + 83 FROM tab2 AS cor0 WHERE NULL BETWEEN 72 - + 11 AND 31 * - 29
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 NOT BETWEEN + 47 * - col0 / - col0 - + 27 * - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5370
SELECT ( CAST( - + ( COUNT( * ) ) AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5370
SELECT ( CAST ( - + ( COUNT ( * ) ) AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + + 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 + + 19 col0 FROM tab1 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + 21 + + col1 AS col0 FROM tab1 AS cor0
----
26
35
68

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT + 11 - - - MAX( ALL col0 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5375
SELECT + 11 - - - MAX ( ALL col0 ) FROM tab1 AS cor0
----
-80

query I rowsort
SELECT + ( - 50 ) - col0 AS col1 FROM tab1
----
-101
-135
-141

query II rowsort
SELECT DISTINCT col0, + 64 FROM tab1
----
51
64
85
64
91
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT ALL + 81 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT ALL MAX( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL MAX ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5380
SELECT DISTINCT 97 - + - SUM( CAST( NULL AS DECIMAL ) ) - - COUNT( + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT 97 - + - SUM ( CAST ( NULL AS REAL ) ) - - COUNT ( + col0 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 95 + + col0 FROM tab1
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) + - + MIN( + - 30 ) AS col1 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) + - + MIN ( + - 30 ) AS col1 FROM tab1 AS cor0
----
33

query I rowsort
SELECT DISTINCT - 11 / - - 22 - - ( col2 ) FROM tab0 cor0 WHERE NOT - col0 * + ( col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5384
SELECT DISTINCT ( - - col2 ) + + 34 DIV + 71 * 35 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT ( - - col2 ) + + 34 / + 71 * 35 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + + 25 - - col1 FROM tab1 AS cor0
----
30
39
72

query III rowsort
SELECT * FROM tab0 WHERE NOT 39 <= - col2 + - + 57
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5387
SELECT ALL ( COUNT( * ) ) * 58 DIV - 77 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-5387
SELECT ALL ( COUNT ( * ) ) * 58 / - 77 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT 30 * 88 * + - col1 AS col2 FROM tab1
----
-124080
-13200
-36960

query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 FROM tab2 AS cor0 WHERE NOT ( + + 78 ) IS NULL
----
-2555
-4414
-5865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5390
SELECT - ( COUNT( * ) ) DIV + + 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5390
SELECT - ( COUNT ( * ) ) / + + 70 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <> col1 + 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT ALL 30 DIV + + col2 AS col1 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT MIN( + col2 ) AS col1 FROM tab0 WHERE - + 38 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT MIN ( + col2 ) AS col1 FROM tab0 WHERE - + 38 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT ALL + CAST( NULL AS SIGNED ) * - + ( col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + ( + + 17 ) FROM tab1 WHERE NULL > 21
----

query I rowsort
SELECT + ( + ( + col2 ) ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT COUNT( * ) * + + 97 AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-5397
SELECT COUNT ( * ) * + + 97 AS col2 FROM tab1
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5398
SELECT DISTINCT - SUM( ALL CAST( + col2 AS SIGNED ) ) + - COUNT( * ) - + COUNT( ALL - col1 ) * - 92 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
704

skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - SUM ( ALL CAST ( + col2 AS INTEGER ) ) + - COUNT ( * ) - + COUNT ( ALL - col1 ) * - 92 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
704

query II rowsort
SELECT ALL col2 + + - 81 * - col1 AS col0, col0 AS col1 FROM tab1 AS cor0
----
1230
51
3875
91
464
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5400
SELECT ALL COUNT( * ) + + COUNT( * ) / AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL COUNT ( * ) + + COUNT ( * ) / AVG ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5401
SELECT + col2 DIV + ( col0 ) * - + col2 AS col2 FROM tab2
----
0
0
0

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + - - col2 + + 68 * + col0 NOT IN ( + + 75, ( + col2 ) / - col1, - + col1, + - 70 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 + + 99 + - + col1 col0 FROM tab2
----
71
81
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - 31 DIV 89 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5404
SELECT - 31 / 89 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 * 78 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT DISTINCT - 66 DIV col1 * + - col0 + - col1 - + col1 DIV - + col2 AS col2 FROM tab1 AS cor0
----
1100
190
44

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT - 66 / col1 * + - col0 + - col1 - + col1 / - + col2 AS col2 FROM tab1 AS cor0
----
1100
190
44

query I rowsort
SELECT ALL - + col0 + + 78 FROM tab0 AS cor0
----
-19
-9
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT - + COUNT( * ) + SUM( + col1 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-5408
SELECT - + COUNT ( * ) + SUM ( + col1 ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT - - col0 AS col1 FROM tab2 AS cor0 WHERE 98 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT - + COUNT( * ) + + - 27 + - - MIN( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT - + COUNT ( * ) + + - 27 + - - MIN ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT 77 + - COUNT( * ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5411
SELECT 77 + - COUNT ( * ) FROM tab0 AS cor0
----
74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - col0 + + col1 = + 79
----

query I rowsort
SELECT - 48 AS col2 FROM tab0 AS cor0 WHERE - 49 <= + ( - - col2 )
----
-48
-48
-48

query II rowsort
SELECT 84 col1, col2 * + col1 * + ( 90 ) * + + 55 FROM tab1
----
84
1460250
84
15820200
84
6652800

query I rowsort
SELECT DISTINCT col1 - col0 + - ( col2 ) FROM tab0
----
-195
-76
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT ALL 54 - - MIN( DISTINCT + col2 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL 54 - - MIN ( DISTINCT + col2 ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 46 - + + ( col2 ) AS col0 FROM tab2
----
-12
23
6

query I rowsort
SELECT col2 * 24 FROM tab2
----
1392
552
960

query I rowsort
SELECT - col1 - + 79 FROM tab1
----
-126
-84
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT 5 - + COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-5421
SELECT 5 - + COUNT ( * ) FROM tab1
----
2

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 < ( 66 * col0 )
----

query I rowsort
SELECT DISTINCT col1 * - 5 AS col2 FROM tab0
----
-105
-405
-5

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < 14
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5425
SELECT ALL - COUNT( * ), - COUNT( * ) col0 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5425
SELECT ALL - COUNT ( * ), - COUNT ( * ) col0 FROM tab0 AS cor0
----
-3
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT DISTINCT + 80 * - COUNT( * ) * - MAX( + col0 ) AS col1 FROM tab1 AS cor0
----
21840

skipif mysql # not compatible
query I rowsort label-5427
SELECT DISTINCT + 80 * - COUNT ( * ) * - MAX ( + col0 ) AS col1 FROM tab1 AS cor0
----
21840

query I rowsort
SELECT 82 FROM tab1 AS cor0 WHERE NOT + col2 = + 80
----
82
82
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * - ( - - ( 86 ) ) col2 FROM tab0 cor0
----
-6450
-6450
-6450

query I rowsort
SELECT DISTINCT 41 * + ( - 87 ) AS col0 FROM tab1
----
-3567

query I rowsort
SELECT DISTINCT - col0 + 62 AS col1 FROM tab2
----
-13
-2
16

query I rowsort
SELECT ALL - col2 + col0 * + col1 FROM tab1 AS cor0 WHERE NULL >= 27
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + ( - 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5434
SELECT DISTINCT + 29 DIV + col1 - col2 + - col1 * - + col0 col2 FROM tab2 AS cor0
----
2323
4888
4967

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT DISTINCT + 29 / + col1 - col2 + - col1 * - + col0 col2 FROM tab2 AS cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT 44 + - ( - + COUNT( * ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5435
SELECT 44 + - ( - + COUNT ( * ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
50

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( - 81, col0, col2 ) )
----

query I rowsort
SELECT + col0 - col0 + - col0 * + + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN ( col1 ) AND col2 - + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5440
SELECT DISTINCT - CAST( col0 AS SIGNED ) - + - ( - - col1 ) DIV - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - + - ( - - col1 ) / - col0 AS col2 FROM tab2 AS cor0
----
-47
-65
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5441
SELECT DISTINCT + - COUNT( * ), 9 AS col2 FROM tab1 AS cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-5441
SELECT DISTINCT + - COUNT ( * ), 9 AS col2 FROM tab1 AS cor0
----
-3
9

query I rowsort
SELECT - col0 * - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-5443
SELECT - col2 + + + col2 + + + col0 + - 5 DIV - - col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-5443
SELECT - col2 + + + col2 + + + col0 + - 5 / - - col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + 36 - - col1 FROM tab0
----
117
37
57

query II rowsort
SELECT 8 * - col1 + - - col1 + + - 60, + 69 AS col0 FROM tab1
----
-158
69
-389
69
-95
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT DISTINCT COUNT( * ) - - 85 col0 FROM tab0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT DISTINCT COUNT ( * ) - - 85 col0 FROM tab0
----
88

query I rowsort
SELECT - col1 * + + 10 AS col2 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT - MIN( ALL - 86 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5448
SELECT - MIN ( ALL - 86 ) AS col1 FROM tab0 AS cor0
----
86

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <> 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT + 50 * + COUNT( * ) FROM tab0, tab2 AS cor0
----
450

skipif mysql # not compatible
query I rowsort label-5450
SELECT + 50 * + COUNT ( * ) FROM tab0, tab2 AS cor0
----
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab2, tab2 cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query II rowsort
SELECT - col2, 68 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 < - 57 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5453
SELECT ALL CAST( + - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL CAST ( + - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT DISTINCT + COUNT( * ) * + 40 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT + COUNT ( * ) * + 40 FROM tab2 AS cor0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT + 66 * + 65 * COUNT( - 51 ) AS col1 FROM tab0 AS cor0
----
12870

skipif mysql # not compatible
query I rowsort label-5455
SELECT + 66 * + 65 * COUNT ( - 51 ) AS col1 FROM tab0 AS cor0
----
12870

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT 45 * - 73 * - 43 / - col1 / + ( col2 ) IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT - col1 DIV - 29 AS col0 FROM tab1 AS cor0
----
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5458
SELECT ALL * FROM tab0 WHERE NOT - CAST( + 50 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5458
SELECT ALL * FROM tab0 WHERE NOT - CAST ( + 50 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5459
SELECT DISTINCT + col2, 63 DIV - col1 FROM tab2
----
23
-1
40
0
58
0

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT + col2, 63 / - col1 FROM tab2
----
23
-1
40
0
58
0

query II rowsort
SELECT DISTINCT 97 AS col0, - col1 FROM tab1
----
97
-14
97
-47
97
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT MIN( DISTINCT 53 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5461
SELECT MIN ( DISTINCT 53 ) FROM tab2
----
53

query I rowsort
SELECT - 47 FROM tab0 WHERE + + col2 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT COUNT( * ) + + SUM( col0 ) FROM tab0
----
202

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT COUNT ( * ) + + SUM ( col0 ) FROM tab0
----
202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5464
SELECT + - col0 * 53 + - col1 FROM tab2 cor0 WHERE 77 NOT BETWEEN NULL AND + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5464
SELECT + - col0 * 53 + - col1 FROM tab2 cor0 WHERE 77 NOT BETWEEN NULL AND + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 19 * - + ( 50 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT SUM( 18 ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5466
SELECT SUM ( 18 ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5467
SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
2021
NULL
4257
NULL
430
NULL

skipif mysql # not compatible
query II rowsort label-5467
SELECT DISTINCT 43 * + col2 AS col1, 42 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
2021
NULL
4257
NULL
430
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT ALL COUNT( * ) + + - 87 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5468
SELECT ALL COUNT ( * ) + + - 87 FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5469
SELECT ALL + COUNT( DISTINCT col0 ) + 51 + + 56 FROM tab2 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL + COUNT ( DISTINCT col0 ) + 51 + + 56 FROM tab2 AS cor0
----
110

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT MIN( ALL - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( col2 ) * - ( + col0 ) + - col2 AND - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5470
SELECT MIN ( ALL - ( - col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN + ( col2 ) * - ( + col0 ) + - col2 AND - - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT ALL - - 75 FROM tab0 AS cor0 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5471
SELECT ALL - - 75 FROM tab0 AS cor0 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT - COUNT( * ) - - ( 12 ) FROM tab1 AS cor0 WHERE 29 + col1 * 43 + 90 * + + col0 / - col0 IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-5472
SELECT - COUNT ( * ) - - ( 12 ) FROM tab1 AS cor0 WHERE 29 + col1 * 43 + 90 * + + col0 / - col0 IS NULL
----
12

query I rowsort
SELECT ALL + col1 + + + col1 + + col2 + - ( - col2 ) AS col1 FROM tab1 AS cor0
----
128
220
230

query I rowsort
SELECT ALL + col2 - - 91 FROM tab0 cor0
----
101
138
190

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT COUNT( * ) * - 70 FROM tab2, tab1 AS cor0
----
-630

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT COUNT ( * ) * - 70 FROM tab2, tab1 AS cor0
----
-630

query II rowsort
SELECT DISTINCT - col1 AS col1, col2 + ( - + 29 ) AS col1 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5479
SELECT ALL COUNT( * ) col2, - 30 AS col2 FROM tab1
----
3
-30

skipif mysql # not compatible
query II rowsort label-5479
SELECT ALL COUNT ( * ) col2, - 30 AS col2 FROM tab1
----
3
-30

query I rowsort
SELECT ( - - 97 ) * 39 FROM tab1
----
3783
3783
3783

onlyif mysql # DIV for integer division: 
query I rowsort label-5481
SELECT 56 * 3 DIV + col2 FROM tab0
----
1
16
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT 56 * 3 / + col2 FROM tab0
----
1
16
3

query I rowsort
SELECT - ( 75 ) * + col2 * col0 AS col1 FROM tab2 WHERE NOT ( + col0 * + 84 IS NULL )
----
-192000
-326250
-79350

query I rowsort
SELECT - col1 * 37 FROM tab0
----
-2997
-37
-777

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col2 col0 FROM tab2
----
17
23
24

query I rowsort
SELECT DISTINCT - col2 * 54 + + col0 AS col0 FROM tab1
----
-3101
-3581
-5133

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - COUNT( * ) col0 FROM tab2 WHERE + 28 NOT BETWEEN ( col0 ) AND ( NULL )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT - COUNT ( * ) col0 FROM tab2 WHERE + 28 NOT BETWEEN ( col0 ) AND ( NULL )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * COUNT( * ) col2 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5487
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * COUNT ( * ) col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL - ( COUNT( * ) ) + - 30 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - ( COUNT ( * ) ) + - 30 FROM tab0
----
-33

query I rowsort
SELECT 99 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( 74 ) ) AS col2 FROM tab2
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( 75 ) col0 FROM tab2
----
3450
4800
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - col1 * - col2 - - col2 DIV col0 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-5492
SELECT - col1 * - col2 - - col2 / col0 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 43 FROM tab1 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 74 * 14 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 34 * - col0 = NULL
----

query I rowsort
SELECT 67 FROM tab2 WHERE + 1 IS NOT NULL
----
67
67
67

query I rowsort
SELECT ALL - 89 * + col1 AS col1 FROM tab1
----
-1246
-4183
-445

query I rowsort
SELECT ALL 2 * col1 AS col0 FROM tab0
----
162
2
42

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

query I rowsort
SELECT - 67 * + col1 FROM tab1 WHERE NOT col1 = 19
----
-3149
-335
-938

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL >= - CAST( + col1 AS SIGNED ) * 84 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL >= - CAST ( + col1 AS INTEGER ) * 84 + + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 70 + col1 <> ( - 77 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5504
SELECT CAST( NULL AS SIGNED ) + col2 / - col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT 5 + + col0 * col1 FROM tab2
----
2351
4933
5030

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 44 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + col1 ) + ( + 44 ) <= + col2 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 53 * + col1 + col1 AS col1 FROM tab1
----
-2444
-260
-728

query I rowsort
SELECT ( - col0 ) * + 2 FROM tab1
----
-102
-170
-182

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + ( 73 ) / col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + 10 AS col1 FROM tab0 AS cor0
----
109
20
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT ALL + COUNT( * ) + - COUNT( ALL 4 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5513
SELECT ALL + COUNT ( * ) + - COUNT ( ALL 4 ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT + 85 + - COUNT( * ) * 45 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-5515
SELECT + 85 + - COUNT ( * ) * 45 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT col2 + col1 * + 56 FROM tab2 AS cor0
----
2879
3810
4352

query I rowsort
SELECT DISTINCT - ( 21 ) * + 45 AS col2 FROM tab0
----
-945

query I rowsort
SELECT col2 FROM tab1 WHERE col2 >= + col0 * - 63 + + col2
----
59
68
96

query I rowsort
SELECT DISTINCT 38 * col0 AS col0 FROM tab0
----
3306
3686
570

query I rowsort
SELECT DISTINCT 64 FROM tab2 AS cor0 CROSS JOIN tab2
----
64

query I rowsort
SELECT - + col1 - 71 FROM tab2 AS cor0
----
-122
-138
-148

query I rowsort
SELECT DISTINCT - col2 + 38 AS col0 FROM tab1 AS cor0
----
-21
-30
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5523
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN 71 * col0 AND + CAST( + 50 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5523
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN 71 * col0 AND + CAST ( + 50 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( col0 ) ) col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + SUM( DISTINCT - 8 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-5525
SELECT + SUM ( DISTINCT - 8 ) FROM tab2
----
-8

query I rowsort
SELECT ALL col1 * 33 AS col0 FROM tab2
----
1683
2211
2541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND - col0 * CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5527
SELECT DISTINCT * FROM tab2 WHERE ( col0 ) BETWEEN NULL AND - col0 * CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT 30 AS col0 FROM tab0 WHERE NOT - col0 > + col2
----
30
30
30

query I rowsort
SELECT DISTINCT col0 * - 11 AS col0 FROM tab1
----
-1001
-561
-935

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 19 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * - 68 AS col2 FROM tab1
----
-3196
-340
-952

query I rowsort
SELECT 25 * - - col0 FROM tab1
----
1275
2125
2275

query I rowsort
SELECT - 45 + - col1 * col2 FROM tab1 WHERE NOT col0 * + col0 <> col1 * 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT 13 * COUNT( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5534
SELECT 13 * COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

query I rowsort
SELECT ALL 67 * col0 AS col1 FROM tab1 WHERE NOT + - 50 - col0 / - 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT + MIN( ALL + 2 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5537
SELECT + MIN ( ALL + 2 ) AS col0 FROM tab0
----
2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( 35 ) < ( NULL )
----

query I rowsort
SELECT ALL + + 61 + + 37 - - 74 * + col1 * + col1 AS col2 FROM tab0 AS cor0
----
172
32732
485612

query II rowsort
SELECT - - col2, col1 + - col2 + 62 * 36 AS col1 FROM tab0 AS cor0
----
10
2243
47
2266
99
2134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT DISTINCT + MAX( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-5543
SELECT DISTINCT + MAX ( - col2 ) AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
-23

query I rowsort
SELECT ALL + - col0 + + + col2 - col0 * 75 FROM tab2 AS cor0
----
-3473
-4824
-5642

query I rowsort
SELECT ALL col2 + - + col0 + + - col0 FROM tab1 cor0
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT + + COUNT( * ) + - + 72 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT + + COUNT ( * ) + - + 72 FROM tab1 AS cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 17 + + 79 * 77 col2 FROM tab0 AS cor0
----
4434
4604
5828

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5548
SELECT DISTINCT CAST( + - ( - 26 ) AS SIGNED ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT CAST ( + - ( - 26 ) AS INTEGER ) FROM tab0
----
26

query I rowsort
SELECT + col2 * col1 FROM tab0 WHERE ( col1 ) = col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 23 * - col2 >= ( 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + 50 + + MAX( ALL - - 55 ) AS col1 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-5551
SELECT + 50 + + MAX ( ALL - - 55 ) AS col1 FROM tab2
----
105

query I rowsort
SELECT - col0 * + - col1 * - col1 AS col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT DISTINCT + ( - MIN( + + col0 ) ) + - MAX( 84 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5553
SELECT DISTINCT + ( - MIN ( + + col0 ) ) + - MAX ( 84 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT + COUNT( * ) DIV + 76 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5554
SELECT + COUNT ( * ) / + 76 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5555
SELECT - CAST( 6 AS SIGNED ) AS col2, + 70 + + col1 DIV col2 FROM tab0 AS cor0
----
-6
70
-6
71
-6
72

skipif mysql # not compatible
query II rowsort label-5555
SELECT - CAST ( 6 AS INTEGER ) AS col2, + 70 + + col1 / col2 FROM tab0 AS cor0
----
-6
70
-6
71
-6
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + - ( ( - - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5557
SELECT + - ( ( - - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 / + ( - col1 ) ) < NULL
----

query I rowsort
SELECT ALL col0 - - - ( - ( 61 ) ) AS col1 FROM tab2 cor0
----
107
125
136

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE ( col1 + col1 ) IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - 59 * - + col0 - col0 DIV ( col2 ) FROM tab1 AS cor0
----
3009
5014
5368

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - 59 * - + col0 - col0 / ( col2 ) FROM tab1 AS cor0
----
3009
5014
5368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + 94 ) < NULL
----

query I rowsort
SELECT ALL - - col2 - + col1 + + col1 AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + 48 * - - 13 * + col1 AS col0 FROM tab0 AS cor0
----
13104
50544
624

query I rowsort
SELECT DISTINCT ( - - col2 ) FROM tab0 AS cor0 WHERE + 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE CAST( - 18 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT - col0 AS col0 FROM tab2 AS cor0 WHERE CAST ( - 18 AS INTEGER ) < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5567
SELECT DISTINCT 20 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5567
SELECT DISTINCT 20 / - col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 / - - 66 + - - col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT ALL + 33 * - MAX( DISTINCT + 42 ) FROM tab1
----
-1386

skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL + 33 * - MAX ( DISTINCT + 42 ) FROM tab1
----
-1386

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 * + col2 col0 FROM tab1
----
59
5015
68
6188
96
4896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5571
SELECT ALL - col0 * 99 FROM tab2 WHERE ( ( 62 ) IN ( col0 + CAST( NULL AS SIGNED ) / - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - col0 * 99 FROM tab2 WHERE ( ( 62 ) IN ( col0 + CAST ( NULL AS INTEGER ) / - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5572
SELECT DISTINCT - col2 DIV - 74 AS col2, + CAST( NULL AS SIGNED ) * + 41 + - - col1 - - col1 col1 FROM tab1
----
0
NULL
1
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5572
SELECT DISTINCT - col2 / - 74 AS col2, + CAST ( NULL AS INTEGER ) * + 41 + - - col1 - - col1 col1 FROM tab1
----
0
NULL
1
NULL

query I rowsort
SELECT - col2 * + 48 FROM tab0 cor0
----
-2256
-4752
-480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT ( - + 78 ) * + col1 FROM tab1 AS cor0
----
-1092
-3666
-390

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 NOT BETWEEN ( + + col1 * + col1 * - col2 ) AND col2
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5577
SELECT ALL 93 DIV ( + + COUNT( + + col2 ) ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL 93 / ( + + COUNT ( + + col2 ) ) FROM tab1
----
31

query I rowsort
SELECT ALL - + 41 - + 64 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-105
-105
-105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + - col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

query I rowsort
SELECT ALL - + AVG ( ALL - col2 ) AS col1 FROM tab1 AS cor0 WHERE NULL >= - 57
----
NULL

query I rowsort
SELECT + 4 + + 90 FROM tab1 AS cor0 WHERE - 2 + + col2 + + - col1 * + - col1 < + + col2 + - - 53
----
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5583
SELECT ALL + CAST( - + 91 AS SIGNED ) + + - col0 DIV + col0 FROM tab0 AS cor0
----
-92
-92
-92

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

query I rowsort
SELECT - ( - col2 ) * + col2 * - 59 AS col0 FROM tab0 AS cor0
----
-130331
-578259
-5900

onlyif mysql # aggregate syntax: 
query I rowsort label-5585
SELECT COUNT( * ) - - SUM( ALL - - 11 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-5585
SELECT COUNT ( * ) - - SUM ( ALL - - 11 ) FROM tab2
----
36

query I rowsort
SELECT + col2 - + 10 + col2 + - ( - 48 ) AS col0 FROM tab0
----
132
236
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 <> + col1 * - ( + - col2 ) + - 25 + - + 92
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 79 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT 47 + - + COUNT( * ) AS col0 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5590
SELECT 47 + - + COUNT ( * ) AS col0 FROM tab2
----
44

query I rowsort
SELECT ALL - 15 FROM tab0 WHERE ( + - col1 ) <= - col1
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) + + + col0 FROM tab0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 7 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 26 + + col2 FROM tab1 cor0
----
122
85
94

query I rowsort
SELECT + + col2 * - col0 * - + col2 * - - 16 + + 5 FROM tab2 AS cor0
----
1638405
389349
4036805

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 BETWEEN ( + - 13 * + ( - - 64 ) ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 57 ) col1 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT 43 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL + - 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT 16 * MAX( - 88 * - 79 ) col0 FROM tab2 WHERE NOT + 55 * - 51 * col2 / + col0 * + col0 + + 83 / - + col1 * - col1 + 76 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5601
SELECT 16 * MAX ( - 88 * - 79 ) col0 FROM tab2 WHERE NOT + 55 * - 51 * col2 / + col0 * + col0 + + 83 / - + col1 * - col1 + 76 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5603
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( 84 )
----

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( 84 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5605
SELECT ALL + - SUM( ( + col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5605
SELECT ALL + - SUM ( ( + col2 ) ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - 88 * - col1 * - + 37 FROM tab1 AS cor0
----
-153032
-16280
-45584

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT ( - SUM( - 55 ) ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT ( - SUM ( - 55 ) ) FROM tab2 AS cor0
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 * - 69 col0 FROM tab2 AS cor0
----
-5037
-5037
-5037

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5609
SELECT ALL 63 * AVG ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT ALL 63 * AVG ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * - - ( - col2 ) FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + ( - + col1 ) * col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL + col0 * - 80 * + col0 AS col2 FROM tab0 AS cor0
----
-18000
-605520
-752720

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT 77 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5613
SELECT 77 / - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - - col2 + + col0 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + ( col2 ) + + 8 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + ( col2 ) + + 8 - - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

query II rowsort
SELECT ALL - col2 AS col2, col2 * + + col2 AS col2 FROM tab2
----
-23
529
-40
1600
-58
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT - SUM( DISTINCT - 85 ) FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-5618
SELECT - SUM ( DISTINCT - 85 ) FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT + COUNT( * ) * + ( + COUNT( * ) ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT DISTINCT + col2 * - - CAST( - col2 AS SIGNED ) * 4 col2 FROM tab2 AS cor0
----
-13456
-2116
-6400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5620
SELECT DISTINCT + col2 * - - CAST ( - col2 AS INTEGER ) * 4 col2 FROM tab2 AS cor0
----
-13456
-2116
-6400

query I rowsort
SELECT ALL + col2 * - + 58 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT - 21 / + + col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 71 ) AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ( - 55 ) * col2 + + 58 + + - col2 AS col2 FROM tab2
----
-1230
-2182
-3190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5625
SELECT - + 68 + - + AVG ( CAST( NULL AS SIGNED ) ) + + MAX( ALL + 38 ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5625
SELECT - + 68 + - + AVG ( CAST ( NULL AS INTEGER ) ) + + MAX ( ALL + 38 ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 + - 79 * + - 61 * - col0 FROM tab1 AS cor0
----
-245718
-409530
-438438

query I rowsort
SELECT + 87 + + col1 FROM tab1 AS cor0
----
101
134
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT - CAST( - col2 AS SIGNED ) + + ( - + col0 ) AS col2 FROM tab2 cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-5628
SELECT - CAST ( - col2 AS INTEGER ) + + ( - + col0 ) AS col2 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT col1 * + ( col2 ) AS col1 FROM tab2 WHERE + - col0 NOT IN ( + col2 * + 88 )
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL - CAST( NULL AS SIGNED ) - + + col2 * - col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5632
SELECT + ( - - ( - CAST( - 16 AS SIGNED ) ) ) col0 FROM tab2
----
16
16
16

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5633
SELECT 25 / + CAST( NULL AS SIGNED ) * 0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5633
SELECT 25 / + CAST ( NULL AS INTEGER ) * 0 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + col1 * + 90 FROM tab0 AS cor0
----
1890
7290
90

query I rowsort
SELECT ALL - + col0 - 96 FROM tab2 AS cor0
----
-142
-160
-171

onlyif mysql # aggregate syntax: 
query II rowsort label-5636
SELECT ALL COUNT( DISTINCT + + col1 ), + ( + 78 ) AS col1 FROM tab1 AS cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-5636
SELECT ALL COUNT ( DISTINCT + + col1 ), + ( + 78 ) AS col1 FROM tab1 AS cor0
----
3
78

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT ALL + COUNT( * ) col1, + 31 - MIN( + + 70 ) FROM tab1
----
3
-39

skipif mysql # not compatible
query II rowsort label-5637
SELECT ALL + COUNT ( * ) col1, + 31 - MIN ( + + 70 ) FROM tab1
----
3
-39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT DISTINCT 21, CAST( - + col0 AS SIGNED ) col0 FROM tab0
----
21
-15
21
-87
21
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5638
SELECT DISTINCT 21, CAST ( - + col0 AS INTEGER ) col0 FROM tab0
----
21
-15
21
-87
21
-97

query I rowsort
SELECT + 75 * + col2 AS col2 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT MAX( DISTINCT - ( 79 ) ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-5640
SELECT MAX ( DISTINCT - ( 79 ) ) FROM tab1 cor0
----
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5642
SELECT ALL + col2 * - col1 + + col0 + - col2 DIV col2 * - + col2 DIV - - col0 + col0 col0 FROM tab0 AS cor0
----
-36
-3774
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5642
SELECT ALL + col2 * - col1 + + col0 + - col2 / col2 * - + col2 / - - col0 + col0 col0 FROM tab0 AS cor0
----
-36
-3774
96

query I rowsort
SELECT DISTINCT - - 35 * - col0 FROM tab2 cor0
----
-1610
-2240
-2625

query I rowsort
SELECT ALL col2 * + 11 AS col2 FROM tab0 cor0
----
1089
110
517

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5647
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5648
SELECT + - CAST( + + col2 AS SIGNED ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5648
SELECT + - CAST ( + + col2 AS INTEGER ) + + + col0 AS col0 FROM tab1 AS cor0
----
-45
23
26

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 LEFT JOIN tab2 AS cor1 ON 83 IS NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT ALL MAX( + + 52 ) col2 FROM tab2
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5650
SELECT ALL MAX ( + + 52 ) col2 FROM tab2
----
52

query I rowsort
SELECT + 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT + - col2 * + 2 * col2 - + col2 AS col1 FROM tab1 AS cor0
----
-18528
-7021
-9316

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT + COUNT( * ) - - 46 AS col2 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + COUNT ( * ) - - 46 AS col2 FROM tab1 AS cor0
----
49

query I rowsort
SELECT + 66 - - - 74 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5655
SELECT COUNT( * ) - - - 53 DIV + 39 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5655
SELECT COUNT ( * ) - - - 53 / + 39 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - MIN( DISTINCT - 0 ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5656
SELECT - MIN ( DISTINCT - 0 ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5657
SELECT ALL CAST( NULL AS SIGNED ) - - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + 4 - + col1 FROM tab2
----
-47
-63
-73

query III rowsort
SELECT * FROM tab2 WHERE NULL > + col1 + + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT ALL - CAST( NULL AS SIGNED ) * col1 + - + col1 * - - 9 AS col0 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 40 * col0 IN ( - - col0 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5662
SELECT DISTINCT - col2 DIV - + ( - col1 ) FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT - col2 / - + ( - col1 ) FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col2 ) + ( + 32 ) * 48 = 62
----
-3

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( col2 ) + ( + 32 ) * 48 = 62
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT 59 + + col1 * + 49 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 59 + + col1 * + 49 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5665
SELECT DISTINCT - 41 * - col2 / col0 FROM tab1 WHERE - col2 * + + col1 NOT BETWEEN - CAST( NULL AS SIGNED ) AND ( + 67 )
----

skipif mysql # not compatible
query I rowsort label-5665
SELECT DISTINCT - 41 * - col2 / col0 FROM tab1 WHERE - col2 * + + col1 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND ( + 67 )
----

query I rowsort
SELECT + col2 * col0 * + col1 + 69 * 69 * ( - + 16 ) * + - col0 AS col2 FROM tab0 AS cor0
----
1199745
6645582
7398675

query II rowsort
SELECT ALL - ( + + 51 ), + col1 AS col2 FROM tab0 AS cor0
----
-51
1
-51
21
-51
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5668
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col0 + + - col2 BETWEEN NULL AND + - CAST( + col0 AS SIGNED ) - + 87 / col0
----

skipif mysql # not compatible
query III rowsort label-5668
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col0 + + - col2 BETWEEN NULL AND + - CAST ( + col0 AS INTEGER ) - + 87 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT - MIN( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5669
SELECT - MIN ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + col2 col0 FROM tab1 AS cor0
----
-1947
-2244
-3168

query II rowsort
SELECT DISTINCT ( + ( + + col1 ) ), - col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT ALL + MIN( ALL + + col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5672
SELECT ALL + MIN ( ALL + + col2 ) col0 FROM tab1
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col2 FROM tab2
----
117
125
74

query II rowsort
SELECT col1 col0, 37 * + + col1 FROM tab1
----
14
518
47
1739
5
185

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + - col2 AS col1, + ( col0 ) AS col1 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5679
SELECT 60 + MIN( - col0 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-5679
SELECT 60 + MIN ( - col0 ) FROM tab2
----
-15

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

query I rowsort
SELECT DISTINCT + col1 * - + 47 + + col1 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT col1 - col2 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-98
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5683
SELECT CAST( + col2 AS DECIMAL ) + + col1 AS col2, + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5683
SELECT CAST ( + col2 AS REAL ) + + col1 AS col2, + col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST( - 84 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5684
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - CAST ( - 84 AS INTEGER ) )
----

query II rowsort
SELECT - col2 * + 57 + - col2 + 19 AS col0, + 65 FROM tab1 cor0
----
-3403
65
-3925
65
-5549
65

query I rowsort
SELECT ALL ( + col1 ) - 87 AS col0 FROM tab2 cor0
----
-10
-20
-36

query I rowsort
SELECT DISTINCT - 41 - + 20 FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL - SUM( + 30 ) AS col0 FROM tab1 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL - SUM ( + 30 ) AS col0 FROM tab1 cor0
----
-90

query I rowsort
SELECT + 47 + + - col0 * + col0 + 8 FROM tab2 cor0 WHERE col1 * + col1 + - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5690
SELECT + 65 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5692
SELECT + 63 - - - CAST( + col0 AS SIGNED ) FROM tab0
----
-24
-34
48

skipif mysql # not compatible
query I rowsort label-5692
SELECT + 63 - - - CAST ( + col0 AS INTEGER ) FROM tab0
----
-24
-34
48

query I rowsort
SELECT DISTINCT - - 69 FROM tab1 WHERE NOT + - col2 IS NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT ALL + 87 * - 63 * COUNT( * ) AS col0 FROM tab0
----
-16443

skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL + 87 * - 63 * COUNT ( * ) AS col0 FROM tab0
----
-16443

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT - MAX( ALL + col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5695
SELECT - MAX ( ALL + col1 ) AS col2 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + - ( - COUNT( - 77 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5696
SELECT + - ( - COUNT ( - 77 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 44 * - - 44 FROM tab0 cor0
----
-1936
-1936
-1936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT ALL - AVG ( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5699
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5699
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5700
SELECT DISTINCT col1 DIV + col2 AS col1 FROM tab1 cor0
----
0

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

query I rowsort
SELECT + col1 * - col1 + 53 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 IS NULL
----
-388
-6508
52

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = col1 * + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - COUNT( + + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5703
SELECT - COUNT ( + + col1 ) FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5704
SELECT ALL col0 DIV - col2 AS col2, - col2 + ( + 16 ) * col0 FROM tab1
----
-1
1301
-1
1388
0
720

skipif mysql # not compatible
query II rowsort label-5704
SELECT ALL col0 / - col2 AS col2, - col2 + ( + 16 ) * col0 FROM tab1
----
-1
1301
-1
1388
0
720

onlyif mysql # DIV for integer division: 
query II rowsort label-5705
SELECT + 2 DIV col1 AS col2, 39 + + + col0 FROM tab0
----
0
126
0
54
2
136

skipif mysql # not compatible
query II rowsort label-5705
SELECT + 2 / col1 AS col2, 39 + + + col0 FROM tab0
----
0
126
0
54
2
136

onlyif mysql # DIV for integer division: 
query I rowsort label-5706
SELECT ALL + 1 DIV + col2 + 16 AS col2 FROM tab0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL + 1 / + col2 + 16 AS col2 FROM tab0
----
16
16
16

query I rowsort
SELECT DISTINCT + 54 + col2 * - + col0 FROM tab0
----
-651
-816
-9549

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5708
SELECT * FROM tab0 AS cor0 WHERE ( + ( CAST( + col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5708
SELECT * FROM tab0 AS cor0 WHERE ( + ( CAST ( + col0 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + col1 + col0 * - 54 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT - col2 + - 28 - - - 47 * + col1 FROM tab0 AS cor0
----
-1025
-174
-3882

query I rowsort
SELECT col0 * + col0 * + 2 FROM tab1
----
14450
16562
5202

query I rowsort
SELECT ALL 35 * - 21 FROM tab2
----
-735
-735
-735

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT - COUNT( * ) + + + 93 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
84

skipif mysql # not compatible
query I rowsort label-5713
SELECT - COUNT ( * ) + + + 93 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
84

query I rowsort
SELECT DISTINCT - 22 * - col2 * - + col1 AS col1 FROM tab1
----
-29568
-6490
-70312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT DISTINCT - col2 * + col2 * CAST( NULL AS SIGNED ) + col2 col0 FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 36 * - - 11 * - - col0 + + - 44 - - - col2 AS col1 FROM tab0 AS cor0
----
34398
38269
5849

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( col0 ) IS NULL
----

query I rowsort
SELECT + + 83 - - - 30 * col0 FROM tab0 cor0
----
-2527
-2827
-367

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - - COUNT( * ) + + 17 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - - COUNT ( * ) + + 17 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / 23 >= NULL
----

query I rowsort
SELECT DISTINCT - ( - 10 ) + 74 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-5723
SELECT DISTINCT - COUNT( * ) * + 81, 28 AS col0 FROM tab2
----
-243
28

skipif mysql # not compatible
query II rowsort label-5723
SELECT DISTINCT - COUNT ( * ) * + 81, 28 AS col0 FROM tab2
----
-243
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5724
SELECT - - COUNT( * ) * - + 10 col2 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5724
SELECT - - COUNT ( * ) * - + 10 col2 FROM tab1 AS cor0
----
-30

query II rowsort
SELECT DISTINCT + col2 AS col2, 40 FROM tab0 AS cor0 WHERE NOT 82 NOT BETWEEN + + col1 / col1 * - + col2 AND + + col2
----
99
40

query I rowsort
SELECT ALL col0 * 49 FROM tab0
----
4263
4753
735

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT DISTINCT ( col0 ) DIV - col0 AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT ( col0 ) / - col0 AS col1 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT ALL + COUNT( DISTINCT - 64 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL + COUNT ( DISTINCT - 64 ) AS col1 FROM tab0
----
1

query II rowsort
SELECT - + col0 AS col1, 24 + 82 FROM tab0 AS cor0
----
-15
106
-87
106
-97
106

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5730
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 0 = NULL
----
0

query II rowsort
SELECT + col0 * + col2 + + col0, col2 AS col0 FROM tab0 AS cor0
----
720
47
957
10
9700
99

query I rowsort
SELECT DISTINCT + col0 + - 8 FROM tab1 AS cor0
----
43
77
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5733
SELECT ALL - col2 DIV + 75 + - - ( - - col0 ) FROM tab0 AS cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-5733
SELECT ALL - col2 / + 75 + - - ( - - col0 ) FROM tab0 AS cor0
----
15
87
96

query I rowsort
SELECT + - col0 * 47 * 42 + + col0 FROM tab0 AS cor0
----
-171651
-191381
-29595

onlyif mysql # aggregate syntax: 
query I rowsort label-5735
SELECT + 77 + - - MIN( ALL + col1 ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5735
SELECT + 77 + - - MIN ( ALL + col1 ) FROM tab0 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 20 ) + + 17 - 6 * ( + - 28 ) col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT ALL - + MIN( DISTINCT 52 ) AS col1 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5737
SELECT ALL - + MIN ( DISTINCT 52 ) AS col1 FROM tab1 AS cor0
----
-52

query I rowsort
SELECT DISTINCT col1 * - 61 * + + col1 FROM tab0
----
-26901
-400221
-61

query I rowsort
SELECT col2 + + 74 * 83 FROM tab0
----
6152
6189
6241

query I rowsort
SELECT col2 * + 84 AS col1 FROM tab1
----
4956
5712
8064

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5742
SELECT - - CAST( NULL AS SIGNED ) AS col2, MAX( DISTINCT + 93 ) col1 FROM tab1 AS cor0
----
NULL
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5742
SELECT - - CAST ( NULL AS INTEGER ) AS col2, MAX ( DISTINCT + 93 ) col1 FROM tab1 AS cor0
----
NULL
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT ALL - col2 + - + 90 - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 72 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT - col1 + - 39 AS col1 FROM tab1
----
-44
-53
-86

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 < ( + + 30 )
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + col2 + 24 FROM tab1 AS cor0
----
120
83
92

query II rowsort
SELECT + col0 * + col1 col0, 4 AS col2 FROM tab0 AS cor0
----
1215
4
1827
4
97
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - col2 ) >= + - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT - MIN( ALL - + col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT - MIN ( ALL - + col2 ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5751
SELECT DISTINCT + 47, COUNT( * ) * + 23 AS col0 FROM tab0
----
47
69

skipif mysql # not compatible
query II rowsort label-5751
SELECT DISTINCT + 47, COUNT ( * ) * + 23 AS col0 FROM tab0
----
47
69

query I rowsort
SELECT col0 * + - 72 AS col2 FROM tab0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT ALL MAX( ALL col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5753
SELECT ALL MAX ( ALL col1 ) col1 FROM tab0
----
81

query II rowsort
SELECT ALL - - col2 AS col1, col0 * col0 AS col0 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - + col0 - + col2 * col0 * + col1 col2 FROM tab2
----
-198784
-294889
-54533

query I rowsort
SELECT DISTINCT + col0 + 7 + - 66 * + 19 AS col2 FROM tab0 cor0
----
-1150
-1160
-1232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5757
SELECT ALL + + 77 + + ( + 17 ) DIV - - 75 * - + MIN( + 27 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + + 77 + + ( + 17 ) / - - 75 * - + MIN ( + 27 ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT - + col2 + 66 FROM tab1 AS cor0
----
-2
-30
7

onlyif mysql # DIV for integer division: 
query I rowsort label-5759
SELECT 38 + 62 DIV - col0 - - - 57 FROM tab1
----
-19
-19
-20

skipif mysql # not compatible
query I rowsort label-5759
SELECT 38 + 62 / - col0 - - - 57 FROM tab1
----
-19
-19
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-5760
SELECT col0 + 30 DIV col2 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5760
SELECT col0 + 30 / col2 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + 23 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT ALL - 97 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-5762
SELECT ALL - 97 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-94

query II rowsort
SELECT + col0 * - - ( - col2 ) * + + 42 - - 42 + + col1 * + col2 * - col2 AS col2, - col1 * col2 FROM tab2 AS cor0
----
-230678
-3080
-408046
-3886
-71373
-1173

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - - 63 NOT BETWEEN NULL AND 75 * - - col1 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query II rowsort
SELECT col1 AS col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT ALL col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT ALL + + col0 AS col2, - ( - - col2 ) FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT ALL 66 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL 66 / - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5770
SELECT + + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * ( + col1 ) * - ( - + 10 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 42 * - col1 FROM tab2 AS cor0
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT + SUM( - + 66 ) col0 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5773
SELECT + SUM ( - + 66 ) col0 FROM tab0 AS cor0
----
-198

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + - 55 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5776
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN col1 * - - col1 - - - 2 - - col2 AND - CAST( - col0 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-5776
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN col1 * - - col1 - - - 2 - - col2 AND - CAST ( - col0 AS INTEGER ) * - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5778
SELECT CAST( + col1 AS SIGNED ) * + 64 AS col1 FROM tab0
----
1344
5184
64

skipif mysql # not compatible
query I rowsort label-5778
SELECT CAST ( + col1 AS INTEGER ) * + 64 AS col1 FROM tab0
----
1344
5184
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-5779
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT + - COUNT( * ) FROM tab0 WHERE NOT ( NOT - 34 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5780
SELECT + - COUNT ( * ) FROM tab0 WHERE NOT ( NOT - 34 IS NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5782
SELECT DISTINCT + ( + COUNT( * ) ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5782
SELECT DISTINCT + ( + COUNT ( * ) ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - ( col1 )
----
0

query II rowsort
SELECT col1 AS col2, 75 + + col1 FROM tab0
----
1
76
21
96
81
156

query I rowsort
SELECT ALL 99 * - + col2 - + 76 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-5917
-6808
-9580

query I rowsort
SELECT - col1 + + - 93 AS col1 FROM tab0 AS cor0
----
-114
-174
-94

query II rowsort
SELECT ALL + 48 AS col1, + 0 * col0 AS col1 FROM tab0 AS cor0
----
48
0
48
0
48
0

query I rowsort
SELECT 83 + + col1 FROM tab2 AS cor0
----
134
150
160

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 + - col0 * - 38 * 59 + + - col1 IS NULL
----

query I rowsort
SELECT - 33 + - + col0 AS col1 FROM tab0 WHERE + col0 IS NOT NULL
----
-120
-130
-48

query I rowsort
SELECT col2 + - col1 FROM tab2 WHERE + + 47 * - 94 * + col0 IS NOT NULL
----
-28
-37
-9

query I rowsort
SELECT ALL + 78 AS col2 FROM tab2 WHERE NOT - col2 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5793
SELECT + 91 DIV - - COUNT( * ) col1 FROM tab1
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5793
SELECT + 91 / - - COUNT ( * ) col1 FROM tab1
----
30

query I rowsort
SELECT DISTINCT col2 * + + 31 FROM tab1
----
1829
2108
2976

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 87 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + - col2 + + 53 AS col0 FROM tab2
----
-16
-51
-80

query I rowsort
SELECT + col2 * - 45 AS col0 FROM tab2
----
-1035
-1800
-2610

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

query I rowsort
SELECT ALL - - col1 * - col1 - + - 62 FROM tab0 AS cor0
----
-379
-6499
61

query I rowsort
SELECT + col0 - - ( col1 ) AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - col2 + 53 AS col0 FROM tab2 AS cor0
----
-5
13
30

query I rowsort
SELECT ALL + col2 + + - 16 AS col0 FROM tab0 AS cor0
----
-6
31
83

query II rowsort
SELECT DISTINCT - + ( - 76 ) * - + col2 + + col1 + - col0 + + ( col2 ) * + 66 * - col2, col0 FROM tab2 cor0
----
-108627
64
-226440
75
-36657
46

query I rowsort
SELECT - col1 * + 66 FROM tab2
----
-3366
-4422
-5082

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT - + 60 AS col2 FROM tab2 WHERE NOT - + 23 + - + 4 NOT BETWEEN col0 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5807
SELECT - CAST( NULL AS SIGNED ), + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) * + + col0 IS NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5807
SELECT - CAST ( NULL AS INTEGER ), + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - col1 ) * + + col0 IS NULL
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL - COUNT( * ) DIV + 24 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - COUNT ( * ) / + 24 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, + col0 col1 FROM tab2 cor0
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL AND NOT + 70 * col1 - - - 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5811
SELECT ALL + - 18 DIV 62 AS col2 FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT DISTINCT - 57 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-5812
SELECT DISTINCT - 57 / - col1 AS col2 FROM tab1 AS cor0
----
1
11
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT COUNT( - + 47 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT COUNT ( - + 47 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab2
----
23
23
40
40
58
58

query II rowsort
SELECT ALL 91, - 51 AS col0 FROM tab0
----
91
-51
91
-51
91
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5816
SELECT ALL 59 AS col0, 14 + - col0 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab1
----
59
-2587
59
-7211
59
-8267

skipif mysql # not compatible
query II rowsort label-5816
SELECT ALL 59 AS col0, 14 + - col0 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab1
----
59
-2587
59
-7211
59
-8267

onlyif mysql # aggregate syntax: 
query I rowsort label-5817
SELECT - ( - ( + + MAX( DISTINCT - 92 ) ) ) FROM tab1, tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5817
SELECT - ( - ( + + MAX ( DISTINCT - 92 ) ) ) FROM tab1, tab1 AS cor0
----
-92

query I rowsort
SELECT + 95 * - + 45 AS col0 FROM tab1
----
-4275
-4275
-4275

query I rowsort
SELECT DISTINCT - 65 * - col2 AS col0 FROM tab0
----
3055
6435
650

onlyif mysql # DIV for integer division: 
query I rowsort label-5820
SELECT ALL - 15 DIV 16 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5820
SELECT ALL - 15 / 16 FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5822
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + 9 AS col2 FROM tab2
----
NULL
9
NULL
9
NULL
9

skipif mysql # not compatible
query II rowsort label-5822
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + 9 AS col2 FROM tab2
----
NULL
9
NULL
9
NULL
9

query II rowsort
SELECT col0 AS col1, - col1 AS col2 FROM tab1 AS cor0 WHERE - - col1 + + - col0 IS NOT NULL OR NOT ( NOT NULL IS NULL )
----
51
-14
85
-5
91
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - COUNT( - 10 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5824
SELECT - COUNT ( - 10 ) AS col2 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 43 / col2 * + - 10 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 69
----

query I rowsort
SELECT ALL + + col0 + - col2 * + 49 - - col0 * + col0 FROM tab0 AS cor0
----
-2063
4655
7166

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT - MAX( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT - MAX ( DISTINCT + 2 ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT COUNT( * ) * - SUM( col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-5830
SELECT COUNT ( * ) * - SUM ( col0 ) FROM tab0
----
-597

query I rowsort
SELECT DISTINCT + 91 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5833
SELECT ALL ( + CAST( NULL AS SIGNED ) ) + + + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - ( - + 35 ) + col1 + + col0 FROM tab0 AS cor0
----
131
133
143

query II rowsort
SELECT - + col0 AS col0, - 41 AS col1 FROM tab1 AS cor0 WHERE ( + col1 ) * col2 + - + ( - - 62 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5836
SELECT + + SUM( + - col0 ) AS col1 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5836
SELECT + + SUM ( + - col0 ) AS col1 FROM tab2 cor0
----
-185

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5837
SELECT ALL - + 34 AS col0, - col0 * - + col2 col2 FROM tab2 AS cor0 WHERE CAST( 49 AS DECIMAL ) + + + col0 IS NOT NULL
----
-34
1058
-34
2560
-34
4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5837
SELECT ALL - + 34 AS col0, - col0 * - + col2 col2 FROM tab2 AS cor0 WHERE CAST ( 49 AS REAL ) + + + col0 IS NOT NULL
----
-34
1058
-34
2560
-34
4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + 62 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5839
SELECT - CAST( ( - col0 ) AS SIGNED ) + + col2 DIV + 23 - - - col1 * + col1 FROM tab1
----
-141
-2116
62

skipif mysql # not compatible
query I rowsort label-5839
SELECT - CAST ( ( - col0 ) AS INTEGER ) + + col2 / + 23 - - - col1 * + col1 FROM tab1
----
-141
-2116
62

query III rowsort
SELECT * FROM tab2 WHERE 94 BETWEEN - ( + 53 ) AND col1 + + + col2
----
64
77
40
75
67
58

query I rowsort
SELECT + col0 + - 71 * col2 FROM tab1
----
-4104
-4737
-6765

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 4 <= NULL
----

query I rowsort
SELECT ALL + 17 AS col0 FROM tab2 WHERE NOT - - col1 <= - 9
----
17
17
17

query I rowsort
SELECT - 48 + + col2 AS col2 FROM tab0
----
-1
-38
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 + - + col2 * - 57 * + + col0 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 3 <> NULL
----

query I rowsort
SELECT + - 79 * col0 FROM tab1 cor0
----
-4029
-6715
-7189

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5850
SELECT - + col0 * col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5851
SELECT col2 DIV - - 14 AS col0, + 55 FROM tab2 AS cor0
----
1
55
2
55
4
55

skipif mysql # not compatible
query II rowsort label-5851
SELECT col2 / - - 14 AS col0, + 55 FROM tab2 AS cor0
----
1
55
2
55
4
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + - col0 + ( - 89 ) col1 FROM tab2 AS cor0
----
2257
4839
4936

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5853
SELECT CAST( + - col0 AS SIGNED ) DIV col2 * - col2 AS col2, col1 + + + 70 col0 FROM tab0 AS cor0
----
0
151
0
71
80
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5853
SELECT CAST ( + - col0 AS INTEGER ) / col2 * - col2 AS col2, col1 + + + 70 col0 FROM tab0 AS cor0
----
0
151
0
71
80
91

query I rowsort
SELECT - + 6 * - 13 FROM tab0 AS cor0
----
78
78
78

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT 54 <= NULL
----

query I rowsort
SELECT + - ( - 88 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 / - col0 BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col1 > - 30
----

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

query I rowsort
SELECT DISTINCT 41 + + + col2 * + - col1 FROM tab0
----
-169
-3766
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT DISTINCT - COUNT( + 53 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5860
SELECT DISTINCT - COUNT ( + 53 ) AS col1 FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT + 19 * + 25 FROM tab1 cor0
----
475
475
475

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND - + col1
----

query II rowsort
SELECT DISTINCT - col2, ( - 77 ) AS col0 FROM tab1
----
-59
-77
-68
-77
-96
-77

query I rowsort
SELECT 94 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT 43 + SUM( - 5 ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-5866
SELECT 43 + SUM ( - 5 ) FROM tab2
----
28

query I rowsort
SELECT - 91 * - + 52 + + col1 FROM tab0 AS cor0
----
4733
4753
4813

onlyif mysql # DIV for integer division: 
query I rowsort label-5868
SELECT + 85 + - 44 DIV + ( + 2 ) FROM tab0 cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-5868
SELECT + 85 + - 44 / + ( + 2 ) FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 97 AND - + 90 + 88
----

query I rowsort
SELECT ALL - - col0 - - + col1 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT SUM( DISTINCT - 29 ) AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT SUM ( DISTINCT - 29 ) AS col1 FROM tab1
----
-29

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 20 = NULL
----

query II rowsort
SELECT DISTINCT - + col0, col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 <= + 67 + + - 69
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5876
SELECT + CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5876
SELECT + CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col0 * - 74 * - - col0 AS col1, + col2 - col2 AS col1 FROM tab2
----
-156584
0
-303104
0
-416250
0

query II rowsort
SELECT DISTINCT - 53, - col0 AS col0 FROM tab0 cor0
----
-53
-15
-53
-87
-53
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5879
SELECT ALL 78 * COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL 78 * COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT 85 * + + 61 AS col0 FROM tab1 AS cor0
----
5185

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT ALL - MAX( - 66 ) AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5881
SELECT ALL - MAX ( - 66 ) AS col0 FROM tab2 AS cor0
----
66

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + + col2 + + col2 - - ( - col0 ) * - - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col1 * + - col1 + + col0, 15 * - col0 AS col2 FROM tab1 AS cor0
----
110
-1275
2300
-1365
247
-765

onlyif mysql # aggregate syntax: 
query II rowsort label-5884
SELECT DISTINCT - SUM( 37 ) * 95 AS col0, 69 AS col0 FROM tab0 cor0
----
-10545
69

skipif mysql # not compatible
query II rowsort label-5884
SELECT DISTINCT - SUM ( 37 ) * 95 AS col0, 69 AS col0 FROM tab0 cor0
----
-10545
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 * + col0 col1 FROM tab0 cor0
----
-1140
-6612
-7372

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT ALL - col1 DIV + 1 + + col2 FROM tab2 AS cor0
----
-28
-37
-9

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

query I rowsort
SELECT + 2 * - 83 FROM tab0
----
-166
-166
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT DISTINCT - COUNT( * ) * 66 * - MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
-11682

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT - COUNT ( * ) * 66 * - MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
-11682

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT ALL - 94 * - COUNT( DISTINCT - 59 ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5890
SELECT ALL - 94 * - COUNT ( DISTINCT - 59 ) AS col2 FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 * col2 + - col2 + col2 col1 FROM tab2
----
-1360
-1972
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT ALL col1 DIV - 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5892
SELECT ALL col1 / - 96 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + 2 + + + col2 + + + col0 FROM tab0 AS cor0
----
198
64
99

query I rowsort
SELECT ALL + col1 + 30 FROM tab1 cor0
----
35
44
77

query I rowsort
SELECT ALL - col1 * - - col1 + col0 AS col0 FROM tab2 cor0
----
-2555
-4414
-5865

query I rowsort
SELECT ALL - + col0 * + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-132651
-614125
-753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5897
SELECT 42 + col1 * + + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT + ( COUNT( * ) ) * + + 99 AS col1 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5898
SELECT + ( COUNT ( * ) ) * + + 99 AS col1 FROM tab1
----
297

query I rowsort
SELECT ALL - ( 12 ) AS col1 FROM tab1
----
-12
-12
-12

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab0 cor1 ON NOT + 91 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 WHERE + 48 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + ( - 39 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5904
SELECT DISTINCT + ( COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5904
SELECT DISTINCT + ( COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT DISTINCT 91 + + - CAST( + 81 AS SIGNED ) + ( - 14 ) AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT 91 + + - CAST ( + 81 AS INTEGER ) + ( - 14 ) AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT ALL + 29 + + col0 AS col0 FROM tab0 AS cor0
----
116
126
44

query I rowsort
SELECT DISTINCT - + 24 * + col0 - 53 FROM tab2 AS cor0
----
-1157
-1589
-1853

query I rowsort
SELECT ALL - - col0 - - col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + 71 - + COUNT( * ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-5909
SELECT + 71 - + COUNT ( * ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT - col2 + + + col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5911
SELECT ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE + 82 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE + 82 IS NULL
----
0

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

query I rowsort
SELECT ALL + col1 - - col0 * + 5 AS col0 FROM tab0
----
156
456
486

query I rowsort
SELECT - + col2 FROM tab0 WHERE - ( - - 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5915
SELECT - 57 * + COUNT( * ) + + 38 FROM tab2
----
-133

skipif mysql # not compatible
query I rowsort label-5915
SELECT - 57 * + COUNT ( * ) + + 38 FROM tab2
----
-133

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 + col0 BETWEEN NULL AND + + col0
----

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT ALL COUNT( * ) AS col2, + 24 FROM tab0 AS cor0
----
3
24

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL COUNT ( * ) AS col2, + 24 FROM tab0 AS cor0
----
3
24

onlyif mysql # DIV for integer division: 
query II rowsort label-5920
SELECT - - ( - ( - col1 ) ) DIV - - col1 + - 19 + + ( 10 ) - col0 - col0, 32 AS col2 FROM tab1 AS cor0
----
-110
32
-178
32
-190
32

skipif mysql # not compatible
query II rowsort label-5920
SELECT - - ( - ( - col1 ) ) / - - col1 + - 19 + + ( 10 ) - col0 - col0, 32 AS col2 FROM tab1 AS cor0
----
-110
32
-178
32
-190
32

query I rowsort
SELECT DISTINCT + ( - 52 ) * + col0 AS col1 FROM tab2
----
-2392
-3328
-3900

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 37 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5924
SELECT CAST( 80 AS SIGNED ) AS col1, + COUNT( DISTINCT 7 ) FROM tab2
----
80
1

skipif mysql # not compatible
query II rowsort label-5924
SELECT CAST ( 80 AS INTEGER ) AS col1, + COUNT ( DISTINCT 7 ) FROM tab2
----
80
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5925
SELECT DISTINCT - - 83 * col0 + col2 DIV + col0 FROM tab0 AS cor0
----
1248
7221
8052

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT - - 83 * col0 + col2 / + col0 FROM tab0 AS cor0
----
1248
7221
8052

query II rowsort
SELECT DISTINCT col0 AS col2, col1 + - ( + col1 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
0
87
0
97
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 68 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / - - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5929
SELECT DISTINCT - col2 DIV + 97 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT DISTINCT - col2 / + 97 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5930
SELECT + COUNT( * ), + COUNT( * ) * + 85 AS col1 FROM tab0
----
3
255

skipif mysql # not compatible
query II rowsort label-5930
SELECT + COUNT ( * ), + COUNT ( * ) * + 85 AS col1 FROM tab0
----
3
255

query I rowsort
SELECT DISTINCT col0 + 7 FROM tab0
----
104
22
94

query II rowsort
SELECT col2, 79 FROM tab1
----
59
79
68
79
96
79

query I rowsort
SELECT DISTINCT + 52 + 14 FROM tab2 AS cor0
----
66

query I rowsort
SELECT 21 + col2 AS col0 FROM tab0
----
120
31
68

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 90 )
----

query I rowsort
SELECT + 40 * col0 FROM tab1
----
2040
3400
3640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 - + col1 col0 FROM tab2
----
18
34
8

query I rowsort
SELECT + col1 - col1 FROM tab2 WHERE 38 * 41 + col2 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5939
SELECT ALL + MAX( DISTINCT - col2 ) col2 FROM tab2 WHERE NULL BETWEEN 43 * + CAST( 49 * col2 AS SIGNED ) + - 72 * col2 AND + CAST( NULL AS SIGNED ) * - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5939
SELECT ALL + MAX ( DISTINCT - col2 ) col2 FROM tab2 WHERE NULL BETWEEN 43 * + CAST ( 49 * col2 AS INTEGER ) + - 72 * col2 AND + CAST ( NULL AS INTEGER ) * - col0
----
NULL

query I rowsort
SELECT - 30 * + 91 AS col2 FROM tab0
----
-2730
-2730
-2730

query I rowsort
SELECT - ( + 25 ) * + col2 FROM tab2
----
-1000
-1450
-575

query I rowsort
SELECT DISTINCT - 36 * - 81 AS col0 FROM tab1
----
2916

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + ( COUNT( * ) ) * COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5943
SELECT + ( COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5944
SELECT ALL col0 * 28 + - CAST( col2 - 22 * + col1 AS SIGNED ) DIV col0 AS col2 FROM tab1
----
1432
2380
2558

skipif mysql # not compatible
query I rowsort label-5944
SELECT ALL col0 * 28 + - CAST ( col2 - 22 * + col1 AS INTEGER ) / col0 AS col2 FROM tab1
----
1432
2380
2558

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col2 * col0 < ( 99 * - 43 + - 99 )
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
15
87
97

query I rowsort
SELECT 50 * - 16 FROM tab0
----
-800
-800
-800

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5948
SELECT ALL - MIN( - col0 ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL - MIN ( - col0 ) * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * 17 FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT - COUNT( * ) * 39 AS col1 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT - COUNT ( * ) * 39 AS col1 FROM tab1
----
-117

query I rowsort
SELECT + 2 * + col2 FROM tab2 WHERE NULL NOT BETWEEN - 71 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5952
SELECT * FROM tab1 WHERE NOT + col2 + ( + CAST( - 46 AS SIGNED ) ) < - col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5952
SELECT * FROM tab1 WHERE NOT + col2 + ( + CAST ( - 46 AS INTEGER ) ) < - col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE 20 - + 37 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 50 + ( col1 ) <> - col2 * - 69 + - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - 73 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - - 59 FROM tab1
----
118
127
155

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 6 * col1 col1 FROM tab2
----
352
477
526

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT DISTINCT - ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5959
SELECT DISTINCT - ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 98 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL ( + COUNT( * ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL ( + COUNT ( * ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 )
----
9

query I rowsort
SELECT - ( 61 ) FROM tab2
----
-61
-61
-61

query I rowsort
SELECT - 31 * 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2159a34454ac107a11ab9df7ab35b388

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + - 48 = NULL
----

query I rowsort
SELECT DISTINCT + 23 * col2 AS col0 FROM tab2
----
1334
529
920

query I rowsort
SELECT DISTINCT - col0 + - col0 AS col1 FROM tab2 cor0
----
-128
-150
-92

query I rowsort
SELECT ALL + 53 + col0 * 3 FROM tab1 AS cor0
----
206
308
326

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT col2 + + 67 AS col0 FROM tab1 cor0 WHERE NOT ( + col0 + - col0 * - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + 83 + col1 AS col2 FROM tab0 AS cor0
----
3982
8218
851

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - 19 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5971
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( - 19 ) AND NULL
----
0

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

query I rowsort
SELECT DISTINCT - - col2 + 59 AS col1 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT * FROM tab2 AS cor0 WHERE ( + 81 * CAST( - col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT * FROM tab2 AS cor0 WHERE ( + 81 * CAST ( - col2 AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT 3 * + ( col2 ) FROM tab0
----
141
297
30

query I rowsort
SELECT ALL + 9 FROM tab2 WHERE NOT + 46 / + ( + col2 ) IS NULL
----
9
9
9

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NULL >= ( col0 )
----

query I rowsort
SELECT col0 + 92 * + 71 FROM tab1
----
6583
6617
6623

onlyif mysql # aggregate syntax: 
query I rowsort label-5979
SELECT SUM( col2 ) + - ( ( + 33 ) ) FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-5979
SELECT SUM ( col2 ) + - ( ( + 33 ) ) FROM tab1
----
190

query I rowsort
SELECT + 90 + col0 AS col1 FROM tab0
----
105
177
187

query I rowsort
SELECT DISTINCT 81 FROM tab2 AS cor0 WHERE + ( 59 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT ALL + 43 * - MAX( - 85 ) AS col2 FROM tab0 cor0
----
3655

skipif mysql # not compatible
query I rowsort label-5982
SELECT ALL + 43 * - MAX ( - 85 ) AS col2 FROM tab0 cor0
----
3655

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5983
SELECT col1 + col2 * + col0 FROM tab0 AS cor0 WHERE 87 - + CAST( NULL AS SIGNED ) / + col1 NOT BETWEEN NULL AND col0 * + col0
----

skipif mysql # not compatible
query I rowsort label-5983
SELECT col1 + col2 * + col0 FROM tab0 AS cor0 WHERE 87 - + CAST ( NULL AS INTEGER ) / + col1 NOT BETWEEN NULL AND col0 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND ( 8 / - 90 )
----

query I rowsort
SELECT + col0 + ( + col1 ) FROM tab1 AS cor0 WHERE - col1 * + 26 IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col0 * 4 + + col2 ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT SUM( ALL - col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5988
SELECT SUM ( ALL - col0 ) FROM tab2 cor0
----
-185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 * 57 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5990
SELECT DISTINCT - COUNT( * ) + - 80 AS col1 FROM tab0 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-5990
SELECT DISTINCT - COUNT ( * ) + - 80 AS col1 FROM tab0 cor0
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT + SUM( DISTINCT col1 ) FROM tab1 WHERE col1 <= col2 * 53
----
66

skipif mysql # not compatible
query I rowsort label-5991
SELECT + SUM ( DISTINCT col1 ) FROM tab1 WHERE col1 <= col2 * 53
----
66

query I rowsort
SELECT ALL + - 50 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 84 >= + 9
----

query I rowsort
SELECT DISTINCT - col0 * col1 + + - 31 FROM tab1 cor0
----
-4308
-456
-745

query I rowsort
SELECT DISTINCT - col1 + ( - 33 ) FROM tab0 AS cor0
----
-114
-34
-54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - 4 * + + 8 * - col0 )
----

query I rowsort
SELECT DISTINCT col2 + 14 * - col2 FROM tab0 AS cor0 WHERE NOT 24 BETWEEN ( 59 / 39 ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 27 ) BETWEEN 40 AND NULL
----

query I rowsort
SELECT DISTINCT - 89 * + col0 FROM tab0 AS cor0
----
-1335
-7743
-8633

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT 88 * col2 * + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT 88 * col2 * + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6002
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col2 + - col2 * 37 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1440
-2088
-828

onlyif mysql # DIV for integer division: 
query I rowsort label-6004
SELECT col0 DIV + ( 20 ) AS col1 FROM tab0 cor0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-6004
SELECT col0 / + ( 20 ) AS col1 FROM tab0 cor0
----
0
4
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6005
SELECT ALL MIN( ALL - + CAST( + CAST( + + CAST( - ( + 45 ) AS SIGNED ) AS SIGNED ) AS SIGNED ) ) * 54 AS col1 FROM tab1
----
2430

skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL MIN ( ALL - + CAST ( + CAST ( + + CAST ( - ( + 45 ) AS INTEGER ) AS INTEGER ) AS INTEGER ) ) * 54 AS col1 FROM tab1
----
2430

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 50 BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 37 FROM tab1 WHERE NOT NULL NOT IN ( col2 * - + 41 * + 20 - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 57 * - 14 AND ( NULL )
----

query I rowsort
SELECT + + 45 * - col0 + 94 + + col2 FROM tab0 cor0
----
-3811
-4172
-534

query I rowsort
SELECT - 59 + - 12 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT + col2 * - col0 + + col1 + col1 * + col2 FROM tab1 AS cor0
----
-2945
-3538
-4715

query I rowsort
SELECT - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT col2 * - 16 + + col2 + + col2 * col2 AS col1 FROM tab0
----
-50
1504
8316

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT + + MAX( ALL + - col2 ) + CAST( NULL AS SIGNED ) + 30 + - AVG ( + col0 ) * + 99 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT + + MAX ( ALL + - col2 ) + CAST ( NULL AS INTEGER ) + 30 + - AVG ( + col0 ) * + 99 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT ALL MAX( DISTINCT + - 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6017
SELECT ALL MAX ( DISTINCT + - 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - - 93 + + 47 FROM tab1 cor0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6019
SELECT + col2 + - 40 - + + col1 + - CAST( 83 AS SIGNED ) FROM tab1 cor0
----
-102
-41
-69

skipif mysql # not compatible
query I rowsort label-6019
SELECT + col2 + - 40 - + + col1 + - CAST ( 83 AS INTEGER ) FROM tab1 cor0
----
-102
-41
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col1 * + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 91 * + col2 >= ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE 54 * col2 + + + 38 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6023
SELECT + + 34 AS col0, 75 DIV + COUNT( * ) FROM tab0 AS cor0
----
34
25

skipif mysql # not compatible
query II rowsort label-6023
SELECT + + 34 AS col0, 75 / + COUNT ( * ) FROM tab0 AS cor0
----
34
25

query I rowsort
SELECT DISTINCT + + col2 * - - 35 AS col2 FROM tab1 AS cor0
----
2065
2380
3360

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

query I rowsort
SELECT ALL + ( col2 ) - + + col0 * - + col0 FROM tab0
----
272
7579
9508

query I rowsort
SELECT - col0 + + 86 * + + col0 FROM tab2
----
3910
5440
6375

query I rowsort
SELECT col0 * + + ( + col2 ) * + col1 AS col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6029
SELECT + COUNT( + - col2 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6029
SELECT + COUNT ( + - col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - - ( - 38 ) * + col1 * + 64 * - col2 FROM tab2 AS cor0
----
2852736
7490560
9450752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6032
SELECT + ( + + CAST( + + 47 AS SIGNED ) ) AS col1 FROM tab1 cor0
----
47
47
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6033
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2
----
0

skipif mysql # not compatible
query I rowsort label-6033
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2
----
0

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

query II rowsort
SELECT DISTINCT 35 AS col2, ( + col0 ) FROM tab1
----
35
51
35
85
35
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT - SUM( 67 ) FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-6036
SELECT - SUM ( 67 ) FROM tab0
----
-201

query II rowsort
SELECT 71, col0 AS col0 FROM tab2
----
71
46
71
64
71
75

query I rowsort
SELECT DISTINCT 58 * - col0 AS col1 FROM tab0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT ( - COUNT( * ) ) DIV + MIN( ALL - col0 ) * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT ( - COUNT ( * ) ) / + MIN ( ALL - col0 ) * + COUNT ( * ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45 AS col0, 26 col0 FROM tab1
----
45
26
45
26
45
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + - col2 col0 FROM tab2
----
1600
3364
529

query II rowsort
SELECT ALL + col1, - ( - col2 ) FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL + col1 / - + col1 - - + col0 * ( - 41 ) AS col2 FROM tab2 WHERE col1 * + - col0 = + 4
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + + col1
----

query I rowsort
SELECT - col1 * - - 22 * + ( + 85 ) * - + 3 AS col1 FROM tab1
----
263670
28050
78540

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6046
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - 77 + - 59 FROM tab0
----
-136
-136
-136

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6048
SELECT DISTINCT + ( col1 ) / - col2 + CAST( NULL AS DECIMAL ) AS col2, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6048
SELECT DISTINCT + ( col1 ) / - col2 + CAST ( NULL AS REAL ) AS col2, col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL 10 + - + col1 AS col2 FROM tab1 AS cor0
----
-37
-4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6050
SELECT ALL - 28 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + col0 * + col2 < col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6052
SELECT ALL - + col0 * + + col0 DIV - col0 + + - col2 col2 FROM tab2 cor0
----
17
23
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6052
SELECT ALL - + col0 * + + col0 / - col0 + + - col2 col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT DISTINCT + - col2 * - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 43 IN ( + - col2 + + + 22, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT + - col2 * - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 43 IN ( + - col2 + + + 22, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6054
SELECT * FROM tab1 cor0 WHERE 1 + 8 * + - CAST( NULL AS SIGNED ) + + col2 <> + col0 / - ( - + 24 )
----

skipif mysql # not compatible
query III rowsort label-6054
SELECT * FROM tab1 cor0 WHERE 1 + 8 * + - CAST ( NULL AS INTEGER ) + + col2 <> + col0 / - ( - + 24 )
----

query II rowsort
SELECT DISTINCT - col2 + + col0 - + - col0 + + 36, col2 AS col1 FROM tab1 AS cor0
----
147
59
150
68
42
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT 6 - - - COUNT( * ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6056
SELECT 6 - - - COUNT ( * ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 5 + + 95 FROM tab0
----
100
100
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 + + - col1 * + 30 col2 FROM tab0
----
-2496
-564
66

query I rowsort
SELECT + 84 + col2 FROM tab2
----
107
124
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT + SUM( + + ( - 48 ) ) + - 32 + + + 12 AS col1 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + SUM ( + + ( - 48 ) ) + - 32 + + + 12 AS col1 FROM tab2 AS cor0
----
-164

query I rowsort
SELECT ALL + col2 + - - 30 FROM tab1 AS cor0
----
126
89
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT col1 DIV + 59 AS col1 FROM tab0 cor0
----
0
0
1

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

query II rowsort
SELECT 52 AS col0, + col0 * - col2 * + 48 FROM tab0 AS cor0
----
52
-33840
52
-41760
52
-460944

query I rowsort
SELECT 92 - - + 74 FROM tab1
----
166
166
166

query III rowsort
SELECT ALL * FROM tab0 WHERE + 61 <> NULL
----

query II rowsort
SELECT ALL 17 AS col2, - col2 + - - 27 * + col2 FROM tab0
----
17
1222
17
2574
17
260

query I rowsort
SELECT 8 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 / + ( col2 ) IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query III rowsort label-6069
SELECT + col0 AS col0, + 13 DIV + - col1 * - - 53 AS col2, - 42 + col1 * - + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 11d07ae0c30508b1c2ab47f24491284d

skipif mysql # not compatible
query III rowsort label-6069
SELECT + col0 AS col0, + 13 / + - col1 * - - 53 AS col2, - 42 + col1 * - + col2 AS col0 FROM tab2 AS cor0
----
9 values hashing to 11d07ae0c30508b1c2ab47f24491284d

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 79 >= + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT MIN( - ( + - 31 ) ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6072
SELECT MIN ( - ( + - 31 ) ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT - 44 * + col0 * col2 FROM tab1 AS cor0
----
-215424
-220660
-272272

onlyif mysql # DIV for integer division: 
query II rowsort label-6074
SELECT - 48 DIV col2 AS col1, - col2 FROM tab0 AS cor0
----
-1
-47
-4
-10
0
-99

skipif mysql # not compatible
query II rowsort label-6074
SELECT - 48 / col2 AS col1, - col2 FROM tab0 AS cor0
----
-1
-47
-4
-10
0
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6075
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 25 * - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 25 * - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT col0 * + col2, col0, - col1 AS col0 FROM tab2
----
9 values hashing to 1ace0da70ca32855dc4106d5cd8a19e1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6077
SELECT COUNT( * ) * - COUNT( DISTINCT CAST( 59 AS DECIMAL ) ) AS col1 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6077
SELECT COUNT ( * ) * - COUNT ( DISTINCT CAST ( 59 AS REAL ) ) AS col1 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6078
SELECT ALL * FROM tab2 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6078
SELECT ALL * FROM tab2 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + ( - + col1 ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-6080
SELECT DISTINCT ( + col1 ) AS col1, 29 DIV - - 34 * - 40 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT ( + col1 ) AS col1, 29 / - - 34 * - 40 FROM tab2
----
51
0
67
0
77
0

query I rowsort
SELECT ALL 6 * ( - - col0 ) AS col2 FROM tab2 AS cor0
----
276
384
450

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

query I rowsort
SELECT - col1 + col2 + - col1 + + - col2 - + + ( col2 ) FROM tab1 cor0
----
-124
-162
-69

query I rowsort
SELECT ALL - + col1 + - + 3 FROM tab1 AS cor0
----
-17
-50
-8

query I rowsort
SELECT DISTINCT - col0 + + 88 FROM tab0 AS cor0
----
-9
1
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6086
SELECT ALL COUNT( * ) / + 52 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL COUNT ( * ) / + 52 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT ALL + + COUNT( * ) FROM tab0 AS cor0 WHERE ( col0 > - + col1 * - - ( - col0 ) - + col2 )
----
1

skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( col0 > - + col1 * - - ( - col0 ) - + col2 )
----
1

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 4 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + SUM( DISTINCT - col1 ) * - ( - ( + 48 ) ) - 69 * - - MIN( + col0 ) FROM tab0
----
-5979

skipif mysql # not compatible
query I rowsort label-6090
SELECT + SUM ( DISTINCT - col1 ) * - ( - ( + 48 ) ) - 69 * - - MIN ( + col0 ) FROM tab0
----
-5979

query I rowsort
SELECT - 99 * + 11 FROM tab1
----
-1089
-1089
-1089

query I rowsort
SELECT + col1 * - col0 * col2 + - col2 - + col1 / col0 + + col1 + - 83 * + - 22 * - - ( + col0 ) / - col0 - - col1 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6093
SELECT 72 - - - ( + MIN( DISTINCT - col2 ) ) AS col0 FROM tab1
----
168

skipif mysql # not compatible
query I rowsort label-6093
SELECT 72 - - - ( + MIN ( DISTINCT - col2 ) ) AS col0 FROM tab1
----
168

query I rowsort
SELECT + col0 * col1 - - col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-6095
SELECT 98 + + COUNT( * ) FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6095
SELECT 98 + + COUNT ( * ) FROM tab0 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT DISTINCT - ( + SUM( ALL - - 81 ) ) * SUM( DISTINCT col1 ) FROM tab2 cor0
----
-47385

skipif mysql # not compatible
query I rowsort label-6096
SELECT DISTINCT - ( + SUM ( ALL - - 81 ) ) * SUM ( DISTINCT col1 ) FROM tab2 cor0
----
-47385

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

query I rowsort
SELECT - col0 * + + col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6099
SELECT + MAX( DISTINCT 51 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6099
SELECT + MAX ( DISTINCT 51 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - col2 * + col0 / + - col2 / - - col1 FROM tab0 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT - col0 - col0 FROM tab0 cor0 WHERE NOT + col2 IS NULL
----
-174
-194
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6102
SELECT col2 * - - ( + 8 ) * - - col1 AS col2, CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6102
SELECT col2 * - - ( + 8 ) * - - col1 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT ALL - COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6103
SELECT ALL - COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6104
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col2 col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6104
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col2 col1 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6105
SELECT + COUNT( * ) AS col1, 79 FROM tab0
----
3
79

skipif mysql # not compatible
query II rowsort label-6105
SELECT + COUNT ( * ) AS col1, 79 FROM tab0
----
3
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * + col2 <= - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT col0 * col1 * - ( - + col1 ) * - ( + col2 ) AS col1 FROM tab2
----
-15178240
-19527150
-2751858

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - - ( + 12 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 * 24 * + + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6111
SELECT + COUNT( * ) DIV + 6 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6111
SELECT + COUNT ( * ) / + 6 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * 95 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7410

query I rowsort
SELECT ALL - + 54 * col2 FROM tab1 cor0
----
-3186
-3672
-5184

query I rowsort
SELECT DISTINCT - 44 + - 20 AS col0 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - ( + ( - - COUNT( - col1 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6115
SELECT - ( + ( - - COUNT ( - col1 ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT - 89 + - - COUNT( * ) + + 64 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT - 89 + - - COUNT ( * ) + + 64 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT DISTINCT - - col0 - - 95 AS col0 FROM tab1 AS cor0
----
146
180
186

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

query I rowsort
SELECT ALL - - col0 - - + col0 AS col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT 31 * - 84 * + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-119807
-166696
-195358

query II rowsort
SELECT col0 AS col1, - ( 89 ) + - 11 AS col0 FROM tab0 WHERE ( NOT - ( col1 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT + COUNT( * ) * - SUM( ALL + - ( col2 ) ) + + - 36 FROM tab1
----
633

skipif mysql # not compatible
query I rowsort label-6123
SELECT + COUNT ( * ) * - SUM ( ALL + - ( col2 ) ) + + - 36 FROM tab1
----
633

query I rowsort
SELECT ALL + 29 - + + col2 FROM tab2
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT 36 + + COUNT( * ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-6125
SELECT 36 + + COUNT ( * ) FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT + 85 * - SUM( 25 ) + 0 AS col0 FROM tab1
----
-6375

skipif mysql # not compatible
query I rowsort label-6126
SELECT + 85 * - SUM ( 25 ) + 0 AS col0 FROM tab1
----
-6375

query I rowsort
SELECT DISTINCT - col1 - - - col0 AS col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-6128
SELECT ALL + + 73 AS col2, - 59 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
73
-177

skipif mysql # not compatible
query II rowsort label-6128
SELECT ALL + + 73 AS col2, - 59 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
73
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-6129
SELECT SUM( ALL + - 17 ) AS col1 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6129
SELECT SUM ( ALL + - 17 ) AS col1 FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT ALL + - MIN( ALL col0 ) * ( + MIN( col1 ) ) FROM tab2 AS cor0
----
-2346

skipif mysql # not compatible
query I rowsort label-6130
SELECT ALL + - MIN ( ALL col0 ) * ( + MIN ( col1 ) ) FROM tab2 AS cor0
----
-2346

query I rowsort
SELECT + 29 * 71 AS col0 FROM tab0 AS cor0
----
2059
2059
2059

query I rowsort
SELECT ALL 77 - + - col1 + 29 + 10 AS col1 FROM tab1 WHERE NOT 8 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 BETWEEN col0 + + col0 AND ( + col0 )
----

query I rowsort
SELECT DISTINCT + + col2 + - col1 + - - col2 - 17 * + - 26 + - 38 AS col0 FROM tab0 AS cor0
----
403
417
601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6135
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) * col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE col1 = + 45
----

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

query I rowsort
SELECT - + col2 * + col2 * + - 7 + + 42 FROM tab0 cor0
----
15505
68649
742

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

query I rowsort
SELECT 62 + - col0 AS col0 FROM tab0
----
-25
-35
47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT SUM( + 43 ) AS col1 FROM tab1 cor0
----
129

skipif mysql # not compatible
query I rowsort label-6140
SELECT SUM ( + 43 ) AS col1 FROM tab1 cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6141
SELECT DISTINCT col1 + col0 + - col0 * - - CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0 WHERE 8 >= - - col0
----

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT col1 + col0 + - col0 * - - CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0 WHERE 8 >= - - col0
----

query I rowsort
SELECT + col1 * col2 * + col2 * + + ( col0 ) + 88 - - + 56 FROM tab2 AS cor0
----
1241178
16904244
7884944

query II rowsort
SELECT - + col1, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6144
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( col0 + + col1 + + - 49, CAST( col2 AS SIGNED ) * col0 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-6144
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( col0 + + col1 + + - 49, CAST ( col2 AS INTEGER ) * col0 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT DISTINCT col1 DIV col2 * + - 85 * + col2 * col1 DIV - 3 - + col2 * - + col1 AS col2 FROM tab0
----
111672
12110
99

skipif mysql # not compatible
query I rowsort label-6145
SELECT DISTINCT col1 / col2 * + - 85 * + col2 * col1 / - 3 - + col2 * - + col1 AS col2 FROM tab0
----
111672
12110
99

query I rowsort
SELECT - 54 - + 96 AS col1 FROM tab1
----
-150
-150
-150

onlyif mysql # DIV for integer division: 
query II rowsort label-6147
SELECT col0 * - col0 AS col1, + col0 DIV + col0 FROM tab0
----
-225
1
-7569
1
-9409
1

skipif mysql # not compatible
query II rowsort label-6147
SELECT col0 * - col0 AS col1, + col0 / + col0 FROM tab0
----
-225
1
-7569
1
-9409
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT - COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT + col0 * - + 82 AS col0 FROM tab1
----
-4182
-6970
-7462

query II rowsort
SELECT col1 * - 27 AS col0, + col0 AS col1 FROM tab0
----
-2187
15
-27
97
-567
87

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT MAX( DISTINCT - + 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6152
SELECT MAX ( DISTINCT - + 3 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT CAST( NULL AS SIGNED ) * - + ( col2 ) * col2 + + col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT + ( + - col0 ) * col0 + + col1 - + 51 + - ( - col1 ) + 59 + + col0 * + + 48 * col2 AS col0 FROM tab1 AS cor0
----
232443
233513
288845

onlyif mysql # DIV for integer division: 
query I rowsort label-6155
SELECT ALL - col0 DIV - - col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6155
SELECT ALL - col0 / - - col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + 29
----
NULL

skipif mysql # not compatible
query I rowsort label-6157
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6158
SELECT DISTINCT col0 DIV - col1 AS col2 FROM tab0 cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT col0 / - col1 AS col2 FROM tab0 cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6159
SELECT - + 24 AS col0, + 67 + - - MIN( ALL - col1 ) FROM tab0 AS cor0
----
-24
-14

skipif mysql # not compatible
query II rowsort label-6159
SELECT - + 24 AS col0, + 67 + - - MIN ( ALL - col1 ) FROM tab0 AS cor0
----
-24
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT DISTINCT + SUM( ALL 75 ) AS col1 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT + SUM ( ALL 75 ) AS col1 FROM tab1 AS cor0
----
225

query I rowsort
SELECT - - 43 FROM tab2 cor0
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + 31 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT + 91 * col1 * ( col1 ) + + col0 + - 12 + col1 + - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6163
SELECT + 91 * col1 * ( col1 ) + + col0 + - 12 + col1 + - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6164
SELECT DISTINCT col1 + + - col2 + + 81 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

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

query II rowsort
SELECT DISTINCT + col1 + + - 62, + col1 FROM tab1 AS cor0
----
-15
47
-48
14
-57
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + - col1 - col1 + col2 * + + col1 AND ( col2 )
----

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

query I rowsort
SELECT DISTINCT + 26 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
26

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

query I rowsort
SELECT col1 - + + 71 AS col0 FROM tab0 AS cor0
----
-50
-70
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - 73 + - + COUNT( * ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 73 + - + COUNT ( * ) FROM tab0 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT + SUM( - + col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6172
SELECT + SUM ( - + col1 ) FROM tab1 cor0
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col2 col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT + ( col1 ) * - col0 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - 84 * 26 AS col1 FROM tab0
----
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT - 30 * + COUNT( * ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-6176
SELECT - 30 * + COUNT ( * ) FROM tab0
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + 56 col2 FROM tab0
----
1176
4536
56

query I rowsort
SELECT DISTINCT col1 * 97 FROM tab0
----
2037
7857
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT + col0 DIV + - col2 FROM tab1 AS cor0
----
-1
-1
0

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

query II rowsort
SELECT 11 * col1 col1, + col0 FROM tab0 AS cor0
----
11
97
231
87
891
15

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6182
SELECT CAST( 30 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

skipif mysql # not compatible
query I rowsort label-6182
SELECT CAST ( 30 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
1770
2040
2880

query I rowsort
SELECT ALL + 92 * ( col0 ) FROM tab1 cor0
----
4692
7820
8372

query I rowsort
SELECT ALL + + ( - 85 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6185
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 44 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6185
SELECT + + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 44 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT DISTINCT - ( + col2 ) DIV col2 * + - col1 col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6186
SELECT DISTINCT - ( + col2 ) / col2 * + - col1 col0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + ( + 16 ) + - + col2 + - 93 + + col0 * + col0 FROM tab1 AS cor0
----
2428
7089
8136

query I rowsort
SELECT + col0 * + ( + col2 ) * ( + col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
102440
24357
252358

query I rowsort
SELECT - ( col1 ) + col0 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT ALL + - 23 + + - MIN( DISTINCT + 69 ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + - 23 + + - MIN ( DISTINCT + 69 ) FROM tab0 AS cor0
----
-92

query II rowsort
SELECT col0 + col0 col0, col0 FROM tab2 cor0
----
128
64
150
75
92
46

onlyif mysql # aggregate syntax: 
query II rowsort label-6192
SELECT - COUNT( * ) + - 31 AS col2, 35 FROM tab2 AS cor0
----
-34
35

skipif mysql # not compatible
query II rowsort label-6192
SELECT - COUNT ( * ) + - 31 AS col2, 35 FROM tab2 AS cor0
----
-34
35

query I rowsort
SELECT DISTINCT 63 - 25 AS col2 FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN + col0 AND - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6194
SELECT ALL - + col2 DIV ( - col2 ), 40 * + - col2 col2 FROM tab0 AS cor0
----
1
-1880
1
-3960
1
-400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6194
SELECT ALL - + col2 / ( - col2 ), 40 * + - col2 col2 FROM tab0 AS cor0
----
1
-1880
1
-3960
1
-400

query I rowsort
SELECT + 2 + + 33 FROM tab2
----
35
35
35

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + + col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6197
SELECT - - MAX( DISTINCT + + 9 ) * ( + CAST( + - AVG ( - 86 ) AS SIGNED ) ) + + ( - 59 ) FROM tab1 WHERE col1 BETWEEN + + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6197
SELECT - - MAX ( DISTINCT + + 9 ) * ( + CAST ( + - AVG ( - 86 ) AS INTEGER ) ) + + ( - 59 ) FROM tab1 WHERE col1 BETWEEN + + col1 AND NULL
----
NULL

query I rowsort
SELECT ALL - 62 FROM tab2 WHERE NOT + 57 - + col1 < NULL
----

query II rowsort
SELECT DISTINCT 24, col1 FROM tab2
----
24
51
24
67
24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT - MIN( ALL - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6200
SELECT - MIN ( ALL - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL 69 * + ( - + 69 ) FROM tab1 WHERE NULL NOT IN ( + - col2 * col0 + - col0, col0 - - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL 69 * + ( - + 69 ) FROM tab1 WHERE NULL NOT IN ( + - col2 * col0 + - col0, col0 - - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6202
SELECT - 86 AS col0, COUNT( DISTINCT - + 94 ) + + 38 AS col1 FROM tab2
----
-86
39

skipif mysql # not compatible
query II rowsort label-6202
SELECT - 86 AS col0, COUNT ( DISTINCT - + 94 ) + + 38 AS col1 FROM tab2
----
-86
39

query I rowsort
SELECT ALL - - 74 + - col1 FROM tab1 AS cor0
----
27
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT - 10 - - COUNT( * ) * + MAX( col1 ) AS col0 FROM tab2 cor0
----
221

skipif mysql # not compatible
query I rowsort label-6204
SELECT - 10 - - COUNT ( * ) * + MAX ( col1 ) AS col0 FROM tab2 cor0
----
221

query I rowsort
SELECT DISTINCT + col2 + + col2 * + 90 FROM tab0 AS cor0
----
4277
9009
910

query II rowsort
SELECT ALL + + 95, col2 FROM tab2 AS cor0
----
95
23
95
40
95
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6207
SELECT DISTINCT CAST( + - col1 AS SIGNED ), col0 FROM tab0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-6207
SELECT DISTINCT CAST ( + - col1 AS INTEGER ), col0 FROM tab0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + col0 + 89 FROM tab0
----
104
176
186

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 34 * - col1
----

query I rowsort
SELECT + col0 * + + 58 AS col1 FROM tab2 AS cor0
----
2668
3712
4350

query I rowsort
SELECT - 28 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + 71 ) AS col2 FROM tab2
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT IN ( + 31, + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE NOT + col2 NOT IN ( + 31, + col2 )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 21 col2 FROM tab0
----
2079
210
987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 AS col0, col1 col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT 52 + + COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT 52 + + COUNT ( * ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT + + col1 + + - col0 AS col2 FROM tab2 cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - col1 - col1 BETWEEN - col0 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT + SUM( ALL + 56 ) AS col0 FROM tab1 cor0
----
168

skipif mysql # not compatible
query I rowsort label-6222
SELECT + SUM ( ALL + 56 ) AS col0 FROM tab1 cor0
----
168

query I rowsort
SELECT DISTINCT 66 + + col0 AS col2 FROM tab1 cor0
----
117
151
157

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6224
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND 57 + + CAST( NULL AS SIGNED ) / - + col0 )
----

skipif mysql # not compatible
query III rowsort label-6224
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND 57 + + CAST ( NULL AS INTEGER ) / - + col0 )
----

query I rowsort
SELECT ALL 55 * + + col2 * - + 76 AS col1 FROM tab2 WHERE NOT - col0 + - 88 + col0 * - - col1 - col0 IS NOT NULL
----

query I rowsort
SELECT 63 * + 7 * - + ( col2 ) + + col2 AS col1 FROM tab1
----
-25960
-29920
-42240

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT SUM( DISTINCT + 70 ) col2 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT DISTINCT SUM ( DISTINCT + 70 ) col2 FROM tab1
----
70

onlyif mysql # DIV for integer division: 
query I rowsort label-6228
SELECT ALL col1 + - col0 DIV - col0 AS col2 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-6228
SELECT ALL col1 + - col0 / - col0 AS col2 FROM tab2
----
52
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT 69 * - col1 + CAST( NULL AS SIGNED ) / + - 61 * col0 col2 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6231
SELECT COUNT( * ) + + COUNT( * ) AS col1, COUNT( * ) AS col0 FROM tab2
----
6
3

skipif mysql # not compatible
query II rowsort label-6231
SELECT COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) AS col0 FROM tab2
----
6
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 - - ( col2 ) * 93 - col1 + + - 92 col1 FROM tab0
----
4260
914
9310

query III rowsort
SELECT * FROM tab1 WHERE col0 > - - 19 + + - 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 38 + - + col1 + - col2 + - + col1 * - 26 * - + col0 * col0, + col2 FROM tab1
----
-10119459
68
-939276
59
-946836
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6235
SELECT ALL 97 + + COUNT( * ) - + CAST( - 32 AS SIGNED ) - + COUNT( * ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-6235
SELECT ALL 97 + + COUNT ( * ) - + CAST ( - 32 AS INTEGER ) - + COUNT ( * ) FROM tab0 AS cor0
----
129

query I rowsort
SELECT - col0 * + - col2 * 8 * + col2 AS col1 FROM tab2 AS cor0
----
194672
2018400
819200

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ALL COUNT( * ) + ( - COUNT( * ) ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6237
SELECT ALL COUNT ( * ) + ( - COUNT ( * ) ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + 68 FROM tab2 AS cor0
----
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6239
SELECT DISTINCT + col0 - + - 74 DIV + col2 FROM tab2
----
49
65
76

skipif mysql # not compatible
query I rowsort label-6239
SELECT DISTINCT + col0 - + - 74 / + col2 FROM tab2
----
49
65
76

query I rowsort
SELECT ALL - + 45 + 60 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col2 col0 FROM tab1 AS cor0 WHERE NOT - col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT - + col0 DIV - 57 AS col0 FROM tab1 AS cor0
----
0
1
1

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

query II rowsort
SELECT col0, - col2 * - 81 AS col0 FROM tab1 cor0
----
51
7776
85
4779
91
5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6244
SELECT DISTINCT + col1 * + ( - - CAST( - - 22 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 53 FROM tab2 cor0 WHERE NOT ( col1 IS NULL ) OR NOT NULL IS NULL
----
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6246
SELECT + 47 AS col2, COUNT( * ) DIV 91 FROM tab1 AS cor0
----
47
0

skipif mysql # not compatible
query II rowsort label-6246
SELECT + 47 AS col2, COUNT ( * ) / 91 FROM tab1 AS cor0
----
47
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 54 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN - col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + + col0, - col1 * + col1 * - - col0 FROM tab1 WHERE + 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 * + + 9 * + col1 + - col2 < NULL
----

query II rowsort
SELECT - col0 * col2, + col1 AS col1 FROM tab2
----
-1058
51
-2560
77
-4350
67

query II rowsort
SELECT + col0 * + - col0 * + col1 AS col0, col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 76 + - 0 NOT BETWEEN + col1 * + - col2 AND ( - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6254
SELECT - col1 DIV - col1 AS col0, col2 FROM tab1 cor0
----
1
59
1
68
1
96

skipif mysql # not compatible
query II rowsort label-6254
SELECT - col1 / - col1 AS col0, col2 FROM tab1 cor0
----
1
59
1
68
1
96

query II rowsort
SELECT DISTINCT - - col2 + + col2, ( - + ( + 44 ) ) AS col2 FROM tab1 AS cor0
----
118
-44
136
-44
192
-44

query I rowsort
SELECT ALL + col0 + + col1 + col2 + - - col2 + + col0 * 40 + - 2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3606
4174
788

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - ( 39 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 - + + 42 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 NOT BETWEEN NULL AND - col2 - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + col1 + - + 62 + - + col1 AS col1, + 48 AS col2 FROM tab1 AS cor0
----
-156
48
-72
48
-90
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6262
SELECT DISTINCT - 82 + + CAST( + col2 AS SIGNED ) + 48 FROM tab0 AS cor0
----
-24
13
65

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT - 82 + + CAST ( + col2 AS INTEGER ) + 48 FROM tab0 AS cor0
----
-24
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT - + MIN( col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT - + MIN ( col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6264
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6264
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT - col2 + + 76 FROM tab1 AS cor0
----
-20
17
8

query I rowsort
SELECT ALL 35 + - 60 AS col0 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6267
SELECT - MIN( + CAST( 98 AS SIGNED ) ) FROM tab0 cor0 WHERE - 37 * + + 81 + 50 + + 36 * col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6267
SELECT - MIN ( + CAST ( 98 AS INTEGER ) ) FROM tab0 cor0 WHERE - 37 * + + 81 + 50 + + 36 * col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 23 - - col0 NOT IN ( - col2, - 47, - + 60 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - 67 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6270
SELECT COUNT( 69 ) DIV + MAX( + 47 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6270
SELECT COUNT ( 69 ) / + MAX ( + 47 ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT + SUM( ALL - 72 ) AS col2 FROM tab1 WHERE NOT - col2 - + + col1 IS NULL
----
-216

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT + SUM ( ALL - 72 ) AS col2 FROM tab1 WHERE NOT - col2 - + + col1 IS NULL
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT - ( - + 25 ) - + 98 - - COUNT( * ) col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6272
SELECT - ( - + 25 ) - + 98 - - COUNT ( * ) col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT - - ( - col2 ) - - col0 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6274
SELECT DISTINCT 28 DIV col2 - 91 FROM tab0 cor0
----
-89
-91

skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT 28 / col2 - 91 FROM tab0 cor0
----
-89
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT - col2 + - CAST( ( - ( - col2 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-6275
SELECT - col2 + - CAST ( ( - ( - col2 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT ALL * FROM tab0 WHERE + 81 + + 17 + + col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6277
SELECT - col2 DIV + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-6277
SELECT - col2 / + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
15
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * + col2 - + - 46 col2 FROM tab1 AS cor0
----
1066
1486
931

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6279
SELECT + - 59 DIV - + COUNT( col2 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-6279
SELECT + - 59 / - + COUNT ( col2 ) FROM tab0 AS cor0
----
19

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6281
SELECT 90, 84 DIV - 3 AS col0 FROM tab0
----
90
-28
90
-28
90
-28

skipif mysql # not compatible
query II rowsort label-6281
SELECT 90, 84 / - 3 AS col0 FROM tab0
----
90
-28
90
-28
90
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT ( + + CAST( NULL AS SIGNED ) ) * - col2 + - + col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT SUM( - 96 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT SUM ( - 96 ) AS col2 FROM tab1
----
-288

onlyif mysql # DIV for integer division: 
query II rowsort label-6284
SELECT col0, col1 * - 25 + - 62 - - col1 DIV + col0 + - - col1 FROM tab0
----
15
-2001
87
-566
97
-86

skipif mysql # not compatible
query II rowsort label-6284
SELECT col0, col1 * - 25 + - 62 - - col1 / + col0 + - - col1 FROM tab0
----
15
-2001
87
-566
97
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT + MAX( + 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT + MAX ( + 98 ) FROM tab0
----
98

query II rowsort
SELECT 83, 72 AS col2 FROM tab1
----
83
72
83
72
83
72

query I rowsort
SELECT col1 * - 68 AS col2 FROM tab1
----
-3196
-340
-952

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE - + col2 * - 26 IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6289
SELECT DISTINCT + + 68 DIV - 18 + + col0 AS col0, 77 FROM tab0 cor0
----
12
77
84
77
94
77

skipif mysql # not compatible
query II rowsort label-6289
SELECT DISTINCT + + 68 / - 18 + + col0 AS col0, 77 FROM tab0 cor0
----
12
77
84
77
94
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * + 21 + - col2 col2, col1 col2 FROM tab2 AS cor0
----
-1094
51
-1465
67
-1657
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT + CAST( + COUNT( * ) AS SIGNED ) + - 33 AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-6291
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) + - 33 AS col2 FROM tab2
----
-30

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 41 + - col0 col1 FROM tab2 cor0
----
-105
-116
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6294
SELECT - ( - 73 ) - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6294
SELECT - ( - 73 ) - CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 45 * + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-2570
-2969
-4269

query I rowsort
SELECT ALL + 89 * + - 65 FROM tab0 AS cor0 WHERE 4 IS NULL
----

query I rowsort
SELECT col2 + + col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col0 - - 9 AS col2 FROM tab2 AS cor0
----
55
73
84

query I rowsort
SELECT - - col2 + + col0 + col2 * + - 82 AS col2 FROM tab0 AS cor0
----
-3792
-723
-7922

onlyif mysql # aggregate syntax: 
query I rowsort label-6300
SELECT DISTINCT + + 63 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6300
SELECT DISTINCT + + 63 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 * 39 + col0 col2 FROM tab0
----
1929
3959
498

query I rowsort
SELECT 68 + + 94 FROM tab1
----
162
162
162

query I rowsort
SELECT DISTINCT 26 * + 73 AS col0 FROM tab1
----
1898

query I rowsort
SELECT ALL col2 + + - 40 * - - 37 AS col2 FROM tab0
----
-1381
-1433
-1470

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6305
SELECT DISTINCT - + 76 * + - ( col1 ) AS col1 FROM tab2 WHERE + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6305
SELECT DISTINCT - + 76 * + - ( col1 ) AS col1 FROM tab2 WHERE + - CAST ( NULL AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT 62 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT ALL 32 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6308
SELECT ALL 32 / col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6309
SELECT ALL MIN( col0 ) DIV + 26 AS col0 FROM tab1 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6310
SELECT ALL + 59, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
3

skipif mysql # not compatible
query II rowsort label-6310
SELECT ALL + 59, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT + col2 * + + CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6312
SELECT + 94 DIV - + 8 FROM tab1 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-6312
SELECT + 94 / - + 8 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT col2 * ( ( - ( + + col1 ) ) ) FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + + col2 * - col0 - col1 * 18 + - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - 75 * - col0 AS col2 FROM tab0 AS cor0
----
1125
6525
7275

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NOT col1 * - col2 + - 4 NOT BETWEEN - 77 AND + ( + + 2 )
----

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

query I rowsort
SELECT ALL + col0 + + col1 * + + 36 FROM tab0
----
133
2931
843

onlyif mysql # aggregate syntax: 
query I rowsort label-6319
SELECT DISTINCT - + COUNT( ALL + - col1 ) AS col2 FROM tab0 WHERE ( NOT 92 * 67 + - 84 = + - 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-6319
SELECT DISTINCT - + COUNT ( ALL + - col1 ) AS col2 FROM tab0 WHERE ( NOT 92 * 67 + - 84 = + - 27 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + - - MAX( ALL - - col0 ) + - COUNT( col2 ) * - COUNT( * ) + - 77 AS col2 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-6320
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + - - MAX ( ALL - - col0 ) + - COUNT ( col2 ) * - COUNT ( * ) + - 77 AS col2 FROM tab2
----
13

query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab1 AS cor0 WHERE NOT col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT DISTINCT + col1 * - - col1 + 58 DIV col2 FROM tab0 AS cor0
----
1
446
6562

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + col1 * - - col1 + 58 / col2 FROM tab0 AS cor0
----
1
446
6562

query I rowsort
SELECT - ( - + 79 ) * + - ( col2 ) FROM tab2 AS cor0
----
-1817
-3160
-4582

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT DISTINCT - MIN( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6325
SELECT DISTINCT + ( + 87 ) + + - COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6325
SELECT DISTINCT + ( + 87 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6326
SELECT * FROM tab1 WHERE + col0 <> - + CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6326
SELECT * FROM tab1 WHERE + col0 <> - + CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6327
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 / col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6327
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 / col1 IS NULL
----
3

query II rowsort
SELECT col1 * + + col0 + - col0 AS col1, + 55 AS col0 FROM tab0 AS cor0
----
0
55
1200
55
1740
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6329
SELECT + 19 * - COUNT( * ) + - 20 AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6329
SELECT + 19 * - COUNT ( * ) + - 20 AS col2 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT - + col0 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6331
SELECT DISTINCT + ( + COUNT( * ) ) + - + 7 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT + ( + COUNT ( * ) ) + - + 7 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT MIN( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6332
SELECT DISTINCT MIN ( DISTINCT - col0 ) AS col1 FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6333
SELECT CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE + ( + - col0 ) IS NULL
----

query I rowsort
SELECT + col2 * + col1 - + col0 + + - 27 AS col0 FROM tab0
----
-25
3765
96

query II rowsort
SELECT DISTINCT + 92 * + 97 col0, col0 - - col1 FROM tab2
----
8924
141
8924
142
8924
97

query I rowsort
SELECT 18 * - - col0 - + 87 + - col1 * - 37 FROM tab1 AS cor0 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT ALL - + 79 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query II rowsort
SELECT - - col0, col0 + - 78 AS col0 FROM tab0 AS cor0
----
15
-63
87
9
97
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6340
SELECT DISTINCT COUNT( ALL + col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6340
SELECT DISTINCT COUNT ( ALL + col2 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 61 * col1 * + col0 FROM tab1 cor0
----
25925
260897
43554

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col2 > - - 77
----
85
91

query I rowsort
SELECT ALL 47 * + + col1 AS col0 FROM tab2 AS cor0
----
2397
3149
3619

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6344
SELECT DISTINCT - - COUNT( * ) * - ( - CAST( NULL AS DECIMAL ) ) / 48 * + + 97 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - - COUNT ( * ) * - ( - CAST ( NULL AS REAL ) ) / 48 * + + 97 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6345
SELECT ALL + COUNT( * ) DIV COUNT( * ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6345
SELECT ALL + COUNT ( * ) / COUNT ( * ) col2 FROM tab0
----
1

query II rowsort
SELECT DISTINCT - 20 AS col0, col2 AS col2 FROM tab0
----
-20
10
-20
47
-20
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT + ( - 14 ) * COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-6347
SELECT + ( - 14 ) * COUNT ( * ) FROM tab0
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-6348
SELECT + col0 DIV - 14 AS col0, col0 - - - col0 FROM tab1
----
-3
0
-6
0
-6
0

skipif mysql # not compatible
query II rowsort label-6348
SELECT + col0 / - 14 AS col0, col0 - - - col0 FROM tab1
----
-3
0
-6
0
-6
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 * - + col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + 72 AS col1 FROM tab1
----
123
157
163

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6351
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + + CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-6351
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6352
SELECT DISTINCT - MAX( - 79 ) AS col0, + 68 AS col0 FROM tab0
----
79
68

skipif mysql # not compatible
query II rowsort label-6352
SELECT DISTINCT - MAX ( - 79 ) AS col0, + 68 AS col0 FROM tab0
----
79
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6353
SELECT + 47 - - - 50 * + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6353
SELECT + 47 - - - 50 * + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + - + col0 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT 19 + + 91 AS col2 FROM tab2
----
110
110
110

query I rowsort
SELECT + col0 FROM tab0 WHERE ( - + col0 ) * - col2 * col2 + - - 91 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT 14 * - - 3 * + - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 27 col1 FROM tab1 WHERE NOT NULL <= + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT DISTINCT - 0 DIV - + COUNT( * ) AS col2 FROM tab1 WHERE - col1 NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - 0 / - + COUNT ( * ) AS col2 FROM tab1 WHERE - col1 NOT BETWEEN + col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( ( NOT col1 * - 19 >= ( col2 ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - 83 ) FROM tab2
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT DISTINCT + COUNT( ALL 89 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6362
SELECT DISTINCT + COUNT ( ALL 89 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6363
SELECT ALL + MAX( ALL col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + MAX ( ALL col1 ) FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( + col1 ) ) IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-6365
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > col2
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL IN ( col0 * - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) <> - 22 * + col2 + - 6
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT 68 * - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 70 * + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6369
SELECT 68 * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 70 * + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6371
SELECT + COUNT( CAST( NULL AS SIGNED ) ) - + 0 AS col1 FROM tab0
----
0

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

query III rowsort
SELECT * FROM tab1 WHERE - 1 NOT IN ( + col0 * - 64 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6373
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6373
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 76 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + 19 IN ( - 85 + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > 45
----

query I rowsort
SELECT 85 * - 52 AS col1 FROM tab1
----
-4420
-4420
-4420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT DISTINCT CAST( ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6378
SELECT DISTINCT CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT DISTINCT AVG ( DISTINCT col0 ) * COUNT( * ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6379
SELECT DISTINCT AVG ( DISTINCT col0 ) * COUNT ( * ) FROM tab0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6380
SELECT 97 DIV COUNT( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6380
SELECT 97 / COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
32

query III rowsort
SELECT * FROM tab1 WHERE ( - 98 ) + ( col1 ) * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT - COUNT( * ) + 22 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - COUNT ( * ) + 22 FROM tab2
----
19

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE ( col2 * - col2 ) <= col0
----
10
47
99

query I rowsort
SELECT col0 + col0 * 37 AS col0 FROM tab1
----
1938
3230
3458

query I rowsort
SELECT DISTINCT 10 / - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + 22 * - 39 AS col0 FROM tab1
----
-858
-858
-858

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 53 BETWEEN - col1 AND ( NULL )
----
46
51
23

query I rowsort
SELECT ALL 87 FROM tab1 WHERE NOT - col0 + 28 * + col2 NOT BETWEEN ( - ( + col2 ) + - col0 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6390
SELECT ALL - ( col2 ) DIV col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6390
SELECT ALL - ( col2 ) / col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE 94 + 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE 94 + 17 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 78 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 WHERE ( NULL ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6394
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) * col1 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6394
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) * col1 ) IS NOT NULL
----

query I rowsort
SELECT + 17 / col1 + 96 AS col0 FROM tab0 WHERE ( col2 ) IN ( + col2 * - col1 )
----

query I rowsort
SELECT 35 + + 58 AS col2 FROM tab0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col0 IN ( ( - 13 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT - - SUM( ALL ( col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6398
SELECT - - SUM ( ALL ( col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6399
SELECT DISTINCT - 27 * SUM( ALL col1 * 12 ) + - 86 AS col1 FROM tab2 AS cor0
----
-63266

skipif mysql # not compatible
query I rowsort label-6399
SELECT DISTINCT - 27 * SUM ( ALL col1 * 12 ) + - 86 AS col1 FROM tab2 AS cor0
----
-63266

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6401
SELECT ALL - - MAX( DISTINCT - 43 ) * - 21 FROM tab2 AS cor0
----
903

skipif mysql # not compatible
query I rowsort label-6401
SELECT ALL - - MAX ( DISTINCT - 43 ) * - 21 FROM tab2 AS cor0
----
903

onlyif mysql # aggregate syntax: 
query I rowsort label-6402
SELECT DISTINCT + - 71 - - MIN( DISTINCT 53 ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + - 71 - - MIN ( DISTINCT 53 ) FROM tab0 cor0
----
-18

query I rowsort
SELECT DISTINCT - 30 + + col2 AS col0 FROM tab0 AS cor0
----
-20
17
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6404
SELECT + + MIN( - col1 ) col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6404
SELECT + + MIN ( - col1 ) col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 WHERE NOT 68 * + 59 IS NOT NULL
----

query I rowsort
SELECT 62 * ( col1 ) * 94 AS col1 FROM tab2
----
297228
390476
448756

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL 24 + COUNT( * ) col1 FROM tab0 WHERE NOT + 8 - col2 < ( - 6 + col2 ) OR + col2 IS NULL
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6407
SELECT ALL 24 + COUNT ( * ) col1 FROM tab0 WHERE NOT + 8 - col2 < ( - 6 + col2 ) OR + col2 IS NULL
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL + col0 FROM tab2 WHERE NOT - 4 * - CAST( col1 AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + col0 FROM tab2 WHERE NOT - 4 * - CAST ( col1 AS INTEGER ) NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT ALL col1 FROM tab2 WHERE + col1 NOT BETWEEN CAST( NULL AS SIGNED ) + 95 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL col1 FROM tab2 WHERE + col1 NOT BETWEEN CAST ( NULL AS INTEGER ) + 95 AND NULL
----

query I rowsort
SELECT + col1 + - col1 FROM tab2 WHERE col0 > ( NULL ) OR NULL IS NULL
----
0
0
0

query I rowsort
SELECT 11 * col1 FROM tab0
----
11
231
891

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN ( + col2 / ( - 89 * + col0 ) + - 75 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) * - 86 col0 FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 14 NOT BETWEEN ( col2 + + col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6416
SELECT - CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6416
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6417
SELECT DISTINCT COUNT( * ) * CAST( NULL AS SIGNED ) - 74 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6417
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS INTEGER ) - 74 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) * - ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT DISTINCT col2 DIV - col1 FROM tab2 WHERE NOT ( + 81 ) > col0 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-6420
SELECT DISTINCT col2 / - col1 FROM tab2 WHERE NOT ( + 81 ) > col0 * + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT COUNT( DISTINCT + 45 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6421
SELECT COUNT ( DISTINCT + 45 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6422
SELECT ALL 9, - COUNT( * ) + + COUNT( * ) + 11 AS col0 FROM tab0
----
9
11

skipif mysql # not compatible
query II rowsort label-6422
SELECT ALL 9, - COUNT ( * ) + + COUNT ( * ) + 11 AS col0 FROM tab0
----
9
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6423
SELECT + ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) * MIN( + 26 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) * + 48 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6423
SELECT + ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * MIN ( + 26 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) * + 48 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 BETWEEN NULL AND - col1 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 22 FROM tab2 WHERE col2 + ( - 65 ) IS NULL
----

query I rowsort
SELECT DISTINCT + + ( col0 ) FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col1 + - col0 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <= - 37 + - col0
----
-4910
-5020
-6235

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

query I rowsort
SELECT DISTINCT + 25 + 15 FROM tab1 cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT + col0 FROM tab1 AS cor0 WHERE 45 * + + CAST( col2 AS SIGNED ) + 10 * - 24 NOT BETWEEN NULL AND - 81 / - 45 + - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6430
SELECT + col0 FROM tab1 AS cor0 WHERE 45 * + + CAST ( col2 AS INTEGER ) + 10 * - 24 NOT BETWEEN NULL AND - 81 / - 45 + - col1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6431
SELECT DISTINCT - col2 * ( + + col0 ) DIV - 23 FROM tab2 AS cor0
----
111
189
46

skipif mysql # not compatible
query I rowsort label-6431
SELECT DISTINCT - col2 * ( + + col0 ) / - 23 FROM tab2 AS cor0
----
111
189
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6432
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( CAST( NULL AS DECIMAL ) ) / - col2 ) IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6432
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( CAST ( NULL AS REAL ) ) / - col2 ) IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6433
SELECT col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6433
SELECT col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT - COUNT( DISTINCT ( 84 ) ) FROM tab1 AS cor0 WHERE - 81 * + - col2 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6434
SELECT - COUNT ( DISTINCT ( 84 ) ) FROM tab1 AS cor0 WHERE - 81 * + - col2 IS NOT NULL
----
-1

query I rowsort
SELECT DISTINCT col1 * - 35 + - 98 * + col1 AS col0 FROM tab2 AS cor0
----
-10241
-6783
-8911

query I rowsort
SELECT + col1 * col1 + 66 FROM tab2 AS cor0
----
2667
4555
5995

query I rowsort
SELECT ALL - 73 + - ( + ( ( 47 ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + ( - + col1 ) FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT - CAST( NULL AS SIGNED ) + - + col2 * + + col0 + - col2 + col0 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT 29 DIV 7 * 36 + col2 AS col1 FROM tab2
----
167
184
202

skipif mysql # not compatible
query I rowsort label-6440
SELECT 29 / 7 * 36 + col2 AS col1 FROM tab2
----
167
184
202

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL + COUNT( * ) + - 25 * COUNT( * ) * - + 88 AS col2 FROM tab1
----
6603

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL + COUNT ( * ) + - 25 * COUNT ( * ) * - + 88 AS col2 FROM tab1
----
6603

query I rowsort
SELECT + col2 + - - 17 * - 52 + - col2 AS col1 FROM tab2
----
-884
-884
-884

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT 2 + + + col2 DIV - col0 FROM tab0
----
-1
1
2

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

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

query I rowsort
SELECT col2 + + 69 FROM tab1
----
128
137
165

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col2 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * - col1 + - col2 + col0 FROM tab2 AS cor0
----
-2578
-4472
-5905

query II rowsort
SELECT DISTINCT + col1 - col0 AS col2, - col0 * - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-8
4350
13
2560
5
1058

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6449
SELECT ALL * FROM tab2 WHERE NOT + - 47 BETWEEN + - CAST( + col2 AS SIGNED ) - col0 AND - col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6449
SELECT ALL * FROM tab2 WHERE NOT + - 47 BETWEEN + - CAST ( + col2 AS INTEGER ) - col0 AND - col0 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + 54 - + col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - - col0 / + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6454
SELECT ALL - CAST( col0 AS SIGNED ) DIV - + 53 FROM tab0 AS cor0
----
0
1
1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT - 82 IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * + col2 * - + ( - - 71 ) + col0 / 17 <= ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT COUNT( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6457
SELECT COUNT ( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6458
SELECT - COUNT( * ) AS col0, + 3 + - 60 AS col0 FROM tab2 AS cor0
----
-3
-57

skipif mysql # not compatible
query II rowsort label-6458
SELECT - COUNT ( * ) AS col0, + 3 + - 60 AS col0 FROM tab2 AS cor0
----
-3
-57

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE col0 * - col2 <> - col0 - + - col2 + col1
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT + CAST( NULL AS SIGNED ) * - 53 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - - col2 ) - + + col2 / + 71 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT + MIN( + col1 ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6462
SELECT DISTINCT + MIN ( + col1 ) col1 FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL 53 * + COUNT( * ) * + - 20 FROM tab2
----
-3180

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL 53 * + COUNT ( * ) * + - 20 FROM tab2
----
-3180

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6464
SELECT + 26 FROM tab1 WHERE NOT NULL IN ( + - 81 * - ( + - col1 ) + + - ( 96 ) * - CAST( NULL AS SIGNED ) - - 60 )
----

skipif mysql # not compatible
query I rowsort label-6464
SELECT + 26 FROM tab1 WHERE NOT NULL IN ( + - 81 * - ( + - col1 ) + + - ( 96 ) * - CAST ( NULL AS INTEGER ) - - 60 )
----

query II rowsort
SELECT col0 AS col2, col0 AS col2 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT - 35 * - col2 AS col0 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # DIV for integer division: 
query I rowsort label-6467
SELECT - 45 DIV - col2 + - - col0 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-6467
SELECT - 45 / - col2 + - - col0 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6468
SELECT DISTINCT + col0, - col1 * + CAST( col1 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
15
308367
87
4410
97
99

skipif mysql # not compatible
query II rowsort label-6468
SELECT DISTINCT + col0, - col1 * + CAST ( col1 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
15
308367
87
4410
97
99

query II rowsort
SELECT + - col1 AS col2, - col1 * + col0 FROM tab1 AS cor0
----
-14
-714
-47
-4277
-5
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT + SUM( + col2 ) * + - 35 FROM tab0 AS cor0
----
-5460

skipif mysql # not compatible
query I rowsort label-6470
SELECT + SUM ( + col2 ) * + - 35 FROM tab0 AS cor0
----
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT - - ( - MAX( ALL - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT - - ( - MAX ( ALL - col2 ) ) AS col1 FROM tab1 AS cor0
----
59

query II rowsort
SELECT DISTINCT + col1, 14 FROM tab0 AS cor0
----
1
14
21
14
81
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ( + ( COUNT( * ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6473
SELECT ( + ( COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN 23 / + col1 AND + 45
----

query I rowsort
SELECT DISTINCT 19 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + ( + col2 ) / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT DISTINCT - + MAX( ALL + 47 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - + MAX ( ALL + 47 ) AS col0 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + - ( col2 ) FROM tab1 AS cor0 WHERE - 46 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( + 95 * + col0 / - col1 )
----

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab1 AS cor0 WHERE ( ( + - col1 * - 85 + + col2 ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, 81 * - col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT ALL - 45 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - 45 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT - 84 * + col1 AS col1 FROM tab0 AS cor0
----
-1764
-6804
-84

query III rowsort
SELECT * FROM tab2 WHERE - - col2 > ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6484
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

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

query I rowsort
SELECT DISTINCT - col0 * - - col1 * - col0 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL - CAST( NULL AS SIGNED ) * + ( ( COUNT( - + col0 ) ) ) FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 71 + 15 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + - col0 + - - col0 + - col0 * - col1 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # aggregate syntax: 
query I rowsort label-6489
SELECT ALL MIN( DISTINCT 51 ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL MIN ( DISTINCT 51 ) AS col1 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6490
SELECT - 29 + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
-20

skipif mysql # not compatible
query I rowsort label-6490
SELECT - 29 + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6491
SELECT DISTINCT - ( - + CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6493
SELECT + CAST( MIN( - 49 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-6493
SELECT + CAST ( MIN ( - 49 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6494
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query II rowsort
SELECT 74 col0, - col0 - + + col1 FROM tab0
----
74
-108
74
-96
74
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6496
SELECT ALL 50 * + - COUNT( * ) AS col0 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-6496
SELECT ALL 50 * + - COUNT ( * ) AS col0 FROM tab0
----
-150

query II rowsort
SELECT DISTINCT - ( - col0 ), col2 FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6498
SELECT ALL + CAST( NULL AS SIGNED ) * + + col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6499
SELECT + MAX( + 54 ) AS col1 FROM tab1 WHERE NOT - + CAST( 23 AS SIGNED ) + col2 / - col1 * - - col2 <= 51 * 64
----
NULL

skipif mysql # not compatible
query I rowsort label-6499
SELECT + MAX ( + 54 ) AS col1 FROM tab1 WHERE NOT - + CAST ( 23 AS INTEGER ) + col2 / - col1 * - - col2 <= 51 * 64
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + - 16 BETWEEN + - 94 * - 93 + - col2 + + 93 / + 18 * 11 * 62 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT ( - MIN( - - col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT ( - MIN ( - - col0 ) ) FROM tab0
----
-15

query I rowsort
SELECT ALL + col0 * + ( - + col1 ) AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT DISTINCT - + SUM( ALL - col0 ) * + 86 AS col2 FROM tab0 AS cor0
----
17114

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT - + SUM ( ALL - col0 ) * + 86 AS col2 FROM tab0 AS cor0
----
17114

query I rowsort
SELECT 93 + - col1 * 47 AS col1 FROM tab0 AS cor0
----
-3714
-894
46

query I rowsort
SELECT - 56 + col1 + + - 71 + - col2 * 19 * + + 73 FROM tab2
----
-31977
-55530
-80506

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT SUM( DISTINCT - 99 ) col1 FROM tab1
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6506
SELECT SUM ( DISTINCT - 99 ) col1 FROM tab1
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( 27 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL < + + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6509
SELECT COUNT( * ) col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6509
SELECT COUNT ( * ) col1 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + - col2 + col1 + col2 AS col2 FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT DISTINCT - col0, + col1 FROM tab2 cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * - 23 * - + 38 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + + 50 ) - + ( 1 ) AS col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + 46 + 89 AS col0 FROM tab1 AS cor0
----
135

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

query III rowsort
SELECT * FROM tab2 WHERE ( ( + col1 < + - 89 ) )
----

query I rowsort
SELECT + col2 + - col0 * - + col1 AS col1 FROM tab0
----
1262
1837
196

query III rowsort
SELECT * FROM tab0 WHERE + 36 < - ( + + col1 ) * col2 + + 36 + ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6519
SELECT - col1 + + + col1 DIV + col0 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-6519
SELECT - col1 + + + col1 / + col0 FROM tab0
----
-1
-21
-76

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----

query I rowsort
SELECT ( - 55 ) + + 23 * + 4 FROM tab2
----
37
37
37

query I rowsort
SELECT ALL - col2 * - + col2 - + 51 + - 94 * + - 62 FROM tab0 AS cor0
----
15578
5877
7986

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT DISTINCT - - COUNT( * ) + - MAX( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-6523
SELECT DISTINCT - - COUNT ( * ) + - MAX ( ALL + 38 ) AS col0 FROM tab1 AS cor0
----
-35

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT ALL - 38 - + CAST( col1 AS SIGNED ) - - ( + col0 ) + - col2 * + - col2 + + + col2 - - col2 FROM tab2 cor0
----
1629
3450
532

skipif mysql # not compatible
query I rowsort label-6525
SELECT ALL - 38 - + CAST ( col1 AS INTEGER ) - - ( + col0 ) + - col2 * + - col2 + + + col2 - - col2 FROM tab2 cor0
----
1629
3450
532

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 > NULL
----

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( NULL ) < - col2
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT JOIN tab0 AS cor1 ON NULL IS NOT NULL WHERE NOT - 70 IS NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query I rowsort
SELECT DISTINCT col0 * + 55 AS col2 FROM tab0 WHERE ( NULL ) IS NULL
----
4785
5335
825

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT DISTINCT MIN( - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-6530
SELECT DISTINCT MIN ( - - col2 ) FROM tab1
----
59

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - 51 NOT IN ( - 72, - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT + COUNT( * ) * - 51 AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6532
SELECT + COUNT ( * ) * - 51 AS col0 FROM tab1 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6533
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col1 * - 86 + + col2 FROM tab2 AS cor0
----
4409
5820
6662

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6536
SELECT + COUNT( * ) DIV + 41 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6536
SELECT + COUNT ( * ) / + 41 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL 40 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL 40 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
120

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

query I rowsort
SELECT DISTINCT 32 * + 12 * col1 * + + 76 FROM tab2
----
1488384
1955328
2247168

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-6540
SELECT DISTINCT CAST( NULL AS DECIMAL ) DIV - col2 AS col2, + 87 * + + col0 - - 35 * + col0 + - col2 DIV + ( + 9 ) + - col2 FROM tab0
----
NULL
10603
NULL
11724
NULL
1778

skipif mysql # not compatible
query II rowsort label-6540
SELECT DISTINCT CAST ( NULL AS REAL ) / - col2 AS col2, + 87 * + + col0 - - 35 * + col0 + - col2 / + ( + 9 ) + - col2 FROM tab0
----
NULL
10603
NULL
11724
NULL
1778

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * - + col2 + - + 26 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col1 * + + col1 * - 5 * col0 + 99 * + 34 FROM tab2 AS cor0
----
-1680009
-1893914
-594864

query I rowsort
SELECT ALL - + col0 * - col1 + - - col2 AS col0 FROM tab2 cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT + - ( CAST( NULL AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6545
SELECT DISTINCT - - col0 * + col2 + - ( - + 91 ) + + - col2 + col1 DIV ( 4 ) FROM tab2 AS cor0
----
1138
2630
4399

skipif mysql # not compatible
query I rowsort label-6545
SELECT DISTINCT - - col0 * + col2 + - ( - + 91 ) + + - col2 + col1 / ( 4 ) FROM tab2 AS cor0
----
1138
2630
4399

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 col1 FROM tab0 WHERE NOT + - 40 IS NULL
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 + 91 col0 FROM tab1 AS cor0
----
-4805
-4924
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6549
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + + 49 + - col0 + - + col2 * + 89 * col0 * col0 AS col2 FROM tab2 AS cor0
----
-14581775
-29036276
-4331449

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6551
SELECT ALL - 80 DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL - 80 / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-26

query II rowsort
SELECT DISTINCT col1 AS col2, + 25 AS col0 FROM tab2 AS cor0 WHERE col1 < ( + - col0 + + - 0 + - col0 )
----

query I rowsort
SELECT + col2 * + ( + col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
1523
3297
478

query I rowsort
SELECT - col1 / + + ( + col1 ) - - 2 FROM tab1 AS cor0 WHERE col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT + - col1 + + col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 54 - col1 AS col0 FROM tab1
----
40
49
7

query II rowsort
SELECT DISTINCT - col0 AS col2, - 74 FROM tab0
----
-15
-74
-87
-74
-97
-74

query I rowsort
SELECT ALL + 78 * + col0 - + - col2 AS col1 FROM tab1
----
4074
6689
7166

query I rowsort
SELECT 61 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 27 * + ( col2 ) - - - col1 * 14 AS col2 FROM tab2
----
-93
2
628

query I rowsort
SELECT 46 * col1 - + col1 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT DISTINCT MAX( ALL + ( - - col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6562
SELECT DISTINCT MAX ( ALL + ( - - col2 ) ) FROM tab1
----
96

query I rowsort
SELECT col0 - + - col2 + 8 AS col2 FROM tab0
----
105
204
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT - COUNT( * ) * + COUNT( * ) - + SUM( col0 ) - + + 11 FROM tab1
----
-247

skipif mysql # not compatible
query I rowsort label-6564
SELECT - COUNT ( * ) * + COUNT ( * ) - + SUM ( col0 ) - + + 11 FROM tab1
----
-247

onlyif mysql # DIV for integer division: 
query II rowsort label-6565
SELECT ALL 75 AS col0, col2 DIV - ( col0 ) AS col0 FROM tab0
----
75
-1
75
-3
75
0

skipif mysql # not compatible
query II rowsort label-6565
SELECT ALL 75 AS col0, col2 / - ( col0 ) AS col0 FROM tab0
----
75
-1
75
-3
75
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 86 * + 43 IS NOT NULL
----

query I rowsort
SELECT - ( + col0 ) + - 2 FROM tab1 AS cor0
----
-53
-87
-93

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( col2 ) >= col2
----

query I rowsort
SELECT col1 * + col0 * + ( + + 54 ) FROM tab2
----
126684
266112
271350

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 83 > col1
----

query I rowsort
SELECT ALL - 6 FROM tab2 AS cor0 WHERE NOT - col0 - - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 25 * + col2 NOT BETWEEN 82 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6573
SELECT ALL + MAX( ALL - 45 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6573
SELECT ALL + MAX ( ALL - 45 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-135

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

query II rowsort
SELECT + 18 AS col0, col2 AS col2 FROM tab0
----
18
10
18
47
18
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT + 77 DIV - 29 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6576
SELECT + 77 / - 29 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6577
SELECT + CAST( - 42 AS SIGNED ) FROM tab2
----
-42
-42
-42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE + - col0 BETWEEN col0 AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE + - col0 BETWEEN col0 AND - + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT + COUNT( * ) + - 80 FROM tab1, tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6579
SELECT + COUNT ( * ) + - 80 FROM tab1, tab0 AS cor0
----
-71

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - col1 * - col0 AND col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6581
SELECT col0 AS col1, col0 DIV + col2 AS col1 FROM tab0
----
15
0
87
8
97
0

skipif mysql # not compatible
query II rowsort label-6581
SELECT col0 AS col1, col0 / + col2 AS col1 FROM tab0
----
15
0
87
8
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT col1 + + col1 + - 7 FROM tab0 WHERE NOT NULL <> CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-6582
SELECT col1 + + col1 + - 7 FROM tab0 WHERE NOT NULL <> CAST ( NULL AS INTEGER ) + + col2
----

query I rowsort
SELECT + col2 * + col1 FROM tab0 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT - 50 + + col0 + - - col0 + + + 40 FROM tab0 AS cor0
----
164
184
20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT IN ( + + col1 * col0 * + - 69 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT COUNT( * ) * + + 31 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT COUNT ( * ) * + + 31 FROM tab1 AS cor0
----
93

query I rowsort
SELECT DISTINCT - 96 * - col1 * - col0 + + col0 + - - col0 * 93 AS col2 FROM tab2 AS cor0
----
-220892
-467072
-475350

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT ALL - SUM( ALL + + col1 ) + - + COUNT( * ) - + 20 AS col1 FROM tab2 cor0
----
-218

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL - SUM ( ALL + + col1 ) + - + COUNT ( * ) - + 20 AS col1 FROM tab2 cor0
----
-218

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT ALL SUM( DISTINCT + + col0 ) FROM tab1 AS cor0 WHERE col0 * - + ( + col0 ) > 27
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT ALL SUM ( DISTINCT + + col0 ) FROM tab1 AS cor0 WHERE col0 * - + ( + col0 ) > 27
----
NULL

query I rowsort
SELECT col0 + + 11 FROM tab1 cor0
----
102
62
96

query I rowsort
SELECT DISTINCT - col1 - 39 * - col0 + + + 88 AS col0 FROM tab0 cor0
----
3460
3870
592

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT + MIN( ALL + col1 ) * + 47 + - 41 AS col1 FROM tab2 AS cor0
----
2356

skipif mysql # not compatible
query I rowsort label-6592
SELECT + MIN ( ALL + col1 ) * + 47 + - 41 AS col1 FROM tab2 AS cor0
----
2356

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + col0 + col1 + col2 * - ( - col1 ) col2 FROM tab1
----
4265
5145
8430

query I rowsort
SELECT DISTINCT + 19 - + col1 FROM tab1
----
-28
14
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6596
SELECT - col0 + col2 DIV - ( col2 ) FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-6596
SELECT - col0 + col2 / - ( col2 ) FROM tab2
----
-47
-65
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6597
SELECT DISTINCT CAST( + MAX( ALL 37 ) AS SIGNED ) AS col2 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-6597
SELECT DISTINCT CAST ( + MAX ( ALL 37 ) AS INTEGER ) AS col2 FROM tab2
----
37

query I rowsort
SELECT + 17 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 36 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query II rowsort
SELECT DISTINCT - col2 AS col2, + 61 * - + col2 FROM tab2 AS cor0
----
-23
-1403
-40
-2440
-58
-3538

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT + + col1 * + - 32 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col1 * - col0 + - - col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT + col1 + + col1 + col0 * - 59 AS col0 FROM tab2 AS cor0
----
-2612
-3622
-4291

query I rowsort
SELECT - - col2 * + col2 + + col1 FROM tab1 AS cor0
----
3486
4671
9230

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( 26 ) IN ( - 12 )
----
2

query I rowsort
SELECT - col1 + - col2 + + + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-149
-161
-206

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6610
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 8 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6611
SELECT - 58 + + COUNT( * ) AS col0 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-6611
SELECT - 58 + + COUNT ( * ) AS col0 FROM tab0
----
-55

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6613
SELECT - 91 DIV 81 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6613
SELECT - 91 / 81 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col0, col2 / - 43 * col0 AS col0 FROM tab2 cor0 WHERE ( - col0 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 - - - col2 FROM tab0 AS cor0
----
-98
11
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( col1 + - 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6617
SELECT + 77 DIV + 49 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

query I rowsort
SELECT - col0 * + - col2 AS col0 FROM tab2
----
1058
2560
4350

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

query I rowsort
SELECT 68 FROM tab1 WHERE NOT - col1 NOT BETWEEN ( col1 * + col1 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT - + COUNT( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6622
SELECT - + COUNT ( ALL - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL COUNT( * ) * - MIN( DISTINCT - + col0 ) FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL COUNT ( * ) * - MIN ( DISTINCT - + col0 ) FROM tab2
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6624
SELECT - 73 FROM tab0 WHERE NOT - col2 + + + 67 IN ( ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) / - col1, col1, col0 + - col2 )
----

skipif mysql # not compatible
query I rowsort label-6624
SELECT - 73 FROM tab0 WHERE NOT - col2 + + + 67 IN ( ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) / - col1, col1, col0 + - col2 )
----

query II rowsort
SELECT DISTINCT - col0, 14 * - + ( + col1 ) AS col2 FROM tab1
----
-51
-196
-85
-70
-91
-658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * + col1 col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-1122
-1474
-1694

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT + MIN( ALL + - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + MIN ( ALL + - col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT + MIN( + col1 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT DISTINCT + MIN ( + col1 ) col0 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT col0 col1, ( - col2 ) * - - 49 AS col0 FROM tab0 AS cor0
----
15
-2303
87
-490
97
-4851

query I rowsort
SELECT + + 55 AS col2 FROM tab0 WHERE NULL >= + col0
----

query II rowsort
SELECT ALL 75, + ( - 60 ) AS col2 FROM tab1
----
75
-60
75
-60
75
-60

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 50 * - 96 AND + col2
----

query I rowsort
SELECT 13 + - - 92 + - + col0 FROM tab1
----
14
20
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT + COUNT( * ) + + COUNT( ALL + col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6634
SELECT + COUNT ( * ) + + COUNT ( ALL + col2 ) FROM tab0
----
6

query I rowsort
SELECT col2 + + - ( - 1 ) + - - col2 + - col1 AS col1 FROM tab2
----
-4
4
50

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN col0 AND NULL
----

query I rowsort
SELECT + col1 * + 32 * - 52 + - - col0 * - col2 FROM tab1
----
-13335
-28192
-84396

onlyif mysql # DIV for integer division: 
query I rowsort label-6638
SELECT col2 + - - col2 DIV - 27 AS col2 FROM tab2
----
23
39
56

skipif mysql # not compatible
query I rowsort label-6638
SELECT col2 + - - col2 / - 27 AS col2 FROM tab2
----
23
39
56

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - + col2 + col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6640
SELECT ALL COUNT( * ) + + 90 DIV + ( 88 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL COUNT ( * ) + + 90 / + ( 88 ) AS col1 FROM tab2
----
4

query I rowsort
SELECT col1 + - - 10 AS col0 FROM tab2
----
61
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6642
SELECT ALL col2 - - col0 AS col0, col1 * - col0 - - - CAST( + col2 AS SIGNED ) + col1 AS col1 FROM tab0
----
196
-195
62
-1181
97
-1816

skipif mysql # not compatible
query II rowsort label-6642
SELECT ALL col2 - - col0 AS col0, col1 * - col0 - - - CAST ( + col2 AS INTEGER ) + col1 AS col1 FROM tab0
----
196
-195
62
-1181
97
-1816

query I rowsort
SELECT ALL ( - col0 ) * - 8 FROM tab1
----
408
680
728

query I rowsort
SELECT - col1 - + - col0 + + col2 + + + col0 AS col1 FROM tab0
----
-4
163
292

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 41 NOT IN ( - 4, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6646
SELECT DISTINCT + ( - + col0 ) DIV - + col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT + ( - + col0 ) / - + col2 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT + COUNT( * ) + 7 + - 0 AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-6647
SELECT + COUNT ( * ) + 7 + - 0 AS col2 FROM tab0 cor0
----
10

query I rowsort
SELECT + - ( - - col1 ) + - 38 AS col0 FROM tab1 AS cor0
----
-43
-52
-85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6649
SELECT DISTINCT col2 + col2 col2, CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
198
1
20
21
94
81

skipif mysql # not compatible
query II rowsort label-6649
SELECT DISTINCT col2 + col2 col2, CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
198
1
20
21
94
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6650
SELECT ALL * FROM tab1 cor0 WHERE - col0 * 83 NOT IN ( - col2, - col1 + 29 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6650
SELECT ALL * FROM tab1 cor0 WHERE - col0 * 83 NOT IN ( - col2, - col1 + 29 + - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 34 / - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT ALL - - col2 * + 63 FROM tab1 AS cor0
----
3717
4284
6048

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= - col0
----

query II rowsort
SELECT + col1 AS col1, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT col1 * 63 * - + col1 FROM tab1
----
-12348
-139167
-1575

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6657
SELECT ALL - COUNT( DISTINCT - 97 ) * COUNT( DISTINCT - - CAST( + col1 AS SIGNED ) ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - COUNT ( DISTINCT - 97 ) * COUNT ( DISTINCT - - CAST ( + col1 AS INTEGER ) ) FROM tab1 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6658
SELECT ALL 40 * + MIN( 70 ) AS col1 FROM tab0
----
2800

skipif mysql # not compatible
query I rowsort label-6658
SELECT ALL 40 * + MIN ( 70 ) AS col1 FROM tab0
----
2800

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 >= ( - - 69 )
----
51
14
96

query II rowsort
SELECT ALL + col0 col1, - col1 AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL col2 * + ( + col1 ) + 89 AS col0 FROM tab1 AS cor0
----
1433
3285
384

query I rowsort
SELECT - 31 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT DISTINCT - 64 * + ( - col2 ) AS col0 FROM tab1
----
3776
4352
6144

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ( + + MAX( + col0 ) ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6664
SELECT ( + + MAX ( + col0 ) ) AS col2 FROM tab2
----
75

query I rowsort
SELECT ALL + + 83 + - ( col2 ) FROM tab1 cor0
----
-13
15
24

query I rowsort
SELECT - ( col1 ) + + + col2 * col2 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # DIV for integer division: 
query I rowsort label-6667
SELECT col0 DIV + col2 + + ( - - 98 ) + + col2 AS col0 FROM tab1 AS cor0
----
158
167
194

skipif mysql # not compatible
query I rowsort label-6667
SELECT col0 / + col2 + + ( - - 98 ) + + col2 AS col0 FROM tab1 AS cor0
----
158
167
194

query II rowsort
SELECT ALL - col0 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT ALL - + COUNT( * ) * + SUM( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-6669
SELECT ALL - + COUNT ( * ) * + SUM ( ALL - col0 ) AS col0 FROM tab1 AS cor0
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 11 * - 45 col1 FROM tab2 AS cor0
----
-22770
-31680
-37125

query I rowsort
SELECT ALL + 15 + + + 23 AS col2 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT SUM( ALL + 53 ) AS col0 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT SUM ( ALL + 53 ) AS col0 FROM tab0
----
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6673
SELECT CAST( + col0 AS SIGNED ) / - CAST( NULL AS SIGNED ) / col1 * + + ( + col1 ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0, tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 - + col2 * + ( - 52 ) * - col1 col0 FROM tab2
----
-160019
-201930
-60899

query I rowsort
SELECT ALL - col0 + - ( + - col2 ) + - - col2 + - col1 FROM tab2 AS cor0
----
-26
-51
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT + COUNT( * ) + + 25 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
34

skipif mysql # not compatible
query I rowsort label-6677
SELECT + COUNT ( * ) + + 25 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
34

query I rowsort
SELECT ALL + col0 - + + col2 FROM tab0
----
-2
-32
77

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

query I rowsort
SELECT DISTINCT 24 * + + col1 - + 64 + - col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-137
1865
353

onlyif mysql # aggregate syntax: 
query I rowsort label-6681
SELECT DISTINCT MIN( ALL - + 98 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT MIN ( ALL - + 98 ) FROM tab0 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT COUNT( DISTINCT col2 ) * - + 38 * - - COUNT( * ) FROM tab0 AS cor0
----
-342

skipif mysql # not compatible
query I rowsort label-6682
SELECT COUNT ( DISTINCT col2 ) * - + 38 * - - COUNT ( * ) FROM tab0 AS cor0
----
-342

query I rowsort
SELECT + 32 * - col2 FROM tab0 AS cor0
----
-1504
-3168
-320

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - 10 / col1 AND - + 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT ( ( + - col0 ) ) * col2 DIV + col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6685
SELECT ( ( + - col0 ) ) * col2 / + col0 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - col0 AS col1, 50 + - + 12 FROM tab2
----
-46
38
-64
38
-75
38

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6687
SELECT DISTINCT + COUNT( DISTINCT col1 ) + CAST( NULL AS DECIMAL ) / - ( - COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + COUNT ( DISTINCT col1 ) + CAST ( NULL AS REAL ) / - ( - COUNT ( * ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * - 86 * 91 + - col1 FROM tab1 AS cor0
----
-461739
-532215
-751310

query I rowsort
SELECT DISTINCT col2 * + - 49 * - + col1 + + col0 FROM tab1 cor0
----
14540
156695
65907

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * col2 * + col2 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE col0 * col1 * - ( - col1 ) NOT IN ( + 33, col0, - - col1 * + + ( - col1 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-6691
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * col1 * - ( - col1 ) NOT IN ( + 33, col0, - - col1 * + + ( - col1 ) )
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6692
SELECT col0 * - col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6693
SELECT DISTINCT - + 81 DIV - + 70 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6693
SELECT DISTINCT - + 81 / - + 70 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - 23 + - + col2 + + 85 FROM tab0
----
-37
15
52

query I rowsort
SELECT ALL + 42 + + 39 FROM tab2
----
81
81
81

query I rowsort
SELECT - ( col0 ) + + 71 + - - col0 * - + 21 AS col2 FROM tab2
----
-1337
-1579
-941

query I rowsort
SELECT ALL - + col2 + - col1 * ( + 22 ) * + + col2 * + - 28 AS col1 FROM tab1 cor0
----
181661
1968668
827808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6698
SELECT - + CAST( + col2 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-6698
SELECT - + CAST ( + col2 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 - + - col1 col2 FROM tab2
----
132
148
158

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + col1
----

query I rowsort
SELECT + col1 * + 98 FROM tab1 cor0
----
1372
4606
490

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT - col1 DIV - col2 - col2 col1 FROM tab0 AS cor0
----
-46
-8
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6704
SELECT - col1 / - col2 - col2 col1 FROM tab0 AS cor0
----
-46
-8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6705
SELECT + SUM( DISTINCT - - 48 ) AS col2 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6705
SELECT + SUM ( DISTINCT - - 48 ) AS col2 FROM tab2 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6706
SELECT + 10 DIV col1 FROM tab0 AS cor0
----
0
0
10

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 59 / + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6708
SELECT - CAST( - + col1 AS SIGNED ) col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6708
SELECT - CAST ( - + col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6709
SELECT ALL + MIN( ALL CAST( 97 AS SIGNED ) ) FROM tab0 AS cor0
----
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab1, tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-81

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6714
SELECT COUNT( DISTINCT - col0 ) AS col0, - 43 FROM tab2 AS cor0
----
3
-43

skipif mysql # not compatible
query II rowsort label-6714
SELECT COUNT ( DISTINCT - col0 ) AS col0, - 43 FROM tab2 AS cor0
----
3
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT - MIN( - + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6715
SELECT - MIN ( - + ( col1 ) ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL < 80 - - 0 + + col0 - + - col0 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 40 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - + 34 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT + COUNT( * ) + COUNT( DISTINCT + 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT + COUNT ( * ) + COUNT ( DISTINCT + 71 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query I rowsort
SELECT 70 + - col0 FROM tab0
----
-17
-27
55

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT + col0 + - + 70 DIV - col1 FROM tab2 AS cor0
----
47
64
76

skipif mysql # not compatible
query I rowsort label-6721
SELECT + col0 + - + 70 / - col1 FROM tab2 AS cor0
----
47
64
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 88 + col2 col1 FROM tab0 AS cor0
----
135
187
98

query I rowsort
SELECT DISTINCT - col0 + - col1 * 67 + + 22 FROM tab2 AS cor0
----
-3441
-4542
-5201

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6724
SELECT ALL 97 + 18 DIV - - COUNT( * ) AS col2, 97 AS col0 FROM tab2 AS cor0
----
103
97

skipif mysql # not compatible
query II rowsort label-6724
SELECT ALL 97 + 18 / - - COUNT ( * ) AS col2, 97 AS col0 FROM tab2 AS cor0
----
103
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE 96 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT DISTINCT - - col2 + - 35 DIV col1 + col1 AS col0 FROM tab1 AS cor0
----
108
115
57

skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - - col2 + - 35 / col1 + col1 AS col0 FROM tab1 AS cor0
----
108
115
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6729
SELECT DISTINCT SUM( + + col2 ) - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE 10 NOT IN ( + ( + 87 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 33 ) FROM tab2
----
-33

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6732
SELECT * FROM tab0 WHERE + 13 + - - CAST( + + col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6732
SELECT * FROM tab0 WHERE + 13 + - - CAST ( + + col1 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6733
SELECT ALL + CAST( NULL AS SIGNED ) * - - col2 AS col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col2 AS col2 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - - - col1 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6735
SELECT + col2 DIV - + 69 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6735
SELECT + col2 / - + 69 col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6736
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - - CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6737
SELECT - CAST( NULL AS SIGNED ) - - col0 - col2 - + 54 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT DISTINCT - COUNT( * ) * - 59 FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT - COUNT ( * ) * - 59 FROM tab2
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-6739
SELECT ALL col2 DIV col2 DIV - col1 + - - col0 + + col1 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-6739
SELECT ALL col2 / col2 / - col1 + - - col0 + + col1 FROM tab2
----
141
142
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT + col2 - - - 30 DIV + 34 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6740
SELECT + col2 - - - 30 / + 34 FROM tab1
----
59
68
96

query II rowsort
SELECT ALL - col2 AS col1, + 85 * 95 * - col2 FROM tab1 AS cor0
----
-59
-476425
-68
-549100
-96
-775200

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT DISTINCT - 72 DIV + - col0 AS col0 FROM tab2 AS cor0
----
0
1

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6743
SELECT - COUNT( * ) * COUNT( * ) col1, 53 AS col0 FROM tab2 WHERE NOT - 91 < ( - ( - + col0 ) )
----
0
53

skipif mysql # not compatible
query II rowsort label-6743
SELECT - COUNT ( * ) * COUNT ( * ) col1, 53 AS col0 FROM tab2 WHERE NOT - 91 < ( - ( - + col0 ) )
----
0
53

onlyif mysql # DIV for integer division: 
query I rowsort label-6744
SELECT DISTINCT + 26 DIV ( + - col0 ) AS col0 FROM tab2
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6745
SELECT + - CAST( NULL AS SIGNED ) * 10 + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT ALL + MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6746
SELECT ALL + MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + + 67 * col1 + + - 50 AS col0 FROM tab0 AS cor0
----
1357
17
5377

query I rowsort
SELECT + ( - col0 ) * col1 / + - col1 / - ( col0 ) FROM tab0 AS cor0 WHERE NOT - 68 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 19 * - 23 FROM tab2 WHERE NOT NULL >= + 47 + + - 65
----

query II rowsort
SELECT + 18 AS col2, - col0 AS col1 FROM tab1
----
18
-51
18
-85
18
-91

query II rowsort
SELECT DISTINCT - col2 AS col0, col0 FROM tab2
----
-23
46
-40
64
-58
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 37 >= NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE col0 + + 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT + MAX( ALL - + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT + MAX ( ALL - + col2 ) AS col0 FROM tab2
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT - + ( col2 ) + - col0 + + CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 68 + 31 FROM tab2 AS cor0
----
-37
-37
-37

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

query I rowsort
SELECT ALL - 59 + + col1 AS col2 FROM tab1 AS cor0
----
-12
-45
-54

query I rowsort
SELECT col2 * col1 * + + col2 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6760
SELECT 83 DIV COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-6760
SELECT 83 / COUNT ( * ) FROM tab0
----
27

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE col0 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 97
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col0 - + col2 - - - col2 - - col0, col1 FROM tab0 AS cor0
----
-4
1
-64
81
154
21

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6765
SELECT DISTINCT - + 78 col2, + ( COUNT( - col1 ) ) FROM tab1 cor0
----
-78
3

skipif mysql # not compatible
query II rowsort label-6765
SELECT DISTINCT - + 78 col2, + ( COUNT ( - col1 ) ) FROM tab1 cor0
----
-78
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6767
SELECT DISTINCT + col0 DIV + + col1 - col0 AS col0 FROM tab2
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT + col0 / + + col1 - col0 AS col0 FROM tab2
----
-46
-64
-74

query I rowsort
SELECT DISTINCT col0 * + col1 * + 40 FROM tab1
----
17000
171080
28560

query III rowsort
SELECT * FROM tab2 WHERE - + 5 - - - ( + ( + - 24 ) ) * 69 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL - 63 * + - 73 * + COUNT( * ) FROM tab0 cor0
----
13797

skipif mysql # not compatible
query I rowsort label-6770
SELECT ALL - 63 * + - 73 * + COUNT ( * ) FROM tab0 cor0
----
13797

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6772
SELECT ALL + 55 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - 58 ) + - + 86 - - CAST( - col2 AS SIGNED ) AND col0
----

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL + 55 FROM tab0 WHERE NOT NULL NOT BETWEEN + ( - 58 ) + - + 86 - - CAST ( - col2 AS INTEGER ) AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6773
SELECT COUNT( * ) AS col0, COUNT( ALL col2 ) AS col2 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6773
SELECT COUNT ( * ) AS col0, COUNT ( ALL col2 ) AS col2 FROM tab0 cor0
----
3
3

query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab0 AS cor0 WHERE NOT + ( 11 ) IS NULL
----
46

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 48 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - + 71 AS col0, + col2 AS col1 FROM tab0 AS cor0 WHERE NOT 30 IS NULL
----
-71
10
-71
47
-71
99

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

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + + COUNT( * ) + - AVG ( + - col1 ) + ( + 17 ) FROM tab2 AS cor0 WHERE NOT col1 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT + + COUNT ( * ) + - AVG ( + - col1 ) + ( + 17 ) FROM tab2 AS cor0 WHERE NOT col1 < NULL
----
NULL

query I rowsort
SELECT + col2 * + 58 * + col0 AS col2 FROM tab2
----
148480
252300
61364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6781
SELECT CAST( - ( - + col1 ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6781
SELECT CAST ( - ( - + col1 ) AS INTEGER ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT DISTINCT + SUM( ALL - ( 54 ) ) FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-6782
SELECT DISTINCT + SUM ( ALL - ( 54 ) ) FROM tab2
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT ALL ( + + 4 ) * - COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6783
SELECT ALL ( + + 4 ) * - COUNT ( * ) AS col1 FROM tab0
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6785
SELECT + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6786
SELECT ALL CAST( NULL AS SIGNED ) * + - 46 + col2 - - ( + col0 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col2 - - - 62 * col0 + + - 20 AS col2 FROM tab1 AS cor0
----
-3086
-5231
-5594

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - ( - 76 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6789
SELECT DISTINCT - CAST( + 44 AS SIGNED ) FROM tab2 cor0
----
-44

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

query I rowsort
SELECT ALL - col1 - + 41 AS col1 FROM tab1
----
-46
-55
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6791
SELECT DISTINCT - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL AND NOT NULL <= NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + 31 <= ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col0 ) * + 16 col0 FROM tab0
----
1392
1552
240

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT ALL COUNT( * ) - + + ( 6 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6794
SELECT ALL COUNT ( * ) - + + ( 6 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 5 * + 89 AS col1 FROM tab2
----
445
445
445

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6796
SELECT col2 * col1 AS col1, CAST( + + ( ( + + col2 ) ) AS SIGNED ) * col2 FROM tab2
----
1173
529
3080
1600
3886
3364

skipif mysql # not compatible
query II rowsort label-6796
SELECT col2 * col1 AS col1, CAST ( + + ( ( + + col2 ) ) AS INTEGER ) * col2 FROM tab2
----
1173
529
3080
1600
3886
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT + MIN( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6797
SELECT + MIN ( ALL + col2 ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT COUNT( * ) * - 69 + - ( 46 ) col0 FROM tab0 AS cor0
----
-253

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6798
SELECT COUNT ( * ) * - 69 + - ( 46 ) col0 FROM tab0 AS cor0
----
-253

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6800
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - - COUNT( * ) + ( + 49 ) AS col2, CAST( 19 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL
19

skipif mysql # not compatible
query II rowsort label-6800
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - - COUNT ( * ) + ( + 49 ) AS col2, CAST ( 19 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
NULL
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6801
SELECT - + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6801
SELECT - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 82 ) col1 FROM tab0
----
-82
-82
-82

query II rowsort
SELECT ( ( - + 30 ) ) AS col0, + col2 + + ( + - ( - col0 ) ) FROM tab1
----
-30
144
-30
147
-30
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT DISTINCT - ( - MIN( - + 75 ) ) AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6804
SELECT DISTINCT - ( - MIN ( - + 75 ) ) AS col0 FROM tab0 AS cor0
----
-75

query II rowsort
SELECT DISTINCT + col0 * - 2 * col0 AS col0, + col2 FROM tab2 AS cor0
----
-11250
58
-4232
23
-8192
40

query II rowsort
SELECT DISTINCT col2 AS col2, 85 AS col1 FROM tab0
----
10
85
47
85
99
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL 4 + - COUNT( * ) * - MAX( + ( + 80 ) ) AS col2 FROM tab1
----
244

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL 4 + - COUNT ( * ) * - MAX ( + ( + 80 ) ) AS col2 FROM tab1
----
244

query I rowsort
SELECT + 31 + + 94 - - col2 FROM tab1
----
184
193
221

query II rowsort
SELECT DISTINCT - - col1 + + col0 + + + ( - 42 ) AS col0, col0 FROM tab2 AS cor0
----
100
75
55
46
99
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6810
SELECT DISTINCT 73 + - ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6810
SELECT DISTINCT 73 + - ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
70

query II rowsort
SELECT DISTINCT col1 col1, 16 FROM tab0 cor0
----
1
16
21
16
81
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 < + 79
----
87
21
10
97
1
99

query I rowsort
SELECT ALL col0 * - 80 * - 94 * col1 AS col2 FROM tab2 AS cor0
----
17641920
37058560
37788000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6814
SELECT SUM( ALL + col1 ) DIV - + SUM( - 1 ) AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6814
SELECT SUM ( ALL + col1 ) / - + SUM ( - 1 ) AS col1 FROM tab1 AS cor0
----
22

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 11 * 62 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 40 - col1 * - 21 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 >= ( + col2 * 47 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT - 4 - + COUNT( * ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-6818
SELECT - 4 - + COUNT ( * ) FROM tab2
----
-7

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

query I rowsort
SELECT ALL + col2 + - 15 * - col1 FROM tab2
----
1063
1195
788

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6821
SELECT 90 DIV - COUNT( * ) - 42 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-6821
SELECT 90 / - COUNT ( * ) - 42 FROM tab2
----
-72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 53 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6823
SELECT ALL + SUM( DISTINCT ( + col2 ) ) - 42 AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL + SUM ( DISTINCT ( + col2 ) ) - 42 AS col1 FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6824
SELECT ALL + 17 * - COUNT( ALL - 97 * 68 ) + + COUNT( * ) FROM tab0 WHERE ( NULL ) = ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL + 17 * - COUNT ( ALL - 97 * 68 ) + + COUNT ( * ) FROM tab0 WHERE ( NULL ) = ( 94 )
----
0

query I rowsort
SELECT ALL 55 FROM tab0 WHERE 4 IS NOT NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT + 18 * SUM( col0 ) AS col2 FROM tab0
----
3582

skipif mysql # not compatible
query I rowsort label-6826
SELECT + 18 * SUM ( col0 ) AS col2 FROM tab0
----
3582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6827
SELECT ALL 7 DIV - COUNT( * ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6827
SELECT ALL 7 / - COUNT ( * ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT col1 * 32 AS col1 FROM tab1
----
1504
160
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL 47 AS col1 FROM tab2 WHERE col1 + + CAST( NULL AS SIGNED ) NOT BETWEEN ( - col1 + - col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL 47 AS col1 FROM tab2 WHERE col1 + + CAST ( NULL AS INTEGER ) NOT BETWEEN ( - col1 + - col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT DISTINCT - 18 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT - 18 / col0 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT + COUNT( * ) * + ( ( + COUNT( * ) ) ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6831
SELECT + COUNT ( * ) * + ( ( + COUNT ( * ) ) ) AS col0 FROM tab1
----
9

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT col2 NOT BETWEEN ( 58 + + col2 ) AND NULL
----

query I rowsort
SELECT col2 + 93 * - col0 AS col0 FROM tab2
----
-4255
-5912
-6917

query I rowsort
SELECT DISTINCT 30 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT DISTINCT COUNT( * ) col0 FROM tab1 WHERE NOT - col2 < col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6835
SELECT DISTINCT COUNT ( * ) col0 FROM tab1 WHERE NOT - col2 < col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 37 + col1 AND 31 * - col2
----

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

query I rowsort
SELECT + col0 * col0 FROM tab1 WHERE ( - col0 ) IS NOT NULL
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT ALL ( 57 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6839
SELECT ALL ( 57 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
171

query I rowsort
SELECT 63 + + col0 * col0 AS col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 88 - col2 * col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE - col0 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 49 + 7 AS col1 FROM tab1 WHERE col2 * 16 IS NULL
----

query I rowsort
SELECT col0 + 47 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 46 <= + 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 55 * + 18 AS col1 FROM tab2 AS cor0
----
990
990
990

query I rowsort
SELECT DISTINCT - 5 + - 15 * + ( col2 ) FROM tab2 AS cor0
----
-350
-605
-875

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6850
SELECT 49 - + COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6850
SELECT 49 - + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) >= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6851
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( 34 AS SIGNED ) * + 77 - CAST( NULL AS SIGNED ) BETWEEN ( col2 ) AND - CAST( NULL AS SIGNED ) - 65 * + col1
----

skipif mysql # not compatible
query III rowsort label-6851
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( 34 AS INTEGER ) * + 77 - CAST ( NULL AS INTEGER ) BETWEEN ( col2 ) AND - CAST ( NULL AS INTEGER ) - 65 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT - col1 * 63 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1313
-5056
36

skipif mysql # not compatible
query I rowsort label-6852
SELECT - col1 * 63 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1313
-5056
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT - COUNT( * ) + MIN( ALL 15 ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-6853
SELECT - COUNT ( * ) + MIN ( ALL 15 ) AS col1 FROM tab0 AS cor0
----
12

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 14 AND ( - col1 )
----

query I rowsort
SELECT col1 * - 9 FROM tab2 AS cor0
----
-459
-603
-693

query I rowsort
SELECT col0 * + + 32 AS col2 FROM tab0
----
2784
3104
480

query III rowsort
SELECT * FROM tab1 WHERE + 10 NOT IN ( - col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( 38 ) FROM tab0 WHERE NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6859
SELECT ALL + ( + CAST( 33 AS SIGNED ) ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-6859
SELECT ALL + ( + CAST ( 33 AS INTEGER ) ) * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
99

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= + col1 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6861
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - col0 + + 12 + + col2 AS col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT DISTINCT + col0 - - + 77 DIV 57 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-6862
SELECT DISTINCT + col0 - - + 77 / 57 FROM tab2 AS cor0
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT + - col1 DIV + + col2 - col2 FROM tab0 cor0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-6863
SELECT + - col1 / + + col2 - col2 FROM tab0 cor0
----
-12
-48
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT + col1 DIV - 17 + col1 * col1 - col1 FROM tab2 cor0
----
2547
4419
5848

skipif mysql # not compatible
query I rowsort label-6864
SELECT + col1 / - 17 + col1 * col1 - col1 FROM tab2 cor0
----
2547
4419
5848

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6865
SELECT ALL - COUNT( * ) DIV COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL - COUNT ( * ) / COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 37 + - col0 * - col1 AS col2 FROM tab0 cor0
----
1178
1790
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col2 >= + 53 * 64 AND + col2 NOT BETWEEN + col0 AND + col2 + - 3
----
15
81
47
87
21
10

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

query I rowsort
SELECT + + 95 AS col2 FROM tab0 WHERE NULL IS NULL
----
95
95
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6870
SELECT ALL + MIN( + col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN + + col0 AND + col2 + - CAST( NULL AS SIGNED ) * 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL + MIN ( + col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN + + col0 AND + col2 + - CAST ( NULL AS INTEGER ) * 19
----
NULL

query I rowsort
SELECT DISTINCT - ( - ( col0 ) ) FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 49 ) <> + col1 * ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT col0 DIV + 74 AS col2 FROM tab1 AS cor0
----
0
1
1

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

query I rowsort
SELECT ALL + - 33 * + + ( - col2 ) FROM tab2 AS cor0
----
1320
1914
759

query I rowsort
SELECT ALL + col0 + - - 98 + - col1 AS col2 FROM tab1 AS cor0
----
135
142
178

query I rowsort
SELECT + col2 * + + 52 FROM tab0 AS cor0
----
2444
5148
520

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT ALL - 25 * - - COUNT( * ) + - 10 AS col0 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-6877
SELECT ALL - 25 * - - COUNT ( * ) + - 10 AS col0 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT ALL - MAX( - 65 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - MAX ( - 65 ) FROM tab2 AS cor0
----
65

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

query I rowsort
SELECT - col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( col1 + - - 55 ) IN ( - 58 )
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 AS col2, col2 col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT + 26 FROM tab2 cor0 WHERE NOT + 57 / - + 35 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 43 * - col2 NOT IN ( 68 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6884
SELECT DISTINCT SUM( ALL + col1 ) col1, - CAST( 48 AS SIGNED ) * + CAST( NULL AS DECIMAL ) FROM tab1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-6884
SELECT DISTINCT SUM ( ALL + col1 ) col1, - CAST ( 48 AS INTEGER ) * + CAST ( NULL AS REAL ) FROM tab1
----
66
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6885
SELECT ALL 20 DIV col1 col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6885
SELECT ALL 20 / col1 col1 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT MAX( - - 62 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT MAX ( - - 62 ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6888
SELECT DISTINCT ( - 94 ) AS col1, 87 * - COUNT( * ) * - COUNT( * ) FROM tab1
----
-94
783

skipif mysql # not compatible
query II rowsort label-6888
SELECT DISTINCT ( - 94 ) AS col1, 87 * - COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-94
783

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT 53 - + + 23 * COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
53

skipif mysql # not compatible
query I rowsort label-6889
SELECT 53 - + + 23 * COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT + COUNT( + - col1 ) * + 79 AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-6890
SELECT + COUNT ( + - col1 ) * + 79 AS col0 FROM tab2
----
237

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE ( - + 84 ) IS NULL
----

query I rowsort
SELECT + col0 * + - 21 AS col1 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT - + 87 * + col1 FROM tab2 AS cor0
----
-4437
-5829
-6699

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + 7 col0 FROM tab2 AS cor0
----
-322
-448
-525

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - + SUM( - 40 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
360

skipif mysql # not compatible
query I rowsort label-6896
SELECT - + SUM ( - 40 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
360

query I rowsort
SELECT ALL - ( - + col0 ) + col2 + - col1 * - ( - 15 ) * col1 AS col1 FROM tab0 cor0
----
-6518
-98353
181

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 36 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6899
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( CAST( NULL AS SIGNED ) + + col2 * 58 )
----

skipif mysql # not compatible
query III rowsort label-6899
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT IN ( CAST ( NULL AS INTEGER ) + + col2 * 58 )
----

query I rowsort
SELECT 65 * + - col0 AS col2 FROM tab1 AS cor0
----
-3315
-5525
-5915

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6902
SELECT DISTINCT - MIN( DISTINCT - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6902
SELECT DISTINCT - MIN ( DISTINCT - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6904
SELECT ALL - - 68 + + 2 * - SUM( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-378

skipif mysql # not compatible
query I rowsort label-6904
SELECT ALL - - 68 + + 2 * - SUM ( ALL + + col2 ) AS col1 FROM tab1 AS cor0
----
-378

onlyif mysql # DIV for integer division: 
query I rowsort label-6905
SELECT - col1 + col2 + - col1 * col2 DIV col2 AS col0 FROM tab0
----
-115
-32
97

skipif mysql # not compatible
query I rowsort label-6905
SELECT - col1 + col2 + - col1 * col2 / col2 AS col0 FROM tab0
----
-115
-32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT 78 + - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-6906
SELECT 78 + - COUNT ( * ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT - + MIN( - col0 ) + + + 11 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT - + MIN ( - col0 ) + + + 11 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT MAX( ALL 83 ) + - - 74 AS col1 FROM tab0
----
157

skipif mysql # not compatible
query I rowsort label-6908
SELECT MAX ( ALL 83 ) + - - 74 AS col1 FROM tab0
----
157

query I rowsort
SELECT - 39 + 23 + 12 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT 86 + - 80 + - 36 FROM tab1
----
-30
-30
-30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( col1 * - 99 / + - col2 + + col2 ) IN ( + 88 ) )
----

query I rowsort
SELECT ALL 59 * - + col0 FROM tab0
----
-5133
-5723
-885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6913
SELECT + ( + + COUNT( * ) ) + ( COUNT( * ) ) + - + CAST( + + 24 AS SIGNED ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-6913
SELECT + ( + + COUNT ( * ) ) + ( COUNT ( * ) ) + - + CAST ( + + 24 AS INTEGER ) FROM tab2
----
-18

query I rowsort
SELECT ALL col2 - col2 + - ( + col0 ) * - + 70 FROM tab0 AS cor0
----
1050
6090
6790

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 44 AS col1, col0 col2 FROM tab2 AS cor0
----
-44
46
-44
64
-44
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT + col2 - + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 22 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT - MAX( - - col0 ) * - COUNT( ( - ( + 42 ) ) ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT - MAX ( - - col0 ) * - COUNT ( ( - ( + 42 ) ) ) FROM tab0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT ALL - CAST( NULL AS SIGNED ) * - col1 * 64 + col0 + - col1 + 75 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + - 59 * col0 * ( - col1 ) * 92 FROM tab0 AS cor0
----
526516
6595020
9916956

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL + 75 * - MIN( DISTINCT col2 ) - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) / 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL + 75 * - MIN ( DISTINCT col2 ) - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) / 84 IS NOT NULL
----
NULL

query I rowsort
SELECT 12 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 7, col0 col0 FROM tab2 AS cor0
----
322
46
448
64
525
75

query I rowsort
SELECT DISTINCT col0 * + ( + ( + + 19 ) ) FROM tab1
----
1615
1729
969

query II rowsort
SELECT - 20, + col1 FROM tab0
----
-20
1
-20
21
-20
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 68 = ( - + col2 + 96 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6928
SELECT DISTINCT CAST( NULL AS SIGNED ), + col0 + - - col0 * col1 AS col1 FROM tab2
----
NULL
2392
NULL
4992
NULL
5100

skipif mysql # not compatible
query II rowsort label-6928
SELECT DISTINCT CAST ( NULL AS INTEGER ), + col0 + - - col0 * col1 AS col1 FROM tab2
----
NULL
2392
NULL
4992
NULL
5100

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + + + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col1 * - 23 * - 48 * col1, col1 AS col0 FROM tab0
----
1104
1
486864
21
7243344
81

query I rowsort
SELECT - + col0 * - + col0 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT ALL MIN( ALL + 40 ) col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT ALL MIN ( ALL + 40 ) col0 FROM tab2 AS cor0
----
40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - 95 * + - 75 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6935
SELECT DISTINCT - col0 - - col2 + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - 35 + - 29, + col1 + col0 + - - col1 )
----

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT - col0 - - col2 + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - 35 + - 29, + col1 + col0 + - - col1 )
----

query I rowsort
SELECT + 86 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col1 - 45 IS NULL
----

query I rowsort
SELECT ALL + col0 + + ( - + col2 ) AS col0 FROM tab2
----
17
23
24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( + col1, 99 )
----
15
81
47
87
21
10

query I rowsort
SELECT + - col0 + + 34 + + + col1 FROM tab0 AS cor0
----
-32
-62
100

query I rowsort
SELECT + 82 + + - col2 FROM tab1 AS cor0
----
-14
14
23

query I rowsort
SELECT + 2 + - - col0 * - col0 AS col2 FROM tab0 AS cor0 WHERE - 52 / col1 NOT BETWEEN - + 79 AND NULL
----

query II rowsort
SELECT - col0 + - col0 * - - 54 * - + 71 AS col2, + col0 FROM tab1 AS cor0
----
195483
51
325805
85
348803
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6944
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( * ) + 74 AS col0 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT - + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL col0 * - ( - 36 ) FROM tab2
----
1656
2304
2700

query I rowsort
SELECT ALL + col2 * 35 AS col2 FROM tab2
----
1400
2030
805

query I rowsort
SELECT col0 - - + 4 FROM tab1
----
55
89
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - + 45 col2 FROM tab2 AS cor0
----
103
68
85

query I rowsort
SELECT DISTINCT + ( - 37 ) + - col2 * + col2 + + 33 FROM tab2 AS cor0
----
-1604
-3368
-533

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6952
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 BETWEEN - CAST( col0 AS SIGNED ) * + + col0 + + col2 - + - col2 AND + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6952
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 BETWEEN - CAST ( col0 AS INTEGER ) * + + col0 + + col2 - + - col2 AND + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6953
SELECT DISTINCT - col1 + - col0 DIV col0 col0, + col1 DIV - + col2 col2 FROM tab0 AS cor0
----
-2
0
-22
-2
-82
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6953
SELECT DISTINCT - col1 + - col0 / col0 col0, + col1 / - + col2 col2 FROM tab0 AS cor0
----
-2
0
-22
-2
-82
-1

query I rowsort
SELECT DISTINCT + ( - ( + - 66 ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT COUNT( * ) * - + 79 AS col2 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT COUNT ( * ) * - + 79 AS col2 FROM tab2
----
-237

query I rowsort
SELECT - - ( col0 ) * - col2 FROM tab2 WHERE NOT col2 + + 72 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6957
SELECT - COUNT( * ) DIV + 17 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6957
SELECT - COUNT ( * ) / + 17 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL - ( + + COUNT( DISTINCT CAST( + + col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - ( + + COUNT ( DISTINCT CAST ( + + col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col2, + col1 - - col0 FROM tab2 cor0
----
23
97
40
141
58
142

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 80 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + - 51 AS col1, col1 FROM tab1 AS cor0
----
-51
14
-51
47
-51
5

query I rowsort
SELECT DISTINCT + 92 + - ( - + ( + col2 ) ) * col0 AS col0 FROM tab1 AS cor0 WHERE + 99 < - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT + COUNT( + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + COUNT ( + col0 ) FROM tab2
----
3

query I rowsort
SELECT + 18 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
18
18
18

query I rowsort
SELECT - 60 * - 18 FROM tab1
----
1080
1080
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT DISTINCT - COUNT( DISTINCT + col1 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-6966
SELECT DISTINCT - COUNT ( DISTINCT + col1 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col0 IS NULL
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6967
SELECT DISTINCT - - 38 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - + col1 * - + col2 + - - col1 + + col2 AS col2 FROM tab2 AS cor0
----
1247
3197
4011

query I rowsort
SELECT ALL + 13 * 21 + - 90 FROM tab2 AS cor0
----
183
183
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT - - COUNT( + + ( + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT - - COUNT ( + + ( + col0 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE + col2 <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6972
SELECT ALL + + 2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 59d6e482c3d9e632643f6eaaf2db0ae1

skipif mysql # not compatible
query II rowsort label-6972
SELECT ALL + + 2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 59d6e482c3d9e632643f6eaaf2db0ae1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT + CAST( - 41 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6973
SELECT + CAST ( - 41 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT 38 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6976
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT - - col2 + - 28 AS col0 FROM tab0 AS cor0
----
-18
19
71

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

query I rowsort
SELECT 1 + - + col2 AS col1 FROM tab1
----
-58
-67
-95

query I rowsort
SELECT DISTINCT col2 * - col1 - 72 FROM tab2
----
-1245
-3152
-3958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6982
SELECT + 66 + + CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
-15
45
65

skipif mysql # not compatible
query I rowsort label-6982
SELECT + 66 + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
-15
45
65

query I rowsort
SELECT + 84 + - col1 * + col2 * col1 * + + 54 + + col1 FROM tab0
----
-16651653
-238035
-5261

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT COUNT( DISTINCT - + col0 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6984
SELECT COUNT ( DISTINCT - + col0 ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT ( + - COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6985
SELECT DISTINCT ( + - COUNT ( * ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT col2 * + 56 FROM tab2 WHERE - 37 * 78 IS NOT NULL
----
1288
2240
3248

query I rowsort
SELECT DISTINCT + col1 + + - col0 + col0 FROM tab1
----
14
47
5

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col0 * - + col1 * - - 46, - col1 )
----

query I rowsort
SELECT 88 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - MIN( - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6991
SELECT - MIN ( - - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6992
SELECT - 29 DIV + - col1 + - + 67 col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-62
-65
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6992
SELECT - 29 / + - col1 + - + 67 col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-62
-65
-67

query I rowsort
SELECT - - 35 * + col2 AS col2 FROM tab0 AS cor0
----
1645
3465
350

query I rowsort
SELECT - col1 * + 82 * - col2 AS col2 FROM tab0 cor0
----
17220
312174
8118

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col2 * + ( - col1 ) * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - col0 + + 18 AS col1 FROM tab2 AS cor0
----
-2328
-4910
-5007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6998
SELECT ALL + 36 FROM tab2 AS cor0 WHERE col1 BETWEEN - 51 AND - col0 / col2 - CAST( NULL AS SIGNED ) * - col2 * - col1
----

skipif mysql # not compatible
query I rowsort label-6998
SELECT ALL + 36 FROM tab2 AS cor0 WHERE col1 BETWEEN - 51 AND - col0 / col2 - CAST ( NULL AS INTEGER ) * - col2 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT + 15 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT + 15 / col0 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT DISTINCT - col0 * - 54 FROM tab0
----
4698
5238
810

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT - ( - + COUNT( * ) ) + 96 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-7002
SELECT DISTINCT - ( - + COUNT ( * ) ) + 96 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT - + col0 * CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7003
SELECT - + col0 * CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7004
SELECT ALL - 11 + + col0 DIV col2 AS col2 FROM tab1
----
-10
-10
-11

skipif mysql # not compatible
query I rowsort label-7004
SELECT ALL - 11 + + col0 / col2 AS col2 FROM tab1
----
-10
-10
-11

query II rowsort
SELECT ALL - - 76, + col2 * - 14 AS col1 FROM tab1 AS cor0
----
76
-1344
76
-826
76
-952

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7006
SELECT + + col0, - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

skipif mysql # not compatible
query II rowsort label-7006
SELECT + + col0, - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7007
SELECT col0 * CAST( NULL AS SIGNED ) AS col0, 55 AS col2 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

skipif mysql # not compatible
query II rowsort label-7007
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0, 55 AS col2 FROM tab1 AS cor0
----
NULL
55
NULL
55
NULL
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT - CAST( + col0 AS SIGNED ) * + - 86 FROM tab1 AS cor0
----
4386
7310
7826

skipif mysql # not compatible
query I rowsort label-7009
SELECT - CAST ( + col0 AS INTEGER ) * + - 86 FROM tab1 AS cor0
----
4386
7310
7826

query I rowsort
SELECT ALL - 26 * - + ( - 16 ) + - col2 FROM tab2
----
-439
-456
-474

query I rowsort
SELECT + col0 * + col2 * col1 * - 97 + + col0 + + - col0 AS col1 FROM tab0 AS cor0
----
-1772190
-5539185
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT ALL + - 78 DIV + + col0 + - 89 + - col1 + + col2 FROM tab0 AS cor0
----
-100
-128
9

skipif mysql # not compatible
query I rowsort label-7012
SELECT ALL + - 78 / + + col0 + - 89 + - col1 + + col2 FROM tab0 AS cor0
----
-100
-128
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT DISTINCT CAST( + col0 AS SIGNED ) - 28 FROM tab0 AS cor0
----
-13
59
69

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT CAST ( + col0 AS INTEGER ) - 28 FROM tab0 AS cor0
----
-13
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT SUM( 61 ) FROM tab0 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7014
SELECT SUM ( 61 ) FROM tab0 AS cor0
----
183

query I rowsort
SELECT DISTINCT + col0 * + col1 * - - col1 + 60 FROM tab2 AS cor0
----
119706
336735
379516

query I rowsort
SELECT DISTINCT - 95 * + 10 * - 30 + col2 FROM tab2 AS cor0
----
28523
28540
28558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7017
SELECT ALL + col1 * 56 - - + CAST( NULL AS SIGNED ) + - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col2 + - col1 * - + 92 AS col1 FROM tab1 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT 58 * + COUNT( - col1 ) - - + 47 FROM tab0
----
221

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT 58 * + COUNT ( - col1 ) - - + 47 FROM tab0
----
221

query III rowsort
SELECT * FROM tab2 WHERE - col2 * 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + + 10 AS col2 FROM tab2 AS cor0
----
61
77
87

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 - + col0 * col2 BETWEEN - + 6 AND - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7023
SELECT + 91, - 8 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
91
-5

skipif mysql # not compatible
query II rowsort label-7023
SELECT + 91, - 8 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
91
-5

query II rowsort
SELECT col0, + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( + 13 ) * + col2 <> ( - col0 * - col0 / + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT MIN( DISTINCT - - ( - 92 ) ) FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-7025
SELECT MIN ( DISTINCT - - ( - 92 ) ) FROM tab2
----
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT DISTINCT - + MIN( ALL - col2 ) * + COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-7027
SELECT DISTINCT - + MIN ( ALL - col2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
288

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + 35 * - 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7030
SELECT col1 DIV + - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7030
SELECT col1 / + - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * + col2 * + col1 * + 7 FROM tab2
----
-1577716
-188853
-862400

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 94 * + 50 + - + col1 + + 23 FROM tab1
----
4676
4709
4718

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 39 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7035
SELECT 17 + COUNT( ALL - - CAST( - col0 AS SIGNED ) ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7035
SELECT 17 + COUNT ( ALL - - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
20

query I rowsort
SELECT DISTINCT col1 * + col0 + + + ( - col0 ) FROM tab2
----
2300
4864
4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7037
SELECT + COUNT( * ) + + CAST( + SUM( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-7037
SELECT + COUNT ( * ) + + CAST ( + SUM ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
230

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT - 64 * + - COUNT( * ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7038
SELECT - 64 * + - COUNT ( * ) FROM tab2 AS cor0
----
192

query I rowsort
SELECT ALL + 81 * - col0 / ( - col2 ) + + col2 + col1 FROM tab2 AS cor0 WHERE col2 <= NULL
----

query I rowsort
SELECT ALL col1 * + 55 + - - 65 FROM tab1
----
2650
340
835

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT - MIN( - 6 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7041
SELECT - MIN ( - 6 ) FROM tab0
----
6

query I rowsort
SELECT ALL 15 + + - col0 FROM tab2 AS cor0
----
-31
-49
-60

query I rowsort
SELECT + col0 + 82 AS col0 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT + col0 * - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT ALL - col2 + - 55 AS col2 FROM tab0 AS cor0
----
-102
-154
-65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 45 * + col2 AND 74 / + col1
----

query II rowsort
SELECT DISTINCT - - col1 + 38 AS col1, col1 - + ( 94 ) AS col2 FROM tab0 AS cor0
----
119
-13
39
-93
59
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT ( + + COUNT( * ) ) - - + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT ( + + COUNT ( * ) ) - - + COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT - ( 1 ) * col2 * col2 + - 21 + + col1 * + - col1 * + col2 + col2 FROM tab2
----
-238741
-263689
-60350

query I rowsort
SELECT - col1 * col2 * - 28 + 27 AS col1 FROM tab0
----
106623
2799
5907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT DISTINCT 32 * - + 57 - + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-1829
-1838
-1871

skipif mysql # not compatible
query I rowsort label-7051
SELECT DISTINCT 32 * - + 57 - + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-1829
-1838
-1871

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7053
SELECT ALL - ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 70 AS col2 FROM tab1 WHERE NOT + col2 / + 6 BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT ALL COUNT( - 37 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL COUNT ( - 37 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT - MAX( ALL 29 ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-7056
SELECT - MAX ( ALL 29 ) FROM tab1
----
-29

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN 1 AND - 52 / - col2 + + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT ALL col0 DIV - col0 AS col0 FROM tab2 cor0
----
-1
-1
-1

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

query I rowsort
SELECT + + 90 FROM tab1 AS cor0 WHERE NOT - 47 + + col0 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT MIN( DISTINCT - - 46 ) AS col2 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT MIN ( DISTINCT - - 46 ) AS col2 FROM tab0
----
46

query II rowsort
SELECT - col1 col1, 17 AS col2 FROM tab0 AS cor0
----
-1
17
-21
17
-81
17

query I rowsort
SELECT + ( - 56 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - col2 IS NULL
----
-56
-56
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-7063
SELECT DISTINCT COUNT( * ) * 74 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-7063
SELECT DISTINCT COUNT ( * ) * 74 FROM tab2 AS cor0
----
222

query II rowsort
SELECT DISTINCT + col1, + 33 FROM tab1 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col2 * - col2 + - 55 AS col2 FROM tab2 AS cor0
----
-1655
-3419
-584

query I rowsort
SELECT DISTINCT - 60 - col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7067
SELECT COUNT( * ) DIV - 87 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT COUNT ( * ) / - 87 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE ( NOT - col2 >= - col2 )
----

query I rowsort
SELECT ALL - col0 + 83 - + + col1 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * col2 + - col1 AS col1 FROM tab1
----
1330
290
3149

query I rowsort
SELECT - ( + - col1 ) AS col1 FROM tab1 WHERE - 28 <= NULL
----

query I rowsort
SELECT ALL col1 * - - ( 3 ) + + 29 + 70 FROM tab2 AS cor0
----
252
300
330

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT + SUM( ALL + - 54 ) FROM tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-7074
SELECT + SUM ( ALL + - 54 ) FROM tab0 AS cor0
----
-162

query I rowsort
SELECT + 70 + + - col1 AS col2 FROM tab2
----
-7
19
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 = ( 43 )
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE - 33 IS NULL
----

query II rowsort
SELECT ALL - col1 * + + col0 + col1, 4 + col2 + - 97 + - col1 * - 69 + - 10 * + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1134
27633
-1806
2366
-96
98085

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL + 38 + + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL + 38 + + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT ALL - col1 - - - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT ALL + - col0 + - ( + col2 ), - col1 * col0 * + - 94 AS col2 FROM tab2 AS cor0
----
-104
463232
-133
472350
-69
220524

query I rowsort
SELECT - col0 * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT col2 * + col0 - - - col0 FROM tab1 cor0
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT - COUNT( * ) + + COUNT( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - COUNT ( * ) + + COUNT ( DISTINCT + + col1 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + + ( + 61 ) * col2 + 78 FROM tab2 AS cor0 WHERE ( - col1 ) < + col0
----
1481
2518
3616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7086
SELECT col0 * col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7087
SELECT DISTINCT COUNT( * ) * + 39 FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT COUNT ( * ) * + 39 FROM tab1
----
117

query II rowsort
SELECT + 90, + col1 * - 46 AS col1 FROM tab0
----
90
-3726
90
-46
90
-966

query II rowsort
SELECT ALL + col0, 3 * + col0 FROM tab1
----
51
153
85
255
91
273

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7091
SELECT CAST( NULL AS SIGNED ) AS col1, + 98 AS col2 FROM tab0
----
NULL
98
NULL
98
NULL
98

skipif mysql # not compatible
query II rowsort label-7091
SELECT CAST ( NULL AS INTEGER ) AS col1, + 98 AS col2 FROM tab0
----
NULL
98
NULL
98
NULL
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT MIN( 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7092
SELECT MIN ( 0 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 * col1 col1 FROM tab1
----
266
893
95

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 40 / + col2 + - 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7095
SELECT DISTINCT 21, COUNT( - - 17 ) + - COUNT( * ) AS col0 FROM tab0 cor0
----
21
0

skipif mysql # not compatible
query II rowsort label-7095
SELECT DISTINCT 21, COUNT ( - - 17 ) + - COUNT ( * ) AS col0 FROM tab0 cor0
----
21
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 18 AND - col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( ( + + 40 ) > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - - col0 ) col1 FROM tab0
----
15
87
97

query I rowsort
SELECT 69 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab0 AS cor0 WHERE - 75 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT - ( - + 85 ) * - - 42 + + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3567

skipif mysql # not compatible
query I rowsort label-7101
SELECT - ( - + 85 ) * - - 42 + + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3567

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7104
SELECT - - 16 DIV - + 92 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT - - 16 / - + 92 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7105
SELECT ALL + MAX( - + col1 ) FROM tab2 WHERE NOT NULL >= + + col1 * + 24 / col1 - - 21 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7105
SELECT ALL + MAX ( - + col1 ) FROM tab2 WHERE NOT NULL >= + + col1 * + 24 / col1 - - 21 * + col0
----
NULL

query I rowsort
SELECT + col0 + - - ( + col2 ) AS col2 FROM tab0
----
196
62
97

query I rowsort
SELECT col0 + - 71 FROM tab1
----
-20
14
20

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT ALL COUNT( * ) FROM tab2 WHERE 47 <> col1
----
3

skipif mysql # not compatible
query I rowsort label-7109
SELECT ALL COUNT ( * ) FROM tab2 WHERE 47 <> col1
----
3

query I rowsort
SELECT + ( + col2 ) + col1 * - col1 * + col0 AS col0 FROM tab1
----
-200951
-2066
-9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) * - - 28 * - 33 / + 80 + - col1 AS col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - COUNT( * ) * + 47 FROM tab0 AS cor0 WHERE + ( 16 ) IS NOT NULL
----
-141

skipif mysql # not compatible
query I rowsort label-7112
SELECT - COUNT ( * ) * + 47 FROM tab0 AS cor0 WHERE + ( 16 ) IS NOT NULL
----
-141

query III rowsort
SELECT * FROM tab1 WHERE + - 41 * + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 43 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7115
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + 17 AS col0 FROM tab2 WHERE + col1 IN ( + col1 )
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-7117
SELECT DISTINCT + 56 * - 63 + - ( ( + 74 ) ) DIV - 43 - col0 AS col2 FROM tab1 AS cor0
----
-3578
-3612
-3618

skipif mysql # not compatible
query I rowsort label-7117
SELECT DISTINCT + 56 * - 63 + - ( ( + 74 ) ) / - 43 - col0 AS col2 FROM tab1 AS cor0
----
-3578
-3612
-3618

query I rowsort
SELECT 67 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2, 29 * - + 36, 69, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7119
SELECT - + col1 DIV - col2 + + col1 AS col2 FROM tab2 cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-7119
SELECT - + col1 / - col2 + + col1 AS col2 FROM tab2 cor0
----
53
68
78

query II rowsort
SELECT + - col1, col1 + - col0 + + 78 AS col1 FROM tab0 cor0 WHERE - ( + col1 ) IS NOT NULL
----
-1
-18
-21
12
-81
144

query I rowsort
SELECT + ( col0 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT + MIN( + - col2 ) * MAX( 26 ) FROM tab1 AS cor0
----
-2496

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + MIN ( + - col2 ) * MAX ( 26 ) FROM tab1 AS cor0
----
-2496

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 83 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT + + MAX( - + 12 ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7124
SELECT + + MAX ( - + 12 ) FROM tab2 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT + - MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7125
SELECT + - MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - col2 * - col0 + + + 52 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 67 * + 70 * 42 * + col1 FROM tab0
----
-15955380
-196980
-4136580

query I rowsort
SELECT ALL ( col0 ) * + 37 FROM tab0
----
3219
3589
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * + - col0 col2 FROM tab2
----
-4508
-6272
-7350

query I rowsort
SELECT ALL 97 FROM tab2 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7132
SELECT - SUM( ALL + ( - - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL SUM( - col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL SUM ( - col0 ) FROM tab1 cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + MIN( + col2 ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
69

skipif mysql # not compatible
query I rowsort label-7134
SELECT + MIN ( + col2 ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
69

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT + + col0 = 50
----
15
87
97

query I rowsort
SELECT ALL - col0 * + col1 * ( col1 ) + - + 11 FROM tab0 AS cor0
----
-108
-38378
-98426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + + + col0 + + col1 - col2 * - + col1 col0 FROM tab0 cor0
----
259
380
3965

onlyif mysql # aggregate syntax: 
query I rowsort label-7138
SELECT COUNT( * ) + 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7138
SELECT COUNT ( * ) + 12 FROM tab2 AS cor0
----
15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + + 53 + + + ( + 18 ) + - col2 + - col2 * - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7140
SELECT DISTINCT 15 * + ( - + ( col1 ) ) * - - CAST( NULL AS DECIMAL ) * + + col0 * + + col0 + + - 40 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT 15 * + ( - + ( col1 ) ) * - - CAST ( NULL AS REAL ) * + + col0 * + + col0 + + - 40 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 93 * + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
2093
3656
5319

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT - + MAX( - + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 32 / 34 + col1 - - 12 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT - + MAX ( - + col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT 32 / 34 + col1 - - 12 * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7143
SELECT ALL - 8 AS col0, COUNT( * ) FROM tab2 AS cor0
----
-8
3

skipif mysql # not compatible
query II rowsort label-7143
SELECT ALL - 8 AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-8
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7144
SELECT + MAX( - 65 ) AS col2, + 76 AS col0 FROM tab0
----
-65
76

skipif mysql # not compatible
query II rowsort label-7144
SELECT + MAX ( - 65 ) AS col2, + 76 AS col0 FROM tab0
----
-65
76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7145
SELECT + COUNT( * ) DIV + + 16 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7145
SELECT + COUNT ( * ) / + + 16 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT + ( SUM( DISTINCT - col2 ) ) * + ( + 44 ) FROM tab0
----
-6864

skipif mysql # not compatible
query I rowsort label-7147
SELECT + ( SUM ( DISTINCT - col2 ) ) * + ( + 44 ) FROM tab0
----
-6864

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7148
SELECT * FROM tab2 WHERE + ( + CAST( NULL AS SIGNED ) ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7148
SELECT * FROM tab2 WHERE + ( + CAST ( NULL AS INTEGER ) ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col2 ) * - + col1 AS col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + ( 72 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
72
72
72

query II rowsort
SELECT + - col0 + - col0 AS col0, + col1 FROM tab2 cor0
----
-128
77
-150
67
-92
51

query I rowsort
SELECT ALL + 69 - + - col0 * col2 FROM tab2 AS cor0
----
1127
2629
4419

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + 36 * COUNT( * ) * + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7776

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + 36 * COUNT ( * ) * + 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 * ( + + col1 ) * 89 col2 FROM tab1 AS cor0
----
196601
20915
58562

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7155
SELECT MIN( ALL - - CAST( NULL AS SIGNED ) ) / - - 68 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT MIN ( ALL - - CAST ( NULL AS INTEGER ) ) / - - 68 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7156
SELECT - COUNT( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7156
SELECT - COUNT ( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT ALL + 80, 71 - - 77 * - col1 AS col1 FROM tab2 AS cor0
----
80
-3856
80
-5088
80
-5858

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT - - COUNT( * ) FROM tab2 cor0 WHERE NOT + col2 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT - - COUNT ( * ) FROM tab2 cor0 WHERE NOT + col2 >= NULL
----
0

query I rowsort
SELECT - + ( - 44 ) * + col0 FROM tab0 AS cor0
----
3828
4268
660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + ( + col1 ) ) AS col0, + 19 * + col1 col1 FROM tab2 AS cor0
----
-51
969
-67
1273
-77
1463

query I rowsort
SELECT DISTINCT + 30 - - col0 - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + + col1 * + col0 * col1 <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7163
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 17 * + + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col1 + + col2 BETWEEN NULL AND ( 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 33 ) * - + 94 col1 FROM tab2
----
-3102
-3102
-3102

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7168
SELECT * FROM tab0 WHERE NOT col2 * + - CAST( + col2 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7168
SELECT * FROM tab0 WHERE NOT col2 * + - CAST ( + col2 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + - 94 AS col0 FROM tab1
----
-1316
-4418
-470

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7170
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 * col2 * - + col0 * + col0 - + CAST( NULL AS SIGNED ) NOT BETWEEN + col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-7170
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 * col2 * - + col0 * + col0 - + CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 19 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT - - MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7172
SELECT - - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7173
SELECT DISTINCT + - 46 * col1 DIV - - col1 AS col0 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7173
SELECT DISTINCT + - 46 * col1 / - - col1 AS col0 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL + 27 + - + 40 FROM tab2
----
-13
-13
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + + col1 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 28 * - 59 + - col0 >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT - 85 + + COUNT( * ) FROM tab1 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - 85 + + COUNT ( * ) FROM tab1 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT + ( - - 95 ) * - COUNT( * ) * + ( 75 ) - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-21378

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT + ( - - 95 ) * - COUNT ( * ) * + ( 75 ) - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-21378

onlyif mysql # DIV for integer division: 
query I rowsort label-7179
SELECT ALL - - col1 DIV + - col0 + col1 AS col1 FROM tab2 AS cor0
----
50
67
76

skipif mysql # not compatible
query I rowsort label-7179
SELECT ALL - - col1 / + - col0 + col1 AS col1 FROM tab2 AS cor0
----
50
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7180
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( + CAST( NULL AS SIGNED ) + - col1 IS NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7180
SELECT DISTINCT - col1 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NOT ( + CAST ( NULL AS INTEGER ) + - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + 76 + + col1 AS col1 FROM tab2 AS cor0
----
127
143
153

query I rowsort
SELECT + col0 + + col1 - + - col2 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT col2 + + + 9 AS col0 FROM tab2
----
32
49
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT DISTINCT - 5 DIV - col1 AS col2 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT - 5 / - col1 AS col2 FROM tab0
----
0
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7185
SELECT ALL ( col2 ) DIV - CAST( + ( + - ( + ( - col0 ) ) ) AS SIGNED ) FROM tab0
----
-1
-3
0

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

query I rowsort
SELECT 35 FROM tab2 WHERE ( NOT + col0 IS NULL )
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT 53 + + - COUNT( * ) * - MIN( 31 ) AS col1 FROM tab2
----
146

skipif mysql # not compatible
query I rowsort label-7187
SELECT 53 + + - COUNT ( * ) * - MIN ( 31 ) AS col1 FROM tab2
----
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT - MIN( DISTINCT - col0 ) + + 69 DIV - 88 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7188
SELECT - MIN ( DISTINCT - col0 ) + + 69 / - 88 FROM tab0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7189
SELECT ALL - COUNT( * ) DIV 11 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7189
SELECT ALL - COUNT ( * ) / 11 AS col2 FROM tab0
----
0

query I rowsort
SELECT - ( - + 32 ) + - col2 + + ( - 52 ) FROM tab2
----
-43
-60
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT COUNT( * ) * - + 87 AS col0 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-7191
SELECT COUNT ( * ) * - + 87 AS col0 FROM tab0
----
-261

query I rowsort
SELECT - col1 - - 87 AS col0 FROM tab0
----
6
66
86

query I rowsort
SELECT + + 16 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 51 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( NOT - - ( col0 ) <= + - col1 + - - col2 )
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7198
SELECT + 26 DIV + COUNT( * ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7198
SELECT + 26 / + COUNT ( * ) FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - - col0 * + 91 + + - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7200
SELECT CAST( - 26 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-7200
SELECT CAST ( - 26 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7201
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * ( - col1 ) <= col0 + + 5 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-7201
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * ( - col1 ) <= col0 + + 5 * + col0
----
0

query II rowsort
SELECT ALL + col2 * 4 AS col1, col1 AS col2 FROM tab1 cor0
----
236
5
272
47
384
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 BETWEEN NULL AND col2 / col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7204
SELECT + 77, MAX( - 41 ) AS col1 FROM tab0
----
77
-41

skipif mysql # not compatible
query II rowsort label-7204
SELECT + 77, MAX ( - 41 ) AS col1 FROM tab0
----
77
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7205
SELECT DISTINCT CAST( MAX( DISTINCT 6 ) AS SIGNED ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT CAST ( MAX ( DISTINCT 6 ) AS INTEGER ) AS col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - MAX( + + col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7206
SELECT - MAX ( + + col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT DISTINCT - 48 + COUNT( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-7207
SELECT DISTINCT - 48 + COUNT ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT ALL + COUNT( - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7208
SELECT ALL + COUNT ( - col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col0 ) < + 92 + - - col1
----

query I rowsort
SELECT - col1 * - + 46 + + 63 FROM tab1 AS cor0
----
2225
293
707

query I rowsort
SELECT - + col2 + + 74 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT + 93 * col1 AS col1 FROM tab2 AS cor0
----
4743
6231
7161

query I rowsort
SELECT ALL - col0 + - + 55 * + col1 FROM tab2 AS cor0
----
-2851
-3760
-4299

onlyif mysql # DIV for integer division: 
query II rowsort label-7214
SELECT DISTINCT + 48 DIV - - col2, col0 FROM tab0 AS cor0
----
0
97
1
15
4
87

skipif mysql # not compatible
query II rowsort label-7214
SELECT DISTINCT + 48 / - - col2, col0 FROM tab0 AS cor0
----
0
97
1
15
4
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + COUNT( * ) * + 28 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7215
SELECT + COUNT ( * ) * + 28 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-252

query I rowsort
SELECT col0 - + col1 * - col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT ALL COUNT( - 67 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7217
SELECT ALL COUNT ( - 67 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT 30 - + + col0 * col2 * + + col1 FROM tab1
----
-25045
-290806
-68514

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL MAX( ALL - - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL MAX ( ALL - - col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7220
SELECT * FROM tab1 WHERE 37 <= + - CAST( - ( + - col2 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7220
SELECT * FROM tab1 WHERE 37 <= + - CAST ( - ( + - col2 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + 11 - - + COUNT( * ) + 50 AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-7221
SELECT + 11 - - + COUNT ( * ) + 50 AS col1 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT 36 + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7222
SELECT 36 + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT ( + - col0 ) * - 56 AS col2 FROM tab0 AS cor0
----
4872
5432
840

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT ALL + COUNT( * ) - 84 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + COUNT ( * ) - 84 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT ( + col0 ) + + 14 FROM tab2 AS cor0
----
60
78
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 66 NOT BETWEEN NULL AND - - col1
----
87
21
10
97
1
99

query II rowsort
SELECT - col2 AS col0, - 51 FROM tab0
----
-10
-51
-47
-51
-99
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT 20 AS col0 FROM tab2 AS cor0 WHERE NOT 64 NOT IN ( + ( - col2 ), CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7228
SELECT 20 AS col0 FROM tab2 AS cor0 WHERE NOT 64 NOT IN ( + ( - col2 ), CAST ( col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT + + ( MIN( + + col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT + + ( MIN ( + + col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT + + SUM( + + 70 ) AS col0 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + + SUM ( + + 70 ) AS col0 FROM tab1 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7231
SELECT - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 18 + + + ( + col1 ) + + + 55 * + 43 + + 42 * 4 - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 7 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT MAX( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT MAX ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-7234
SELECT DISTINCT - COUNT( * ), + 2 col2 FROM tab0 cor0
----
-3
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7234
SELECT DISTINCT - COUNT ( * ), + 2 col2 FROM tab0 cor0
----
-3
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7235
SELECT + MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-7235
SELECT + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT + 74 IS NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7236
SELECT + ( + CAST( 8 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
8
8
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT - col2 * - + col1 + - ( col1 ) AS col0 FROM tab1 WHERE NOT NULL >= - - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7239
SELECT 70 + - - 74 + COUNT( * ) + + - COUNT( * ) FROM tab2
----
144

skipif mysql # not compatible
query I rowsort label-7239
SELECT 70 + - - 74 + COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
144

query I rowsort
SELECT + + col0 * col1 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1215
1827
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7242
SELECT ALL + ( + col2 ) * + col2 * + + col1 / - col2 / - CAST( NULL AS SIGNED ) * 85 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT + SUM( DISTINCT + col0 ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
227
-3

skipif mysql # not compatible
query II rowsort label-7243
SELECT + SUM ( DISTINCT + col0 ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
227
-3

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7245
SELECT ALL - + COUNT( * ), COUNT( ALL + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7245
SELECT ALL - + COUNT ( * ), COUNT ( ALL + col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0
0

query I rowsort
SELECT + col2 + - col1 + - 78 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

query I rowsort
SELECT - 12 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + 6 AS col1 FROM tab2 AS cor0
----
57
73
83

query I rowsort
SELECT DISTINCT + - col1 * 46 - - - col2 * - col1 + - 71 AS col1 FROM tab1 AS cor0
----
-6
629
963

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE + 47 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7250
SELECT COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE + 47 IS NOT NULL
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL - COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL - COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 55 - - col0 AS col1 FROM tab0
----
142
152
70

query I rowsort
SELECT DISTINCT col1 * + + col1 * + col2 * + - 75 FROM tab2
----
-17787000
-19527150
-4486725

query I rowsort
SELECT ALL col0 * - - col0 AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT SUM( ALL + 10 ) FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-7255
SELECT SUM ( ALL + 10 ) FROM tab2
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7256
SELECT DISTINCT + col1 * 91 DIV + - col0 FROM tab0
----
-21
-491
0

skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT + col1 * 91 / + - col0 FROM tab0
----
-21
-491
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * - col2 col0 FROM tab0 AS cor0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT + MAX( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7259
SELECT + MAX ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 49 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT ALL - col0 DIV + - col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - col0 / + - col2 AS col0 FROM tab2
----
1
1
2

query I rowsort
SELECT - ( - - 54 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 12 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 44 IS NOT NULL
----

query I rowsort
SELECT - 56 * + 68 - + 9 * + 75 * col0 FROM tab2 AS cor0
----
-34858
-47008
-54433

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT COUNT( * ) * + 55 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT COUNT ( * ) * + 55 FROM tab0 AS cor0
----
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7267
SELECT COUNT( * ) DIV + 52 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7267
SELECT COUNT ( * ) / + 52 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7268
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 AS col2, - 97 FROM tab2
----
-46
-97
-64
-97
-75
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 52
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + + - col2 - - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT COUNT( * ) + - - COUNT( - col0 ) * + 2 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7272
SELECT DISTINCT COUNT ( * ) + - - COUNT ( - col0 ) * + 2 AS col2 FROM tab2
----
9

query II rowsort
SELECT col2 + + 97 AS col1, 67 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
120
67
137
67
155
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7274
SELECT + - MIN( ALL + 95 ) FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7274
SELECT + - MIN ( ALL + 95 ) FROM tab0 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT DISTINCT + COUNT( + - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7275
SELECT DISTINCT + COUNT ( + - col2 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7276
SELECT ALL - CAST( NULL AS SIGNED ) * - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - col1 - 41 AS col1 FROM tab0 WHERE NULL IS NULL
----
-122
-42
-62

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL <= + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7279
SELECT ALL - SUM( + 67 ) + - COUNT( * ) FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL - SUM ( + 67 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-204

query I rowsort
SELECT ALL + 73 * - col0 - - col2 AS col2 FROM tab2 AS cor0
----
-3335
-4632
-5417

query I rowsort
SELECT DISTINCT + col2 + - 41 * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
1909
2664
3133

query II rowsort
SELECT DISTINCT + col0 * - + col0 AS col1, + col2 + - col2 FROM tab1 cor0
----
-2601
0
-7225
0
-8281
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + col1 * + col0 col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT ALL COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7284
SELECT ALL COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT col0 - + 1 - - col2 * - - col1 FROM tab1
----
1394
3286
379

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + 51 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT - COUNT( * ) * + + 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT - COUNT ( * ) * + + 96 FROM tab2
----
-288

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7289
SELECT + MAX( + CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT - - 96 * - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7290
SELECT DISTINCT - - 96 * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL <= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7291
SELECT DISTINCT MIN( 14 ) AS col0 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7291
SELECT DISTINCT MIN ( 14 ) AS col0 FROM tab1 cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT DISTINCT col1 FROM tab2 WHERE ( col1 + + 26 * 73 ) BETWEEN ( NULL ) AND - ( CAST( NULL AS SIGNED ) ) + + 28
----

skipif mysql # not compatible
query I rowsort label-7292
SELECT DISTINCT col1 FROM tab2 WHERE ( col1 + + 26 * 73 ) BETWEEN ( NULL ) AND - ( CAST ( NULL AS INTEGER ) ) + + 28
----

query I rowsort
SELECT 79 - 95 AS col2 FROM tab1
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7294
SELECT DISTINCT col1 + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT DISTINCT MIN( DISTINCT + ( - 49 ) ) AS col1 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-7295
SELECT DISTINCT MIN ( DISTINCT + ( - 49 ) ) AS col1 FROM tab1
----
-49

query I rowsort
SELECT + col1 * - col2 FROM tab1 WHERE + 92 NOT BETWEEN col2 / - col2 AND NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7298
SELECT + CAST( - col0 AS SIGNED ) - col0 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-7298
SELECT + CAST ( - col0 AS INTEGER ) - col0 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL + CAST( col2 AS SIGNED ) + - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + CAST ( col2 AS INTEGER ) + - col2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * + col0 + + 69 col0 FROM tab0
----
-1341
-8109
-9049

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT + 32 + COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + 32 + COUNT ( * ) FROM tab1
----
35

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE col0 * col2 = 10 / - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7303
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col0 * 0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col0 * 0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT COUNT( ALL col2 ) * - 3 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7304
SELECT COUNT ( ALL col2 ) * - 3 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + col0 AS col2 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7306
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IN ( 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT + 36 * + CAST( NULL AS SIGNED ) - + 83 FROM tab2
----
NULL
NULL
NULL

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 52 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT 88 * - COUNT( col1 ) AS col2 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-7311
SELECT 88 * - COUNT ( col1 ) AS col2 FROM tab2
----
-264

query I rowsort
SELECT DISTINCT + AVG ( - 23 ) + 49 FROM tab2 WHERE + 34 * + col2 NOT BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT 25 * MAX( + col0 ) FROM tab0
----
2425

skipif mysql # not compatible
query I rowsort label-7313
SELECT 25 * MAX ( + col0 ) FROM tab0
----
2425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT - 63 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7315
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT - CAST( NULL AS SIGNED ) + + 67 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 54 * + col0 AS col0 FROM tab2
----
2484
3456
4050

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) >= ( + col1 / col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 74 + col0 AS col1 FROM tab2 AS cor0
----
120
138
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7321
SELECT DISTINCT + CAST( - 77 AS SIGNED ) - col1 AS col1 FROM tab2
----
-128
-144
-154

skipif mysql # not compatible
query I rowsort label-7321
SELECT DISTINCT + CAST ( - 77 AS INTEGER ) - col1 AS col1 FROM tab2
----
-128
-144
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL - COUNT( * ) * 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-378

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - COUNT ( * ) * 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
-378

query I rowsort
SELECT 97 - + 54 FROM tab0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-7325
SELECT ALL - 61 DIV + col2 AS col1 FROM tab2
----
-1
-1
-2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7326
SELECT ALL COUNT( DISTINCT col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL COUNT ( DISTINCT col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 91 + + 17 * - col2 AS col2 FROM tab2 AS cor0
----
-1077
-482
-771

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT DISTINCT - - COUNT( * ) * - 70 + COUNT( * ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7328
SELECT DISTINCT - - COUNT ( * ) * - 70 + COUNT ( * ) FROM tab0 AS cor0
----
-207

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ALL + 16 DIV - col0 + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL + 16 / - col0 + - col0 FROM tab2 cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * 81 IS NULL
----

query I rowsort
SELECT - 6 + 36 * col1 FROM tab2 AS cor0
----
1830
2406
2766

query I rowsort
SELECT ALL - 82 - + 31 * 78 AS col2 FROM tab1 AS cor0
----
-2500
-2500
-2500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7333
SELECT DISTINCT + CAST( 7 AS SIGNED ) - col0 AS col1 FROM tab0 AS cor0
----
-8
-80
-90

skipif mysql # not compatible
query I rowsort label-7333
SELECT DISTINCT + CAST ( 7 AS INTEGER ) - col0 AS col1 FROM tab0 AS cor0
----
-8
-80
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL 33 / - MIN( ALL 15 ) FROM tab1 cor0 WHERE NULL > + 83
----
NULL

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL 33 / - MIN ( ALL 15 ) FROM tab1 cor0 WHERE NULL > + 83
----
NULL

query I rowsort
SELECT DISTINCT - ( - 10 ) * col0 AS col0 FROM tab2 AS cor0
----
460
640
750

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT DISTINCT + SUM( - col0 ) / + 34 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7336
SELECT DISTINCT + SUM ( - col0 ) / + 34 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ( 6 ) AS col2 FROM tab0
----
6
6
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7339
SELECT DISTINCT 2 * - col1 DIV - col1 AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT 2 * - col1 / - col1 AS col1 FROM tab1
----
2

query I rowsort
SELECT - 46 * 46 FROM tab2
----
-2116
-2116
-2116

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - 12 < col1 + 25
----
51
14
96
85
5
59

query I rowsort
SELECT - ( - - ( + col1 ) ) * col1 AS col0 FROM tab2 cor0
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) col2 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT ALL + 19 * - col1 + col2 DIV 48 FROM tab0 AS cor0
----
-1539
-17
-399

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL + 19 * - col1 + col2 / 48 FROM tab0 AS cor0
----
-1539
-17
-399

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT col0 DIV - + col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT col0 / - + col2 FROM tab2
----
-1
-2

query I rowsort
SELECT 84 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT + + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7347
SELECT DISTINCT + + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT DISTINCT - col2 + + + 13 FROM tab2 AS cor0
----
-10
-27
-45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT - 78 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - 78 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-234

query I rowsort
SELECT ALL - + 52 * - + col1 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7352
SELECT - 2 + + + CAST( + COUNT( * ) AS SIGNED ) * 98 FROM tab2 AS cor0
----
292

skipif mysql # not compatible
query I rowsort label-7352
SELECT - 2 + + + CAST ( + COUNT ( * ) AS INTEGER ) * 98 FROM tab2 AS cor0
----
292

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 33 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST( + col1 AS SIGNED ) / 50
----

skipif mysql # not compatible
query III rowsort label-7354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( + col1 AS INTEGER ) / 50
----

query I rowsort
SELECT + + col1 * + - col2 AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT ALL - ( + + 87 ) * + + 12 FROM tab0 AS cor0
----
-1044
-1044
-1044

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT ALL SUM( ALL 13 ) * - 85 col1 FROM tab0 AS cor0
----
-3315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7357
SELECT ALL SUM ( ALL 13 ) * - 85 col1 FROM tab0 AS cor0
----
-3315

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL col1 DIV + 9 + col2 FROM tab2 AS cor0
----
28
48
65

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL col1 / + 9 + col2 FROM tab2 AS cor0
----
28
48
65

query I rowsort
SELECT + 15 * + col0 AS col0 FROM tab0 AS cor0
----
1305
1455
225

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 68 + + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7362
SELECT - col2 * - CAST( 48 AS SIGNED ) AS col2 FROM tab0
----
2256
4752
480

skipif mysql # not compatible
query I rowsort label-7362
SELECT - col2 * - CAST ( 48 AS INTEGER ) AS col2 FROM tab0
----
2256
4752
480

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

query I rowsort
SELECT - col0 / 51 + - col1 AS col1 FROM tab0 WHERE ( - + col0 * 99 + col0 ) IN ( 75 + ( 6 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + 97 * + 84 - 91 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7366
SELECT + CAST( + + 78 AS SIGNED ) AS col2, COUNT( * ) + 36 AS col1 FROM tab2
----
78
39

skipif mysql # not compatible
query II rowsort label-7366
SELECT + CAST ( + + 78 AS INTEGER ) AS col2, COUNT ( * ) + 36 AS col1 FROM tab2
----
78
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7367
SELECT - CAST( + col0 AS SIGNED ) FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7367
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IN ( - 41 + 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7369
SELECT * FROM tab0 WHERE - - CAST( NULL AS SIGNED ) + + col1 NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7369
SELECT * FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) + + col1 NOT IN ( - CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 43 * + 15 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT - ( + 81 ) col0, - COUNT( * ) AS col1 FROM tab1
----
-81
-3

skipif mysql # not compatible
query II rowsort label-7372
SELECT - ( + 81 ) col0, - COUNT ( * ) AS col1 FROM tab1
----
-81
-3

query I rowsort
SELECT DISTINCT + ( + 64 ) AS col1 FROM tab2
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT ALL MIN( col0 ) + 43 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-7374
SELECT ALL MIN ( col0 ) + 43 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( + + 1 ) IN ( - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + 4 col0 FROM tab1 AS cor0
----
55
64
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7377
SELECT + COUNT( * ) - + + SUM( - ( - + col2 ) ) FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7377
SELECT + COUNT ( * ) - + + SUM ( - ( - + col2 ) ) FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT - SUM( DISTINCT + 73 ) col0 FROM tab2 AS cor0 WHERE ( ( + col2 ) IS NOT NULL )
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7378
SELECT DISTINCT - SUM ( DISTINCT + 73 ) col0 FROM tab2 AS cor0 WHERE ( ( + col2 ) IS NOT NULL )
----
-73

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7379
SELECT ( + ( col0 ) ) + + CAST( NULL AS DECIMAL ) / - 63 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col2 col1 FROM tab2 AS cor0
----
-116
-46
-80

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NULL BETWEEN + col0 AND ( - + col0 / ( 63 ) + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT DISTINCT + 29 + COUNT( ALL - 60 ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT + 29 + COUNT ( ALL - 60 ) AS col2 FROM tab2
----
32

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

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

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT COUNT( * ) * COUNT( * ) FROM tab0, tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7386
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0, tab2 AS cor0
----
81

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + 99 / + - 88 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7388
SELECT MAX( ALL 77 ) * + ( + 90 ) * + + SUM( ALL - 39 ) + - 10 AS col1 FROM tab2
----
-810820

skipif mysql # not compatible
query I rowsort label-7388
SELECT MAX ( ALL 77 ) * + ( + 90 ) * + + SUM ( ALL - 39 ) + - 10 AS col1 FROM tab2
----
-810820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT + CAST( - col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7389
SELECT + CAST ( - col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT 4 * 3 * COUNT( ALL + - 48 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-7390
SELECT 4 * 3 * COUNT ( ALL + - 48 ) FROM tab1
----
36

query I rowsort
SELECT ALL + 87 + + 90 AS col1 FROM tab1 AS cor0 WHERE NOT col2 / - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7392
SELECT + 52 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7392
SELECT + 52 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-7393
SELECT ALL + - 20, COUNT( * ) AS col1 FROM tab0 cor0
----
-20
3

skipif mysql # not compatible
query II rowsort label-7393
SELECT ALL + - 20, COUNT ( * ) AS col1 FROM tab0 cor0
----
-20
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7394
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ), - 38 * + - col2 * - col0 * - 71 )
----

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ), - 38 * + - col2 * - col0 * - 71 )
----

query I rowsort
SELECT DISTINCT col2 * + col2 * + + col0 - + col1 + col1 + + 80 FROM tab2 AS cor0
----
102480
24414
252380

query I rowsort
SELECT - 47 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7397
SELECT + CAST( - 81 AS SIGNED ) FROM tab2
----
-81
-81
-81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7398
SELECT - 31 DIV + ( + col0 ) col1 FROM tab1
----
0
0
0

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) >= - col1 * - + col0
----

query I rowsort
SELECT + 28 + col1 * + 16 FROM tab0 AS cor0 WHERE - ( - ( + - col0 ) ) NOT IN ( + col0 + - col1 )
----
1324
364
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 27 NOT BETWEEN ( col0 ) AND NULL
----
-2

skipif mysql # not compatible
query I rowsort label-7401
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 27 NOT BETWEEN ( col0 ) AND NULL
----
-2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 + + col0 + + + 70 - + + 11 NOT BETWEEN + 88 AND ( col1 * col1 ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 69 ) IS NULL
----

query I rowsort
SELECT ALL - col0 * col2 + - 62 FROM tab1 AS cor0
----
-4958
-5077
-6250

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 IS NULL
----

query I rowsort
SELECT 45 + + + col1 * 68 AS col1 FROM tab1 AS cor0
----
3241
385
997

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - 92 col0 FROM tab2
----
115
132
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT ALL ( - + 60 ) * - COUNT( + col2 ) + - SUM( DISTINCT col0 ) - 55 + + + COUNT( * ) AS col2 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL ( - + 60 ) * - COUNT ( + col2 ) + - SUM ( DISTINCT col0 ) - 55 + + + COUNT ( * ) AS col2 FROM tab0
----
-71

query I rowsort
SELECT DISTINCT - col1 * - + col1 + - - col1 + - - col0 * col2 FROM tab0 AS cor0
----
1332
7347
9605

query II rowsort
SELECT + col2 AS col2, - 83 + - + ( 92 ) FROM tab2 AS cor0
----
23
-175
40
-175
58
-175

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7412
SELECT - COUNT( * ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT + col2 DIV + - 13 FROM tab1 AS cor0
----
-4
-5
-7

skipif mysql # not compatible
query I rowsort label-7413
SELECT + col2 / + - 13 FROM tab1 AS cor0
----
-4
-5
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7414
SELECT - - CAST( col0 AS SIGNED ) col1, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

skipif mysql # not compatible
query II rowsort label-7414
SELECT - - CAST ( col0 AS INTEGER ) col1, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT - - MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7415
SELECT - - MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 BETWEEN + + col0 AND 5
----

query I rowsort
SELECT + col2 * + 45 FROM tab0 WHERE NOT + - col2 <> - col1 / - col1 + - - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 * + col1 + + col2 <> col1 + - 11 * - 97 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT 82 * COUNT( * ) AS col0 FROM tab2 cor0
----
246

skipif mysql # not compatible
query I rowsort label-7419
SELECT 82 * COUNT ( * ) AS col0 FROM tab2 cor0
----
246

query I rowsort
SELECT 62 * - - 18 FROM tab0 AS cor0
----
1116
1116
1116

query I rowsort
SELECT DISTINCT + 14 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

query II rowsort
SELECT ALL + 85, col0 * col2 AS col1 FROM tab0
----
85
705
85
870
85
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + - COUNT( ALL + ( - col1 ) ) + ( - + 76 ) FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-7423
SELECT + - COUNT ( ALL + ( - col1 ) ) + ( - + 76 ) FROM tab2 AS cor0
----
-79

query I rowsort
SELECT DISTINCT col0 - - col2 + - + ( + - col2 ) * + col0 AS col0 FROM tab1 cor0 WHERE + col0 BETWEEN + + col1 AND 97
----
5043
5159
6347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 69 AS col0, col1 col2 FROM tab0 AS cor0
----
69
1
69
21
69
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab2 AS cor0 WHERE NOT NULL >= + 58
----

query I rowsort
SELECT - ( - + 10 ) * - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT 82 FROM tab2 WHERE + + col2 IS NOT NULL
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + COUNT( - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + COUNT ( - col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) > col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 31 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( + 83 ) FROM tab0
----
83
83
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7434
SELECT - - col0 * + - CAST( NULL AS DECIMAL ) * - 87 FROM tab1 WHERE NULL <> - col2
----

skipif mysql # not compatible
query I rowsort label-7434
SELECT - - col0 * + - CAST ( NULL AS REAL ) * - 87 FROM tab1 WHERE NULL <> - col2
----

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 WHERE NOT + - 15 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 67 <= - col0 * - col0 * col2 + - 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7438
SELECT DISTINCT COUNT( * ) + + CAST( + - COUNT( * ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7438
SELECT DISTINCT COUNT ( * ) + + CAST ( + - COUNT ( * ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 WHERE + 14 * col0 IS NULL
----

query I rowsort
SELECT ALL - 63 + + - col1 AS col0 FROM tab0
----
-144
-64
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) > NULL
----

query I rowsort
SELECT + 12 + - col0 * - col0 + + col1 * col2 + - - col2 FROM tab1 AS cor0
----
11557
4053
7591

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - + col1 * + 45 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7444
SELECT ALL - + 46 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL - + 46 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 9 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7446
SELECT ALL + CAST( NULL AS DECIMAL ) * - - MIN( DISTINCT col0 ) col2 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7447
SELECT ALL * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) <> ( - - col0 ) + + col0
----

skipif mysql # not compatible
query III rowsort label-7447
SELECT ALL * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) <> ( - - col0 ) + + col0
----

query I rowsort
SELECT + ( - 94 ) * 62 * + - col2 AS col1 FROM tab0
----
273916
576972
58280

onlyif mysql # aggregate syntax: 
query I rowsort label-7449
SELECT - 18 + MIN( ALL + 44 ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-7449
SELECT - 18 + MIN ( ALL + 44 ) AS col1 FROM tab0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT ALL - COUNT( 65 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7450
SELECT ALL - COUNT ( 65 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + 29 AS col0 FROM tab0 AS cor0 WHERE NOT + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7452
SELECT + + COUNT( * ) + 34 + + 20 + + + ( + COUNT( * ) ) * - 7 + - COUNT( * ) FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-7452
SELECT + + COUNT ( * ) + 34 + + 20 + + + ( + COUNT ( * ) ) * - 7 + - COUNT ( * ) FROM tab1 AS cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( + ( - + col1 ) IS NULL ) )
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 96 <> ( NULL ) OR NOT col0 + - 82 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7458
SELECT DISTINCT + - col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

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

query I rowsort
SELECT - col0 + - 70 AS col1 FROM tab2 AS cor0
----
-116
-134
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT + COUNT( * ) + + 89 + + COUNT( * ) FROM tab2 cor0
----
95

skipif mysql # not compatible
query I rowsort label-7460
SELECT + COUNT ( * ) + + 89 + + COUNT ( * ) FROM tab2 cor0
----
95

query II rowsort
SELECT DISTINCT - col0, col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7462
SELECT - col1 DIV + 29 + + - col1 AS col1 FROM tab2
----
-52
-69
-79

skipif mysql # not compatible
query I rowsort label-7462
SELECT - col1 / + 29 + + - col1 AS col1 FROM tab2
----
-52
-69
-79

query I rowsort
SELECT + col2 + - 97 AS col2 FROM tab0
----
-50
-87
2

onlyif mysql # DIV for integer division: 
query I rowsort label-7464
SELECT 8 + - + col0 DIV + col0 AS col0 FROM tab0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-7464
SELECT 8 + - + col0 / + col0 AS col0 FROM tab0
----
7
7
7

query I rowsort
SELECT - 55 + - col1 * 46 FROM tab0
----
-101
-1021
-3781

onlyif mysql # aggregate syntax: 
query I rowsort label-7466
SELECT DISTINCT + 63 * COUNT( * ) + MAX( + col0 ) AS col1 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-7466
SELECT DISTINCT + 63 * COUNT ( * ) + MAX ( + col0 ) AS col1 FROM tab2
----
264

query I rowsort
SELECT DISTINCT + 2 * - ( - - ( col2 ) ) FROM tab2
----
-116
-46
-80

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * - ( + + 80 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7469
SELECT ALL - 70 * + + col2 + CAST( NULL AS SIGNED ) * 31 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 34 > 96 + - 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + + col1 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 69 * - + 35 * + + col1 + + + 72 IS NULL
----

query II rowsort
SELECT - 3 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-3
14
-3
47
-3
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7474
SELECT + + 30, - COUNT( * ) AS col1 FROM tab1 cor0
----
30
-3

skipif mysql # not compatible
query II rowsort label-7474
SELECT + + 30, - COUNT ( * ) AS col1 FROM tab1 cor0
----
30
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7475
SELECT DISTINCT * FROM tab0 WHERE NOT + + 30 * - + 51 + 97 + + CAST( - 61 AS SIGNED ) < - + col1
----

skipif mysql # not compatible
query III rowsort label-7475
SELECT DISTINCT * FROM tab0 WHERE NOT + + 30 * - + 51 + 97 + + CAST ( - 61 AS INTEGER ) < - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7476
SELECT DISTINCT col1 DIV ( + + col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7476
SELECT DISTINCT col1 / ( + + col1 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + 18 * - + 49 AS col1 FROM tab1 AS cor0
----
-882
-882
-882

onlyif mysql # DIV for integer division: 
query II rowsort label-7478
SELECT ALL - col1 * col2, - col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1173
-1
-3080
-1
-3886
-1

skipif mysql # not compatible
query II rowsort label-7478
SELECT ALL - col1 * col2, - col0 / + col0 AS col1 FROM tab2 AS cor0
----
-1173
-1
-3080
-1
-3886
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7479
SELECT + MIN( + - col2 ) DIV + + MAX( ALL 76 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT + MIN ( + - col2 ) / + + MAX ( ALL 76 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT - + SUM( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7480
SELECT - + SUM ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7482
SELECT DISTINCT col0 DIV - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
42
67
93

skipif mysql # not compatible
query I rowsort label-7482
SELECT DISTINCT col0 / - col1 + - - col2 AS col0 FROM tab1 AS cor0
----
42
67
93

query I rowsort
SELECT + 17 * + 74 + + col2 AS col1 FROM tab0 AS cor0
----
1268
1305
1357

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL + ( col2 ) * - - col2 * - + ( + col0 ) AS col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7486
SELECT DISTINCT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + col0 NOT IN ( 75 * + col1 - + 64 / 76 + - 61, - 61, - 49 + 11 )
----

skipif mysql # not compatible
query III rowsort label-7486
SELECT DISTINCT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + col0 NOT IN ( 75 * + col1 - + 64 / 76 + - 61, - 61, - 49 + 11 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 41 * + - 1 <> - 14 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - - ( + - MIN( ALL col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7489
SELECT - - ( + - MIN ( ALL col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7490
SELECT - + MIN( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7490
SELECT - + MIN ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT + + 95 + + - col1 FROM tab1 AS cor0
----
48
81
90

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7492
SELECT - + 25 * - col0 * col2 * 30 - - - col2 * CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT ALL MIN( - + 81 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7493
SELECT ALL MIN ( - + 81 ) FROM tab2 AS cor0
----
-81

query I rowsort
SELECT - 50 AS col2 FROM tab1 WHERE NULL IS NULL
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT DISTINCT + 90 + - + CAST( - col2 AS SIGNED ) + + 46 + + col0 AS col2 FROM tab1
----
280
283
295

skipif mysql # not compatible
query I rowsort label-7495
SELECT DISTINCT + 90 + - + CAST ( - col2 AS INTEGER ) + + 46 + + col0 AS col2 FROM tab1
----
280
283
295

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT + - ( - MAX( col1 ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7496
SELECT + - ( - MAX ( col1 ) ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - 34 + - col1 FROM tab0 AS cor0
----
-115
-35
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-7498
SELECT DISTINCT + col1 + + 61 DIV - + col0 AS col1 FROM tab0 AS cor0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + col1 + + 61 / - + col0 AS col1 FROM tab0 AS cor0
----
1
21
77

query I rowsort
SELECT DISTINCT + + ( + 90 ) - + col2 - - 23 * - ( - 54 ) FROM tab1 AS cor0
----
1236
1264
1273

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT + col0 IS NULL
----
-3

query I rowsort
SELECT + 72 - col2 AS col1 FROM tab0
----
-27
25
62

query III rowsort
SELECT * FROM tab1 WHERE - 0 IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT ALL + 41 - + COUNT( DISTINCT - col0 ) FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-7503
SELECT ALL + 41 - + COUNT ( DISTINCT - col0 ) FROM tab1
----
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + col2 - + 39 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7505
SELECT 6 * + + 87 + - CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
519

skipif mysql # not compatible
query I rowsort label-7505
SELECT 6 * + + 87 + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
519

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NOT - col0 * - col2 * col2 <= - col2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT + - COUNT( * ) FROM tab2 WHERE NOT - col0 * + + col2 + 70 + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7507
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT - col0 * + + col2 + 70 + + col0 IS NULL
----
-3

query I rowsort
SELECT + ( 24 ) AS col2 FROM tab1
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT + COUNT( DISTINCT ( col1 ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7509
SELECT + COUNT ( DISTINCT ( col1 ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT - MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
59

query II rowsort
SELECT DISTINCT col1, - col1 AS col2 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - + 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + col2 * col1 - - col0 FROM tab1 cor0
----
150303
1560
18867

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 84 >= + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT 40 * + - COUNT( - col1 ) FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-7515
SELECT 40 * + - COUNT ( - col1 ) FROM tab0
----
-120

query I rowsort
SELECT ALL + col2 * + - col0 + - col0 + + - col2 AS col2 FROM tab2 AS cor0
----
-1127
-2664
-4483

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NOT - 39 * - + col2 + - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT ALL - MIN( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + + - 41 BETWEEN col1 AND NULL
----
47

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL - MIN ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT - 5 + + - 41 BETWEEN col1 AND NULL
----
47

query I rowsort
SELECT DISTINCT ( 8 ) * - col1 AS col1 FROM tab0 AS cor0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 55, - col0, + col2 + - - col0 + - col1 + - col0 )
----

query I rowsort
SELECT ALL - 35 * - 34 FROM tab2
----
1190
1190
1190

onlyif mysql # DIV for integer division: 
query I rowsort label-7523
SELECT DISTINCT - col2 DIV + 93 + - col2 * + 27 FROM tab2
----
-1080
-1566
-621

skipif mysql # not compatible
query I rowsort label-7523
SELECT DISTINCT - col2 / + 93 + - col2 * + 27 FROM tab2
----
-1080
-1566
-621

query I rowsort
SELECT - col1 + - 77 AS col0 FROM tab0
----
-158
-78
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT ALL COUNT( * ) + - 24 DIV - - COUNT( * ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL COUNT ( * ) + - 24 / - - COUNT ( * ) FROM tab1
----
-5

query I rowsort
SELECT ALL - + ( col1 ) AS col1 FROM tab1 AS cor0 WHERE 90 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) < ( - col2 ) / + + 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT DISTINCT + SUM( 43 ) col0 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7528
SELECT DISTINCT + SUM ( 43 ) col0 FROM tab0 AS cor0
----
129

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + ( - - COUNT( ALL - col0 ) ) FROM tab2 AS cor0 WHERE + col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-7529
SELECT + ( - - COUNT ( ALL - col0 ) ) FROM tab2 AS cor0 WHERE + col1 > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7530
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - - ( + col2 ) + - ( - - 16 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT - ( COUNT( * ) ) - + CAST( + 37 AS SIGNED ) * + - 66 FROM tab2
----
2439

skipif mysql # not compatible
query I rowsort label-7533
SELECT - ( COUNT ( * ) ) - + CAST ( + 37 AS INTEGER ) * + - 66 FROM tab2
----
2439

query I rowsort
SELECT ALL + col0 + 36 AS col1 FROM tab2 AS cor0
----
100
111
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7535
SELECT col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + ( - - 57 ) / - 18 = + 23
----

skipif mysql # not compatible
query I rowsort label-7535
SELECT col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + ( - - 57 ) / - 18 = + 23
----

query I rowsort
SELECT - col0 + + col1 + - col0 FROM tab2 cor0
----
-41
-51
-83

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT + 97 + COUNT( * ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-7539
SELECT + 97 + COUNT ( * ) FROM tab1
----
100

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + - col2 IS NOT NULL
----

query I rowsort
SELECT + 82 * - col2 * - + ( - col0 ) AS col2 FROM tab1
----
-401472
-411230
-507416

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT ALL + ( - + 20 ) * + MIN( - 70 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1400

skipif mysql # not compatible
query I rowsort label-7542
SELECT ALL + ( - + 20 ) * + MIN ( - 70 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
1400

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL >= - 17 + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7544
SELECT DISTINCT - MAX( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT - MAX ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1, - ( + col0 ) AS col2 FROM tab2
----
-51
-46
-67
-75
-77
-64

query II rowsort
SELECT DISTINCT 93 col1, 11 + - col0 AS col0 FROM tab2
----
93
-35
93
-53
93
-64

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 85 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7550
SELECT - 49 * + + 87 + + ( MIN( - 49 ) ) AS col0 FROM tab0 cor0 WHERE NOT + col1 - + col2 <= + 81 * - 38
----
-4312

skipif mysql # not compatible
query I rowsort label-7550
SELECT - 49 * + + 87 + + ( MIN ( - 49 ) ) AS col0 FROM tab0 cor0 WHERE NOT + col1 - + col2 <= + 81 * - 38
----
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT DISTINCT - col2 + + col0 + + + CAST( NULL AS SIGNED ) * - + 32 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT + - col1 + 31 / - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT 11 * + col1 FROM tab2 cor0
----
561
737
847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7554
SELECT - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT DISTINCT - ( + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > + 22
----

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT - ( + col0 ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7556
SELECT CAST( 76 AS SIGNED ) AS col2 FROM tab2
----
76
76
76

skipif mysql # not compatible
query I rowsort label-7556
SELECT CAST ( 76 AS INTEGER ) AS col2 FROM tab2
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7557
SELECT + - col2 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7557
SELECT + - col2 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT ALL COUNT( ALL + col0 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-7558
SELECT ALL COUNT ( ALL + col0 ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT + 29 + - - col1 FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT col1 + + 69 + - - col0 AS col0 FROM tab2 cor0
----
166
210
211

onlyif mysql # DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT - col0 DIV 2 * + 29 + + + col2 * - - 24 FROM tab0 AS cor0
----
-1007
925
984

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - col0 / 2 * + 29 + + + col2 * - - 24 FROM tab0 AS cor0
----
-1007
925
984

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7562
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 83, + col1 + + CAST( NULL AS DECIMAL ), - 22, + 67 * - 5 )
----

skipif mysql # not compatible
query III rowsort label-7562
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 83, + col1 + + CAST ( NULL AS REAL ), - 22, + 67 * - 5 )
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE NOT + 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 64 * - col2 + - 71 FROM tab0
----
-3079
-6407
-711

query I rowsort
SELECT - - col1 * - + col1 + col1 + + 46 AS col1 FROM tab0 cor0
----
-374
-6434
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT - 58 * + MAX( ALL col1 ) + - - COUNT( * ) col1 FROM tab1 AS cor0
----
-2723

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7566
SELECT - 58 * + MAX ( ALL col1 ) + - - COUNT ( * ) col1 FROM tab1 AS cor0
----
-2723

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT - - COUNT( * ) * + COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7567
SELECT - - COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT - 20 FROM tab2 AS cor0 WHERE + col2 * col1 IS NULL
----

query I rowsort
SELECT ALL - col1 * + col1 + + col1 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-1492
-3292
-72

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT ALL 44 AS col2, - MAX( + ( - + 1 ) ) FROM tab2
----
44
1

skipif mysql # not compatible
query II rowsort label-7570
SELECT ALL 44 AS col2, - MAX ( + ( - + 1 ) ) FROM tab2
----
44
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT DISTINCT SUM( + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7571
SELECT DISTINCT SUM ( + - col0 ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT ALL 27 * + - COUNT( * ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL 27 * + - COUNT ( * ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT 45 * ( - + 4 ) FROM tab2
----
-180

query I rowsort
SELECT ALL 84 * - col1 AS col1 FROM tab1 WHERE NOT 0 IS NULL
----
-1176
-3948
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-7575
SELECT ALL + 58 DIV - 60 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL + 58 / - 60 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 > - 41
----

query II rowsort
SELECT - + col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7579
SELECT 60 DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-7579
SELECT 60 / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL - - 83 FROM tab2 WHERE NOT - col0 + + ( + 66 ) IS NULL
----
83
83
83

query II rowsort
SELECT DISTINCT + ( - - col0 ) + col0 * 96 col0, 47 AS col1 FROM tab2 AS cor0
----
4462
47
6208
47
7275
47

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

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE - 29 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT DISTINCT - col0 AS col1, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT 60 + - - ( - COUNT( * ) ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7586
SELECT 60 + - - ( - COUNT ( * ) ) FROM tab0
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 69 col0 FROM tab2
----
115
133
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7588
SELECT DISTINCT 18 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-28
-46
-57

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT 18 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-28
-46
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT col1 + - CAST( + - 33 AS SIGNED ) AS col2 FROM tab0
----
114
34
54

skipif mysql # not compatible
query I rowsort label-7589
SELECT col1 + - CAST ( + - 33 AS INTEGER ) AS col2 FROM tab0
----
114
34
54

query I rowsort
SELECT col1 + + + 43 + + + col1 AS col2 FROM tab2
----
145
177
197

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL COUNT( * ) + 81 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL COUNT ( * ) + 81 FROM tab1
----
84

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE + col1 > + ( - ( + col1 ) )
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7593
SELECT CAST( - MIN( DISTINCT - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7593
SELECT CAST ( - MIN ( DISTINCT - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - ( + + 82 ) + col2 FROM tab0 cor0
----
-35
-72
17

query I rowsort
SELECT + - col1 * col2 * + col0 AS col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL - 6 * 63 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-381

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - 6 * 63 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-381

query I rowsort
SELECT + col2 - - 6 * col0 FROM tab1
----
402
569
614

query I rowsort
SELECT DISTINCT 69 * + col0 AS col0 FROM tab0
----
1035
6003
6693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col2 FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - + col2 NOT BETWEEN NULL AND + 25 + 62 + + + 33 / + + col2 / + CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-7600
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 - + col2 NOT BETWEEN NULL AND + 25 + 62 + + + 33 / + + col2 / + CAST ( NULL AS INTEGER ) + col0
----

query II rowsort
SELECT - + col0 + - + col1 AS col2, - col0 - col1 * col0 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-141
-4992
-142
-5100
-97
-2392

query II rowsort
SELECT + col0, 94 * 43 + + col2 FROM tab0 AS cor0
----
15
4089
87
4052
97
4141

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7603
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT DISTINCT - CAST( + 85 AS SIGNED ) col0 FROM tab0 AS cor0
----
-85

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7605
SELECT 75 * - col2 DIV col2 * - 76, + ( + + ( col2 ) ) AS col1 FROM tab1 cor0
----
5700
59
5700
68
5700
96

skipif mysql # not compatible
query II rowsort label-7605
SELECT 75 * - col2 / col2 * - 76, + ( + + ( col2 ) ) AS col1 FROM tab1 cor0
----
5700
59
5700
68
5700
96

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

query I rowsort
SELECT ALL - - col2 FROM tab1 AS cor0 WHERE + 36 * - col1 <> + 94
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT + COUNT( ALL + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7608
SELECT + COUNT ( ALL + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 22 * 30 * + - col2 AS col0 FROM tab1 AS cor0
----
-38940
-44880
-63360

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 - - col2 + col1 BETWEEN - - 47 AND + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT IN ( col0 + 75, + ( + col2 ), + + col0, 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - MAX( - - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - MAX ( - - col1 ) AS col1 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 80 col2 FROM tab0 AS cor0 WHERE 65 = - 44
----

query I rowsort
SELECT + col0 * 96 - - col0 AS col2 FROM tab2 cor0
----
4462
6208
7275

query I rowsort
SELECT + 22 * + 63 * + col1 * - + 20 FROM tab0
----
-2245320
-27720
-582120

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT COUNT( 94 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT COUNT ( 94 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 51 + - col2 FROM tab1
----
-110
-119
-147

onlyif mysql # aggregate syntax: 
query II rowsort label-7618
SELECT ALL + COUNT( * ) * - 8 + 23 AS col1, - 14 AS col1 FROM tab1
----
-1
-14

skipif mysql # not compatible
query II rowsort label-7618
SELECT ALL + COUNT ( * ) * - 8 + 23 AS col1, - 14 AS col1 FROM tab1
----
-1
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 95 * - 94 + - col0 - - 97 AND + col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT ALL - COUNT( + ( + col0 ) ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - COUNT ( + ( + col0 ) ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 8 AS col2, - ( - - 74 ) AS col1 FROM tab1 AS cor0
----
8
-74
8
-74
8
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-7623
SELECT + + 71, MAX( DISTINCT - 40 ) AS col0 FROM tab1 AS cor0
----
71
-40

skipif mysql # not compatible
query II rowsort label-7623
SELECT + + 71, MAX ( DISTINCT - 40 ) AS col0 FROM tab1 AS cor0
----
71
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - ( + col0 ) - - 19 FROM tab1
----
-32
-66
-72

query I rowsort
SELECT + col2 + - + 12 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7627
SELECT - 37 * CAST( - 28 AS SIGNED ) + - + 27 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
1009
-14
1009
-47
1009
-5

skipif mysql # not compatible
query II rowsort label-7627
SELECT - 37 * CAST ( - 28 AS INTEGER ) + - + 27 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
1009
-14
1009
-47
1009
-5

query II rowsort
SELECT - col0 + + 48 AS col2, col2 AS col0 FROM tab0 AS cor0
----
-39
10
-49
99
33
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT + CAST( + 74 AS SIGNED ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
74

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
74

query II rowsort
SELECT ALL 90 AS col0, + col0 AS col0 FROM tab1
----
90
51
90
85
90
91

query I rowsort
SELECT - 30 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

onlyif mysql # DIV for integer division: 
query I rowsort label-7633
SELECT - col0 DIV + + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7633
SELECT - col0 / + + col1 AS col1 FROM tab1 AS cor0
----
-1
-17
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7634
SELECT col1 DIV - + 68 FROM tab2 AS cor0
----
-1
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - - MIN( - col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-7635
SELECT - - MIN ( - col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT + 4 * col1 AS col1 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7637
SELECT + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col2 <> 81
----

skipif mysql # not compatible
query I rowsort label-7637
SELECT + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col2 <> 81
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col0 < - + col2 AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 52 * + - col0 AS col1 FROM tab2 AS cor0
----
2392
3328
3900

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col2 / + + 81 ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * 30 AS col0 FROM tab0
----
2610
2910
450

query II rowsort
SELECT ALL + 43 AS col1, 49 FROM tab1
----
43
49
43
49
43
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT ALL - 99 DIV 41 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7644
SELECT ALL - 99 / 41 / - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7645
SELECT - - COUNT( * ) * - 86 + MIN( - + 74 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-848

skipif mysql # not compatible
query I rowsort label-7645
SELECT - - COUNT ( * ) * - 86 + MIN ( - + 74 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-848

query I rowsort
SELECT DISTINCT + col0 + + 25 * + 42 AS col0 FROM tab2 AS cor0
----
1096
1114
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + + 98 + + COUNT( * ) FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + + 98 + + COUNT ( * ) FROM tab1 AS cor0
----
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - col2 * + ( col1 ) + - col1 * - col1 col0 FROM tab1 AS cor0
----
129220
17430
219537

onlyif mysql # DIV for integer division: 
query II rowsort label-7649
SELECT DISTINCT - 34 DIV col2 + col2 + ( - col1 ), - 97 AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-14
-97
-34
-97
98
-97

skipif mysql # not compatible
query II rowsort label-7649
SELECT DISTINCT - 34 / col2 + col2 + ( - col1 ), - 97 AS col1 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-14
-97
-34
-97
98
-97

query I rowsort
SELECT DISTINCT + col2 * 77 + + col2 AS col0 FROM tab1 cor0
----
4602
5304
7488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7651
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * - - col2 AS col0 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT - 75 * - col1 + + 38 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + 86 + + - MAX( + col1 ) col0 FROM tab0 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7653
SELECT + 86 + + - MAX ( + col1 ) col0 FROM tab0 cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT ALL + col0 DIV + - col2 AS col1 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL + col0 / + - col2 AS col1 FROM tab0
----
-8
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7655
SELECT DISTINCT COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT + 91 + + - COUNT( ALL + - ( col0 ) ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-7656
SELECT + 91 + + - COUNT ( ALL + - ( col0 ) ) AS col1 FROM tab0
----
88

query I rowsort
SELECT col2 + - - 80 FROM tab2
----
103
120
138

query II rowsort
SELECT DISTINCT - 91 AS col0, 8 AS col2 FROM tab0
----
-91
8

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + col0 / + col2 <> + col0 * col1 / - + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col0 / - 95 = 68
----

query I rowsort
SELECT - 39 FROM tab2 AS cor0 WHERE 85 + 84 + col1 BETWEEN col2 * ( - col1 ) * + col2 + + col2 * col1 / - 46 + 34 + + + col2 AND col0
----

query I rowsort
SELECT DISTINCT - 25 - + 47 AS col1 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT SUM( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7663
SELECT SUM ( DISTINCT - col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE + - 32 + - - ( 0 ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7665
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + 51 >= NULL
----

skipif mysql # not compatible
query I rowsort label-7665
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + 51 >= NULL
----

query I rowsort
SELECT 52 + col0 - - 23 AS col0 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT - + 34 * + 17 FROM tab1 AS cor0
----
-578
-578
-578

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT COUNT( 77 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7668
SELECT COUNT ( 77 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 86 * + 95 AS col0, - col1 FROM tab2 AS cor0
----
-8170
-51
-8170
-67
-8170
-77

query I rowsort
SELECT DISTINCT + ( - 28 ) FROM tab2
----
-28

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 16 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7672
SELECT 34 AS col1, COUNT( * ) AS col0 FROM tab1
----
34
3

skipif mysql # not compatible
query II rowsort label-7672
SELECT 34 AS col1, COUNT ( * ) AS col0 FROM tab1
----
34
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT ALL ( 24 ) DIV - ( + 51 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL ( 24 ) / - ( + 51 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 / + col1 > 82 + + - col1 / + 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - col2 * - - col0 * - 60
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7677
SELECT + COUNT( * ) AS col2, ( + CAST( NULL AS SIGNED ) ) + - - 39 AS col1 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7677
SELECT + COUNT ( * ) AS col2, ( + CAST ( NULL AS INTEGER ) ) + - - 39 AS col1 FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query II rowsort label-7679
SELECT ALL + col0 AS col1, + col2 DIV + - 7 FROM tab2
----
46
-3
64
-5
75
-8

skipif mysql # not compatible
query II rowsort label-7679
SELECT ALL + col0 AS col1, + col2 / + - 7 FROM tab2
----
46
-3
64
-5
75
-8

query III rowsort
SELECT * FROM tab1 WHERE + ( + col2 ) * + 28 IS NULL
----

query I rowsort
SELECT DISTINCT + 75 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT ALL + col0 + 62 AS col1 FROM tab2 AS cor0
----
108
126
137

query I rowsort
SELECT ALL col0 - 70 FROM tab1 AS cor0
----
-19
15
21

query II rowsort
SELECT - col2 col0, - 25 FROM tab0 AS cor0
----
-10
-25
-47
-25
-99
-25

query II rowsort
SELECT col0 col2, - col2 FROM tab2 cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL 65 + COUNT( ALL - 37 ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-7686
SELECT ALL 65 + COUNT ( ALL - 37 ) FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT + MAX( 67 ) AS col2 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7687
SELECT + MAX ( 67 ) AS col2 FROM tab0 AS cor0
----
67

query I rowsort
SELECT + col0 * + 44 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-7689
SELECT DISTINCT + 57 DIV - + 41 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT + 57 / - + 41 FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL + col1 AS col2, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + col2 - + - col2 AS col0 FROM tab1
----
118
136
192

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT + 50 DIV 43 + + col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-7693
SELECT + 50 / 43 + + col2 AS col0 FROM tab2
----
24
41
59

query I rowsort
SELECT 72 * - col0 + + col0 FROM tab1
----
-3621
-6035
-6461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - + 77 col1 FROM tab1 AS cor0
----
-1078
-3619
-385

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE + col2 / + 64 * col2 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT DISTINCT - COUNT( DISTINCT + + col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7697
SELECT DISTINCT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7698
SELECT DISTINCT - + COUNT( * ) AS col0, 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
10

skipif mysql # not compatible
query II rowsort label-7698
SELECT DISTINCT - + COUNT ( * ) AS col0, 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT DISTINCT + + COUNT( * ), - 26 + - 24 col1 FROM tab2 AS cor0
----
3
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7699
SELECT DISTINCT + + COUNT ( * ), - 26 + - 24 col1 FROM tab2 AS cor0
----
3
-50

query I rowsort
SELECT ALL - ( + 65 ) * col0 AS col1 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT - + CAST( NULL AS SIGNED ) * + - 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7702
SELECT 72 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-7702
SELECT 72 / + col1 AS col2 FROM tab1 AS cor0
----
1
14
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT SUM( - 87 ) FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT SUM ( - 87 ) FROM tab0 AS cor0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT DISTINCT AVG ( - col0 ) AS col1 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) > - col2 + + ( - 17 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT DISTINCT AVG ( - col0 ) AS col1 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) > - col2 + + ( - 17 )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7705
SELECT + COUNT( * ) * COUNT( * ) DIV - + ( + + COUNT( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7705
SELECT + COUNT ( * ) * COUNT ( * ) / - + ( + + COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT - col0 * - 19 * - col0 AS col1 FROM tab0
----
-143811
-178771
-4275

query I rowsort
SELECT + col2 + - - 63 * col1 AS col0 FROM tab2
----
3236
4279
4891

query II rowsort
SELECT DISTINCT + col2 * + - col0 * + 39 + - col0 AS col2, - col1 FROM tab0
----
-27510
-81
-34017
-21
-374614
-1

query I rowsort
SELECT col1 + + 34 * + 36 FROM tab2
----
1275
1291
1301

query I rowsort
SELECT + 61 + + 50 AS col2 FROM tab2
----
111
111
111

query I rowsort
SELECT col0 + - 75 * + col2 FROM tab1
----
-4340
-5009
-7149

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT 74 * - - 32 + + MAX( col1 ) AS col0 FROM tab0
----
2449

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT 74 * - - 32 + + MAX ( col1 ) AS col0 FROM tab0
----
2449

query I rowsort
SELECT ALL ( + col1 ) + + - col2 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT ALL 11 * + ( - + col0 ) * + col1 AS col1 FROM tab1 AS cor0
----
-4675
-47047
-7854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7715
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 IN ( + - col0, - CAST( + + 6 AS SIGNED ) * + CAST( + + 63 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7715
SELECT * FROM tab2 AS cor0 WHERE col2 + col1 IN ( + - col0, - CAST ( + + 6 AS INTEGER ) * + CAST ( + + 63 AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7716
SELECT - col2 - 52 * col2 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 = + 2
----

query I rowsort
SELECT 99 * - col2 + - col1 - + col2 AS col2 FROM tab2 AS cor0
----
-2351
-4077
-5867

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT + COUNT( * ) - 2 + - COUNT( * ) AS col2 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT + COUNT ( * ) - 2 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-2

query I rowsort
SELECT ALL + - col0 - + 16 * - + 97 AS col2 FROM tab0 AS cor0
----
1455
1465
1537

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT + col0 * + 60 + - - 21 - - col1 * CAST( NULL AS SIGNED ) + - col0 * + + 56 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col0 - col1 + - + col1 FROM tab0 AS cor0
----
-147
45
95

onlyif mysql # DIV for integer division: 
query II rowsort label-7723
SELECT - col0 AS col0, + col0 DIV 29 FROM tab0
----
-15
0
-87
3
-97
3

skipif mysql # not compatible
query II rowsort label-7723
SELECT - col0 AS col0, + col0 / 29 FROM tab0
----
-15
0
-87
3
-97
3

query I rowsort
SELECT ALL 50 * ( + + col2 ) FROM tab0
----
2350
4950
500

query I rowsort
SELECT 91 * + 87 AS col1 FROM tab1
----
7917
7917
7917

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / col1 IS NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 18 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7728
SELECT DISTINCT ( col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT 68 + + + 28 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
96

query I rowsort
SELECT col2 * col1 * - - 39 AS col0 FROM tab1 AS cor0
----
11505
124644
52416

query I rowsort
SELECT ALL + + ( + + ( col2 ) ) FROM tab1 AS cor0 WHERE NOT - 58 IS NULL
----
59
68
96

query I rowsort
SELECT + + col1 * col0 + - 69 AS col2 FROM tab1 AS cor0
----
356
4208
645

query I rowsort
SELECT DISTINCT ( + ( - + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT - - COUNT( * ) * + 37 * + + AVG ( + col1 ) FROM tab0 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT - - COUNT ( * ) * + 37 * + + AVG ( + col1 ) FROM tab0 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + - SUM( DISTINCT + + 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7735
SELECT + - SUM ( DISTINCT + + 36 ) FROM tab0 AS cor0
----
-36

query I rowsort
SELECT - - 21 * - col2 * - 91 FROM tab2 cor0
----
110838
43953
76440

query II rowsort
SELECT - ( + + 8 ) AS col2, - col2 FROM tab0 AS cor0
----
-8
-10
-8
-47
-8
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT - SUM( ALL + col2 ) AS col0, 38 + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-121
35

skipif mysql # not compatible
query II rowsort label-7738
SELECT - SUM ( ALL + col2 ) AS col0, 38 + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-121
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) * + 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + 97 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT + 71 * + CAST( col1 AS SIGNED ) col2 FROM tab2
----
3621
4757
5467

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7740
SELECT + 71 * + CAST ( col1 AS INTEGER ) col2 FROM tab2
----
3621
4757
5467

query II rowsort
SELECT col2 AS col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL ( - ( COUNT( * ) ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL ( - ( COUNT ( * ) ) ) FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( + 98 + + + col0 ) AND ( + - ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT ALL + - COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7746
SELECT ALL + - COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT - col0 * 47 AS col1 FROM tab2
----
-2162
-3008
-3525

query I rowsort
SELECT 3 * col0 FROM tab0
----
261
291
45

query I rowsort
SELECT - 49 * - 13 AS col1 FROM tab0
----
637
637
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7750
SELECT - ( MIN( - 18 ) ) * CAST( - 87 AS SIGNED ) AS col1 FROM tab1
----
-1566

skipif mysql # not compatible
query I rowsort label-7750
SELECT - ( MIN ( - 18 ) ) * CAST ( - 87 AS INTEGER ) AS col1 FROM tab1
----
-1566

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 18 * col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7754
SELECT ALL - COUNT( ALL + ( 40 ) ) + 53 * MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL - COUNT ( ALL + ( 40 ) ) + 53 * MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7755
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7755
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7756
SELECT ALL - 42 * COUNT( * ) AS col2 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-7756
SELECT ALL - 42 * COUNT ( * ) AS col2 FROM tab1
----
-126

query I rowsort
SELECT ALL 46 * - 18 AS col0 FROM tab1
----
-828
-828
-828

query I rowsort
SELECT ALL col2 * 83 FROM tab0
----
3901
8217
830

query III rowsort
SELECT * FROM tab2 WHERE col0 <= ( 51 / 87 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( - 49 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7761
SELECT ALL + 58 DIV + 22 AS col1 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + 58 / + 22 AS col1 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7762
SELECT - 75 DIV COUNT( * ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7762
SELECT - 75 / COUNT ( * ) AS col1 FROM tab1
----
-25

query I rowsort
SELECT DISTINCT col2 - - 9 AS col0 FROM tab2
----
32
49
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7764
SELECT + COUNT( * ) DIV + SUM( col2 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7764
SELECT + COUNT ( * ) / + SUM ( col2 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7765
SELECT ALL - 22 DIV COUNT( * ) AS col1 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-7765
SELECT ALL - 22 / COUNT ( * ) AS col1 FROM tab2
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7766
SELECT ALL + MIN( + col1 ) DIV COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + MIN ( + col1 ) / COUNT ( * ) AS col2 FROM tab1
----
1

query I rowsort
SELECT + col0 - - 86 AS col0 FROM tab0
----
101
173
183

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 4 ) NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7769
SELECT col0 * - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN col0 AND col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7771
SELECT DISTINCT 62 + + CAST( COUNT( * ) AS SIGNED ) DIV MIN( 78 * col2 ) AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT 62 + + CAST ( COUNT ( * ) AS INTEGER ) / MIN ( 78 * col2 ) AS col0 FROM tab2
----
62

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( + col2 - - 8 * 13 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 * - col0 + col2 AS col0 FROM tab1
----
2697
7284
8349

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7774
SELECT 52 DIV CAST( col1 AS SIGNED ) + - col0 FROM tab2
----
-45
-64
-75

skipif mysql # not compatible
query I rowsort label-7774
SELECT 52 / CAST ( col1 AS INTEGER ) + - col0 FROM tab2
----
-45
-64
-75

query I rowsort
SELECT + 41 + col2 AS col1 FROM tab0
----
140
51
88

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT ( 16 ) + + 67 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 96 ) >= + col1 + 77 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT - COUNT( - col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7779
SELECT - COUNT ( - col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT + COUNT( col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7780
SELECT DISTINCT + COUNT ( col1 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col2 + 15 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT ( - SUM( DISTINCT col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7783
SELECT ( - SUM ( DISTINCT col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT ALL 30 AS col1 FROM tab1 WHERE ( 54 * - 92 - + col1 ) BETWEEN col2 / - 5 AND col1 * + ( col2 ) + + col1
----

query I rowsort
SELECT - 3 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT 17 * - col1 + - col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2983
-5405
-6764

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + 85 * + 23 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * ( - col2 ) FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 NOT BETWEEN col2 * + col1 AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7790
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 ) NOT BETWEEN - 34 + + CAST( NULL AS SIGNED ) AND ( - col1 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-7790
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 ) NOT BETWEEN - 34 + + CAST ( NULL AS INTEGER ) AND ( - col1 * + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + 89 col1 FROM tab0 AS cor0
----
1869
7209
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 = + 15
----
87
21
10
97
1
99

query I rowsort
SELECT 2 * - col2 AS col1 FROM tab1 WHERE - 36 / + 90 NOT BETWEEN col2 * - col1 AND - 41 + + 90
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( - col0 ) BETWEEN NULL AND - col2 * + col0 + + 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + + ( 88 ) AS col2 FROM tab0
----
67
7
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL - 59 * - COUNT( * ) FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL - 59 * - COUNT ( * ) FROM tab1 WHERE NULL <= NULL
----
0

query I rowsort
SELECT col1 + - + col0 + - 72 * 95 AS col2 FROM tab2
----
-6827
-6835
-6848

onlyif mysql # aggregate syntax: 
query I rowsort label-7799
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( - col2 ) IN ( ( col2 ) * col2 + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( - col2 ) IN ( ( col2 ) * col2 + col2 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1 - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7801
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7802
SELECT COUNT( * ) + + - ( CAST( 46 AS SIGNED ) ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-7802
SELECT COUNT ( * ) + + - ( CAST ( 46 AS INTEGER ) ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT DISTINCT - 45 * ( COUNT( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7803
SELECT DISTINCT - 45 * ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT ALL + 47 * - col1 + col2 FROM tab1 cor0
----
-176
-2141
-562

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * 15 = NULL
----

query I rowsort
SELECT ALL - 25 - col0 AS col0 FROM tab2 AS cor0
----
-100
-71
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT - - AVG ( CAST( NULL AS SIGNED ) ) * + ( ( AVG ( col0 ) ) * CAST( - COUNT( * ) AS SIGNED ) ) col0 FROM tab2 cor0
----
NULL

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

query I rowsort
SELECT ALL 75 * col2 - col1 AS col1 FROM tab0
----
3444
729
7424

query I rowsort
SELECT DISTINCT col0 + + col2 / - col0 AS col0 FROM tab1 AS cor0 WHERE + col0 + col2 = ( ( + 70 ) * col2 )
----

query I rowsort
SELECT col2 + + + col1 + - ( + col2 ) + - col0 * col0 FROM tab0 cor0
----
-144
-7548
-9408

query II rowsort
SELECT ALL - 76 AS col2, 24 FROM tab0 AS cor0
----
-76
24
-76
24
-76
24

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7812
SELECT CAST( col1 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 * - 36 + CAST( NULL AS SIGNED ) = - col0 * + col1
----

skipif mysql # not compatible
query I rowsort label-7812
SELECT CAST ( col1 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT - col1 * + col2 * - 36 + CAST ( NULL AS INTEGER ) = - col0 * + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 91 + + ( col0 ) / col1 >= ( - col1 )
----

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

query I rowsort
SELECT ALL ( - ( + 63 ) ) FROM tab2
----
-63
-63
-63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7817
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE 99 NOT BETWEEN NULL AND + - 76
----
3

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE 99 NOT BETWEEN NULL AND + - 76
----
3

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - ( col0 ) < + col2 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT - ( + CAST( NULL AS SIGNED ) ) * + col0 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 36 / - col1 > col2 + col2 / - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7823
SELECT ALL + - CAST( col1 AS SIGNED ), col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif mysql # not compatible
query II rowsort label-7823
SELECT ALL + - CAST ( col1 AS INTEGER ), col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) * - - 76 + + col1 * + col2 FROM tab1 AS cor0
----
-370752
-380845
-467092

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + COUNT( * ) FROM tab0 WHERE NOT NULL IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COUNT ( * ) FROM tab0 WHERE NOT NULL IN ( - col2 )
----
0

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab1 WHERE + 53 * col2 + + col0 IS NOT NULL
----
-38

query I rowsort
SELECT + col2 * + col1 * + col0 * 84 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + ( - col1 ) ) + + - 71 * - col1 AS col0 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT - 78 * 81 + + col0 FROM tab0 AS cor0
----
-6221
-6231
-6303

onlyif mysql # aggregate syntax: 
query II rowsort label-7830
SELECT ( - - 15 ) * + COUNT( * ) AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
45
3

skipif mysql # not compatible
query II rowsort label-7830
SELECT ( - - 15 ) * + COUNT ( * ) AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
45
3

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

query I rowsort
SELECT col0 * - col0 + - 98 FROM tab1 AS cor0
----
-2699
-7323
-8379

query I rowsort
SELECT DISTINCT + - ( col1 ) * + 49 FROM tab2 AS cor0
----
-2499
-3283
-3773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7834
SELECT DISTINCT 76 DIV MAX( col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7834
SELECT DISTINCT 76 / MAX ( col1 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7835
SELECT DISTINCT - col1, - CAST( NULL AS SIGNED ) / - ( col2 ) * - col2 - col0 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-7835
SELECT DISTINCT - col1, - CAST ( NULL AS INTEGER ) / - ( col2 ) * - col2 - col0 AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT ALL COUNT( - col0 ) + - 71 * MIN( ALL 85 + + col0 ) AS col0 FROM tab2 WHERE NULL <> + col2 - - col0 - - 93 * CAST( + col1 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL COUNT ( - col0 ) + - 71 * MIN ( ALL 85 + + col0 ) AS col0 FROM tab2 WHERE NULL <> + col2 - - col0 - - 93 * CAST ( + col1 AS INTEGER )
----
NULL

query II rowsort
SELECT ALL + col2 AS col0, col0 * + 67 FROM tab1
----
59
5695
68
6097
96
3417

onlyif mysql # aggregate syntax: 
query II rowsort label-7838
SELECT COUNT( DISTINCT - - col2 ) - - - MIN( DISTINCT - + col1 ) AS col1, 82 FROM tab0
----
84
82

skipif mysql # not compatible
query II rowsort label-7838
SELECT COUNT ( DISTINCT - - col2 ) - - - MIN ( DISTINCT - + col1 ) AS col1, 82 FROM tab0
----
84
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL col2 / + col0 + CAST( NULL AS SIGNED ) + - ( - col0 ) * + + 78 + - col2 * + 49 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab2 WHERE + + col1 < - + 55 + - - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT - - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7841
SELECT - - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7844
SELECT - col0 DIV - + col1 AS col0 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7844
SELECT - col0 / - + col1 AS col0 FROM tab1 cor0
----
1
17
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7845
SELECT - + COUNT( * ) DIV 63, 8 AS col1 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query II rowsort label-7845
SELECT - + COUNT ( * ) / 63, 8 AS col1 FROM tab0 cor0
----
0
8

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

query I rowsort
SELECT - col2 * - col0 FROM tab0 AS cor0 WHERE NOT + 53 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 2 NOT BETWEEN NULL AND + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT SUM( DISTINCT - col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7850
SELECT SUM ( DISTINCT - col2 ) col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT col1 * + - 89 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # aggregate syntax: 
query II rowsort label-7852
SELECT DISTINCT 90 AS col2, COUNT( * ) FROM tab1
----
90
3

skipif mysql # not compatible
query II rowsort label-7852
SELECT DISTINCT 90 AS col2, COUNT ( * ) FROM tab1
----
90
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7853
SELECT ALL * FROM tab0 WHERE NOT 93 + + col2 * - - CAST( 54 AS SIGNED ) IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7853
SELECT ALL * FROM tab0 WHERE NOT 93 + + col2 * - - CAST ( 54 AS INTEGER ) IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7854
SELECT DISTINCT - CAST( NULL AS SIGNED ), - 53 col2 FROM tab1
----
NULL
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7854
SELECT DISTINCT - CAST ( NULL AS INTEGER ), - 53 col2 FROM tab1
----
NULL
-53

query III rowsort
SELECT ALL * FROM tab0 WHERE - 46 = + 23
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7856
SELECT ALL - + CAST( NULL AS DECIMAL ) * + 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7857
SELECT DISTINCT - ( + col2 ) + - + 43 FROM tab2 AS cor0 WHERE NOT + CAST( col0 AS SIGNED ) IS NULL
----
-101
-66
-83

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - ( + col2 ) + - + 43 FROM tab2 AS cor0 WHERE NOT + CAST ( col0 AS INTEGER ) IS NULL
----
-101
-66
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT 1 FROM tab0 AS cor0 WHERE NOT col0 - ( - CAST( NULL AS SIGNED ) ) = + col0 AND ( + col2 * col1 ) >= ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-7858
SELECT 1 FROM tab0 AS cor0 WHERE NOT col0 - ( - CAST ( NULL AS INTEGER ) ) = + col0 AND ( + col2 * col1 ) >= ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7859
SELECT ALL - + CAST( NULL AS DECIMAL ) - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7859
SELECT ALL - + CAST ( NULL AS REAL ) - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 * col2 * + col2 col1 FROM tab1
----
17405
23120
46080

query II rowsort
SELECT - ( + col0 ), col2 AS col1 FROM tab1
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT col2 * col2 + - + col0 AS col2 FROM tab2 AS cor0
----
1536
3289
483

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query II rowsort
SELECT ALL - + col0 * + col0, - col1 AS col0 FROM tab0 cor0
----
-225
-81
-7569
-21
-9409
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7866
SELECT DISTINCT - col1 DIV 16 AS col1 FROM tab2
----
-3
-4

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT - col1 / 16 AS col1 FROM tab2
----
-3
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT + ( - col2 ) DIV - + col2 + - - 96 * + 18 FROM tab2
----
1729
1729
1729

skipif mysql # not compatible
query I rowsort label-7867
SELECT + ( - col2 ) / - + col2 + - - 96 * + 18 FROM tab2
----
1729
1729
1729

query I rowsort
SELECT - col1 * - col0 + - 16 FROM tab0
----
1199
1811
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7869
SELECT + SUM( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

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

query I rowsort
SELECT col2 + - + col2 + col0 AS col1 FROM tab1 WHERE NULL <> - - 29
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 * - col2 + + 14 - - - ( col2 ) = ( - - ( - + 90 ) )
----

query I rowsort
SELECT ALL - col1 + col2 * + col0 AS col0 FROM tab1
----
4882
5010
6141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7873
SELECT DISTINCT - 9 + - COUNT( * ) DIV - 90 * - - 92 AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7873
SELECT DISTINCT - 9 + - COUNT ( * ) / - 90 * - - 92 AS col1 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7874
SELECT ALL - CAST( NULL AS SIGNED ) + + 36 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 82 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 79 <> 85 * + col1 + - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 96 - + 13 * col2 + + col2 FROM tab1
----
-1056
-612
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7878
SELECT 65 * + ( + + CAST( + col0 AS SIGNED ) ) - + - col1 FROM tab2
----
3041
4237
4942

skipif mysql # not compatible
query I rowsort label-7878
SELECT 65 * + ( + + CAST ( + col0 AS INTEGER ) ) - + - col1 FROM tab2
----
3041
4237
4942

query II rowsort
SELECT + 3 AS col1, + col0 AS col2 FROM tab1
----
3
51
3
85
3
91

query I rowsort
SELECT DISTINCT - 84 * 2 * + 70 AS col1 FROM tab1 cor0
----
-11760

query I rowsort
SELECT DISTINCT 53 * col1 AS col2 FROM tab2 AS cor0
----
2703
3551
4081

query I rowsort
SELECT ALL - - 51 * - col2 FROM tab2 AS cor0
----
-1173
-2040
-2958

query I rowsort
SELECT - 60 FROM tab2 AS cor0 WHERE NOT - col0 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( col0, col0 * + - 22 + - col0 )
----

query I rowsort
SELECT 14 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7886
SELECT 21 AS col0, COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
21
6

skipif mysql # not compatible
query II rowsort label-7886
SELECT 21 AS col0, COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
21
6

query II rowsort
SELECT DISTINCT + - col0, 68 AS col1 FROM tab0 AS cor0
----
-15
68
-87
68
-97
68

query II rowsort
SELECT ALL ( col2 ) AS col1, + col2 AS col0 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT ALL - ( - COUNT( ALL + + col1 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7889
SELECT ALL - ( - COUNT ( ALL + + col1 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + ( 94 ) + + + col1 FROM tab0 AS cor0 WHERE NOT col2 * col0 IS NULL
----
115
175
95

query I rowsort
SELECT + + 88 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7892
SELECT DISTINCT + + MIN( col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7892
SELECT DISTINCT + + MIN ( col1 ) col0 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT - + MAX( ALL 61 ) AS col0 FROM tab0 cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7893
SELECT - + MAX ( ALL 61 ) AS col0 FROM tab0 cor0
----
-61

query II rowsort
SELECT DISTINCT + ( + 19 ), col2 FROM tab0 AS cor0
----
19
10
19
47
19
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7895
SELECT + SUM( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7895
SELECT + SUM ( - + col0 ) AS col1 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + 54 IS NOT NULL OR ( NOT NULL IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL COUNT( * ) col1 FROM tab2 WHERE + + col2 <= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7897
SELECT ALL COUNT ( * ) col1 FROM tab2 WHERE + + col2 <= ( NULL )
----
0

query I rowsort
SELECT DISTINCT 51 + - 95 - col1 AS col0 FROM tab1 WHERE + - col2 IS NOT NULL
----
-49
-58
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 + - - 52 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-38

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 9 + + - col0 AS col2 FROM tab1 AS cor0
----
-42
-76
-82

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 38 AND + - col2
----

query I rowsort
SELECT - - col2 * + - col1 * - - 61 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
-1061620
-13256917
-7870413

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE - 50 * col2 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT DISTINCT CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7905
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * + 90 col2 FROM tab1 AS cor0
----
1260
1260
1260

query I rowsort
SELECT DISTINCT 37 + col0 AS col2 FROM tab1
----
122
128
88

query I rowsort
SELECT DISTINCT 71 * - col2 * col1 FROM tab2 WHERE NOT + 77 / + - col1 > 96
----
-218680
-275906
-83283

query III rowsort
SELECT * FROM tab2 WHERE + 20 * col1 = - + col2 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> 47
----

query I rowsort
SELECT DISTINCT - 88 + + col0 FROM tab2
----
-13
-24
-42

query I rowsort
SELECT DISTINCT 7 + - - 26 AS col1 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT DISTINCT + col0 * + 81 * + CAST( ( + ( - + col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-207360
-352350
-85698

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT + col0 * + 81 * + CAST ( ( + ( - + col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-207360
-352350
-85698

onlyif mysql # DIV for integer division: 
query II rowsort label-7914
SELECT col1 + + - 0 AS col2, col2 DIV - 10 AS col2 FROM tab0 AS cor0
----
1
-9
21
-1
81
-4

skipif mysql # not compatible
query II rowsort label-7914
SELECT col1 + + - 0 AS col2, col2 / - 10 AS col2 FROM tab0 AS cor0
----
1
-9
21
-1
81
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7915
SELECT + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NULL NOT BETWEEN - CAST( col0 AS SIGNED ) * + - col0 * + col1 AND NULL )
----

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

query I rowsort
SELECT ALL + 16 * 49 FROM tab0
----
784
784
784

query I rowsort
SELECT ALL ( - col2 ) * - col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT - COUNT( * ) * - - 62 FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-7918
SELECT - COUNT ( * ) * - - 62 FROM tab2
----
-186

query I rowsort
SELECT 58 * 44 FROM tab1
----
2552
2552
2552

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7920
SELECT DISTINCT + COUNT( * ) DIV + - 36 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT + COUNT ( * ) / + - 36 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 50 * + 20 * - + ( + + col1 ) FROM tab2 AS cor0
----
-51000
-67000
-77000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7922
SELECT DISTINCT + - 75 DIV + MIN( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT + - 75 / + MIN ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) * - col2 + + ( - ( - col0 ) ) * col1 + - col2 NOT IN ( - 88, 25 * + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7923
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( - col0 ) * - col2 + + ( - ( - col0 ) ) * col1 + - col2 NOT IN ( - 88, 25 * + col0 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7924
SELECT ALL + 58 DIV - 34 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT ALL - - COUNT( DISTINCT - 94 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7925
SELECT ALL - - COUNT ( DISTINCT - 94 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + 33 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT ALL MAX( ALL + - col2 ) col2 FROM tab1 cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7927
SELECT ALL MAX ( ALL + - col2 ) col2 FROM tab1 cor0
----
-59

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

query I rowsort
SELECT DISTINCT + + 44 * - col1 AS col1 FROM tab2 AS cor0 WHERE 51 * - + col2 > + col0
----

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col1 FROM tab2
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 + ( + - col2 ) * + 53 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7932
SELECT COUNT( * ) AS col1, 65 FROM tab2
----
3
65

skipif mysql # not compatible
query II rowsort label-7932
SELECT COUNT ( * ) AS col1, 65 FROM tab2
----
3
65

query I rowsort
SELECT ALL - ( + col0 ) * + 21 AS col0 FROM tab0
----
-1827
-2037
-315

query I rowsort
SELECT ( - + 12 ) FROM tab0
----
-12
-12
-12

query I rowsort
SELECT - 28 + - - col2 FROM tab0
----
-18
19
71

query I rowsort
SELECT ALL ( - 18 ) + + + 1 + 47 FROM tab2
----
30
30
30

query I rowsort
SELECT DISTINCT col1 * + 20 + col0 FROM tab2
----
1066
1415
1604

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT CAST( - ( - - col2 ) AS SIGNED ) + - 88 FROM tab0
----
-135
-187
-98

skipif mysql # not compatible
query I rowsort label-7938
SELECT CAST ( - ( - - col2 ) AS INTEGER ) + - 88 FROM tab0
----
-135
-187
-98

query II rowsort
SELECT ALL 64 AS col1, ( col0 ) + - col0 FROM tab2 AS cor0
----
64
0
64
0
64
0

query II rowsort
SELECT DISTINCT - 11, col0 AS col0 FROM tab1 AS cor0
----
-11
51
-11
85
-11
91

query I rowsort
SELECT DISTINCT - 14 + - 38 AS col1 FROM tab1
----
-52

query I rowsort
SELECT - col2 FROM tab0 WHERE - col1 + - col1 * + col0 BETWEEN NULL AND + col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT - MIN( - - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7943
SELECT - MIN ( - - col2 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT + 20 + - - col0 FROM tab1 AS cor0
----
105
111
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT DISTINCT + + COUNT( * ) + + 78 AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7945
SELECT DISTINCT + + COUNT ( * ) + + 78 AS col2 FROM tab2 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 91 - - 76, col2 + + col2 col2 FROM tab2 AS cor0
----
167
116
167
46
167
80

query I rowsort
SELECT + col0 * - col1 + + + col0 AS col2 FROM tab2 AS cor0
----
-2300
-4864
-4950

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7948
SELECT DISTINCT - CAST( 91 AS SIGNED ) - MAX( ALL - col2 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-7948
SELECT DISTINCT - CAST ( 91 AS INTEGER ) - MAX ( ALL - col2 ) FROM tab1
----
-32

query I rowsort
SELECT DISTINCT col0 - + + 17 AS col2 FROM tab1
----
34
68
74

query I rowsort
SELECT + col2 * + 0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7951
SELECT col1 AS col1, - col1 * CAST( + - col1 AS SIGNED ) FROM tab1
----
14
196
47
2209
5
25

skipif mysql # not compatible
query II rowsort label-7951
SELECT col1 AS col1, - col1 * CAST ( + - col1 AS INTEGER ) FROM tab1
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT ALL - COUNT( * ) * ( + 52 ) AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL - COUNT ( * ) * ( + 52 ) AS col1 FROM tab1
----
-156

query II rowsort
SELECT DISTINCT - 77 + ( 1 ) AS col2, col2 FROM tab1
----
-76
59
-76
68
-76
96

query II rowsort
SELECT col2 AS col2, + 3 AS col0 FROM tab2
----
23
3
40
3
58
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7955
SELECT + col2, + col0 DIV + 62 FROM tab0 cor0
----
10
1
47
0
99
1

skipif mysql # not compatible
query II rowsort label-7955
SELECT + col2, + col0 / + 62 FROM tab0 cor0
----
10
1
47
0
99
1

query I rowsort
SELECT + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7957
SELECT + COUNT( ALL - - col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7957
SELECT + COUNT ( ALL - - col0 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - 67 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 * + + 68 col0 FROM tab0
----
-14280
-258876
-6732

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7960
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) * + ( + - 14 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7960
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) * + ( + - 14 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7961
SELECT ALL - - MAX( col1 ) AS col1, - 75 col1 FROM tab1 AS cor0
----
47
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7961
SELECT ALL - - MAX ( col1 ) AS col1, - 75 col1 FROM tab1 AS cor0
----
47
-75

query I rowsort
SELECT + col2 * + + 47 AS col0 FROM tab1 AS cor0
----
2773
3196
4512

query I rowsort
SELECT + 82 * + - col2 * + - col1 * + col2 AS col0 FROM tab2 AS cor0
----
10102400
18481816
2212278

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT - 87 * 35 + COUNT( * ) AS col2 FROM tab1 cor0
----
-3042

skipif mysql # not compatible
query I rowsort label-7964
SELECT - 87 * 35 + COUNT ( * ) AS col2 FROM tab1 cor0
----
-3042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT ALL - CAST( NULL AS SIGNED ) * + + col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT col0 * + + 35 FROM tab0
----
3045
3395
525

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( + - col1, - col1 + - + ( - 49 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7968
SELECT ALL col0 DIV - - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL col0 / - - col0 AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT DISTINCT col1 DIV 37 AS col2 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT col1 / 37 AS col2 FROM tab2
----
1
2

query I rowsort
SELECT DISTINCT + 25 + col2 AS col2 FROM tab2
----
48
65
83

query I rowsort
SELECT + col2 * ( + col2 ) + col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT DISTINCT 48 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
48

query I rowsort
SELECT ( - 62 ) * + 7 AS col0 FROM tab0 AS cor0
----
-434
-434
-434

query I rowsort
SELECT DISTINCT - col2 + + 74 AS col2 FROM tab1 cor0
----
-22
15
6

query I rowsort
SELECT - col1 * + col2 + + col1 FROM tab2 AS cor0 WHERE + ( - col1 ) IS NULL
----

query I rowsort
SELECT + 53 * + - col1 FROM tab0 cor0
----
-1113
-4293
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT - 57 + + 29 + - - COUNT( * ) FROM tab2 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7977
SELECT - 57 + + 29 + - - COUNT ( * ) FROM tab2 cor0
----
-25

query I rowsort
SELECT - 28 + - + 88 * - + col2 * col0 AS col0 FROM tab2 AS cor0
----
225252
382772
93076

query I rowsort
SELECT col0 + + 40 FROM tab1 AS cor0
----
125
131
91

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE - 93 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + + col1 col2 FROM tab0 cor0 WHERE + 2 * col2 <= NULL
----

query II rowsort
SELECT DISTINCT - col2 - col0, + ( ( col2 ) ) + + col0 AS col1 FROM tab2 AS cor0
----
-104
104
-133
133
-69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7983
SELECT - col0 DIV - 89 AS col1 FROM tab1 AS cor0
----
0
0
1

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

query II rowsort
SELECT col1, - col1 + - 25 AS col2 FROM tab1 AS cor0
----
14
-39
47
-72
5
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7985
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( CAST( + 29 AS SIGNED ) AS SIGNED ) + 21 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7985
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( CAST ( + 29 AS INTEGER ) AS INTEGER ) + 21 IS NULL
----

query I rowsort
SELECT + ( + ( - col1 ) ) * + + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) < 68
----

query I rowsort
SELECT ALL + - 21 - + - 23 * col1 AS col0 FROM tab1 AS cor0
----
1060
301
94

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT DISTINCT - 96 * + + COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT - 96 * + + COUNT ( * ) + ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-7990
SELECT COUNT( col2 ) col0, COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7990
SELECT COUNT ( col2 ) col0, COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT col2 + col1 + 68 AS col1, col1 * ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7992
SELECT - COUNT( ALL - col2 ) - + ( + - COUNT( * ) ) * COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7992
SELECT - COUNT ( ALL - col2 ) - + ( + - COUNT ( * ) ) * COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - + col1 - - + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - 42 * - - 7 - - 2 + - - col1 AS col1 FROM tab2 WHERE ( + ( - col0 ) ) IN ( + - 16 / 59, + col2 - - 71, + col1 + col1 + + col0 + - 4 * + 12 * - 72 + + col0 )
----

query I rowsort
SELECT col1 + + 68 FROM tab2
----
119
135
145

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + 77 * + - COUNT( + col2 ) AS col1 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-7996
SELECT + 77 * + - COUNT ( + col2 ) AS col1 FROM tab1
----
-231

query I rowsort
SELECT - col2 * col2 + - + 14 FROM tab2 AS cor0
----
-1614
-3378
-543

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - col1, 79 col0 FROM tab1 AS cor0
----
-196
79
-2209
79
-25
79

query I rowsort
SELECT + - 47 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / + - col1 + - 49 * - col0 + + + ( - col2 ) - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8001
SELECT - - COUNT( * ) * 53 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8001
SELECT - - COUNT ( * ) * 53 FROM tab1 AS cor0
----
159

query II rowsort
SELECT + col1, ( - 42 ) FROM tab1 AS cor0
----
14
-42
47
-42
5
-42

query II rowsort
SELECT 14 AS col2, + col0 * - - col2 - + 41 FROM tab2 AS cor0
----
14
1017
14
2519
14
4309

query I rowsort
SELECT ALL + + 86 * col2 FROM tab2 AS cor0
----
1978
3440
4988

query II rowsort
SELECT DISTINCT col0 - + col2, - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - 48 <> - col2 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL COUNT( * ) * + 23 - + - 81 + + CAST( + + 62 AS SIGNED ) FROM tab2 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL COUNT ( * ) * + 23 - + - 81 + + CAST ( + + 62 AS INTEGER ) FROM tab2 AS cor0
----
212

onlyif mysql # aggregate syntax: 
query II rowsort label-8007
SELECT ALL - 16 * - + COUNT( * ) col1, 47 FROM tab2
----
48
47

skipif mysql # not compatible
query II rowsort label-8007
SELECT ALL - 16 * - + COUNT ( * ) col1, 47 FROM tab2
----
48
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8008
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) + + MAX( ALL - 44 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8008
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) + + MAX ( ALL - 44 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * - - col2 * col1 col2 FROM tab2
----
114954
301840
380828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col0 col0 FROM tab2
----
-17
-23
-24

query II rowsort
SELECT col2 * - ( 52 ) + - - 60 + + col2 + - col1 + 47 * - col2 * + col0, col1 - - - col1 * + + col1 AS col0 FROM tab2
----
-122377
-5852
-207415
-4422
-50890
-2550

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

query III rowsort
SELECT * FROM tab1 WHERE + col0 * 29 * - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8014
SELECT ALL + col2 + + 85 * ( + + CAST( NULL AS SIGNED ) ) * - + 21 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 46 * 72 * + col1 FROM tab0 AS cor0
----
-268272
-3312
-69552

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT SUM( DISTINCT 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8016
SELECT SUM ( DISTINCT 87 ) FROM tab0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8018
SELECT DISTINCT + CAST( NULL AS DECIMAL ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8018
SELECT DISTINCT + CAST ( NULL AS REAL ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT - 21 - col1 FROM tab1
----
-26
-35
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8020
SELECT ALL + CAST( - + 2 AS SIGNED ) FROM tab0
----
-2
-2
-2

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

query I rowsort
SELECT col0 * ( - + 80 ) - 67 AS col0 FROM tab0
----
-1267
-7027
-7827

query I rowsort
SELECT + 72 + + - 55 AS col1 FROM tab1 AS cor0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT - CAST( col2 AS SIGNED ) + 35 FROM tab1 AS cor0
----
-24
-33
-61

skipif mysql # not compatible
query I rowsort label-8023
SELECT - CAST ( col2 AS INTEGER ) + 35 FROM tab1 AS cor0
----
-24
-33
-61

query I rowsort
SELECT DISTINCT + 36 - col1 - col0 * + - col1 * - - col2 FROM tab1 cor0
----
25106
290825
68566

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL + - 90 * COUNT( * ) - + 79 + MAX( col2 ) col0 FROM tab1 AS cor0
----
-253

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8025
SELECT ALL + - 90 * COUNT ( * ) - + 79 + MAX ( col2 ) col0 FROM tab1 AS cor0
----
-253

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 70 ) col1 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8027
SELECT CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT col2 * 52 DIV col2 col2 FROM tab0
----
52
52
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8028
SELECT col2 * 52 / col2 col2 FROM tab0
----
52
52
52

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * col2 - + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + ( 48 ), + col1 * col1 + + ( + col2 ) AS col2 FROM tab1
----
48
2277
48
292
48
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT CAST( - - col2 AS SIGNED ) * - + 8 AS col0 FROM tab2
----
-184
-320
-464

skipif mysql # not compatible
query I rowsort label-8031
SELECT CAST ( - - col2 AS INTEGER ) * - + 8 AS col0 FROM tab2
----
-184
-320
-464

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 / - - col1 * col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + - 34 ) AS col1, 17 AS col0 FROM tab1
----
34
17

query II rowsort
SELECT DISTINCT + col0, col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8035
SELECT + + 91 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8035
SELECT + + 91 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8036
SELECT + COUNT( * ) * + SUM( DISTINCT + col0 ) * - - 70 FROM tab1 AS cor0
----
47670

skipif mysql # not compatible
query I rowsort label-8036
SELECT + COUNT ( * ) * + SUM ( DISTINCT + col0 ) * - - 70 FROM tab1 AS cor0
----
47670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8037
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT + 61 AS col1 FROM tab1 cor0 WHERE NOT NULL <= ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT 5 + - + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8039
SELECT 5 + - + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8040
SELECT - + col2 DIV + ( - col0 ) FROM tab2 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8041
SELECT + CAST( - COUNT( col1 ) AS SIGNED ) * + 67 AS col2 FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-8041
SELECT + CAST ( - COUNT ( col1 ) AS INTEGER ) * + 67 AS col2 FROM tab0 AS cor0
----
-201

query II rowsort
SELECT DISTINCT 43 * - 82, col2 * col2 AS col0 FROM tab1 AS cor0
----
-3526
3481
-3526
4624
-3526
9216

query I rowsort
SELECT ALL - - 14 * - - col2 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # aggregate syntax: 
query II rowsort label-8044
SELECT DISTINCT - 23 * 85 AS col1, COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1955
-6

skipif mysql # not compatible
query II rowsort label-8044
SELECT DISTINCT - 23 * 85 AS col1, COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1955
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8045
SELECT - - COUNT( ALL - col1 ) AS col2, ( + + 12 ) AS col2 FROM tab0 AS cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-8045
SELECT - - COUNT ( ALL - col1 ) AS col2, ( + + 12 ) AS col2 FROM tab0 AS cor0
----
3
12

query II rowsort
SELECT ALL col2 AS col1, + col1 AS col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT DISTINCT - ( - + 24 ) * - MIN( + + col0 ) col1 FROM tab0
----
-360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8047
SELECT DISTINCT - ( - + 24 ) * - MIN ( + + col0 ) col1 FROM tab0
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8048
SELECT ALL CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + + COUNT( * ) + + 96 AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8050
SELECT + + COUNT ( * ) + + 96 AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT ALL - COUNT( * ) col1 FROM tab1 cor0 WHERE NOT col2 >= + 42
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8051
SELECT ALL - COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT col2 >= + 42
----
0

query I rowsort
SELECT DISTINCT - ( + + 67 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL - SUM( ALL + - 33 ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL - SUM ( ALL + - 33 ) AS col2 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT ALL CAST( + CAST( + col2 AS SIGNED ) AS SIGNED ) * + + 40 FROM tab0
----
1880
3960
400

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL CAST ( + CAST ( + col2 AS INTEGER ) AS INTEGER ) * + + 40 FROM tab0
----
1880
3960
400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col2 FROM tab0 WHERE col0 * col0 + + col1 IS NOT NULL
----
0

query I rowsort
SELECT + 34 FROM tab1, tab2 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

query I rowsort
SELECT + 58 + 82 AS col2 FROM tab0 WHERE NOT ( ( NOT - col0 < 2 / - - col1 - - 46 ) )
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT DISTINCT SUM( DISTINCT - col2 ) * - - 85 FROM tab0 WHERE 15 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8059
SELECT DISTINCT SUM ( DISTINCT - col2 ) * - - 85 FROM tab0 WHERE 15 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 56 ) + + col1 col2 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + ( - COUNT( * ) ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8061
SELECT + ( - COUNT ( * ) ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT ( + 13 ) * - COUNT( * ) - + - COUNT( * ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8062
SELECT ( + 13 ) * - COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab1
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT + col0 DIV - + 18 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-8063
SELECT + col0 / - + 18 FROM tab1 AS cor0
----
-2
-4
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT ALL + col0 DIV + 30 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL + col0 / + 30 FROM tab0 AS cor0
----
0
2
3

query II rowsort
SELECT 44, - 21 AS col0 FROM tab0
----
44
-21
44
-21
44
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT - 91, + 75 + - MIN( + col1 ) AS col2 FROM tab1
----
-91
70

skipif mysql # not compatible
query II rowsort label-8066
SELECT - 91, + 75 + - MIN ( + col1 ) AS col2 FROM tab1
----
-91
70

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

query I rowsort
SELECT ALL - - 72 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
72
72
72

query I rowsort
SELECT ALL 12 + - col0 AS col0 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + - MAX( + + col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + - MAX ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-91

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

query III rowsort
SELECT * FROM tab0 WHERE col0 <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT 8 + + - col1 FROM tab0
----
-13
-73
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 + + col0 col2 FROM tab1
----
108
114
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8076
SELECT 16 + - col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-24
NULL
-42
NULL
-7
NULL

skipif mysql # not compatible
query II rowsort label-8076
SELECT 16 + - col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-24
NULL
-42
NULL
-7
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 51 IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + - col2 IS NULL
----

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

query I rowsort
SELECT col1 * + col2 - col0 + + col1 FROM tab0
----
144
3
3873

query I rowsort
SELECT ( + - col0 ) - - - col0 AS col0 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8082
SELECT + - col2 AS col1 FROM tab1 WHERE col1 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-8082
SELECT + - col2 AS col1 FROM tab1 WHERE col1 NOT BETWEEN - CAST ( NULL AS REAL ) AND + col2
----

query I rowsort
SELECT 71 + + 36 FROM tab1
----
107
107
107

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 IS NULL OR NOT - - col0 + 53 - + + 9 <= + - 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8085
SELECT ALL - + ( - col2 ) DIV - - col2 + + col0 + - 17 AS col2 FROM tab2 AS cor0
----
30
48
59

skipif mysql # not compatible
query I rowsort label-8085
SELECT ALL - + ( - col2 ) / - - col2 + + col0 + - 17 AS col2 FROM tab2 AS cor0
----
30
48
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT DISTINCT + - SUM( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + - SUM ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT - SUM( - 86 ) * 96 * - + SUM( ALL - + 10 ) FROM tab1
----
743040

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT - SUM ( - 86 ) * 96 * - + SUM ( ALL - + 10 ) FROM tab1
----
743040

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8088
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col0, - ( - + CAST( NULL AS SIGNED ) ), - col0, 54, - col2, + - 48 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-8088
SELECT * FROM tab1 WHERE NOT NULL IN ( - + col0, - ( - + CAST ( NULL AS INTEGER ) ), - col0, 54, - col2, + - 48 * + col0 )
----

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT + MIN( + - ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8091
SELECT + MIN ( + - ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT + + 33 * + 56 AS col1 FROM tab1 AS cor0
----
1848
1848
1848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT CAST( 69 AS SIGNED ) FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-8093
SELECT CAST ( 69 AS INTEGER ) FROM tab0 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL AVG ( + + ( + col0 ) ) AS col1 FROM tab2 WHERE col0 + col2 * col0 + - 53 = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + 53 * - 21 AND ( 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT MAX( + col2 ) + COUNT( * ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT MAX ( + col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL 47 * - 93 - - COUNT( * ) + + - 33 FROM tab0 AS cor0
----
-4401

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL 47 * - 93 - - COUNT ( * ) + + - 33 FROM tab0 AS cor0
----
-4401

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8099
SELECT + ( MIN( - CAST( + col0 AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
-75

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

query II rowsort
SELECT ALL col0, col1 AS col1 FROM tab1 cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 28, 62 col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8102
SELECT + 3, COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8102
SELECT + 3, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - col0 + - 73 AS col0 FROM tab1 AS cor0
----
-124
-158
-164

onlyif mysql # DIV for integer division: 
query I rowsort label-8104
SELECT + 74 DIV - - col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-8104
SELECT + 74 / - - col2 FROM tab0 AS cor0
----
0
1
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT + MIN( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT + MIN ( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
-77

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

query I rowsort
SELECT DISTINCT 51 FROM tab0 WHERE NOT ( ( - 69 NOT BETWEEN + col1 * col1 AND NULL ) )
----

query I rowsort
SELECT DISTINCT - ( col0 ) + - + col0 + + col1 FROM tab2
----
-41
-51
-83

query III rowsort
SELECT * FROM tab2 WHERE - 50 * + - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 * + - col2 + - + 86 FROM tab1
----
-1430
-3282
-381

query I rowsort
SELECT col1 + col1 + + col0 + - - col1 FROM tab1
----
100
232
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 NOT BETWEEN ( NULL ) AND 86
----

query I rowsort
SELECT DISTINCT + - 12 - col1 FROM tab2 AS cor0
----
-63
-79
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-8115
SELECT DISTINCT + 57 DIV + 83 - + 81 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8115
SELECT DISTINCT + 57 / + 83 - + 81 FROM tab0 cor0
----
-81

query I rowsort
SELECT + 64 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT + 19 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8118
SELECT + 19 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
57

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 < + + col1 - + 36
----
51
14
96
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * 85 col1 FROM tab2 AS cor0
----
-261800
-330310
-99705

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col1 / - 3 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + ( - col2 ) AS col1 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - MAX( + + ( + ( + + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8123
SELECT - MAX ( + + ( + ( + + col1 ) ) ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + + col1 * - + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL 26 * + - 81 FROM tab1 AS cor0
----
-2106
-2106
-2106

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT SUM( ALL col2 ) + + COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT SUM ( ALL col2 ) + + COUNT ( * ) FROM tab0 AS cor0
----
159

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT DISTINCT - MAX( ALL - ( + 86 ) ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT - MAX ( ALL - ( + 86 ) ) FROM tab0 AS cor0
----
86

query I rowsort
SELECT - 1 + + + col2 AS col2 FROM tab0
----
46
9
98

query II rowsort
SELECT ALL col0, - col2 AS col0 FROM tab1
----
51
-96
85
-59
91
-68

query I rowsort
SELECT ALL - ( 53 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-53
-53
-53

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = 42
----

query I rowsort
SELECT 16 * + 75 AS col2 FROM tab0
----
1200
1200
1200

query I rowsort
SELECT ALL - col1 + - col0 + + + col1 * col0 + 57 * 5 * + 27 * - - col2 + col0 * + - col1 * + - col1 * - ( + + ( + 94 ) ) FROM tab0
----
-3527829
-8888226
752686

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT ALL SUM( - 4 ) + + 0 + - COUNT( + + 20 ) AS col2 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL SUM ( - 4 ) + + 0 + - COUNT ( + + 20 ) AS col2 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - col1 + 23 AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 99 * - - col2 FROM tab1 AS cor0
----
5841
6732
9504

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 15 = NULL
----

query II rowsort
SELECT DISTINCT col0, 97 FROM tab0
----
15
97
87
97
97
97

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2 WHERE col1 IS NOT NULL
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
39

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

onlyif mysql # aggregate syntax: 
query II rowsort label-8144
SELECT DISTINCT - - 59 AS col1, 5 - + COUNT( * ) * - COUNT( * ) + + 10 - + + 0 FROM tab2 AS cor0
----
59
24

skipif mysql # not compatible
query II rowsort label-8144
SELECT DISTINCT - - 59 AS col1, 5 - + COUNT ( * ) * - COUNT ( * ) + + 10 - + + 0 FROM tab2 AS cor0
----
59
24

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT 8 + + + col1 + - - 48 >= ( - + 74 )
----

query I rowsort
SELECT DISTINCT + col2 * + col1 + - - 8 AS col2 FROM tab0 AS cor0
----
107
218
3815

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT COUNT( + - 65 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT COUNT ( + - 65 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8148
SELECT + col1 AS col0, ( + col2 ) + - col0 + + + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8148
SELECT + col1 AS col0, ( + col2 ) + - col0 + + + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8149
SELECT - CAST( NULL AS SIGNED ) * - 17 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT DISTINCT MAX( 56 ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-8150
SELECT DISTINCT MAX ( 56 ) FROM tab0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT 21 + - + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT 21 + - + COUNT ( * ) FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query III rowsort label-8152
SELECT - COUNT( * ) AS col1, + COUNT( - ( col1 ) ) AS col1, + + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-3
3
99

skipif mysql # not compatible
query III rowsort label-8152
SELECT - COUNT ( * ) AS col1, + COUNT ( - ( col1 ) ) AS col1, + + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-3
3
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8153
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * + col0 + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8153
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * + col0 + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - - 51 + col0 FROM tab0 AS cor0
----
138
148
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT DISTINCT 35 - CAST( + - col1 AS SIGNED ) - + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-154
-3691
-63

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT 35 - CAST ( + - col1 AS INTEGER ) - + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-154
-3691
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT + 40 * MIN( DISTINCT CAST( NULL AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT + 40 * MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * col0 + - col2 + col1 FROM tab0 AS cor0
----
-191
-7558
-9507

query I rowsort
SELECT - - col2 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT + CAST( + - col2 AS SIGNED ) - - + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-8159
SELECT + CAST ( + - col2 AS INTEGER ) - - + col1 AS col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8160
SELECT DISTINCT + ( CAST( - 55 AS SIGNED ) ) AS col1 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-8160
SELECT DISTINCT + ( CAST ( - 55 AS INTEGER ) ) AS col1 FROM tab0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8161
SELECT ALL * FROM tab1 WHERE NOT 3 - + + col2 - - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8161
SELECT ALL * FROM tab1 WHERE NOT 3 - + + col2 - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL = - - 21
----

query I rowsort
SELECT DISTINCT + col2 + 58 AS col2 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT - col0 * 9 FROM tab2 AS cor0 WHERE NOT col1 * - ( - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT CAST( col2 AS SIGNED ) * + - col0 + - - 7 col2 FROM tab0
----
-698
-863
-9596

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8165
SELECT CAST ( col2 AS INTEGER ) * + - col0 + - - 7 col2 FROM tab0
----
-698
-863
-9596

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - COUNT( * ) * - 37 FROM tab1 cor0
----
111

skipif mysql # not compatible
query I rowsort label-8166
SELECT - COUNT ( * ) * - 37 FROM tab1 cor0
----
111

query I rowsort
SELECT + col1 * + 97 AS col0 FROM tab2 AS cor0
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT - COUNT( ALL + 88 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8168
SELECT - COUNT ( ALL + 88 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col1 AS col0, + 48 + 71 FROM tab0 cor0
----
1
119
21
119
81
119

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 64 = NULL
----

query I rowsort
SELECT + - col1 * - ( + 9 ) + - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT ALL COUNT( * ) + 37 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8173
SELECT ALL COUNT ( * ) + 37 FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT DISTINCT - 83 + - col1 + - 17 DIV + - 96 FROM tab0
----
-104
-164
-84

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT - 83 + - col1 + - 17 / + - 96 FROM tab0
----
-104
-164
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8176
SELECT - 39 * - + 46 + + ( 56 ) + - 82 + + CAST( NULL AS SIGNED ) * col0 col1, col0 * - col1 + + CAST( NULL AS SIGNED ) * + 63 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8176
SELECT - 39 * - + 46 + + ( 56 ) + - 82 + + CAST ( NULL AS INTEGER ) * col0 col1, col0 * - col1 + + CAST ( NULL AS INTEGER ) * + 63 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + ( - + 18 ) + + - COUNT( * ) col2 FROM tab2
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8177
SELECT ALL + ( - + 18 ) + + - COUNT ( * ) col2 FROM tab2
----
-21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT DISTINCT + - col0 DIV + - col0 FROM tab0 AS cor0
----
1

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

onlyif mysql # DIV for integer division: 
query II rowsort label-8180
SELECT ALL - col1, + col1 DIV col0 AS col0 FROM tab0 cor0
----
-1
0
-21
0
-81
5

skipif mysql # not compatible
query II rowsort label-8180
SELECT ALL - col1, + col1 / col0 AS col0 FROM tab0 cor0
----
-1
0
-21
0
-81
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8181
SELECT DISTINCT + - COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8181
SELECT DISTINCT + - COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8182
SELECT ALL col0 * - CAST( NULL AS SIGNED ), col1 * - col0 * + col1 AS col2 FROM tab2
----
NULL
-119646
NULL
-336675
NULL
-379456

skipif mysql # not compatible
query II rowsort label-8182
SELECT ALL col0 * - CAST ( NULL AS INTEGER ), col1 * - col0 * + col1 AS col2 FROM tab2
----
NULL
-119646
NULL
-336675
NULL
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT 96 + COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8183
SELECT 96 + COUNT ( * ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT 57 - + COUNT( * ) FROM tab2 cor0 WHERE - 34 * + 62 * col2 IS NULL
----
57

skipif mysql # not compatible
query I rowsort label-8184
SELECT 57 - + COUNT ( * ) FROM tab2 cor0 WHERE - 34 * + 62 * col2 IS NULL
----
57

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - col0
----
0

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > - col0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8188
SELECT col1 DIV + 52 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT col1 / + 52 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 9 AS col2, col2 * - 15 AS col2 FROM tab0
----
9
-1485
9
-150
9
-705

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 64 + + col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 47 AS col0, + col0 AS col0 FROM tab2 AS cor0
----
47
46
47
64
47
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 AS col2, col1 col1 FROM tab1 cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT + col0 FROM tab0 WHERE NULL < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT MIN( col2 ) FROM tab2 WHERE NULL BETWEEN + 74 + - 63 * - col0 AND ( 87 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8195
SELECT MIN ( col2 ) FROM tab2 WHERE NULL BETWEEN + 74 + - 63 * - col0 AND ( 87 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 55 <> col1
----

query I rowsort
SELECT - col0 * + col1 FROM tab2 WHERE NOT - 25 + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) IN ( - col0 + + col0 * 14 )
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

query I rowsort
SELECT 74 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) * col0 AS col2 FROM tab0 WHERE NOT ( 97 * 48 ) > - col0 + - 14
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 63 * - 20
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE - 30 < 25 * + col1
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8204
SELECT 99 * - col0 - + col0 DIV - col2 AS col0 FROM tab1
----
-5049
-8414
-9008

skipif mysql # not compatible
query I rowsort label-8204
SELECT 99 * - col0 - + col0 / - col2 AS col0 FROM tab1
----
-5049
-8414
-9008

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * + 28 - col0 col2 FROM tab0
----
-799
-871
-881

query I rowsort
SELECT 98 FROM tab2 WHERE NOT NULL IS NOT NULL
----
98
98
98

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab2 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col1 * col0 col0 FROM tab1
----
4368
510
765

query I rowsort
SELECT ALL - 61 / 16 AS col1 FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT ALL + 65 FROM tab0 WHERE NOT NULL IS NOT NULL
----
65
65
65

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab1 WHERE NOT + col2 + - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT + ( - COUNT( * ) ) AS col1 FROM tab2 WHERE - 22 + + 15 <= col0
----
-3

skipif mysql # not compatible
query I rowsort label-8213
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE - 22 + + 15 <= col0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN + col0 * + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 70 * 82 FROM tab1
----
5740
5740
5740

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 15 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT DISTINCT 34 + COUNT( ALL - col2 - 17 * col2 ) FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT 34 + COUNT ( ALL - col2 - 17 * col2 ) FROM tab0 AS cor0
----
37

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * ( col1 ) + + 9 * - col0 FROM tab2 AS cor0
----
2504
3211
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 11 ) col2 FROM tab0
----
11
11
11

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col0 + + col2 / 86 AND 20 * + 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 col2 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + + 93 * 21 FROM tab1 AS cor0
----
1953
1953
1953

onlyif mysql # DIV for integer division: 
query I rowsort label-8224
SELECT ALL - col1 + - 39 DIV 30 col0 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8224
SELECT ALL - col1 + - 39 / 30 col0 FROM tab0 AS cor0
----
-2
-22
-82

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col2 - col2 * + ( + ( col0 ) - + col0 ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8227
SELECT ALL - 94 + + 50 DIV COUNT( * ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL - 94 + + 50 / COUNT ( * ) FROM tab0 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT - col1 DIV 88 AS col0 FROM tab0 AS cor0 WHERE col1 + - col1 NOT IN ( + col0 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT - col1 / 88 AS col0 FROM tab0 AS cor0 WHERE col1 + - col1 NOT IN ( + col0 )
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8229
SELECT + CAST( NULL AS SIGNED ) - + col1 FROM tab1 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT - 0 - - col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT DISTINCT SUM( col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT SUM ( col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
182

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

query I rowsort
SELECT DISTINCT - + col0 * 71 - + ( - col0 ) FROM tab2 AS cor0
----
-3220
-4480
-5250

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( - 52 * 31 ) IS NULL
----

query I rowsort
SELECT ALL + - col1 + + 1 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8236
SELECT ALL - col1 - + col0 * ( col1 DIV col0 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL - col1 - + col0 * ( col1 / col0 ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col2 + ( col2 ) * - col2 FROM tab2 AS cor0
----
-1640
-3422
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 62 - ( col1 + 76 ) col0 FROM tab1 AS cor0
----
-143
-152
-185

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

query I rowsort
SELECT ALL - ( col1 ) * - col1 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab1 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 38 + + col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8243
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * 46 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-8243
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * 46 FROM tab0
----
-138

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

query I rowsort
SELECT DISTINCT 66 * + + col0 FROM tab1
----
3366
5610
6006

onlyif mysql # DIV for integer division: 
query I rowsort label-8246
SELECT - 6 DIV + + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8246
SELECT - 6 / + + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8247
SELECT ALL - 40 DIV 47 DIV COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - 40 / 47 / COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col0 * + 96 * col2 AS col0 FROM tab1
----
470016
481440
594048

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT + 72 * MIN( ALL 25 ) AS col0 FROM tab0
----
1800

skipif mysql # not compatible
query I rowsort label-8249
SELECT + 72 * MIN ( ALL 25 ) AS col0 FROM tab0
----
1800

query I rowsort
SELECT 69 * - - col1 AS col0 FROM tab1
----
3243
345
966

query I rowsort
SELECT ALL - col0 * - + col0 AS col2 FROM tab0
----
225
7569
9409

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + 55 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 70 * - - col0 - col0 * - 56 AS col1 FROM tab1 AS cor0
----
10710
11466
6426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT ( col0 * col0 ) BETWEEN - col2 * col2 + col1 AND - 67
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT - + CAST( NULL AS SIGNED ) * 20 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT COUNT( * ) * 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
333

skipif mysql # not compatible
query I rowsort label-8256
SELECT COUNT ( * ) * 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
333

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT COUNT( * ) * - MAX( DISTINCT col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT COUNT ( * ) * - MAX ( DISTINCT col1 ) FROM tab0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * 37 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d069abea5448e4191103617ac21689d4

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( 3 ) * - 24 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8261
SELECT col0, CAST( + - col0 AS SIGNED ) * - col1 FROM tab2
----
46
2346
64
4928
75
5025

skipif mysql # not compatible
query II rowsort label-8261
SELECT col0, CAST ( + - col0 AS INTEGER ) * - col1 FROM tab2
----
46
2346
64
4928
75
5025

query II rowsort
SELECT DISTINCT col1 AS col1, col2 * - col0 AS col1 FROM tab2 AS cor0
----
51
-1058
67
-4350
77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8263
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 / + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8263
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col0 / + col2 IS NOT NULL
----

query I rowsort
SELECT + - col0 * ( + - col0 ) * - col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

query I rowsort
SELECT + 5 * 90 * + col2 FROM tab1 AS cor0
----
26550
30600
43200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 15 col1 FROM tab0 cor0
----
1485
150
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8267
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE 24 <= ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-8267
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE 24 <= ( - col0 )
----

query I rowsort
SELECT ALL + 7 * 93 + + col1 AS col2 FROM tab0 AS cor0
----
652
672
732

query I rowsort
SELECT - 11 + - 91 AS col2 FROM tab1
----
-102
-102
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8270
SELECT * FROM tab0 WHERE ( CAST( NULL AS SIGNED ) * - ( - col1 ) ) IS NOT NULL AND NULL NOT BETWEEN + 41 + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8270
SELECT * FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) * - ( - col1 ) ) IS NOT NULL AND NULL NOT BETWEEN + 41 + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8271
SELECT + CAST( - SUM( - 78 ) AS SIGNED ) + MAX( 19 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8271
SELECT + CAST ( - SUM ( - 78 ) AS INTEGER ) + MAX ( 19 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 87 + + col2 FROM tab0 WHERE NULL < + ( + + col1 ) * 45 + - col0 / + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + + - col0 col2 FROM tab1
----
-25
-31
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT DISTINCT - ( 13 ) + COUNT( - - 47 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - ( 13 ) + COUNT ( - - 47 ) FROM tab2
----
-10

query I rowsort
SELECT 9 AS col0 FROM tab1 WHERE - - ( - 58 ) IS NOT NULL
----
9
9
9

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 37 * - ( 10 ) - - col2 FROM tab1 cor0
----
429
438
466

onlyif mysql # DIV for integer division: 
query I rowsort label-8278
SELECT + col1 * + col2 + - col2 + - 68 DIV col1 AS col2 FROM tab0
----
-68
197
3760

skipif mysql # not compatible
query I rowsort label-8278
SELECT + col1 * + col2 + - col2 + - 68 / col1 AS col2 FROM tab0
----
-68
197
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT ALL - MIN( - col0 ) FROM tab2 AS cor0 WHERE + 89 - - + 37 >= ( col2 )
----
75

skipif mysql # not compatible
query I rowsort label-8279
SELECT ALL - MIN ( - col0 ) FROM tab2 AS cor0 WHERE + 89 - - + 37 >= ( col2 )
----
75

query I rowsort
SELECT DISTINCT + col1 * 24 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
1321
1750
1989

query I rowsort
SELECT DISTINCT 64 * + 27 * - + 40 FROM tab1 AS cor0 WHERE - 3 IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 90 AND ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 * + col1 + + 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT CAST( - - 1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
1
1

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( + 91 )
----

query I rowsort
SELECT 33 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 - + + ( col0 ) ) = NULL
----

query I rowsort
SELECT DISTINCT col1 * + 52 + - 43 AS col1 FROM tab1 cor0
----
217
2401
685

query I rowsort
SELECT ALL + 34 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-166464
-170510
-210392

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= + - col1 - - - col1 * + ( - 98 ) + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8291
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) / + col0 FROM tab1
----
NULL

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

query II rowsort
SELECT 98, + col0 FROM tab0
----
98
15
98
87
98
97

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + - col1 col1 FROM tab0 WHERE NOT 85 + + col0 IS NULL
----
108
96
98

query II rowsort
SELECT DISTINCT + 72, col2 FROM tab1
----
72
59
72
68
72
96

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT ALL + col2 + CAST( + 21 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col2 IN ( + 72, col2 ) OR ( NULL ) NOT BETWEEN - col1 AND + col1
----

skipif mysql # not compatible
query I rowsort label-8298
SELECT ALL + col2 + CAST ( + 21 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col2 IN ( + 72, col2 ) OR ( NULL ) NOT BETWEEN - col1 AND + col1
----

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

query I rowsort
SELECT DISTINCT + - 88 * + + col0 FROM tab1 AS cor0
----
-4488
-7480
-8008

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT 56 * + col2 AS col1 FROM tab0 AS cor0
----
2632
5544
560

query III rowsort
SELECT * FROM tab2 WHERE NOT - 55 NOT IN ( - 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + COUNT( * ) + - - MAX( ALL 7 ) + + COUNT( - + 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
25

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + COUNT ( * ) + - - MAX ( ALL 7 ) + + COUNT ( - + 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT ALL - - COUNT( * ) * + 60 + 81 AS col1 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL - - COUNT ( * ) * + 60 + 81 AS col1 FROM tab2 AS cor0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8306
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8306
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT ALL + MAX( DISTINCT - col1 ) * - MIN( 6 ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL + MAX ( DISTINCT - col1 ) * - MIN ( 6 ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8308
SELECT CAST( NULL AS DECIMAL ) * 27 AS col2, 74 * 60 - - - col1 * 62 + - 87 + + col0 * + 0 col0 FROM tab0 AS cor0
----
NULL
-669
NULL
3051
NULL
4291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8308
SELECT CAST ( NULL AS REAL ) * 27 AS col2, 74 * 60 - - - col1 * 62 + - 87 + + col0 * + 0 col0 FROM tab0 AS cor0
----
NULL
-669
NULL
3051
NULL
4291

query I rowsort
SELECT - 74 * - - ( - col2 ) FROM tab0 AS cor0
----
3478
7326
740

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( ( - col1 ) / - + col1 IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8312
SELECT DISTINCT ( + MIN( DISTINCT 70 ) ), 22 AS col2 FROM tab2
----
70
22

skipif mysql # not compatible
query II rowsort label-8312
SELECT DISTINCT ( + MIN ( DISTINCT 70 ) ), 22 AS col2 FROM tab2
----
70
22

query I rowsort
SELECT 65 AS col2 FROM tab2 WHERE ( - 71 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 71 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8315
SELECT DISTINCT 68 DIV 65 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT 68 / 65 AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8316
SELECT - col1 DIV - 74 + - col1 + + col0 AS col1 FROM tab2
----
-12
-5
8

skipif mysql # not compatible
query I rowsort label-8316
SELECT - col1 / - 74 + - col1 + + col0 AS col1 FROM tab2
----
-12
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8317
SELECT + + COUNT( * ) + 55 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8317
SELECT + + COUNT ( * ) + 55 FROM tab1 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT - + MIN( 6 ) + COUNT( * ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8318
SELECT - + MIN ( 6 ) + COUNT ( * ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - col1 * + 51 + + col0 FROM tab2 AS cor0
----
-2555
-3342
-3863

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 = + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT + + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8321
SELECT + + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ALL col1 * + ( + col2 ) AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 85 AND - - col2 * - + col2
----

query II rowsort
SELECT + col0, 75 * 83 AS col1 FROM tab1
----
51
6225
85
6225
91
6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8326
SELECT COUNT( * ) * - + 54 * - 90 FROM tab0
----
14580

skipif mysql # not compatible
query I rowsort label-8326
SELECT COUNT ( * ) * - + 54 * - 90 FROM tab0
----
14580

query I rowsort
SELECT - 25 * 83 AS col2 FROM tab1
----
-2075
-2075
-2075

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL - COUNT( + + col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - COUNT ( + + col0 ) FROM tab2
----
-3

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

query II rowsort
SELECT ALL col2, col2 + + 4 FROM tab2
----
23
27
40
44
58
62

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT ALL col0 DIV - + 95 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT ALL col0 / - + 95 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT COUNT( * ) * - 56 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-8332
SELECT COUNT ( * ) * - 56 FROM tab1
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - COUNT( * ) * COUNT( - col0 ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8333
SELECT - COUNT ( * ) * COUNT ( - col0 ) AS col0 FROM tab0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8334
SELECT DISTINCT + + col1 + - - col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 12 * col2 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8336
SELECT - CAST( NULL AS SIGNED ) + 75 + + col1 * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT ALL - - col2 DIV 53 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - - col2 / 53 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8339
SELECT * FROM tab1 WHERE ( + col2 + col1 IN ( col2 * - CAST( - + 2 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-8339
SELECT * FROM tab1 WHERE ( + col2 + col1 IN ( col2 * - CAST ( - + 2 AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT - 12 + + + 2 AS col2 FROM tab2
----
-10

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

query I rowsort
SELECT ALL - 29 * + 43 + - 75 AS col1 FROM tab0
----
-1322
-1322
-1322

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8343
SELECT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + - ( 23 ) - - - COUNT( * ) FROM tab0 cor0
----
-26

skipif mysql # not compatible
query I rowsort label-8344
SELECT + - ( 23 ) - - - COUNT ( * ) FROM tab0 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT - - COUNT( * ) - - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8345
SELECT - - COUNT ( * ) - - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT - 35 * - col0 AS col0 FROM tab2
----
1610
2240
2625

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 28 NOT IN ( + + col0 * ( + 33 ) + - + col0, col0 )
----

query I rowsort
SELECT - col1 + col0 * + + col0 + + col2 * + 29 AS col0 FROM tab0 cor0 WHERE NOT + 80 <= NULL
----

query I rowsort
SELECT 52 FROM tab2 cor0 WHERE NOT - col1 * + col0 + - 68 + + 13 * + + col0 BETWEEN + 86 * - col2 / - - col0 AND + - col0 * col2
----
52
52
52

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE 60 > NULL
----

query I rowsort
SELECT DISTINCT - ( 18 ) AS col0 FROM tab0 cor0
----
-18

query I rowsort
SELECT + AVG ( - 41 ) FROM tab1 AS cor0 WHERE NOT ( + col0 * - - col0 * + col2 NOT IN ( + + col2, col2, 55 ) )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8353
SELECT 13 DIV - 88 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT 13 / - 88 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 79 * + col1 AS col1 FROM tab0 WHERE - - col2 IS NOT NULL
----
1659
6399
79

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT + - 21 + - + 8 <> NULL
----

query II rowsort
SELECT ALL - ( col1 ), col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT DISTINCT SUM( + col1 ) AS col1, COUNT( * ) FROM tab1
----
66
3

skipif mysql # not compatible
query II rowsort label-8357
SELECT DISTINCT SUM ( + col1 ) AS col1, COUNT ( * ) FROM tab1
----
66
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8358
SELECT 97 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8359
SELECT + + 58 * ( + 22 ) DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
425

skipif mysql # not compatible
query I rowsort label-8359
SELECT + + 58 * ( + 22 ) / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
425

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT - col2 DIV - 29 + col2 FROM tab2 AS cor0
----
23
41
60

skipif mysql # not compatible
query I rowsort label-8360
SELECT - col2 / - 29 + col2 FROM tab2 AS cor0
----
23
41
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT COUNT( * ) - - 46 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
46

skipif mysql # not compatible
query I rowsort label-8362
SELECT COUNT ( * ) - - 46 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + 8 col0 FROM tab0 cor0
----
107
18
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT DISTINCT - 44 + - col1 DIV + - 84 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8364
SELECT DISTINCT - 44 + - col1 / + - 84 FROM tab2 AS cor0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 10 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8366
SELECT ALL - 71 - col0 * + ( - col0 ) + col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2544
NULL
7159
NULL
8257
NULL

skipif mysql # not compatible
query II rowsort label-8366
SELECT ALL - 71 - col0 * + ( - col0 ) + col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2544
NULL
7159
NULL
8257
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, - 90 AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL AND - 90 NOT IN ( - 35, + col1 - 3 * col1, ( - col2 ) )
----

query I rowsort
SELECT - + AVG ( 57 ) FROM tab0 WHERE NULL <> - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT + COUNT( + 29 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT + COUNT ( + 29 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8370
SELECT - col1 + + col2 + + 40 DIV col0 DIV + + col2 AS col2 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-8370
SELECT - col1 + + col2 + + 40 / col0 / + + col2 AS col2 FROM tab2
----
-28
-37
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8371
SELECT ALL col1 + + + col2 - col0 * + + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT - 13 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT ALL - ( + MIN( ALL - col1 ) ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8373
SELECT ALL - ( + MIN ( ALL - col1 ) ) col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8374
SELECT + col0 + - col0 + + - 97 + + CAST( col2 AS SIGNED ) AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-1
-29
-38

skipif mysql # not compatible
query I rowsort label-8374
SELECT + col0 + - col0 + + - 97 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-1
-29
-38

query I rowsort
SELECT - ( - + col0 ) * + + 60 FROM tab2
----
2760
3840
4500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8376
SELECT DISTINCT SUM( col2 ) DIV + 73 DIV - COUNT( DISTINCT + + 8 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT SUM ( col2 ) / + 73 / - COUNT ( DISTINCT + + 8 ) FROM tab2
----
-1

query I rowsort
SELECT + + 12 AS col1 FROM tab2 AS cor0 WHERE NOT - 33 IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - SUM( DISTINCT - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8378
SELECT - SUM ( DISTINCT - ( col2 ) ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT - col2 / + col0 * - col1 + - - col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + - col2, + col2, - + col2, 0 )
----

query II rowsort
SELECT col1, col2 * - 93 + col1 * 90 FROM tab0
----
1
-9117
21
960
81
2919

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT SUM( ALL + ( - 28 ) ) AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-8382
SELECT SUM ( ALL + ( - 28 ) ) AS col1 FROM tab2
----
-84

query I rowsort
SELECT col0 + + + 5 AS col1 FROM tab1
----
56
90
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 + ( + 97 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT ALL - MAX( + - 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8385
SELECT ALL - MAX ( + - 32 ) FROM tab0
----
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + ( + 94 ) / 29 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - - col0 - - 99 )
----

query I rowsort
SELECT col2 + - col0 + col0 * + col2 * - + col1 * 35 FROM tab2
----
-10200767
-1888553
-6899224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8390
SELECT col1 + col2 + - col0 + + col2 + + + CAST( - col1 AS SIGNED ) FROM tab2
----
0
16
41

skipif mysql # not compatible
query I rowsort label-8390
SELECT col1 + col2 + - col0 + + col2 + + + CAST ( - col1 AS INTEGER ) FROM tab2
----
0
16
41

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + 43 NOT IN ( + + col0, col1 * 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + 65 FROM tab0 cor0
----
146
66
86

query I rowsort
SELECT DISTINCT - ( - - col1 ) - + col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8395
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8396
SELECT * FROM tab1 AS cor0 WHERE CAST( + + col2 AS SIGNED ) * col0 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8396
SELECT * FROM tab1 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) * col0 - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + col1 - - 14 AS col1 FROM tab2 AS cor0
----
1187
3094
3900

onlyif mysql # DIV for integer division: 
query I rowsort label-8398
SELECT DISTINCT col1 * col2 DIV col1 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT col1 * col2 / col1 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT COUNT( * ) * + 55 AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( * ) * + 55 AS col0 FROM tab1
----
165

query I rowsort
SELECT ALL col2 * + + 47 FROM tab2
----
1081
1880
2726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 - - col0 col1 FROM tab0
----
108
26
98

query I rowsort
SELECT DISTINCT + 41 * + 92 AS col1 FROM tab2
----
3772

query II rowsort
SELECT DISTINCT col0 AS col1, - col0 AS col0 FROM tab1 WHERE NOT + col0 = ( - - col0 )
----

query I rowsort
SELECT ALL - 67 + - ( + col0 ) AS col0 FROM tab0
----
-154
-164
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - COUNT( DISTINCT + col2 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - + ( + - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8408
SELECT ALL - col2, 3 DIV 96 AS col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

skipif mysql # not compatible
query II rowsort label-8408
SELECT ALL - col2, 3 / 96 AS col1 FROM tab0 AS cor0
----
-10
0
-47
0
-99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query II rowsort
SELECT col0, col0 * - - col1 * - - 21 * - + col0 + - ( + col0 ) AS col2 FROM tab2
----
46
-2266282
64
-6623296
75
-7914450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8412
SELECT + + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8412
SELECT + + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8413
SELECT + COUNT( DISTINCT + + col0 ) AS col2 FROM tab0 WHERE NOT col2 + - col2 NOT IN ( - col0, 60 + col1 + + col0 / col1 * - 96 - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8413
SELECT + COUNT ( DISTINCT + + col0 ) AS col2 FROM tab0 WHERE NOT col2 + - col2 NOT IN ( - col0, 60 + col1 + + col0 / col1 * - 96 - col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8415
SELECT DISTINCT - col0 DIV + - 68 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8415
SELECT DISTINCT - col0 / + - 68 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46, col1 col2 FROM tab0 AS cor0
----
46
1
46
21
46
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + + 94 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT + + ( MAX( 18 ) ) AS col2 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT + + ( MAX ( 18 ) ) AS col2 FROM tab2 AS cor0
----
18

query I rowsort
SELECT DISTINCT 78 + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col0 / - 85
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8420
SELECT 54, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
54
3

skipif mysql # not compatible
query II rowsort label-8420
SELECT 54, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
54
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8421
SELECT + col2 DIV - col0, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-8421
SELECT + col2 / - col0, col2 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT DISTINCT + 65 FROM tab2 WHERE - + col2 * 99 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8423
SELECT ALL + 1 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL + 1 / + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 66 * 40 + col1 AS col2 FROM tab1
----
2645
2654
2687

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL COUNT( * ) * COUNT( * ) * - SUM( + col0 ) FROM tab1
----
-2043

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL COUNT ( * ) * COUNT ( * ) * - SUM ( + col0 ) FROM tab1
----
-2043

query III rowsort
SELECT * FROM tab1 WHERE NOT - 64 - + 28 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 1 FROM tab2 WHERE - + 35 / - col0 + + + col1 IS NOT NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8428
SELECT ALL - CAST( NULL AS SIGNED ), col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8428
SELECT ALL - CAST ( NULL AS INTEGER ), col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT ALL - 99 * - + 1 + + - col0 FROM tab2 AS cor0
----
24
35
53

query I rowsort
SELECT DISTINCT col1 + - - col0 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - - 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 43 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 43 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT - + COUNT( 19 ) + - 43 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8433
SELECT - + COUNT ( 19 ) + - 43 FROM tab0 AS cor0
----
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT ALL 15 DIV + + COUNT( * ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL 15 / + + COUNT ( * ) AS col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT - - SUM( DISTINCT + col1 ) FROM tab1 WHERE + + 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT - - SUM ( DISTINCT + col1 ) FROM tab1 WHERE + + 11 IS NULL
----
NULL

query I rowsort
SELECT ALL 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT ( - 69 ) DIV - 15 AS col2, + col2 AS col0 FROM tab2 cor0
----
4
23
4
40
4
58

skipif mysql # not compatible
query II rowsort label-8438
SELECT ( - 69 ) / - 15 AS col2, + col2 AS col0 FROM tab2 cor0
----
4
23
4
40
4
58

query II rowsort
SELECT + - 81 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-81
46
-81
64
-81
75

query II rowsort
SELECT - 17 col1, col0 AS col1 FROM tab0 AS cor0
----
-17
15
-17
87
-17
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT DISTINCT + COUNT( DISTINCT + - CAST( + + col0 AS SIGNED ) ) + + + 43 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT + COUNT ( DISTINCT + - CAST ( + + col0 AS INTEGER ) ) + + + 43 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - col0 - col1 + + 80 + + - col2 FROM tab1 AS cor0
----
-126
-69
-81

query I rowsort
SELECT + col0 - - 90 FROM tab1 AS cor0
----
141
175
181

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= + col0 AND NOT NULL > - col2
----

query I rowsort
SELECT DISTINCT + col1 * - col2 - col1 AS col2 FROM tab1
----
-1358
-300
-3243

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 * - 3 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8447
SELECT col1 DIV - 56 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8447
SELECT col1 / - 56 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ALL - + 93 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8448
SELECT ALL - + 93 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8449
SELECT + CAST( NULL AS DECIMAL ) * CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8449
SELECT + CAST ( NULL AS REAL ) * CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8451
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8451
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * - CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT + + CAST( NULL AS SIGNED ) * - - 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8452
SELECT + + CAST ( NULL AS INTEGER ) * - - 81 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT - col2 AS col0, 18 * - col1 AS col2 FROM tab1
----
-59
-90
-68
-846
-96
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8454
SELECT DISTINCT - + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8455
SELECT - + col0 AS col0, - CAST( NULL AS SIGNED ) * 34 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-8455
SELECT - + col0 AS col0, - CAST ( NULL AS INTEGER ) * 34 AS col0 FROM tab2 AS cor0
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT ALL col1 * + 32 + - col0 FROM tab2 AS cor0
----
1586
2069
2400

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL > - + col0 )
----

query I rowsort
SELECT DISTINCT + + col2 * - - 66 AS col1 FROM tab0 AS cor0 WHERE NOT + 60 + + 29 * - - col1 IS NULL
----
3102
6534
660

query I rowsort
SELECT + - 63 + - col1 FROM tab2 cor0
----
-114
-130
-140

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + - 61 IS NOT NULL
----

query II rowsort
SELECT - 90 * + col0 + - col2 * - 40 AS col1, 65 * - 94 AS col2 FROM tab0
----
-4770
-6110
-7430
-6110
530
-6110

query I rowsort
SELECT 61 * col1 * - col2 + + - col1 FROM tab1
----
-18000
-195003
-81998

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col2 col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT + 73 + - col1 FROM tab1
----
26
59
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT - ( + 85 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT + - MIN( + + col2 ) - - 42 FROM tab1 WHERE NOT NULL <= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + - MIN ( + + col2 ) - - 42 FROM tab1 WHERE NOT NULL <= + col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 + col0 col2 FROM tab0 AS cor0
----
-113
-3
56

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8470
SELECT ALL + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col1 + - 94 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col1 + - 94 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8471
SELECT ALL col1, CAST( NULL AS DECIMAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8471
SELECT ALL col1, CAST ( NULL AS REAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT ALL - + 86 DIV + 67 AS col0 FROM tab0 WHERE - 43 + - + 83 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - + 86 / + 67 AS col0 FROM tab0 WHERE - 43 + - + 83 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8474
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8474
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT DISTINCT COUNT( - 78 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8475
SELECT DISTINCT COUNT ( - 78 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT SUM( DISTINCT + 9 ) AS col1 FROM tab0 WHERE NOT + + 2 * col2 <> 15 + - col0 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT SUM ( DISTINCT + 9 ) AS col1 FROM tab0 WHERE NOT + + 2 * col2 <> 15 + - col0 + - col0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 > - 6 + col1
----
64
77
40

query II rowsort
SELECT col1, + col1 AS col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT DISTINCT COUNT( * ) * - + 23 AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT COUNT ( * ) * - + 23 AS col2 FROM tab0
----
-69

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8482
SELECT ALL col2 + + col1 DIV - col2 FROM tab2 cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL col2 + + col1 / - col2 FROM tab2 cor0
----
21
39
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8483
SELECT ALL CAST( - col0 AS SIGNED ) * 35 * - col2 col2 FROM tab1 AS cor0
----
171360
175525
216580

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8483
SELECT ALL CAST ( - col0 AS INTEGER ) * 35 * - col2 col2 FROM tab1 AS cor0
----
171360
175525
216580

onlyif mysql # DIV for integer division: 
query I rowsort label-8484
SELECT 36 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8484
SELECT 36 / - col2 AS col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8485
SELECT CAST( - 63 AS SIGNED ) DIV + 38 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8485
SELECT CAST ( - 63 AS INTEGER ) / + 38 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT col0 IS NULL
----
-51
-85
-91

query II rowsort
SELECT ALL + col0 AS col2, 51 / 39 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 10 + - col1 AS col1 FROM tab1
----
-37
-4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT COUNT( * ) + - 86 FROM tab1 cor0
----
-83

skipif mysql # not compatible
query I rowsort label-8489
SELECT COUNT ( * ) + - 86 FROM tab1 cor0
----
-83

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - 41 + col0 FROM tab2 AS cor0
----
23
34
5

query I rowsort
SELECT + + ( col0 ) - + 33 FROM tab0 AS cor0
----
-18
54
64

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT + SUM( ALL - col1 ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-195
3

skipif mysql # not compatible
query II rowsort label-8493
SELECT + SUM ( ALL - col1 ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT MAX( col1 ) AS col0 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-8494
SELECT MAX ( col1 ) AS col0 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-8495
SELECT MIN( ALL - - col0 ) * 50 * + + MAX( - + 49 ) * + COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
-110250
-3

skipif mysql # not compatible
query II rowsort label-8495
SELECT MIN ( ALL - - col0 ) * 50 * + + MAX ( - + 49 ) * + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
-110250
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 63 + - ( - + col1 ) + 10 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + - col0 <> + + 1
----

query I rowsort
SELECT 34 * + col2 * - 92 FROM tab2
----
-125120
-181424
-71944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT ( + + col2 ), - col2, + col2 col2 FROM tab0
----
9 values hashing to 64968d6d29256af31bca501ca188e401

query I rowsort
SELECT + - col1 * - + col2 + - 64 FROM tab1 cor0
----
1280
231
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT + COUNT( * ) + 25 FROM tab2, tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-8502
SELECT + COUNT ( * ) + 25 FROM tab2, tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8503
SELECT COUNT( DISTINCT - - 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8503
SELECT COUNT ( DISTINCT - - 37 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT ALL - col2 + - 29 AS col2 FROM tab1
----
-125
-88
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT DISTINCT 22 + - CAST( NULL AS SIGNED ) + 16 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT 22 + - CAST ( NULL AS INTEGER ) + 16 AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0, - col2, - col1 * - - col0 + - - col1 + - col0, - - 19 * - col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE - 49 * - col2 IN ( + 42 * - 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 NOT BETWEEN col0 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT 92 + + - MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-8509
SELECT 92 + + - MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
143

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + 64 - - 16 + + + col0 * + ( + - col1 ) <> + col2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8511
SELECT 33 DIV col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8511
SELECT 33 / col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8512
SELECT DISTINCT - 34 * + MIN( ALL col0 ) DIV - MIN( DISTINCT col2 ) + - COUNT( * ) * + MAX( ALL - col2 ) - - + 3 AS col2 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-8512
SELECT DISTINCT - 34 * + MIN ( ALL col0 ) / - MIN ( DISTINCT col2 ) + - COUNT ( * ) * + MAX ( ALL - col2 ) - - + 3 AS col2 FROM tab2
----
140

onlyif mysql # DIV for integer division: 
query I rowsort label-8513
SELECT ( ( - col1 ) ) DIV + col2 * - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8513
SELECT ( ( - col1 ) ) / + col2 * - - col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * 85 AS col0 FROM tab0
----
3995
8415
850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8515
SELECT ALL ( - CAST( + + col0 AS SIGNED ) ) + + col1 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-8515
SELECT ALL ( - CAST ( + + col0 AS INTEGER ) ) + + col1 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - col2 + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( col0 ) >= - col0 )
----

query I rowsort
SELECT DISTINCT + col0 + col0 * - + col1 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT - 69 * 75 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5172

skipif mysql # not compatible
query I rowsort label-8519
SELECT - 69 * 75 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5172

query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab1 AS cor0 WHERE col2 + - col2 + - + 70 + - 82 IS NOT NULL
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * 71 * 2 IS NOT NULL
----

query I rowsort
SELECT + col1 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 * col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8524
SELECT ALL - - CAST( NULL AS DECIMAL ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL - - CAST ( NULL AS REAL ) / col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col0 * + - col0 * + col2 + + 2 AS col2 FROM tab2 AS cor0
----
163842
326252
48670

query I rowsort
SELECT + + ( - 48 ) FROM tab2 AS cor0
----
-48
-48
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8527
SELECT + COUNT( * ) col2, - CAST( NULL AS SIGNED ) * + + 99 AS col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8527
SELECT + COUNT ( * ) col2, - CAST ( NULL AS INTEGER ) * + + 99 AS col0 FROM tab1
----
3
NULL

query II rowsort
SELECT DISTINCT - col0, ( 11 ) AS col1 FROM tab2
----
-46
11
-64
11
-75
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT ALL + COUNT( * ) * 79 AS col0 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-8529
SELECT ALL + COUNT ( * ) * 79 AS col0 FROM tab2
----
237

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 * - col0 IS NULL )
----

query I rowsort
SELECT DISTINCT AVG ( - col0 ) AS col0 FROM tab2 WHERE NOT ( col2 <> col0 )
----
NULL

query I rowsort
SELECT ALL - 45 * + col0 * - col1 AS col0 FROM tab0
----
4365
54675
82215

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL >= ( NULL ) )
----

query I rowsort
SELECT DISTINCT + - col0 * - 24 FROM tab2 AS cor0
----
1104
1536
1800

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 / col2
----

query I rowsort
SELECT ALL col1 * + ( - col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT ALL - COUNT( * ) + 93 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-8537
SELECT ALL - COUNT ( * ) + 93 FROM tab1 AS cor0
----
90

query II rowsort
SELECT + + ( col1 ) AS col0, + ( col2 ) * + col1 + col2 - - col0 FROM tab0 AS cor0
----
1
295
21
307
81
3869

query II rowsort
SELECT + col1 * - col0, + 5 AS col1 FROM tab1 AS cor0
----
-425
5
-4277
5
-714
5

query I rowsort
SELECT DISTINCT - + 79 + col2 FROM tab0 AS cor0
----
-32
-69
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT + + MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8541
SELECT + + MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) + - 36 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) + - 36 FROM tab2
----
-36

query I rowsort
SELECT + col0 * - 24 FROM tab2
----
-1104
-1536
-1800

query II rowsort
SELECT ALL 48, 60 AS col0 FROM tab1
----
48
60
48
60
48
60

query I rowsort
SELECT col1 * + 74 AS col2 FROM tab1 WHERE col0 * - col2 + + col1 + + 12 + + col1 NOT BETWEEN + + col1 * - - col0 AND + 21 * + 0 + + + col1 - - 40
----
1036
3478
370

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - - col2
----

query I rowsort
SELECT 29 FROM tab0 WHERE NULL IS NULL
----
29
29
29

query I rowsort
SELECT DISTINCT - 45 + 83 AS col2 FROM tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT - 97 - + col0 - - col0 * + ( + + 2 ) AS col2 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL MAX( ALL + - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL MAX ( ALL + - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8551
SELECT - col0 DIV - CAST( col1 AS SIGNED ) + + + 28 + + + col1 AS col2 FROM tab2 cor0
----
105
79
96

skipif mysql # not compatible
query I rowsort label-8551
SELECT - col0 / - CAST ( col1 AS INTEGER ) + + + 28 + + + col1 AS col2 FROM tab2 cor0
----
105
79
96

query I rowsort
SELECT - - col0 AS col2 FROM tab2 AS cor0 WHERE NOT 41 < - ( col2 )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT DISTINCT + COUNT( ALL col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + COUNT ( ALL col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8556
SELECT ALL + col0 * - CAST( col1 AS SIGNED ) * - col2 + col1 AS col0 FROM tab1 AS cor0
----
25080
290883
68558

skipif mysql # not compatible
query I rowsort label-8556
SELECT ALL + col0 * - CAST ( col1 AS INTEGER ) * - col2 + col1 AS col0 FROM tab1 AS cor0
----
25080
290883
68558

onlyif mysql # DIV for integer division: 
query I rowsort label-8557
SELECT DISTINCT 8 DIV - 92 + - + 72 FROM tab1 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT 8 / - 92 + - + 72 FROM tab1 cor0
----
-72

query I rowsort
SELECT DISTINCT + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-8559
SELECT - ( col1 ) DIV + ( + col1 ) + 70 + col2 + + + col2 * - col0 col0 FROM tab0 AS cor0
----
-589
-791
-9435

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8559
SELECT - ( col1 ) / + ( + col1 ) + 70 + col2 + + + col2 * - col0 col0 FROM tab0 AS cor0
----
-589
-791
-9435

query II rowsort
SELECT col2 + - col2 AS col1, 31 * 29 AS col2 FROM tab1 AS cor0
----
0
899
0
899
0
899

query I rowsort
SELECT ALL 71 - col0 AS col2 FROM tab1 AS cor0
----
-14
-20
20

query II rowsort
SELECT + col1 / + col2, 74 - - col2 FROM tab1 cor0 WHERE col2 * - + col0 + + + 69 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 33 col0 FROM tab0 cor0
----
-12
-32
48

query I rowsort
SELECT ALL 8 * - 33 FROM tab1
----
-264
-264
-264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT - CAST( NULL AS SIGNED ) * - - 75 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT - CAST ( NULL AS INTEGER ) * - - 75 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * col2 * col0 FROM tab2 WHERE NOT - col2 * + - 51 NOT BETWEEN - col1 AND - + col0 + + 63
----

query I rowsort
SELECT + col2 * - col1 * - 39 * + col2 FROM tab2
----
1052181
4804800
8790132

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT ALL + COUNT( + + 17 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8568
SELECT ALL + COUNT ( + + 17 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8569
SELECT * FROM tab1 AS cor0 WHERE NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8569
SELECT * FROM tab1 AS cor0 WHERE NULL = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - col1 + + + col0 FROM tab0 cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8571
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + - col0 + + + col2 - + col1 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8571
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + - col0 + + + col2 - + col1 col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
51
85
91

query II rowsort
SELECT ALL 30 AS col1, col0 - col1 * 11 AS col0 FROM tab2 AS cor0
----
30
-515
30
-662
30
-783

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 - - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + ( + col0 ) * 5 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT + 45 * + COUNT( * ) FROM tab2 cor0
----
135

skipif mysql # not compatible
query I rowsort label-8577
SELECT + 45 * + COUNT ( * ) FROM tab2 cor0
----
135

query I rowsort
SELECT ALL + ( - col0 ) * - col2 + - - col0 AS col1 FROM tab2 AS cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT - 96 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT - 96 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT 47 DIV 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT 47 / 77 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col0 + col0, col2 FROM tab1
----
102
96
170
59
182
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8582
SELECT - CAST( - 12 AS SIGNED ) FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-8582
SELECT - CAST ( - 12 AS INTEGER ) FROM tab2
----
12
12
12

query I rowsort
SELECT DISTINCT + ( + - 1 ) + + col1 AS col0 FROM tab1
----
13
4
46

query I rowsort
SELECT DISTINCT + 1 * col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT + COUNT( * ) col1 FROM tab0 WHERE 23 BETWEEN + 23 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8585
SELECT + COUNT ( * ) col1 FROM tab0 WHERE 23 BETWEEN + 23 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col1 + + - ( + col1 ) col0 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT - col0 + + col1 + - 21 + + col0 + + 34 DIV - col1 AS col0 FROM tab1 AS cor0
----
-22
-9
26

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - col0 + + col1 + - 21 + + col0 + + 34 / - col1 AS col0 FROM tab1 AS cor0
----
-22
-9
26

query I rowsort
SELECT DISTINCT - 60 + - col1 AS col1 FROM tab2 AS cor0
----
-111
-127
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT 40 - + COUNT( * ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT 40 - + COUNT ( * ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT ALL - 16 * - col0 * - 77 - col1 AS col1 FROM tab2 AS cor0
----
-56723
-78925
-92467

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8591
SELECT ALL - CAST( - - col1 AS SIGNED ) - + col1 FROM tab1 AS cor0
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - CAST ( - - col1 AS INTEGER ) - + col1 FROM tab1 AS cor0
----
-10
-28
-94

query II rowsort
SELECT - + col1 AS col2, 6 FROM tab2 WHERE + 75 IS NULL
----

query I rowsort
SELECT - col0 + + 34 AS col0 FROM tab1
----
-17
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT 86 + COUNT( * ) * - 96 * - COUNT( * ) AS col1 FROM tab2
----
950

skipif mysql # not compatible
query I rowsort label-8594
SELECT 86 + COUNT ( * ) * - 96 * - COUNT ( * ) AS col1 FROM tab2
----
950

onlyif mysql # aggregate syntax: 
query II rowsort label-8595
SELECT - MAX( DISTINCT 82 ) col0, 84 FROM tab1
----
-82
84

skipif mysql # not compatible
query II rowsort label-8595
SELECT - MAX ( DISTINCT 82 ) col0, 84 FROM tab1
----
-82
84

onlyif mysql # aggregate syntax: 
query II rowsort label-8596
SELECT ALL 52, - COUNT( * ) col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
52
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8596
SELECT ALL 52, - COUNT ( * ) col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
52
0

query I rowsort
SELECT - 81 * + 44 FROM tab1 AS cor0
----
-3564
-3564
-3564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 57 col1 FROM tab1
----
-3363
-3876
-5472

onlyif mysql # aggregate syntax: 
query III rowsort label-8599
SELECT + SUM( DISTINCT + 84 ) col2, COUNT( * ) col2, + + 65 + - COUNT( * ) FROM tab1
----
84
3
62

skipif mysql # not compatible
query III rowsort label-8599
SELECT + SUM ( DISTINCT + 84 ) col2, COUNT ( * ) col2, + + 65 + - COUNT ( * ) FROM tab1
----
84
3
62

query I rowsort
SELECT + 22 * - - col0 AS col0 FROM tab2 AS cor0
----
1012
1408
1650

query II rowsort
SELECT ALL + 44 AS col0, col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
44
10
44
47
44
99

query I rowsort
SELECT DISTINCT col1 * + + 11 FROM tab2 AS cor0
----
561
737
847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 * - + 54 - + col1 col0 FROM tab1 AS cor0
----
-4217
-4226
-4259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab0 AS cor0 WHERE NOT 95 IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col2 + - col0 IS NULL
----

query II rowsort
SELECT - 18 * col0 + - 15 AS col0, col0 + - 18 + + - 14 + + col1 * + col2 + col2 AS col1 FROM tab2
----
-1167
3152
-1365
3987
-843
1210

query I rowsort
SELECT DISTINCT + 41 + 57 AS col1 FROM tab0
----
98

query I rowsort
SELECT ALL + col0 + - 3 AS col1 FROM tab2
----
43
61
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL CAST( NULL AS SIGNED ) + - - 85 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8609
SELECT ALL CAST ( NULL AS INTEGER ) + - - 85 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT 3, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8610
SELECT 3, COUNT ( * ) FROM tab2
----
3
3

query I rowsort
SELECT ALL + 92 + col1 FROM tab2 AS cor0
----
143
159
169

query II rowsort
SELECT - col0, 52 AS col2 FROM tab2 AS cor0
----
-46
52
-64
52
-75
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8613
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL = ( + - col1 ) + + col0 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8613
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL = ( + - col1 ) + + col0 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col0 * - 96 + - col1 * - 66 * + + 16 AS col2 FROM tab1 AS cor0
----
13440
19680
58368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8615
SELECT ALL + + 42 * - CAST( + - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8615
SELECT ALL + + 42 * - CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
126

query I rowsort
SELECT ( - - 50 ) AS col2 FROM tab0 AS cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 46 ) AS col0 FROM tab0
----
-46

query III rowsort
SELECT * FROM tab1 WHERE ( 66 + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8620
SELECT 44 DIV COUNT( * ) AS col0 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-8620
SELECT 44 / COUNT ( * ) AS col0 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT DISTINCT + MIN( DISTINCT 36 ) - 8 AS col1 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-8621
SELECT DISTINCT + MIN ( DISTINCT 36 ) - 8 AS col1 FROM tab1
----
28

query I rowsort
SELECT + 7 * col2 FROM tab1
----
413
476
672

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col1 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - COUNT( * ) * 61 col2 FROM tab2
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8624
SELECT - COUNT ( * ) * 61 col2 FROM tab2
----
-183

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8625
SELECT * FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) <> CAST( NULL AS DECIMAL ) + 71
----

skipif mysql # not compatible
query III rowsort label-8625
SELECT * FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) <> CAST ( NULL AS REAL ) + 71
----

query I rowsort
SELECT col0 * 75 FROM tab0
----
1125
6525
7275

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8627
SELECT 43 * + SUM( DISTINCT col0 DIV + 49 ) AS col2 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-8627
SELECT 43 * + SUM ( DISTINCT col0 / + 49 ) AS col2 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT DISTINCT 86 * + COUNT( * ) AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT 86 * + COUNT ( * ) AS col1 FROM tab2
----
258

query I rowsort
SELECT col0 * - 56 AS col1 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT DISTINCT + 59 DIV 2 + col2 FROM tab1
----
125
88
97

skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + 59 / 2 + col2 FROM tab1
----
125
88
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL 0 * 68 AS col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT ALL + col1 DIV 38 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + col1 / 38 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8635
SELECT DISTINCT col1 + - col1 FROM tab1 WHERE NOT + 63 NOT BETWEEN 84 * col2 AND CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8635
SELECT DISTINCT col1 + - col1 FROM tab1 WHERE NOT + 63 NOT BETWEEN 84 * col2 AND CAST ( - col1 AS INTEGER )
----

query I rowsort
SELECT 74 * + col1 + - col0 AS col2 FROM tab0
----
-23
1467
5979

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * - col1 - + ( col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL 59 * 94 + - 82 FROM tab1
----
5464
5464
5464

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 + + col1 / - col1 ) = ( col2 )
----

query I rowsort
SELECT + col0 + + col1 * + 85 AS col2 FROM tab2
----
4381
5770
6609

query III rowsort
SELECT ALL * FROM tab1 WHERE + 41 NOT BETWEEN col0 + ( ( - col1 ) - 6 * + col2 ) AND 39
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8643
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) * + col1 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) * + col1 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( ( 13 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8644
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND ( ( 13 ) )
----
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( - 36 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 59 AND ( NULL )
----

query I rowsort
SELECT - 56 * col1 FROM tab2 AS cor0 WHERE NOT + ( 53 ) + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8648
SELECT ALL COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 85 col1 FROM tab2 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col2 ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT DISTINCT + SUM( DISTINCT - ( col0 ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-8652
SELECT DISTINCT + SUM ( DISTINCT - ( col0 ) ) FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT ALL - ( + MIN( DISTINCT 58 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - ( + MIN ( DISTINCT 58 ) ) FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 31 + + - col2 + - col0 col1 FROM tab1
----
-113
-116
-128

query III rowsort
SELECT * FROM tab1 WHERE - 71 + - 86 <= ( 88 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 + + col2 col2 FROM tab1 WHERE col1 + + 52 BETWEEN ( ( 5 ) - col2 ) AND ( col0 * col0 + - 71 / + col1 )
----
4992
5074
6256

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE ( col1 * 37 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ( 90 ) + + 94 * col2 FROM tab2 AS cor0
----
2252
3850
5542

query I rowsort
SELECT 26 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
26
26
26

query I rowsort
SELECT - col2 + + - col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT col2 + 11 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT DISTINCT - col2 + - - ( - ( ( + CAST( NULL AS SIGNED ) ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - col2 + - - ( - ( ( + CAST ( NULL AS INTEGER ) ) ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8664
SELECT + 36, - CAST( col0 AS SIGNED ) DIV + col2 AS col0 FROM tab1 AS cor0
----
36
-1
36
-1
36
0

skipif mysql # not compatible
query II rowsort label-8664
SELECT + 36, - CAST ( col0 AS INTEGER ) / + col2 AS col0 FROM tab1 AS cor0
----
36
-1
36
-1
36
0

query I rowsort
SELECT DISTINCT - col2 + ( + - 63 ) - - col2 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT - col0 * - + col1 - + + 80 - ( - col1 ) FROM tab0 AS cor0
----
1216
1768
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL - COUNT( * ) + 58 AS col2 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - COUNT ( * ) + 58 AS col2 FROM tab0 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ALL COUNT( * ) - - 42 AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL COUNT ( * ) - - 42 AS col0 FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT DISTINCT + - 66 * + 17 * - - MIN( DISTINCT col2 ) + + 79 AS col2 FROM tab2 AS cor0
----
-25727

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + - 66 * + 17 * - - MIN ( DISTINCT col2 ) + + 79 AS col2 FROM tab2 AS cor0
----
-25727

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT DISTINCT - COUNT( * ) - + - 81 AS col0 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT - COUNT ( * ) - + - 81 AS col0 FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8671
SELECT ALL 33 * - 22 + COUNT( * ) col1 FROM tab1 AS cor0 WHERE 26 <= + 82 * CAST( NULL AS DECIMAL ) + col2 * - CAST( NULL AS DECIMAL )
----
-726

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8671
SELECT ALL 33 * - 22 + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE 26 <= + 82 * CAST ( NULL AS REAL ) + col2 * - CAST ( NULL AS REAL )
----
-726

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col0 + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT - ( + COUNT( * ) ) - - + 65 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT - ( + COUNT ( * ) ) - - + 65 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - MAX( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8674
SELECT - MAX ( DISTINCT - - col2 ) col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 / - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT DISTINCT CAST( + col1 AS SIGNED ) * + - 79 + - col1 * 68 FROM tab1
----
-2058
-6909
-735

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * + - 79 + - col1 * 68 FROM tab1
----
-2058
-6909
-735

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8677
SELECT col1 DIV - + CAST( - col2 AS SIGNED ) col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8677
SELECT col1 / - + CAST ( - col2 AS INTEGER ) col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( col2 ) <> col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT DISTINCT - 79 * MIN( + col0 ) AS col2 FROM tab0
----
-1185

skipif mysql # not compatible
query I rowsort label-8679
SELECT DISTINCT - 79 * MIN ( + col0 ) AS col2 FROM tab0
----
-1185

query I rowsort
SELECT ALL + ( 81 ) * col1 * 90 - 96 FROM tab0
----
152994
590394
7194

query I rowsort
SELECT - 15 * 25 FROM tab0 AS cor0 WHERE NOT ( - 23 * - col0 <> NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8682
SELECT + col1 DIV + ( - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT + col1 / + ( - col2 ) AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8683
SELECT DISTINCT - ( COUNT( * ) ) * + AVG ( ALL - 26 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 53 NOT BETWEEN col0 AND - 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8683
SELECT DISTINCT - ( COUNT ( * ) ) * + AVG ( ALL - 26 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - 53 NOT BETWEEN col0 AND - 10 )
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + + 60 IN ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - MIN( DISTINCT - 55 ) * - - 6 + + 22 + + 84 FROM tab0 AS cor0
----
436

skipif mysql # not compatible
query I rowsort label-8685
SELECT - MIN ( DISTINCT - 55 ) * - - 6 + + 22 + + 84 FROM tab0 AS cor0
----
436

query I rowsort
SELECT DISTINCT - 2 FROM tab1 AS cor0 WHERE ( - 3 * col0 * + col1 ) > 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8687
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8687
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT - 10 FROM tab2 WHERE NOT - + 73 IS NULL
----
-10
-10
-10

query I rowsort
SELECT ALL - + 81 + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
2035
4015
5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8690
SELECT ALL CAST( AVG ( - + CAST( NULL AS SIGNED ) ) AS SIGNED ) * 85 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8690
SELECT ALL CAST ( AVG ( - + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * 85 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT ( + col0 ) * + + CAST( + 51 AS SIGNED ) FROM tab0 AS cor0
----
4437
4947
765

skipif mysql # not compatible
query I rowsort label-8691
SELECT ( + col0 ) * + + CAST ( + 51 AS INTEGER ) FROM tab0 AS cor0
----
4437
4947
765

query I rowsort
SELECT DISTINCT 49 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT ALL SUM( + 13 ) AS col2 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL SUM ( + 13 ) AS col2 FROM tab0 AS cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col2 FROM tab0 cor0
----
-39
-39
-39

query II rowsort
SELECT DISTINCT - col2 AS col1, + 2 FROM tab0 AS cor0
----
-10
2
-47
2
-99
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 8 * + + 15 FROM tab1, tab1 cor0
----
120

query II rowsort
SELECT DISTINCT + 93, + col1 AS col1 FROM tab0
----
93
1
93
21
93
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - COUNT( * ) + + 27 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8699
SELECT - COUNT ( * ) + + 27 FROM tab0
----
24

query I rowsort
SELECT DISTINCT 2 * 97 AS col2 FROM tab1
----
194

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 64 < - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * + - 14 * + col1 * - col0 + - col0 FROM tab2
----
-1510870
-4415552
-5276325

query III rowsort
SELECT * FROM tab1 WHERE + + 41 / - col0 + - 99 + 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT COUNT( ALL - + col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8704
SELECT COUNT ( ALL - + col2 ) col0 FROM tab1
----
3

query II rowsort
SELECT ALL + col1 + + col0, + 0 AS col0 FROM tab1
----
138
0
65
0
90
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( 46 )
----
0

skipif mysql # not compatible
query I rowsort label-8706
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IN ( 46 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT ALL SUM( DISTINCT - col1 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8707
SELECT ALL SUM ( DISTINCT - col1 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query II rowsort label-8708
SELECT ALL 22 AS col1, + 7 * - COUNT( + + 24 ) FROM tab0 cor0
----
22
-21

skipif mysql # not compatible
query II rowsort label-8708
SELECT ALL 22 AS col1, + 7 * - COUNT ( + + 24 ) FROM tab0 cor0
----
22
-21

query I rowsort
SELECT - - col2 - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - col0 / - 60 <> - - col0 - ( + col0 ) AND ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + col0 * - - 51 * - col2 FROM tab0 WHERE ( - 51 ) IS NULL
----

query I rowsort
SELECT ALL - + col2 * col2 + + 71 + - 14 FROM tab2 cor0
----
-1543
-3307
-472

onlyif mysql # aggregate syntax: 
query I rowsort label-8713
SELECT - COUNT( * ) * + COUNT( * ) + SUM( ALL - + ( + col2 ) ) FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8713
SELECT - COUNT ( * ) * + COUNT ( * ) + SUM ( ALL - + ( + col2 ) ) FROM tab0 AS cor0
----
-165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 22 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 FROM tab0 cor0 WHERE NOT ( NULL IS NOT NULL )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8716
SELECT DISTINCT - MIN( + - col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8716
SELECT DISTINCT - MIN ( + - col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT 75 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + - 22 + + col2 + col2 AND col2 / - ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT ALL + MIN( col0 ) * - + 74 * + - COUNT( * ) AS col0 FROM tab1 cor0
----
11322

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + MIN ( col0 ) * - + 74 * + - COUNT ( * ) AS col0 FROM tab1 cor0
----
11322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT DISTINCT col0 * + - ( + ( + - col0 ) ) * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT col0 * + - ( + ( + - col0 ) ) * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + COUNT( * ) * + 31 AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8721
SELECT + COUNT ( * ) * + 31 AS col2 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-8722
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT - col1 * 82 FROM tab0
----
-1722
-6642
-82

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 NOT IN ( - - col2, col2 * + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8725
SELECT - + col0 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8725
SELECT - + col0 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 66 * - col2 AS col1 FROM tab1 AS cor0
----
-3894
-4488
-6336

query II rowsort
SELECT ALL 76 * - ( col1 ) AS col0, + col1 FROM tab0 AS cor0
----
-1596
21
-6156
81
-76
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT DISTINCT + 41 * + COUNT( * ) FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT + 41 * + COUNT ( * ) FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT - SUM( + col0 ) AS col0 FROM tab0 WHERE NOT - 87 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8729
SELECT - SUM ( + col0 ) AS col0 FROM tab0 WHERE NOT - 87 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + col0 + + 87 * 30 * + + col1 + + col1 / - 34 ) NOT BETWEEN + 67 AND NULL
----

query I rowsort
SELECT DISTINCT - 73 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-73

query I rowsort
SELECT ALL 52 + - - ( 61 ) FROM tab1 AS cor0
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT COUNT( * ) * + 3 AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8733
SELECT COUNT ( * ) * + 3 AS col0 FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - ( - - 75 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT 43 * COUNT( * ) FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-8735
SELECT 43 * COUNT ( * ) FROM tab0 AS cor0
----
129

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + ( - - ( col0 ) ) + + col0 + - 33 + - col2 * + 8 + col2 * col2 / - ( 41 ) BETWEEN - 93 AND ( 20 )
----

query I rowsort
SELECT - - 87 * + col1 FROM tab2 AS cor0
----
4437
5829
6699

query I rowsort
SELECT 94 * - - col0 AS col2 FROM tab1 cor0
----
4794
7990
8554

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8739
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + + 14 + + CAST( + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8739
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > + + 14 + + CAST ( + col1 AS REAL )
----

query I rowsort
SELECT ALL col2 * + 73 * col1 FROM tab2
----
224840
283678
85629

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8742
SELECT DISTINCT col1 DIV - + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8742
SELECT DISTINCT col1 / - + col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + + col1 - - + col2 FROM tab0
----
118
143
197

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 + + col0 AS col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT - col0 + + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT - col0 + + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT + COUNT( * ) * + - 15 * - ( - COUNT( * ) ) * - 99 + + - 53 + + MIN( col1 ) FROM tab0 AS cor0
----
13313

skipif mysql # not compatible
query I rowsort label-8747
SELECT + COUNT ( * ) * + - 15 * - ( - COUNT ( * ) ) * - 99 + + - 53 + + MIN ( col1 ) FROM tab0 AS cor0
----
13313

query I rowsort
SELECT col1 + 5 * - - col1 + col1 AS col1 FROM tab2 AS cor0
----
357
469
539

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8749
SELECT ALL - col0 + + - ( - - 83 ), CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-170
NULL
-180
NULL
-98
NULL

skipif mysql # not compatible
query II rowsort label-8749
SELECT ALL - col0 + + - ( - - 83 ), CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-170
NULL
-180
NULL
-98
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 * + 26 - 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT - COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8751
SELECT - COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - 22, col1 FROM tab2 AS cor0
----
-22
51
-22
67
-22
77

query II rowsort
SELECT + + 68, + col1 FROM tab0 AS cor0
----
68
1
68
21
68
81

query II rowsort
SELECT + col2 AS col0, - 21 + - + 92 AS col1 FROM tab1 AS cor0
----
59
-113
68
-113
96
-113

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8756
SELECT - col1 DIV - 86 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT - col1 / - 86 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL + + COUNT( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT ALL + + COUNT ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----
0

query II rowsort
SELECT DISTINCT - col2, col2 AS col1 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT MAX( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8759
SELECT MAX ( ( col2 ) ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT DISTINCT - 89 * + CAST( + - 38 AS SIGNED ) FROM tab2 AS cor0
----
3382

skipif mysql # not compatible
query I rowsort label-8760
SELECT DISTINCT - 89 * + CAST ( + - 38 AS INTEGER ) FROM tab2 AS cor0
----
3382

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE 54 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8761
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE 54 IS NULL
----
0

query I rowsort
SELECT 20 FROM tab2 WHERE NOT NULL IS NOT NULL
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8763
SELECT COUNT( * ) * + CAST( 92 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + - 25 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8763
SELECT COUNT ( * ) * + CAST ( 92 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + - 25 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8764
SELECT ALL + CAST( NULL AS DECIMAL ) / 85 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8764
SELECT ALL + CAST ( NULL AS REAL ) / 85 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query II rowsort label-8765
SELECT - MIN( DISTINCT col0 ) AS col2, - COUNT( * ) AS col1 FROM tab1
----
-51
-3

skipif mysql # not compatible
query II rowsort label-8765
SELECT - MIN ( DISTINCT col0 ) AS col2, - COUNT ( * ) AS col1 FROM tab1
----
-51
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT DISTINCT + MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT + MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 72 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 / - col2 + 77 < NULL
----

query I rowsort
SELECT + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 21 >= + - col1 * + + 14 * + col2
----

query II rowsort
SELECT DISTINCT col0 * + col2 AS col1, 93 FROM tab1 cor0
----
4896
93
5015
93
6188
93

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + col1 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - 93 + - + 91 AS col2 FROM tab1
----
-184

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT COUNT( * ) + + 86 FROM tab1 cor0
----
89

skipif mysql # not compatible
query I rowsort label-8773
SELECT COUNT ( * ) + + 86 FROM tab1 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8774
SELECT 48 + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-8774
SELECT 48 + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT ALL + + COUNT( * ) * - COUNT( * ) + - 29 + - - MAX( col0 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8775
SELECT ALL + + COUNT ( * ) * - COUNT ( * ) + - 29 + - - MAX ( col0 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT ALL 33 * - col1 FROM tab0 AS cor0
----
-2673
-33
-693

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE col0 = + - 47
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8778
SELECT DISTINCT - 84 DIV + COUNT( * ) AS col0 FROM tab0 cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT - 84 / + COUNT ( * ) AS col0 FROM tab0 cor0
----
-28

query I rowsort
SELECT ALL + col1 + + ( - 14 ) FROM tab0 AS cor0
----
-13
67
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8780
SELECT - 27 + + COUNT( * ) DIV + + 67 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8780
SELECT - 27 + + COUNT ( * ) / + + 67 FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT + MAX( ALL col2 ) * + 13 AS col2 FROM tab0
----
1287

skipif mysql # not compatible
query I rowsort label-8781
SELECT + MAX ( ALL col2 ) * + 13 AS col2 FROM tab0
----
1287

query III rowsort
SELECT * FROM tab2 WHERE - + 27 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 43 * - - 52 FROM tab0
----
-2236
-2236
-2236

onlyif mysql # DIV for integer division: 
query I rowsort label-8784
SELECT 70 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8784
SELECT 70 / - col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8785
SELECT ALL - col0 + + + CAST( NULL AS SIGNED ) * - 4 * + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8785
SELECT ALL - col0 + + + CAST ( NULL AS INTEGER ) * - 4 * + - 87 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND 80
----
0

skipif mysql # not compatible
query I rowsort label-8786
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND 80
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT + 35 - + COUNT( * ) FROM tab2 cor0
----
32

skipif mysql # not compatible
query I rowsort label-8787
SELECT + 35 - + COUNT ( * ) FROM tab2 cor0
----
32

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( col0 ) IS NOT NULL AND NOT ( - col1 ) <= col2 + + + col0
----

query I rowsort
SELECT DISTINCT + col1 * - - 61 FROM tab1 AS cor0 WHERE NOT col1 * - + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 67 <> - 36 * - col0
----

query II rowsort
SELECT DISTINCT + 6 col2, + 92 FROM tab0 AS cor0
----
6
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8792
SELECT DISTINCT + CAST( - + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8792
SELECT DISTINCT + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT - COUNT( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8793
SELECT - COUNT ( + + col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col0 * + + col1 FROM tab1 AS cor0 WHERE NOT NULL <= - col1 + - 65 * + col0
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 92 * - 57 IS NOT NULL
----

query I rowsort
SELECT + 82 FROM tab1 AS cor0 WHERE NOT + col1 IN ( - 79, col1 )
----

query I rowsort
SELECT - col1 * - 1 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT - ( + - CAST( - - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8798
SELECT - ( + - CAST ( - - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab1
----
3

query II rowsort
SELECT - col2, + ( col0 ) + ( - col0 ) AS col1 FROM tab0
----
-10
0
-47
0
-99
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8800
SELECT ALL CAST( - MAX( ALL - + col1 ) AS SIGNED ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8800
SELECT ALL CAST ( - MAX ( ALL - + col1 ) AS INTEGER ) col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * - col2 col2 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-8802
SELECT DISTINCT col1 DIV + col1 + - + 13 + 95 * col1 FROM tab0
----
1983
7683
83

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT col1 / + col1 + - + 13 + 95 * col1 FROM tab0
----
1983
7683
83

query II rowsort
SELECT DISTINCT - 63 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
-63
51
-63
85
-63
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL <= 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL 61 * MAX( DISTINCT - + col1 ) * + 27 FROM tab0 AS cor0
----
-1647

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 61 * MAX ( DISTINCT - + col1 ) * + 27 FROM tab0 AS cor0
----
-1647

query I rowsort
SELECT DISTINCT - ( + 0 ) FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8807
SELECT ALL - - SUM( DISTINCT + - col0 ) * + + MAX( DISTINCT - CAST( - + col0 AS SIGNED ) ) + + COUNT( * ) col0 FROM tab0 cor0
----
-19300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8807
SELECT ALL - - SUM ( DISTINCT + - col0 ) * + + MAX ( DISTINCT - CAST ( - + col0 AS INTEGER ) ) + + COUNT ( * ) col0 FROM tab0 cor0
----
-19300

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL + 2 + + COUNT( ALL 49 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + 2 + + COUNT ( ALL 49 ) FROM tab2 AS cor0
----
5

query I rowsort
SELECT ALL - col2 * + - 12 + + + col2 FROM tab1 AS cor0
----
1248
767
884

query I rowsort
SELECT DISTINCT - ( col2 ) * + 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 86 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT 44 * COUNT( * ) FROM tab0 cor0 WHERE col1 * + + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT 44 * COUNT ( * ) FROM tab0 cor0 WHERE col1 * + + col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab2 cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT + COUNT( * ) - - 96 col0 FROM tab2
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8814
SELECT DISTINCT + COUNT ( * ) - - 96 col0 FROM tab2
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab0
----
-10

query II rowsort
SELECT + + col2, - col2 AS col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8817
SELECT + COUNT( * ) FROM tab2 WHERE + col1 < 53
----
1

skipif mysql # not compatible
query I rowsort label-8817
SELECT + COUNT ( * ) FROM tab2 WHERE + col1 < 53
----
1

query III rowsort
SELECT * FROM tab2 WHERE ( NULL <= - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL - COUNT( + - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - COUNT ( + - col0 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 27 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE col1 = + 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT DISTINCT ( - 43 ) - - 54 + + 48 DIV + + col0 AS col1 FROM tab2 AS cor0
----
11
12

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT ( - 43 ) - - 54 + + 48 / + + col0 AS col1 FROM tab2 AS cor0
----
11
12

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT 27 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT 27 / - col2 AS col1 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( - col0, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8825
SELECT ALL + MIN( + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL + MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT - COUNT( * ) * + + 43 col0 FROM tab0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8826
SELECT - COUNT ( * ) * + + 43 col0 FROM tab0
----
-129

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col0 AND - + col1 * col2 - - 27 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8828
SELECT ALL + col2 * - - col1 DIV col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8828
SELECT ALL + col2 * - - col1 / col1 FROM tab1
----
59
68
96

query I rowsort
SELECT + col2 * + - ( + col1 ) FROM tab1
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 WHERE NOT + 32 < + - 55 * + - col0 / col2 + + + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 * 23 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8832
SELECT ALL - - CAST( + col1 AS SIGNED ) * col1 DIV ( + - col0 ) * + col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-1334
-3497
-3744

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL - - CAST ( + col1 AS INTEGER ) * col1 / ( + - col0 ) * + col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-1334
-3497
-3744

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT + - col0 NOT BETWEEN - col1 AND + 49 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT ( + + col1 ) DIV - + col2 AS col2 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8834
SELECT ( + + col1 ) / - + col2 AS col2 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8835
SELECT DISTINCT + SUM( DISTINCT + 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + SUM ( DISTINCT + 76 ) FROM tab0 AS cor0
----
76

query II rowsort
SELECT DISTINCT ( + + 95 ) AS col2, col1 AS col2 FROM tab2 cor0
----
95
51
95
67
95
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0 * - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT ALL MIN( ALL - + 82 ) AS col2 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL MIN ( ALL - + 82 ) AS col2 FROM tab2
----
-82

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 11 <> NULL
----

query I rowsort
SELECT ALL 43 * 30 FROM tab0
----
1290
1290
1290

query I rowsort
SELECT DISTINCT + col0 + + + 14 AS col1 FROM tab1
----
105
65
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8842
SELECT ( + col0 ) + - col1 - - col0 DIV - ( col0 ) FROM tab2
----
-14
-6
7

skipif mysql # not compatible
query I rowsort label-8842
SELECT ( + col0 ) + - col1 - - col0 / - ( col0 ) FROM tab2
----
-14
-6
7

query I rowsort
SELECT col2 + - 27 AS col2 FROM tab2
----
-4
13
31

query I rowsort
SELECT ALL + col0 + - + col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT ALL + + ( - 51 ) * 99 + - COUNT( * ) + - COUNT( * ) * - + 37 * - 55 FROM tab0 AS cor0
----
-11157

skipif mysql # not compatible
query I rowsort label-8845
SELECT ALL + + ( - 51 ) * 99 + - COUNT ( * ) + - COUNT ( * ) * - + 37 * - 55 FROM tab0 AS cor0
----
-11157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8846
SELECT DISTINCT - + MIN( ALL + col1 ) + + CAST( NULL AS SIGNED ) * + 52 * + + COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT - + MIN ( ALL + col1 ) + + CAST ( NULL AS INTEGER ) * + 52 * + + COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab2, tab0 AS cor0
----
85

query III rowsort
SELECT * FROM tab2 WHERE + + col2 + - + 74 = - col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL - ( - 38 ) / CAST( NULL AS SIGNED ) + - col1 + 41 * + ( + 37 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL - ( - 38 ) / CAST ( NULL AS INTEGER ) + - col1 + 41 * + ( + 37 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 27 * 76 * col1 + - + col2 * + col2 FROM tab1 AS cor0
----
19512
6779
91820

query I rowsort
SELECT - col1 + 25 FROM tab2 AS cor0
----
-26
-42
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT DISTINCT ( - + CAST( - 71 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT ( - + CAST ( - 71 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
71

query II rowsort
SELECT DISTINCT - col1 + col1 AS col2, - col1 FROM tab0 cor0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT DISTINCT + + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 71 * + + col1 + 66 FROM tab0 cor0
----
137
1557
5817

onlyif mysql # aggregate syntax: 
query I rowsort label-8857
SELECT DISTINCT - COUNT( * ) * + 41 + + + 14 - + 57 * - ( - 29 ) FROM tab1 AS cor0
----
-1762

skipif mysql # not compatible
query I rowsort label-8857
SELECT DISTINCT - COUNT ( * ) * + 41 + + + 14 - + 57 * - ( - 29 ) FROM tab1 AS cor0
----
-1762

onlyif mysql # DIV for integer division: 
query I rowsort label-8858
SELECT + col1 * col0 DIV + col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8858
SELECT + col1 * col0 / + col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8859
SELECT ALL col2 * - ( + CAST( NULL AS SIGNED ) ) * - 15 - + - col0 + - 76 * col1 * col2 * - col0 + + + col2 AS col0, CAST( + ( + col0 ) AS SIGNED ) AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-8859
SELECT ALL col2 * - ( + CAST ( NULL AS INTEGER ) ) * - 15 - + - col0 + - 76 * col1 * col2 * - col0 + + + col2 AS col0, CAST ( + ( + col0 ) AS INTEGER ) AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL 61 * + CAST( + 71 AS SIGNED ) AS col1 FROM tab1
----
4331
4331
4331

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL 61 * + CAST ( + 71 AS INTEGER ) AS col1 FROM tab1
----
4331
4331
4331

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + 91 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8861
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + 91 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL + MIN( ALL col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8862
SELECT ALL + MIN ( ALL col1 ) AS col2 FROM tab0 cor0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col1 <= - - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT DISTINCT - - COUNT( * ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT ALL - MAX( DISTINCT ( + col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL - MAX ( DISTINCT ( + col0 ) ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + col0 * + - 76 AS col2 FROM tab1 cor0
----
-3876
-6460
-6916

onlyif mysql # DIV for integer division: 
query I rowsort label-8867
SELECT 15 DIV + 41 + + 35 * + 64 + - col0 * + col1 - col1 FROM tab0 AS cor0
----
2142
392
944

skipif mysql # not compatible
query I rowsort label-8867
SELECT 15 / + 41 + + 35 * + 64 + - col0 * + col1 - col1 FROM tab0 AS cor0
----
2142
392
944

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8868
SELECT col1 DIV - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8868
SELECT col1 / - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT - 59 * COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-531

skipif mysql # not compatible
query I rowsort label-8869
SELECT - 59 * COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-531

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8870
SELECT CAST( NULL AS DECIMAL ) / + - MIN( col1 ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT CAST ( NULL AS REAL ) / + - MIN ( col1 ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 56 <> 76
----

query I rowsort
SELECT DISTINCT 52 + - 84 + + - ( + - col0 ) + - + col1 FROM tab0
----
-98
34
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL - CAST( + - 76 AS SIGNED ) - - col0 FROM tab1 WHERE NOT - - 44 IS NULL
----
127
161
167

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL - CAST ( + - 76 AS INTEGER ) - - col0 FROM tab1 WHERE NOT - - 44 IS NULL
----
127
161
167

query I rowsort
SELECT ALL - - col2 + + + col2 + - col0 FROM tab1 AS cor0
----
141
33
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 / - col2 * - - col2 IS NULL
----

query I rowsort
SELECT + col0 + + ( + 48 ) * - col2 FROM tab0 AS cor0
----
-2241
-393
-4655

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 53 / - 66 >= + - 79 - - 49 * 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 89 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 )
----

query I rowsort
SELECT - + 57 * + 7 - + + 60 + + + 26 AS col0 FROM tab2 cor0
----
-433
-433
-433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 - - 2 col0 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT + - col1 - - col0 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 37 * 40 * + 12 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 - - 11 - col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-132
-194
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT + SUM( DISTINCT + - col1 ) * 84 FROM tab1 AS cor0
----
-5544

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT + SUM ( DISTINCT + - col1 ) * 84 FROM tab1 AS cor0
----
-5544

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8886
SELECT ALL + CAST( NULL AS SIGNED ) - + - MIN( DISTINCT 27 ) + - CAST( + COUNT( * ) AS DECIMAL ) / - 12 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + CAST ( NULL AS INTEGER ) - + - MIN ( DISTINCT 27 ) + - CAST ( + COUNT ( * ) AS REAL ) / - 12 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + + ( - col1 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT col1, 96 AS col2 FROM tab2
----
51
96
67
96
77
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND - ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, col1 * - - col0 col1 FROM tab0 AS cor0
----
-15
1215
-87
1827
-97
97

query I rowsort
SELECT + ( + 55 ) FROM tab0 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - ( - col2 ) * col1 AS col0 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT DISTINCT + 4 * + + col1 FROM tab2
----
204
268
308

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT DISTINCT + ( - - col1 ) DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + ( - - col1 ) / col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT DISTINCT SUM( + 29 ) * + 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4176

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT SUM ( + 29 ) * + 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4176

query I rowsort
SELECT ALL - - 52 AS col0 FROM tab1 AS cor0
----
52
52
52

query I rowsort
SELECT - col0 * - col0 FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
2601
7225
8281

query I rowsort
SELECT DISTINCT col0 * - - col2 + col1 AS col0 FROM tab2 AS cor0
----
1109
2637
4417

query I rowsort
SELECT ALL + 35 * + col2 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8900
SELECT DISTINCT col1 * + ( + col2 ) + - + CAST( NULL AS SIGNED ) + 56 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8900
SELECT DISTINCT col1 * + ( + col2 ) + - + CAST ( NULL AS INTEGER ) + 56 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + - 22 FROM tab0
----
-1782
-22
-462

query I rowsort
SELECT - col0 + - 67 AS col1 FROM tab0
----
-154
-164
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT 49 / + MAX( + col0 ) * + + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8903
SELECT DISTINCT 49 / + MAX ( + col0 ) * + + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 19 * 62 / + col2 * + col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8905
SELECT + 55 AS col2, 41 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
55
-123

skipif mysql # not compatible
query II rowsort label-8905
SELECT + 55 AS col2, 41 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
55
-123

query I rowsort
SELECT DISTINCT + 81 * - col1 FROM tab0 AS cor0
----
-1701
-6561
-81

query I rowsort
SELECT DISTINCT 74 - col2 AS col2 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT - col1 FROM tab2 WHERE + col0 - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT 85 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT 85 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - 89 / + - 38 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8911
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE + 99 >= - + 76 - 71 - + - ( col1 ) + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE + 99 >= - + 76 - 71 - + - ( col1 ) + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT - ( + COUNT( * ) ) * COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8912
SELECT - ( + COUNT ( * ) ) * COUNT ( * ) FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 col1 FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT ALL SUM( - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8914
SELECT ALL SUM ( - col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ( col1 ) * - + col1 + col0 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT - 51 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + SUM( col2 ) col2 FROM tab2
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT + SUM ( col2 ) col2 FROM tab2
----
121

query I rowsort
SELECT - + 15 FROM tab2 cor0 WHERE NOT - 53 * + 32 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT + + 72 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8919
SELECT + + 72 / + - COUNT ( * ) FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT ALL + - 30 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL + - 30 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - 52 * - - col1 + - col0 FROM tab1 cor0
----
175
2353
677

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT 22 * col0 + - CAST( NULL AS SIGNED ) + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT 22 * col0 + - CAST ( NULL AS INTEGER ) + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( 25 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( 25 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT ALL - COUNT( * ) + + + 81 AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-8924
SELECT ALL - COUNT ( * ) + + + 81 AS col0 FROM tab1
----
78

query I rowsort
SELECT DISTINCT - ( - 61 ) + - + col0 AS col2 FROM tab0
----
-26
-36
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT - 4 AS col0 FROM tab2 WHERE NOT - CAST( + col1 AS SIGNED ) + + col0 > - ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - 4 AS col0 FROM tab2 WHERE NOT - CAST ( + col1 AS INTEGER ) + + col0 > - ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT DISTINCT - COUNT( * ) + + + SUM( DISTINCT + + ( - - col0 ) ) FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-8927
SELECT DISTINCT - COUNT ( * ) + + + SUM ( DISTINCT + + ( - - col0 ) ) FROM tab0 AS cor0
----
196

query I rowsort
SELECT DISTINCT - col1 * col0 - - col0 FROM tab2 cor0
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT col0 * - 15 AS col1 FROM tab1 AS cor0
----
-1275
-1365
-765

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( - col1 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT - + COUNT( * ) * 16 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT - + COUNT ( * ) * 16 FROM tab1 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT - COUNT( * ) * ( + 85 ) + + 2 FROM tab1 AS cor0
----
-253

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT - COUNT ( * ) * ( + 85 ) + + 2 FROM tab1 AS cor0
----
-253

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT + ( COUNT( 9 ) ) * + 97 AS col1 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8933
SELECT + ( COUNT ( 9 ) ) * + 97 AS col1 FROM tab1 AS cor0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT + COUNT( + 30 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8934
SELECT + COUNT ( + 30 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8935
SELECT + + COUNT( * ) DIV - + 81 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8935
SELECT + + COUNT ( * ) / - + 81 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 31 ) col1 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8937
SELECT + col2 col1, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8937
SELECT + col2 col1, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + ( + + col2 ) * + col2 + - 9 IS NULL
----

query I rowsort
SELECT ALL - col0 * + - 33 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 77 + + col0 + + 67 FROM tab1 AS cor0
----
41
75
81

query I rowsort
SELECT col1 + - - col2 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT + - col1 * + col1 - col1 AS col2 FROM tab1 AS cor0
----
-210
-2256
-30

query I rowsort
SELECT + ( - col2 ) * + col0 - 24 + col2 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-1059
-2544
-4316

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT ALL - - 96 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
105

skipif mysql # not compatible
query I rowsort label-8945
SELECT ALL - - 96 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
105

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE col2 * - - col1 + - - col2 <= ( NULL )
----

query I rowsort
SELECT ( + ( 74 ) ) FROM tab0 AS cor0
----
74
74
74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 * col0 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 * + col0 / col1 + - + col1, - col1 / col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8951
SELECT - - col1 * col0 DIV - col2 AS col2, - 41 * + - col2 * + - col0 * - 18 FROM tab0 AS cor0
----
-182
642060
-25
520290
0
7087014

skipif mysql # not compatible
query II rowsort label-8951
SELECT - - col1 * col0 / - col2 AS col2, - 41 * + - col2 * + - col0 * - 18 FROM tab0 AS cor0
----
-182
642060
-25
520290
0
7087014

query II rowsort
SELECT + - col2 AS col0, col1 * col2 FROM tab1 AS cor0
----
-59
295
-68
3196
-96
1344

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 25 + + + col1 - - col1 - ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 * 2 * - col0 AS col1 FROM tab1
----
1428
850
8554

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8956
SELECT ALL + 30 DIV MIN( + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8956
SELECT ALL + 30 / MIN ( + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab0
----
90

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - 4
----

query I rowsort
SELECT + col1 * - + col2 AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT ALL MAX( - col2 ) + 82 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8959
SELECT ALL MAX ( - col2 ) + 82 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8960
SELECT DISTINCT col1 col0, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8960
SELECT DISTINCT col1 col0, - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT - + ( COUNT( * ) ) FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8961
SELECT - + ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8962
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 81 IS NOT NULL
----
0

query II rowsort
SELECT ALL + + col1 + + - 39 + + col0, + 23 AS col0 FROM tab1 AS cor0
----
26
23
51
23
99
23

query I rowsort
SELECT - col1 + + 87 + col1 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT DISTINCT col0 + + 78 AS col2 FROM tab0 AS cor0
----
165
175
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + - 25 + - COUNT( * ) col0 FROM tab2 cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8966
SELECT ALL + - 25 + - COUNT ( * ) col0 FROM tab2 cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - COUNT( + col0 ) + + 99 * + 29 * + - COUNT( * ) * + MIN( col0 ) FROM tab0
----
-129198

skipif mysql # not compatible
query I rowsort label-8967
SELECT - COUNT ( + col0 ) + + 99 * + 29 * + - COUNT ( * ) * + MIN ( col0 ) FROM tab0
----
-129198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 WHERE NULL > + - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + MIN( + col0 ) * + 75 FROM tab2
----
3450

skipif mysql # not compatible
query I rowsort label-8970
SELECT + MIN ( + col0 ) * + 75 FROM tab2
----
3450

query II rowsort
SELECT 65 AS col1, col0 * + - 59 * + - 54 AS col1 FROM tab1
----
65
162486
65
270810
65
289926

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8972
SELECT ALL - 53 + + SUM( + col1 ) + - COUNT( * ) DIV + + 75 FROM tab2
----
142

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - 53 + + SUM ( + col1 ) + - COUNT ( * ) / + + 75 FROM tab2
----
142

query I rowsort
SELECT DISTINCT col1 + 97 + - col2 FROM tab1
----
15
43
76

query I rowsort
SELECT ALL ( - 21 ) - + col0 FROM tab1 AS cor0
----
-106
-112
-72

query II rowsort
SELECT col1, - 83 AS col0 FROM tab1 AS cor0
----
14
-83
47
-83
5
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT + CAST( NULL AS SIGNED ) / + 84 + + 60 - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8976
SELECT + CAST ( NULL AS INTEGER ) / + 84 + + 60 - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8977
SELECT CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL >= - + 91 / - 63
----

skipif mysql # not compatible
query I rowsort label-8977
SELECT CAST ( NULL AS REAL ) FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL >= - + 91 / - 63
----

query I rowsort
SELECT 78 + + 17 AS col1 FROM tab2
----
95
95
95

query I rowsort
SELECT + col0 * + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT DISTINCT - CAST( + 25 AS SIGNED ) * 7 AS col2 FROM tab0 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-8980
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) * 7 AS col2 FROM tab0 AS cor0
----
-175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT ALL + col0 * + CAST( - col1 AS SIGNED ) + + col0 + 42 AS col0 FROM tab2 AS cor0
----
-2258
-4822
-4908

skipif mysql # not compatible
query I rowsort label-8981
SELECT ALL + col0 * + CAST ( - col1 AS INTEGER ) + + col0 + 42 AS col0 FROM tab2 AS cor0
----
-2258
-4822
-4908

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col1 ) / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 64 AS col0, 38 * + + 4 FROM tab0
----
64
152

query I rowsort
SELECT + col2 * + 10 FROM tab2
----
230
400
580

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL + COUNT( * ) * - 66 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL + COUNT ( * ) * - 66 FROM tab0
----
-198

query III rowsort
SELECT * FROM tab2 WHERE NOT - 71 + col2 <= col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8987
SELECT ALL COUNT( * ) * - 43 * + - 29 AS col2, COUNT( * ) FROM tab0
----
3741
3

skipif mysql # not compatible
query II rowsort label-8987
SELECT ALL COUNT ( * ) * - 43 * + - 29 AS col2, COUNT ( * ) FROM tab0
----
3741
3

query I rowsort
SELECT ALL ( - col0 ) * - 30 - + 61 FROM tab0 AS cor0
----
2549
2849
389

query I rowsort
SELECT + - 29 * + 48 + - 97 FROM tab2 AS cor0
----
-1489
-1489
-1489

query I rowsort
SELECT col0 * 78 AS col1 FROM tab0 WHERE NULL < col0
----

query I rowsort
SELECT + - ( + 54 ) FROM tab0 cor0
----
-54
-54
-54

query I rowsort
SELECT col1 * - 4 AS col1 FROM tab1 AS cor0
----
-188
-20
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 23 col1 FROM tab1 AS cor0
----
-23

query I rowsort
SELECT - col1 * col2 - - col0 AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8995
SELECT COUNT( * ) + - CAST( - 22 AS SIGNED ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-8995
SELECT COUNT ( * ) + - CAST ( - 22 AS INTEGER ) AS col1 FROM tab1
----
25

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL NOT BETWEEN - col2 - + ( + 44 ) * + col0 AND + ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8997
SELECT ALL - 94 DIV - col0 AS col2 FROM tab0 WHERE - col2 DIV col0 IS NOT NULL
----
0
1
6

skipif mysql # not compatible
query I rowsort label-8997
SELECT ALL - 94 / - col0 AS col2 FROM tab0 WHERE - col2 / col0 IS NOT NULL
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT - COUNT( * ) + - 46 FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8998
SELECT - COUNT ( * ) + - 46 FROM tab1 cor0
----
-49

query I rowsort
SELECT 54 + + - 21 AS col2 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT DISTINCT - ( + + COUNT( DISTINCT + + CAST( - col2 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT - ( + + COUNT ( DISTINCT + + CAST ( - col2 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9001
SELECT * FROM tab1 AS cor0 WHERE NOT 25 / - col0 + 23 * - col2 / + ( - CAST( + CAST( + 20 AS DECIMAL ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9001
SELECT * FROM tab1 AS cor0 WHERE NOT 25 / - col0 + 23 * - col2 / + ( - CAST ( + CAST ( + 20 AS REAL ) AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - 34 * ( - - 64 ) AS col0 FROM tab2 AS cor0
----
-2176
-2176
-2176

query II rowsort
SELECT + 70 AS col0, - col0 FROM tab1 AS cor0
----
70
-51
70
-85
70
-91

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT ALL - col1 AS col2, + 21 * - col2 AS col0 FROM tab2 AS cor0
----
-51
-483
-67
-1218
-77
-840

query II rowsort
SELECT ALL 84 AS col0, col0 AS col0 FROM tab2 cor0
----
84
46
84
64
84
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9007
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN CAST( ( 27 ) AS SIGNED ) AND + + 20
----

skipif mysql # not compatible
query III rowsort label-9007
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN CAST ( ( 27 ) AS INTEGER ) AND + + 20
----

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT NULL >= 18 * + col0
----

query I rowsort
SELECT - - 43 AS col2 FROM tab0 WHERE NOT ( NOT ( ( NOT col0 / 7 IS NULL ) ) )
----
43
43
43

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * + 3 + + + col1 / col2 <= - col1 + - + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9012
SELECT DISTINCT 24 DIV + - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT 24 / + - col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 / - - 83 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT + col1 < NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - col2 + - col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9016
SELECT DISTINCT - col1 DIV + 65 AS col0, - col2 AS col2 FROM tab0
----
-1
-47
0
-10
0
-99

skipif mysql # not compatible
query II rowsort label-9016
SELECT DISTINCT - col1 / + 65 AS col0, - col2 AS col2 FROM tab0
----
-1
-47
0
-10
0
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col0 FROM tab0 WHERE + col0 - - - col0 IS NOT NULL
----
81
81
81

query I rowsort
SELECT + 65 * - 50 FROM tab2
----
-3250
-3250
-3250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + + 11 col1 FROM tab0
----
-4
-76
-86

query II rowsort
SELECT DISTINCT 76 + - + col2 + - - col0 col0, + col2 AS col2 FROM tab0
----
153
10
44
47
74
99

query I rowsort
SELECT + ( + col2 ) + + - col0 * + - 79 FROM tab1 AS cor0
----
4125
6774
7257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT ALL CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + + col0 + - 99 * + + 72 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0 + - 99 * + + 72 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col2 + - ( col0 ) + - + 87 * - - col2 FROM tab0 AS cor0
----
-4057
-8611
-947

query I rowsort
SELECT col0 + + + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT - ( + - 61 ) + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
64

skipif mysql # not compatible
query I rowsort label-9025
SELECT - ( + - 61 ) + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9026
SELECT col1 * + CAST( - col1 AS SIGNED ) FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9026
SELECT col1 * + CAST ( - col1 AS INTEGER ) FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 > + - col1 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 AS col1, + ( - 40 ) AS col2 FROM tab0 WHERE NOT - - 85 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT COUNT( * ) * MAX( DISTINCT + 30 ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9029
SELECT COUNT ( * ) * MAX ( DISTINCT + 30 ) AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT 11 * + COUNT( * ) - + 37 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-9030
SELECT 11 * + COUNT ( * ) - + 37 FROM tab1
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9031
SELECT DISTINCT - MIN( ALL - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT DISTINCT - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT + SUM( ALL + 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT + SUM ( ALL + 4 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT DISTINCT + - 30 AS col1 FROM tab1 cor0
----
-30

query I rowsort
SELECT col1 * - col2 * - - col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT 40 * COUNT( * ) FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT 40 * COUNT ( * ) FROM tab0 cor0
----
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT ALL - CAST( - + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9037
SELECT ALL - CAST ( - + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT - - col1 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9038
SELECT - - col1 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 16 * + 45 * - col1, 73 col1 FROM tab1 AS cor0
----
-10080
73
-33840
73
-3600
73

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - - col1 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, col1 col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query II rowsort label-9042
SELECT 30 AS col0, - SUM( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
30
-156

skipif mysql # not compatible
query II rowsort label-9042
SELECT 30 AS col0, - SUM ( ALL - - col2 ) AS col2 FROM tab0 AS cor0
----
30
-156

query I rowsort
SELECT ( ( 64 ) ) AS col1 FROM tab0
----
64
64
64

query I rowsort
SELECT ALL + col1 * + - 10 FROM tab0
----
-10
-210
-810

onlyif mysql # aggregate syntax: 
query II rowsort label-9045
SELECT 12, - COUNT( * ) AS col0 FROM tab2
----
12
-3

skipif mysql # not compatible
query II rowsort label-9045
SELECT 12, - COUNT ( * ) AS col0 FROM tab2
----
12
-3

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT - + ( - ( - + col1 ) ) / + col0 + + col2 - + col2 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + + 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + - 41 FROM tab0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL - 39 + - 35 * - COUNT( * ) * - - MIN( DISTINCT - 92 ) FROM tab1
----
-9699

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - 39 + - 35 * - COUNT ( * ) * - - MIN ( DISTINCT - 92 ) FROM tab1
----
-9699

onlyif mysql # aggregate syntax: 
query II rowsort label-9050
SELECT ALL - 44, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-44
9

skipif mysql # not compatible
query II rowsort label-9050
SELECT ALL - 44, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-44
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9051
SELECT DISTINCT + col2 / - CAST( NULL AS SIGNED ) + ( - col2 ) * + col2 * + CAST( NULL AS SIGNED ) / - col1 * + col1 + + + 29 - + 18 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT + col2 / - CAST ( NULL AS INTEGER ) + ( - col2 ) * + col2 * + CAST ( NULL AS INTEGER ) / - col1 * + col1 + + + 29 - + 18 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
68

query I rowsort
SELECT - 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT - ( 29 ) FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT DISTINCT + 4 + + ( + col1 ) + - col2 + - - col2 * - 51 * - col2 * col1 * + col0 AS col2 FROM tab0 AS cor0
----
136880723
48485453
9317715

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - 95 + col0 - col0 AS col2 FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT COUNT( * ) - + 87 - - 70 AS col1 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9058
SELECT COUNT ( * ) - + 87 - - 70 AS col1 FROM tab0 AS cor0
----
-14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 46 ) - - + 79 - - 15 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL MAX( + + 45 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL MAX ( + + 45 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9061
SELECT SUM( DISTINCT - + 1 ) DIV 32 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT SUM ( DISTINCT - + 1 ) / 32 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 * 5 AS col0 FROM tab1
----
295
340
480

query I rowsort
SELECT ALL - 80 FROM tab2 WHERE col0 <= - col2 * + 67 * + col0 - - - col0
----

query I rowsort
SELECT ALL + col0 * + + col0 AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT col1 * 29 FROM tab0
----
2349
29
609

query II rowsort
SELECT col2 AS col2, col0 * + col0 AS col2 FROM tab0 AS cor0
----
10
7569
47
225
99
9409

query II rowsort
SELECT ALL - + col2, col1 AS col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT - MIN( 1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - MIN ( 1 ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL - col0 * - 85 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + ( COUNT( - 51 ) ) + 5 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col0 + + col1 )
----
5

skipif mysql # not compatible
query I rowsort label-9072
SELECT + ( COUNT ( - 51 ) ) + 5 AS col1 FROM tab0 WHERE ( NULL ) NOT IN ( col0 + + col1 )
----
5

query I rowsort
SELECT ( ( 23 ) ) AS col1 FROM tab1
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT DISTINCT - MAX( DISTINCT 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT - MAX ( DISTINCT 34 ) FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT COUNT( DISTINCT 84 ) FROM tab0 WHERE ( NULL ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9076
SELECT COUNT ( DISTINCT 84 ) FROM tab0 WHERE ( NULL ) IS NULL
----
1

query I rowsort
SELECT - col0 * 64 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT 51 * + ( - col1 ) + - 7 * 17 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL ( + AVG ( 78 ) ) / + 77 + 98 AS col2 FROM tab1 WHERE NOT + 53 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9080
SELECT CAST( NULL AS SIGNED ) - - col1 * 90 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9080
SELECT CAST ( NULL AS INTEGER ) - - col1 * 90 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9081
SELECT + CAST( NULL AS SIGNED ) * + 91 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT + CAST ( NULL AS INTEGER ) * + 91 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * ( - col2 ) AS col1 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NOT ( - 49 + col2 ) BETWEEN + col0 - 68 AND NULL
----
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - col2 >= + 47 * + 45 + + 61
----
0

skipif mysql # not compatible
query I rowsort label-9084
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - col2 >= + 47 * + 45 + + 61
----
0

query I rowsort
SELECT 10 FROM tab1 WHERE NOT ( + 38 ) <> NULL
----

query I rowsort
SELECT ALL 22 + - col2 AS col1 FROM tab0
----
-25
-77
12

query I rowsort
SELECT ( + 30 ) FROM tab2 WHERE NOT col2 * - col1 BETWEEN ( - 24 ) AND + col1
----
30
30
30

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 BETWEEN col1 + + col1 AND + col2
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT - col0 * - ( col2 DIV 29 ) FROM tab0
----
0
15
291

skipif mysql # not compatible
query I rowsort label-9089
SELECT - col0 * - ( col2 / 29 ) FROM tab0
----
0
15
291

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL AVG ( col0 ) - COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL AVG ( col0 ) - COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND ( - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT - 57 + - ( - MAX( col0 ) ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-9091
SELECT - 57 + - ( - MAX ( col0 ) ) AS col0 FROM tab1
----
34

query III rowsort
SELECT * FROM tab0 WHERE NOT + 83 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT - SUM( DISTINCT col1 ) * + SUM( ALL col0 + - col1 ) AS col1 FROM tab1
----
-10626

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT - SUM ( DISTINCT col1 ) * + SUM ( ALL col0 + - col1 ) AS col1 FROM tab1
----
-10626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 85 ) + + ( 81 ) col0 FROM tab1 cor0
----
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT ALL CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT + MAX( col1 ) col0 FROM tab0 cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9096
SELECT + MAX ( col1 ) col0 FROM tab0 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9097
SELECT DISTINCT - col2 + - col2 DIV 2 FROM tab0 AS cor0
----
-148
-15
-70

skipif mysql # not compatible
query I rowsort label-9097
SELECT DISTINCT - col2 + - col2 / 2 FROM tab0 AS cor0
----
-148
-15
-70

query I rowsort
SELECT ALL 4 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > ( - col0 * - 3 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT DISTINCT - COUNT( * ) * 92 FROM tab0 AS cor0 CROSS JOIN tab2
----
-828

skipif mysql # not compatible
query I rowsort label-9099
SELECT DISTINCT - COUNT ( * ) * 92 FROM tab0 AS cor0 CROSS JOIN tab2
----
-828

query I rowsort
SELECT ALL + 78 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( 58 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9102
SELECT + 72 + 47 DIV - 35 AS col1 FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-9102
SELECT + 72 + 47 / - 35 AS col1 FROM tab2
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9103
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( 21 * + 66 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( 21 * + 66 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 * - 6 FROM tab0
----
282
594
60

query I rowsort
SELECT col2 + + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT ALL + col1 DIV col2 + col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-9106
SELECT ALL + col1 / col2 + col2 FROM tab2 AS cor0
----
25
41
59

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 79
----

query I rowsort
SELECT ALL + col0 * - col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * 11 NOT BETWEEN - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col2 FROM tab2 AS cor0
----
4
4
4

query I rowsort
SELECT DISTINCT - 28 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 / 93 + + col1 IS NULL
----
-1428
-1876
-2156

onlyif mysql # DIV for integer division: 
query I rowsort label-9112
SELECT DISTINCT - col1 - - col1 DIV col2 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT - col1 - - col1 / col2 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT ALL - + col2 - 25 AS col0 FROM tab2 AS cor0
----
-48
-65
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9114
SELECT DISTINCT + ( CAST( 44 AS DECIMAL ) ) / col0 - col1 * + col2 col2 FROM tab1 AS cor0 WHERE col1 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9114
SELECT DISTINCT + ( CAST ( 44 AS REAL ) ) / col0 - col1 * + col2 col2 FROM tab1 AS cor0 WHERE col1 = NULL
----

query I rowsort
SELECT - + 73 * + 91 AS col1 FROM tab1 cor0
----
-6643
-6643
-6643

query I rowsort
SELECT DISTINCT + 25 * + col2 - - 72 AS col0 FROM tab1
----
1547
1772
2472

query I rowsort
SELECT ALL ( + + 12 ) - col0 AS col0 FROM tab1
----
-39
-73
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9118
SELECT ( - CAST( NULL AS SIGNED ) ) * - 99 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9118
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 99 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + SUM( + 23 ) AS col0 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9119
SELECT + SUM ( + 23 ) AS col0 FROM tab1
----
69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 8 + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 * + 26 AS col0 FROM tab0
----
2262
2522
390

query I rowsort
SELECT + 99 FROM tab2 WHERE NOT NULL IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL COUNT( * ) col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9123
SELECT ALL COUNT ( * ) col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT + ( - - col2 ) * + 13 FROM tab0
----
1287
130
611

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT - 56 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9125
SELECT - 56 / col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL ( + col0 ) * - 77 FROM tab1
----
-3927
-6545
-7007

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT - SUM( ALL + - 36 ) AS col0 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT - SUM ( ALL + - 36 ) AS col0 FROM tab2
----
108

query I rowsort
SELECT DISTINCT + 65 * - ( - col2 ) AS col1 FROM tab1
----
3835
4420
6240

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 * col2 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9130
SELECT DISTINCT ( - COUNT( * ) ) DIV 48 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9130
SELECT DISTINCT ( - COUNT ( * ) ) / 48 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - COUNT( * ) * + 30 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9131
SELECT - COUNT ( * ) * + 30 FROM tab1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT DISTINCT 37 * + + COUNT( * ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9132
SELECT DISTINCT 37 * + + COUNT ( * ) FROM tab0 AS cor0
----
111

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 6 * + col2 NOT IN ( col0 )
----

query I rowsort
SELECT + + ( - ( - ( + 10 ) ) ) AS col0 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - 5 / col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + + ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9136
SELECT + + ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + ( + + col1 ) * - col2 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9138
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

query II rowsort
SELECT DISTINCT col2 col1, col0 + + + 24 FROM tab0
----
10
111
47
39
99
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT DISTINCT - MIN( DISTINCT + ( - 16 ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
16

skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT - MIN ( DISTINCT + ( - 16 ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
16

query I rowsort
SELECT ALL ( 80 ) * - 78 + 14 FROM tab1 AS cor0
----
-6226
-6226
-6226

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 - + + 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9143
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 39 FROM tab2 AS cor0 WHERE NOT 28 NOT IN ( - col1 * col0 )
----

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 39 FROM tab2 AS cor0 WHERE NOT 28 NOT IN ( - col1 * col0 )
----

query I rowsort
SELECT 49 * + 58 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9145
SELECT - + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9145
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - 22 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 34 ) IN ( - col1 )
----
-22
-22
-22

query II rowsort
SELECT DISTINCT - col1 + col1, - 47 AS col1 FROM tab2
----
0
-47

query I rowsort
SELECT - 28 * 87 FROM tab1
----
-2436
-2436
-2436

query I rowsort
SELECT ( - col1 ) + + col2 FROM tab2 WHERE + - 48 >= NULL
----

query I rowsort
SELECT DISTINCT col2 + - col1 + - 99 * + - col1 + + col2 * col0 AS col1 FROM tab1
----
10862
5564
6364

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 76 / - col1 - col1 * 84 = NULL
----

query I rowsort
SELECT - 48 * - 98 AS col0 FROM tab2 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 62 - + col2 IS NULL AND NULL < ( NULL )
----

query II rowsort
SELECT col2 + 56 col0, col2 AS col2 FROM tab0
----
103
47
155
99
66
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9155
SELECT ALL + COUNT( * ) + 19 AS col1 FROM tab2 cor0
----
22

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL + COUNT ( * ) + 19 AS col1 FROM tab2 cor0
----
22

query I rowsort
SELECT + 30 + + 57 AS col0 FROM tab1 cor0
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - + col2 + 50 col2 FROM tab1
----
5
73
76

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( - 78 ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9159
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN + 73 * col1 * - ( CAST( + col1 AS SIGNED ) ) + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9159
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN + 73 * col1 * - ( CAST ( + col1 AS INTEGER ) ) + + col1 AND NULL
----

query I rowsort
SELECT + 64 - + col2 FROM tab2 AS cor0
----
24
41
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT - 67 - + 7 * + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9161
SELECT - 67 - + 7 * + COUNT ( * ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT - col2 + - - 62 FROM tab2 AS cor0
----
22
39
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 * 55 col1 FROM tab2 AS cor0
----
5335

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL - - SUM( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NULL < + 68 + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL - - SUM ( DISTINCT - col2 ) FROM tab1 AS cor0 WHERE NULL < + 68 + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9165
SELECT - MAX( + CAST( + - col2 AS SIGNED ) ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9165
SELECT - MAX ( + CAST ( + - col2 AS INTEGER ) ) AS col1 FROM tab2
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - - col2 * - 41 - - - 66
----

query I rowsort
SELECT ALL + 86 + col2 AS col0 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 81 AS col2 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT + - col0 * col1 + 88 FROM tab1 WHERE NOT 91 + + 43 + + 71 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9170
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT + col2 IN ( col1 * + - col0 + + col2 + - 57 )
----
-3

skipif mysql # not compatible
query I rowsort label-9170
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT + col2 IN ( col1 * + - col0 + + col2 + - 57 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT COUNT( * ) * ( - 47 ) col1 FROM tab1
----
-141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9171
SELECT DISTINCT COUNT ( * ) * ( - 47 ) col1 FROM tab1
----
-141

query I rowsort
SELECT - AVG ( + - 10 ) AS col0 FROM tab1 WHERE NOT NULL <= - 89
----
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NOT - col0 * - - col0 >= + col2 / + + col0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9174
SELECT - ( + 88 ) DIV - 10 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9174
SELECT - ( + 88 ) / - 10 FROM tab2
----
8
8
8

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN ( - 14 - + 12 - + col2 ) AND ( + ( + col1 ) + + col2 * 95 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9176
SELECT DISTINCT + col0 DIV + 78 * 31 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9176
SELECT DISTINCT + col0 / + 78 * 31 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT 92 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 30 - - 54 * col2 ) AND 8
----
0

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT 92 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 30 - - 54 * col2 ) AND 8
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - 11 * + MIN( DISTINCT col1 ) - + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - 11 * + MIN ( DISTINCT col1 ) - + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT + MAX( col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9179
SELECT + MAX ( col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 82 ) <= - col0
----
15
81
47

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 94 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - + ( col2 ) ) IN ( + col0, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 90 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9184
SELECT COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 39 + - - col0 * - - col0 + - col1 FROM tab0
----
183
7587
9447

onlyif mysql # aggregate syntax: 
query I rowsort label-9186
SELECT DISTINCT + + ( COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9186
SELECT DISTINCT + + ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT + 1 + - COUNT( * ) AS col2 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT + 1 + - COUNT ( * ) AS col2 FROM tab1 cor0
----
-2

query I rowsort
SELECT + - 92 + 84 FROM tab1 AS cor0
----
-8
-8
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9189
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN - - col2 * + - ( col0 ) + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9189
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN - - col2 * + - ( col0 ) + - col2 AND NULL
----

query II rowsort
SELECT ALL col1 AS col0, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab1 WHERE - col0 / + 37 + - col1 <= - 87
----

query I rowsort
SELECT ( + - 97 ) AS col0 FROM tab0
----
-97
-97
-97

query I rowsort
SELECT ALL - 22 + - 3 * - col0 AS col2 FROM tab1
----
131
233
251

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9194
SELECT COUNT( * ) DIV 21 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9194
SELECT COUNT ( * ) / 21 FROM tab2
----
0

query I rowsort
SELECT - col2 * + + ( col0 ) * - col0 * - + 74 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( 85 ) FROM tab0 AS cor0 WHERE col2 <> - 58
----
-85
-85
-85

query II rowsort
SELECT ALL + + col2 AS col1, - col2 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 - ( + - 89 ) + col1 col1 FROM tab0 AS cor0
----
189
320
3977

query II rowsort
SELECT DISTINCT + - col1 AS col1, 57 FROM tab0 AS cor0
----
-1
57
-21
57
-81
57

query I rowsort
SELECT - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT - 26 + 51 AS col0, SUM( DISTINCT 41 ) AS col0 FROM tab2
----
25
41

skipif mysql # not compatible
query II rowsort label-9201
SELECT - 26 + 51 AS col0, SUM ( DISTINCT 41 ) AS col0 FROM tab2
----
25
41

query I rowsort
SELECT + - 6 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT - MAX( + 13 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-13

skipif mysql # not compatible
query I rowsort label-9203
SELECT - MAX ( + 13 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 21 IS NULL
----

query I rowsort
SELECT DISTINCT - + 25 * - - 4 * - + col1 * - - col1 + - 29 AS col2 FROM tab1 AS cor0
----
19571
220871
2471

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 - col0 * ( CAST( NULL AS SIGNED ) ) > - CAST( + - col2 AS SIGNED ) * + col1
----
0

skipif mysql # not compatible
query I rowsort label-9206
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 - col0 * ( CAST ( NULL AS INTEGER ) ) > - CAST ( + - col2 AS INTEGER ) * + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT ALL + SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT 4, 78 AS col2 FROM tab2
----
4
78
4
78
4
78

query I rowsort
SELECT DISTINCT + 27 * - col1 FROM tab2
----
-1377
-1809
-2079

query III rowsort
SELECT ALL * FROM tab1 WHERE - 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT - 32 * - - COUNT( * ) FROM tab1 WHERE NOT 26 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-9211
SELECT - 32 * - - COUNT ( * ) FROM tab1 WHERE NOT 26 IS NULL
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT + col2 DIV + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9212
SELECT + col2 / + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + + 73 + col0 AS col0 FROM tab2 AS cor0
----
1725
2984
4309

query I rowsort
SELECT ALL + - 63 FROM tab2 WHERE ( + + 76 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9215
SELECT ALL col0 + + col2 DIV + + ( - col1 ) AS col0 FROM tab1
----
45
74
90

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL col0 + + col2 / + + ( - col1 ) AS col0 FROM tab1
----
45
74
90

query I rowsort
SELECT DISTINCT - 23 + - - col1 FROM tab0 AS cor0
----
-2
-22
58

query I rowsort
SELECT + 49 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT + + 38 * - COUNT( * ) FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT + + 38 * - COUNT ( * ) FROM tab0 AS cor0
----
-114

query I rowsort
SELECT + col1 * - 50 FROM tab2 AS cor0
----
-2550
-3350
-3850

query I rowsort
SELECT ALL + - 39 * + col2 AS col0 FROM tab1 AS cor0
----
-2301
-2652
-3744

query I rowsort
SELECT 3 * - + col0 * + - col2 AS col0 FROM tab0 cor0
----
2115
2610
28809

onlyif mysql # aggregate syntax: 
query II rowsort label-9222
SELECT + COUNT( * ), + 87 AS col2 FROM tab2 cor0
----
3
87

skipif mysql # not compatible
query II rowsort label-9222
SELECT + COUNT ( * ), + 87 AS col2 FROM tab2 cor0
----
3
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT DISTINCT + col2 DIV + - col2 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT + col2 / + - col2 AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT COUNT( * ) + + 66 col2 FROM tab2
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9224
SELECT COUNT ( * ) + + 66 col2 FROM tab2
----
69

query III rowsort
SELECT * FROM tab1 WHERE 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 33 * - col1 + col2 AS col2 FROM tab2
----
-1660
-2153
-2501

query I rowsort
SELECT DISTINCT + col0 * - - 67 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - 72 col1 FROM tab1 AS cor0
----
-24
13
4

query I rowsort
SELECT 8 + + col2 - - col2 FROM tab2 AS cor0
----
124
54
88

query I rowsort
SELECT + + col0 + - col1 * - - 75 AS col0 FROM tab1 AS cor0
----
-290
-3434
-999

onlyif mysql # aggregate syntax: 
query I rowsort label-9231
SELECT DISTINCT MAX( ALL - 16 ) AS col2 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT MAX ( ALL - 16 ) AS col2 FROM tab1
----
-16

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col2 IS NOT NULL AND NOT NULL < + col0 + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 * + - 67 + - + col0 * - + 93 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <> col2 + - ( - col2 )
----

query II rowsort
SELECT - 53 col2, 12 AS col2 FROM tab0 AS cor0
----
-53
12
-53
12
-53
12

query I rowsort
SELECT DISTINCT - 21 * + col2 + + col2 FROM tab0 AS cor0
----
-1980
-200
-940

query II rowsort
SELECT ALL 38 AS col2, + col0 * col0 AS col2 FROM tab0 AS cor0
----
38
225
38
7569
38
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9238
SELECT - ( 18 ) DIV - + COUNT( * ), 24 AS col0 FROM tab2 AS cor0
----
6
24

skipif mysql # not compatible
query II rowsort label-9238
SELECT - ( 18 ) / - + COUNT ( * ), 24 AS col0 FROM tab2 AS cor0
----
6
24

query I rowsort
SELECT ALL + 63 AS col0 FROM tab2 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT ALL + 45 * - - COUNT( * ) AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL + 45 * - - COUNT ( * ) AS col1 FROM tab1
----
135

query I rowsort
SELECT + 93 * - 90 AS col1 FROM tab0
----
-8370
-8370
-8370

query I rowsort
SELECT 83 * 16 AS col0 FROM tab0
----
1328
1328
1328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 * + col2, 74 AS col0 FROM tab1
----
-1344
74
-295
74
-3196
74

query I rowsort
SELECT + + 46 * - - 49 + + 16 FROM tab2 AS cor0
----
2270
2270
2270

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col1 col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT - + COUNT( * ) + ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT - + COUNT ( * ) + ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT 40 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9250
SELECT - col1 + CAST( col1 AS SIGNED ) * - col1 FROM tab1 cor0
----
-210
-2256
-30

skipif mysql # not compatible
query I rowsort label-9250
SELECT - col1 + CAST ( col1 AS INTEGER ) * - col1 FROM tab1 cor0
----
-210
-2256
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9251
SELECT ALL - - 96 AS col2, COUNT( * ) FROM tab0 AS cor0
----
96
3

skipif mysql # not compatible
query II rowsort label-9251
SELECT ALL - - 96 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
96
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT DISTINCT - 47 + + + COUNT( * ) FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - 47 + + + COUNT ( * ) FROM tab0 AS cor0
----
-44

query II rowsort
SELECT col1 + + + ( - col2 ) AS col1, + col2 AS col2 FROM tab0 AS cor0
----
-98
99
11
10
34
47

query I rowsort
SELECT 11 + + + 46 AS col2 FROM tab1 AS cor0
----
57
57
57

query I rowsort
SELECT col2 * + 83 AS col0 FROM tab1
----
4897
5644
7968

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL - 33 - COUNT( 87 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL - 33 - COUNT ( 87 ) FROM tab0
----
-36

query II rowsort
SELECT 78, 35 + - + col1 AS col1 FROM tab1
----
78
-12
78
21
78
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9258
SELECT * FROM tab1 WHERE + CAST( + ( + + 75 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9258
SELECT * FROM tab1 WHERE + CAST ( + ( + + 75 ) AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT ALL + 64 AS col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + col1 BETWEEN col2 AND ( col1 + - col0 )
----

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL + 64 AS col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 BETWEEN col2 AND ( col1 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9260
SELECT DISTINCT - 26 + + - ( + SUM( + + col1 ) ) AS col0 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-9260
SELECT DISTINCT - 26 + + - ( + SUM ( + + col1 ) ) AS col0 FROM tab0
----
-129

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 77 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 70 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT - + COUNT( * ) FROM tab0 WHERE NOT + - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9263
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT + - col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT COUNT( * ) * ( COUNT( col1 ) ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9264
SELECT COUNT ( * ) * ( COUNT ( col1 ) ) FROM tab0
----
9

query I rowsort
SELECT ( + 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9266
SELECT + - CAST( + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT - 84 > NULL
----

skipif mysql # not compatible
query I rowsort label-9266
SELECT + - CAST ( + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT - 84 > NULL
----

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT col1 IS NULL
----
-51
-67
-77

query II rowsort
SELECT ALL 68, + col0 AS col1 FROM tab1
----
68
51
68
85
68
91

query I rowsort
SELECT + ( + 26 ) AS col1 FROM tab2
----
26
26
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9270
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT ( NOT ( CAST( NULL AS DECIMAL ) ) IS NULL )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT ( NOT ( CAST ( NULL AS REAL ) ) IS NULL )
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 27 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL - + MAX( + + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9272
SELECT ALL - + MAX ( + + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9273
SELECT + col1 + CAST( + col0 AS SIGNED ) AS col1, + col2 + 98 FROM tab2 AS cor0
----
141
138
142
156
97
121

skipif mysql # not compatible
query II rowsort label-9273
SELECT + col1 + CAST ( + col0 AS INTEGER ) AS col1, + col2 + 98 FROM tab2 AS cor0
----
141
138
142
156
97
121

query I rowsort
SELECT col2 + - col0 * + + 64 + - + col1 * - - col2 * + 30 FROM tab1 AS cor0
----
-101636
-14231
-43488

query I rowsort
SELECT - - 15 + - 90 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
4245
8925
915

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - 4 * - 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + COUNT( + 4 ) + - COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + COUNT ( + 4 ) + - COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9278
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) + - + MAX( DISTINCT col1 ), + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-71
NULL

skipif mysql # not compatible
query II rowsort label-9278
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) + - + MAX ( DISTINCT col1 ), + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT ( COUNT( * ) ) + - 33 * + 19 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
-627

skipif mysql # not compatible
query I rowsort label-9279
SELECT ( COUNT ( * ) ) + - 33 * + 19 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----
-627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT - CAST( + + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9280
SELECT - CAST ( + + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 40 + ( + + col2 ) - - - 51 * + - col0 + 60 * col1 * + col1 col1 FROM tab2 AS cor0
----
158366
273125
358964

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9282
SELECT ALL CAST( NULL AS DECIMAL ) + - ( - 95 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL CAST ( NULL AS REAL ) + - ( - 95 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 * - ( - + ( col1 ) ) * - 67 FROM tab0 AS cor0
----
122409
6499
81405

query I rowsort
SELECT DISTINCT + col1 - - ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 - - col2 * + col1 FROM tab1 cor0
----
1248
236
3128

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT - COUNT( * ) - - COUNT( ALL + 63 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9286
SELECT - COUNT ( * ) - - COUNT ( ALL + 63 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - + col2 * - + 31 + col1 * - 25 + + 68 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9288
SELECT ALL + MAX( col1 ), + 28 * + 60 * SUM( + col2 ) AS col1 FROM tab2 AS cor0
----
77
203280

skipif mysql # not compatible
query II rowsort label-9288
SELECT ALL + MAX ( col1 ), + 28 * + 60 * SUM ( + col2 ) AS col1 FROM tab2 AS cor0
----
77
203280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( - col0 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9290
SELECT + CAST( NULL AS DECIMAL ) - + - 32 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT + CAST ( NULL AS REAL ) - + - 32 * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 67 ) AS col1 FROM tab2
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + col2 DIV + - 31 + ( + ( + 86 ) ) - - 60 + + col0 AS col2 FROM tab1
----
194
230
235

skipif mysql # not compatible
query I rowsort label-9292
SELECT + col2 / + - 31 + ( + ( + 86 ) ) - - 60 + + col0 AS col2 FROM tab1
----
194
230
235

query I rowsort
SELECT - 98 * + col0 * + col1 * - col1 * col1 + + 14 + + col0 AS col0 FROM tab1
----
1041349
13714577
925893619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col2 * - ( col1 ) * 93 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col2 * - ( col1 ) * 93 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 NOT BETWEEN 61 AND NULL
----

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 43 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + 59 AS col2 FROM tab2
----
110
126
136

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col1 <= + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + col2 col0 FROM tab1
----
44
53
81

query II rowsort
SELECT ALL + col1 - + col1 + + 39, + col0 FROM tab0 AS cor0
----
39
15
39
87
39
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT SUM( DISTINCT 10 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9302
SELECT SUM ( DISTINCT 10 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT ALL + COUNT( - - col2 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT ALL + COUNT ( - - col2 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( 6 ) FROM tab2 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT SUM( + + 15 ) + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
144

skipif mysql # not compatible
query I rowsort label-9307
SELECT SUM ( + + 15 ) + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
144

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) BETWEEN 85 AND 52
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9309
SELECT ALL + 20 DIV col2 + + col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL + 20 / col2 + + col0 * + + col0 FROM tab1 AS cor0
----
2601
7225
8281

query II rowsort
SELECT col2 AS col0, 36 + + - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
23
-66
40
-118
58
-98

query I rowsort
SELECT col2 * - + 76 FROM tab1 cor0
----
-4484
-5168
-7296

onlyif mysql # DIV for integer division: 
query I rowsort label-9312
SELECT - - ( - ( col1 ) ) DIV + - col2 AS col0 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9312
SELECT - - ( - ( col1 ) ) / + - col2 AS col0 FROM tab0 cor0
----
0
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT ALL - MAX( ALL 44 ) DIV COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9313
SELECT ALL - MAX ( ALL 44 ) / COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT - col0 + + col0 FROM tab0 cor0 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9314
SELECT - col0 + + col0 FROM tab0 cor0 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9315
SELECT DISTINCT col2 AS col1, + 79 DIV col2 DIV - + col1 * col0 * - col2 * - 2 AS col2 FROM tab0 AS cor0
----
10
0
47
0
99
0

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT col2 AS col1, + 79 / col2 / - + col1 * col0 * - col2 * - 2 AS col2 FROM tab0 AS cor0
----
10
0
47
0
99
0

query II rowsort
SELECT DISTINCT 94 + + 58 * + + col1 + + + ( col0 ), - 14 + - - 90 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT - ( + - col0 ) + - col0 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( + 53 ) + col2 FROM tab1
----
112
121
149

query I rowsort
SELECT + col0 + - + 87 AS col0 FROM tab2
----
-12
-23
-41

query I rowsort
SELECT - - 22 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query II rowsort
SELECT + 14 * + 23 AS col1, - 94 * - col2 * + col0 FROM tab1 AS cor0
----
322
460224
322
471410
322
581672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 AS col1, + 63 col2 FROM tab0
----
10
63
47
63
99
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9323
SELECT 28 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9323
SELECT 28 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + 11, - 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
18 values hashing to 71e65e30b48ed8976f344723128a7bd0

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL COUNT( * ) - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT MAX( ALL 75 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9326
SELECT MAX ( ALL 75 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9327
SELECT + COUNT( * ) * - 17 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9327
SELECT + COUNT ( * ) * - 17 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT + col2, + ( + 26 ) FROM tab1 AS cor0
----
59
26
68
26
96
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9329
SELECT DISTINCT col0 - col2 - + 6 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT col0 - col2 - + 6 * - + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT + MIN( ALL - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9330
SELECT + MIN ( ALL - col2 ) AS col1 FROM tab1
----
-96

query I rowsort
SELECT + ( - 65 ) FROM tab0
----
-65
-65
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT DISTINCT COUNT( * ) * 21 DIV - 44 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT COUNT ( * ) * 21 / - 44 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT DISTINCT - COUNT( - ( - - col2 ) ) DIV + + 80 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT DISTINCT - COUNT ( - ( - - col2 ) ) / + + 80 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 29 + CAST( NULL AS SIGNED ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9334
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN 29 + CAST ( NULL AS INTEGER ) AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT + MIN( DISTINCT + 13 ) AS col1 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9335
SELECT + MIN ( DISTINCT + 13 ) AS col1 FROM tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT + ( 90 ) + - col1 / - col1 AS col0 FROM tab1 AS cor0 WHERE - ( 67 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 92 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - COUNT( ALL + col2 ) * + MAX( col1 ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-9338
SELECT - COUNT ( ALL + col2 ) * + MAX ( col1 ) FROM tab0
----
-243

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 69 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9340
SELECT + - 94, - COUNT( * ) AS col0 FROM tab1 cor0
----
-94
-3

skipif mysql # not compatible
query II rowsort label-9340
SELECT + - 94, - COUNT ( * ) AS col0 FROM tab1 cor0
----
-94
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 * 72 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT + - 60 * COUNT( * ) FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9342
SELECT + - 60 * COUNT ( * ) FROM tab0 cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT DISTINCT + COUNT( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT + COUNT ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9344
SELECT + 78 DIV - COUNT( * ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9344
SELECT + 78 / - COUNT ( * ) AS col0 FROM tab2
----
-26

query I rowsort
SELECT DISTINCT - 16 * + + col2 FROM tab1
----
-1088
-1536
-944

query II rowsort
SELECT col1 / - col0 col0, + col2 * ( 30 ) FROM tab1 WHERE NOT NULL > ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9347
SELECT DISTINCT + ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT + ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * - 89 + - col2 AS col1 FROM tab2
----
-4562
-6021
-6893

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT + MIN( + - 4 ) + + + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT + MIN ( + - 4 ) + + + COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9350
SELECT DISTINCT - COUNT( * ) AS col1, COUNT( * ) / CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9350
SELECT DISTINCT - COUNT ( * ) AS col1, COUNT ( * ) / CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT 87 + - 44 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9351
SELECT 87 + - 44 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
46

query I rowsort
SELECT - col0 FROM tab2 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT DISTINCT MAX( DISTINCT col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9353
SELECT DISTINCT MAX ( DISTINCT col2 ) FROM tab0
----
99

query I rowsort
SELECT 20 * - col0 - + - col0 FROM tab0 cor0
----
-1653
-1843
-285

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE 23 * + 63 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + col1 - + - 84 FROM tab1 cor0
----
131
89
98

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 50 BETWEEN 67 + - 33 AND ( + 81 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT ALL - 33 * + + col1 + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-2673
-33
-693

query I rowsort
SELECT + - 60 * + ( col0 ) * 9 - col0 FROM tab1 AS cor0
----
-27591
-45985
-49231

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL <> ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * 94 > - col1 + - 85 + - 56 + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT DISTINCT + COUNT( * ) - 84 + COUNT( * ), 92 * - 51 AS col0 FROM tab2
----
-78
-4692

skipif mysql # not compatible
query II rowsort label-9363
SELECT DISTINCT + COUNT ( * ) - 84 + COUNT ( * ), 92 * - 51 AS col0 FROM tab2
----
-78
-4692

query I rowsort
SELECT + col2 * 59 AS col2 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL COUNT( * ) * - ( COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL COUNT ( * ) * - ( COUNT ( * ) ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9366
SELECT col1 AS col2 FROM tab2 WHERE NOT + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9366
SELECT col1 AS col2 FROM tab2 WHERE NOT + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 77 <= - 76
----

query I rowsort
SELECT col0 + - col1 FROM tab2 AS cor0 WHERE NOT ( - col1 + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL MIN( - 98 ) FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL MIN ( - 98 ) FROM tab2 AS cor0
----
-98

query I rowsort
SELECT + col2 + + ( - - 13 ) * + 23 FROM tab2
----
322
339
357

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9371
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( + col0 + col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( + col1 = + 90 ) )
----

query II rowsort
SELECT DISTINCT ( + 13 ) * - 38, col0 FROM tab2
----
-494
46
-494
64
-494
75

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - + 96 > + ( - col2 )
----

query II rowsort
SELECT DISTINCT col0, 11 * col2 FROM tab1
----
51
1056
85
649
91
748

query I rowsort
SELECT ( col2 ) FROM tab1 WHERE + col0 - 35 IS NULL
----

query I rowsort
SELECT col2 * + 38 FROM tab2
----
1520
2204
874

query I rowsort
SELECT ALL 70 * - 5 + - ( - - 23 ) FROM tab0
----
-373
-373
-373

query I rowsort
SELECT - 5 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT ALL MAX( - 20 ) + + 95 AS col1 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL MAX ( - 20 ) + + 95 AS col1 FROM tab0
----
75

query I rowsort
SELECT DISTINCT col2 - col2 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT COUNT( * ) - + 27 AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-9382
SELECT DISTINCT COUNT ( * ) - + 27 AS col1 FROM tab1
----
-24

query III rowsort
SELECT * FROM tab1 WHERE + + 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE - col2 + + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT - 47 FROM tab2 AS cor0 WHERE ( NOT + - CAST( + ( - 11 ) AS SIGNED ) * - CAST( col1 AS SIGNED ) + + - col0 > NULL )
----

skipif mysql # not compatible
query I rowsort label-9386
SELECT - 47 FROM tab2 AS cor0 WHERE ( NOT + - CAST ( + ( - 11 ) AS INTEGER ) * - CAST ( col1 AS INTEGER ) + + - col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9387
SELECT DISTINCT COUNT( ALL + col2 ) + + ( - + 74 ) AS col2 FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9387
SELECT DISTINCT COUNT ( ALL + col2 ) + + ( - + 74 ) AS col2 FROM tab1 cor0
----
-71

query I rowsort
SELECT + 39 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < - - col2 + + 38
----

query II rowsort
SELECT ALL + - 14 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
-14
-51
-14
-85
-14
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9390
SELECT ALL CAST( NULL AS SIGNED ) * - 72 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT ALL CAST ( NULL AS INTEGER ) * - 72 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT ALL MIN( ALL - 11 ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL MIN ( ALL - 11 ) FROM tab0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9392
SELECT DISTINCT 32 * - - CAST( NULL AS SIGNED ) * - col0 * + ( - - col0 ) / 77 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT 32 * - - CAST ( NULL AS INTEGER ) * - col0 * + ( - - col0 ) / 77 FROM tab1
----
NULL

query II rowsort
SELECT col2 * + 78 AS col0, - col2 FROM tab2
----
1794
-23
3120
-40
4524
-58

query I rowsort
SELECT + 99 * - col0 FROM tab1
----
-5049
-8415
-9009

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT DISTINCT COUNT( ALL 82 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT COUNT ( ALL 82 ) FROM tab0
----
3

query I rowsort
SELECT + + col2 * ( + 3 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
141
297
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT + CAST( - - col1 AS SIGNED ) * + col0 col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9397
SELECT + CAST ( - - col1 AS INTEGER ) * + col0 col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT SUM( ALL 8 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-9398
SELECT SUM ( ALL 8 ) FROM tab1
----
24

query I rowsort
SELECT DISTINCT + 8 FROM tab1, tab2 AS cor0
----
8

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 4
----

query I rowsort
SELECT ALL - col1 * - col2 * - col0 AS col2 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - 63 + + 27 AS col1 FROM tab1 AS cor0
----
3744
4311
6075

query I rowsort
SELECT DISTINCT ( - + 86 ) * - col0 FROM tab0 cor0
----
1290
7482
8342

query II rowsort
SELECT - col0 AS col0, 31 AS col2 FROM tab1 AS cor0
----
-51
31
-85
31
-91
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9405
SELECT ALL - CAST( NULL AS DECIMAL ) * + 54 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL - CAST ( NULL AS REAL ) * + 54 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( ( col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT - col0 / + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT - col0 / + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + MAX( ALL col0 ) * - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9408
SELECT + MAX ( ALL col0 ) * - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-294

query I rowsort
SELECT ALL - + 78 * + col1 AS col0 FROM tab2 AS cor0
----
-3978
-5226
-6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 93 AS col2, - col2 col0 FROM tab1 AS cor0
----
93
-59
93
-68
93
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT COUNT( * ) * - ( + 61 ) FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-9411
SELECT COUNT ( * ) * - ( + 61 ) FROM tab2
----
-183

query II rowsort
SELECT - - col0 AS col2, + ( ( + col0 ) ) + col0 + 46 * - col2 - + col1 AS col2 FROM tab1 WHERE + 91 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT 70 DIV + COUNT( * ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9413
SELECT 70 / + COUNT ( * ) AS col1 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT 88 * + SUM( ALL - 41 ) FROM tab0
----
-10824

skipif mysql # not compatible
query I rowsort label-9414
SELECT 88 * + SUM ( ALL - 41 ) FROM tab0
----
-10824

onlyif mysql # DIV for integer division: 
query I rowsort label-9415
SELECT + ( + col0 ) DIV + col2 + col2 * col2 * + 62 AS col0 FROM tab0 AS cor0
----
136958
607662
6208

skipif mysql # not compatible
query I rowsort label-9415
SELECT + ( + col0 ) / + col2 + col2 * col2 * + 62 AS col0 FROM tab0 AS cor0
----
136958
607662
6208

query I rowsort
SELECT ALL 44 + - col2 + - 15 * + 47 * - + col1 AS col2 FROM tab0 AS cor0
----
14839
57102
650

query I rowsort
SELECT col0 + + + 75 FROM tab1 AS cor0
----
126
160
166

query II rowsort
SELECT + col2 + + col1, - col2 AS col2 FROM tab0 AS cor0
----
100
-99
128
-47
31
-10

query I rowsort
SELECT 71 * - + col2 AS col0 FROM tab0 AS cor0 WHERE - 49 <> NULL
----

query I rowsort
SELECT col2 * 90 AS col2 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT DISTINCT + col1 + - 85 FROM tab0
----
-4
-64
-84

query I rowsort
SELECT ALL - 71 * + col1 FROM tab1 AS cor0
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT COUNT( * ) * - 82 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT COUNT ( * ) * - 82 FROM tab0 AS cor0
----
-246

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT + ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9425
SELECT + ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL 23 + + COUNT( * ) FROM tab2 WHERE - col0 * col2 + 25 IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL 23 + + COUNT ( * ) FROM tab2 WHERE - col0 * col2 + 25 IS NULL
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9428
SELECT DISTINCT + SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT + COUNT( * ) * MIN( DISTINCT - 79 ) col2 FROM tab1
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9429
SELECT DISTINCT + COUNT ( * ) * MIN ( DISTINCT - 79 ) col2 FROM tab1
----
-237

query II rowsort
SELECT ALL + col0 col0, col1 - - 39 * + col0 AS col1 FROM tab1
----
51
2003
85
3320
91
3596

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9431
SELECT CAST( NULL AS SIGNED ) * - + col2 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-9431
SELECT CAST ( NULL AS INTEGER ) * - + col2 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # DIV for integer division: 
query II rowsort label-9432
SELECT DISTINCT - col1 AS col1, - col1 + + col1 + + col0 DIV 1 FROM tab0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-9432
SELECT DISTINCT - col1 AS col1, - col1 + + col1 + + col0 / 1 FROM tab0
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9433
SELECT 32 AS col2, - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
32
NULL
32
NULL
32
NULL

skipif mysql # not compatible
query II rowsort label-9433
SELECT 32 AS col2, - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
32
NULL
32
NULL
32
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - - 21
----

query I rowsort
SELECT DISTINCT 47 * 18 + + col1 FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
851
860
893

onlyif mysql # aggregate syntax: 
query I rowsort label-9436
SELECT ALL MIN( - 87 ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9436
SELECT ALL MIN ( - 87 ) FROM tab1 AS cor0
----
-87

query II rowsort
SELECT ALL + 35 AS col2, 32 AS col1 FROM tab1 AS cor0
----
35
32
35
32
35
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9438
SELECT ALL ( + - 1 ) * - 40 DIV - - ( MAX( ALL 43 ) ) AS col2, + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-9438
SELECT ALL ( + - 1 ) * - 40 / - - ( MAX ( ALL 43 ) ) AS col2, + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0
----
0
0

query II rowsort
SELECT - - 83 * 92 AS col1, - col1 FROM tab1 AS cor0
----
7636
-14
7636
-47
7636
-5

query I rowsort
SELECT + 34 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT + 48 * 13 DIV col2 AS col2 FROM tab1
----
10
6
9

skipif mysql # not compatible
query I rowsort label-9441
SELECT + 48 * 13 / col2 AS col2 FROM tab1
----
10
6
9

query I rowsort
SELECT + col0 * + 91 FROM tab0 cor0 WHERE + 57 <> 39
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT ALL - - ( col1 ) DIV col2 + + 99 FROM tab2 AS cor0
----
100
100
101

skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - - ( col1 ) / col2 + + 99 FROM tab2 AS cor0
----
100
100
101

query I rowsort
SELECT col1 + + + 50 AS col1 FROM tab1 AS cor0
----
55
64
97

query I rowsort
SELECT ( - col0 ) + + - col2 + - - col0 + - - col0 * + - col1 * - ( + 98 ) * - 34 + + 89 FROM tab2 AS cor0
----
-16420047
-16743269
-7816806

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + - 65 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9447
SELECT - COUNT( * ) * - 65 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-9447
SELECT - COUNT ( * ) * - 65 FROM tab1
----
195

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 53 - - 71 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9449
SELECT COUNT( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9449
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9450
SELECT DISTINCT - ( + - COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9450
SELECT DISTINCT - ( + - COUNT ( * ) ) col1 FROM tab0
----
3

query II rowsort
SELECT ALL col0, - col1 + - 81 AS col0 FROM tab2
----
46
-132
64
-158
75
-148

query I rowsort
SELECT col0 * - 89 AS col0 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT + 24 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
24
24
24

query I rowsort
SELECT ALL 34 - - - col0 + - 30 FROM tab0
----
-11
-83
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT MIN( ALL 32 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT MIN ( ALL 32 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
NULL

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL - COUNT( * ) * - 98 - 40 col0 FROM tab0 AS cor0
----
254

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9457
SELECT ALL - COUNT ( * ) * - 98 - 40 col0 FROM tab0 AS cor0
----
254

onlyif mysql # DIV for integer division: 
query I rowsort label-9458
SELECT ALL + 63 DIV 6 FROM tab2 cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL + 63 / 6 FROM tab2 cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT DISTINCT col0 DIV + + 60 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT col0 / + + 60 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ALL ( + - 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + col1 + + ( + + col0 ) + - 62 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
34
36
46

query II rowsort
SELECT ALL 27, col0 FROM tab2 AS cor0 WHERE + ( - col1 ) / + ( + col0 ) * + col2 + + 81 - + 47 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9463
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + - + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9463
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + - + 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 * + - col1 AS col0 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT ALL col2 * 5 FROM tab0
----
235
495
50

query I rowsort
SELECT DISTINCT - ( - - ( - col1 ) ) * + - col2 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9467
SELECT + - col0 DIV + 24 + col1 AS col2 FROM tab0 AS cor0
----
-3
18
81

skipif mysql # not compatible
query I rowsort label-9467
SELECT + - col0 / + 24 + col1 AS col2 FROM tab0 AS cor0
----
-3
18
81

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 IS NOT NULL )
----

query I rowsort
SELECT + col0 * - col0 + - ( col2 ) FROM tab1 AS cor0
----
-2697
-7284
-8349

query II rowsort
SELECT - 45 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-45
51
-45
67
-45
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT - COUNT( * ) * + + SUM( ALL col0 ) col1 FROM tab1 AS cor0
----
-681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9471
SELECT - COUNT ( * ) * + + SUM ( ALL col0 ) col1 FROM tab1 AS cor0
----
-681

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - - col2 * + 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 + + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT + col0 AS col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT DISTINCT 18 + + 1 DIV 19 FROM tab0, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT 18 + + 1 / 19 FROM tab0, tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-9476
SELECT - col2 DIV + - col1 + + - 85 FROM tab0
----
-85
-85
14

skipif mysql # not compatible
query I rowsort label-9476
SELECT - col2 / + - col1 + + - 85 FROM tab0
----
-85
-85
14

query I rowsort
SELECT DISTINCT + col1 * + + col2 + - col1 * - col2 AS col0 FROM tab2
----
2346
6160
7772

query I rowsort
SELECT - + col2 + + col0 + + 41 + 52 FROM tab0 AS cor0
----
170
61
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 + col1 + + - col0 FROM tab1 AS cor0
----
-23
13
20

query I rowsort
SELECT + - col1 - col0 FROM tab0 AS cor0 WHERE NOT 33 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 / - - col1 * 50 col0 FROM tab2 WHERE NOT NULL <> - 65 * - ( + 16 ) AND NOT ( 97 ) IS NULL
----

query I rowsort
SELECT 71 * - + ( - + 46 ) FROM tab2
----
3266
3266
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-9484
SELECT + + COUNT( * ) AS col1, + 64 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
192

skipif mysql # not compatible
query II rowsort label-9484
SELECT + + COUNT ( * ) AS col1, + 64 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
192

query II rowsort
SELECT - col1, - col2 AS col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL MIN( - + 90 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-90

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL MIN ( - + 90 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
-90

query I rowsort
SELECT - col1 * 76 FROM tab1 AS cor0
----
-1064
-3572
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL + + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9489
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + + col1 / - CAST( NULL AS DECIMAL ) AND 19
----

skipif mysql # not compatible
query III rowsort label-9489
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN + + col1 / - CAST ( NULL AS REAL ) AND 19
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9490
SELECT DISTINCT - CAST( + 73 AS SIGNED ) * - col1 * + 98 * + - col0 DIV col0 + - ( + - col0 ), - col2 AS col1 FROM tab0 AS cor0
----
-150147
-10
-579459
-47
-7057
-99

skipif mysql # not compatible
query II rowsort label-9490
SELECT DISTINCT - CAST ( + 73 AS INTEGER ) * - col1 * + 98 * + - col0 / col0 + - ( + - col0 ), - col2 AS col1 FROM tab0 AS cor0
----
-150147
-10
-579459
-47
-7057
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - col1 * + 21 FROM tab2 AS cor0
----
-103488
-105525
-49266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + + - col1 + + 28, - col1 col2 FROM tab2 AS cor0
----
15
-77
23
-51
36
-67

query I rowsort
SELECT ALL - 53 - + col2 FROM tab1 AS cor0
----
-112
-121
-149

onlyif mysql # aggregate syntax: 
query I rowsort label-9495
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9495
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9496
SELECT DISTINCT 40 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT 40 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
37

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-59
-68
-96

query I rowsort
SELECT DISTINCT ( 69 ) - - col2 FROM tab1
----
128
137
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT ( - ( + - CAST( col1 AS SIGNED ) ) ) * - + 24 + - 21 AS col2 FROM tab2
----
-1245
-1629
-1869

skipif mysql # not compatible
query I rowsort label-9499
SELECT ( - ( + - CAST ( col1 AS INTEGER ) ) ) * - + 24 + - 21 AS col2 FROM tab2
----
-1245
-1629
-1869

query I rowsort
SELECT ALL - col1 * col1 + + + col0 FROM tab2
----
-2555
-4414
-5865

query I rowsort
SELECT 31 * + 11 FROM tab1
----
341
341
341

query I rowsort
SELECT col1 - col0 * + 41 AS col2 FROM tab2
----
-1835
-2547
-3008

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( * ) * + - 64 - - + COUNT( * ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( * ) * + - 64 - - + COUNT ( * ) AS col0 FROM tab2
----
195

query III rowsort
SELECT * FROM tab2 WHERE 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9505
SELECT DISTINCT - - 62 AS col0, col0 DIV - 14 FROM tab2 AS cor0
----
62
-3
62
-4
62
-5

skipif mysql # not compatible
query II rowsort label-9505
SELECT DISTINCT - - 62 AS col0, col0 / - 14 FROM tab2 AS cor0
----
62
-3
62
-4
62
-5

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND + col2
----
47
5

query I rowsort
SELECT ALL - ( + + 66 ) AS col2 FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + ( MAX( col0 ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9508
SELECT + ( MAX ( col0 ) ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9509
SELECT + COUNT( - 38 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9509
SELECT + COUNT ( - 38 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT ALL + 1 * + COUNT( ALL col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + 1 * + COUNT ( ALL col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - ( - SUM( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - ( - SUM ( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT ALL - - MIN( DISTINCT 87 ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL - - MIN ( DISTINCT 87 ) FROM tab1 cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT - MAX( ALL - col1 ) * - 76 AS col0 FROM tab2 AS cor0
----
-3876

skipif mysql # not compatible
query I rowsort label-9514
SELECT - MAX ( ALL - col1 ) * - 76 AS col0 FROM tab2 AS cor0
----
-3876

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT 47 DIV col2 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT 47 / col2 FROM tab0
----
0
1
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9516
SELECT COUNT( * ) DIV - COUNT( ALL 95 ) AS col1, COUNT( DISTINCT + + 23 ) FROM tab2
----
-1
1

skipif mysql # not compatible
query II rowsort label-9516
SELECT COUNT ( * ) / - COUNT ( ALL 95 ) AS col1, COUNT ( DISTINCT + + 23 ) FROM tab2
----
-1
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN + + col1 AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9518
SELECT + 9 + + 42 col0, + 10 / CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0
----
18 values hashing to 1a2d20a22d5791c19f786ecc8319c297

skipif mysql # not compatible
query II rowsort label-9518
SELECT + 9 + + 42 col0, + 10 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0
----
18 values hashing to 1a2d20a22d5791c19f786ecc8319c297

query II rowsort
SELECT + col0, - col1 * + col2 AS col2 FROM tab2
----
46
-1173
64
-3080
75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + - col1 + + + 60 FROM tab1 AS cor0
----
13
46
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9522
SELECT + col2 + - 35 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-46
-69
63

skipif mysql # not compatible
query I rowsort label-9522
SELECT + col2 + - 35 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-46
-69
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT COUNT( * ) + + - 38 * - COUNT( - + 74 ) col2 FROM tab0 AS cor0
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9523
SELECT COUNT ( * ) + + - 38 * - COUNT ( - + 74 ) col2 FROM tab0 AS cor0
----
117

query I rowsort
SELECT ALL + + 21 * col0 AS col0 FROM tab2 AS cor0
----
1344
1575
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9525
SELECT ALL col0 FROM tab2 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) - - col2 * col2 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL col0 FROM tab2 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) - - col2 * col2 AND ( col1 )
----

query I rowsort
SELECT ALL - 14 * - col1 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT SUM( DISTINCT + col2 ) * + COUNT( 94 + col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT SUM ( DISTINCT + col2 ) * + COUNT ( 94 + col2 ) FROM tab1
----
669

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - 23 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9529
SELECT + col2 AS col1 FROM tab1 WHERE ( - col0 + + CAST( NULL AS DECIMAL ) ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-9529
SELECT + col2 AS col1 FROM tab1 WHERE ( - col0 + + CAST ( NULL AS REAL ) ) <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * - col0 - col0 ) >= 54
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - 1 * col1 >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9532
SELECT CAST( NULL AS SIGNED ) / 3 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT CAST ( NULL AS INTEGER ) / 3 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 + 9 FROM tab2
----
-61
-61
-61

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 21 ) <> ( - col1 + + col2 )
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9535
SELECT * FROM tab1 WHERE NULL IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9535
SELECT * FROM tab1 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9536
SELECT ALL CAST( NULL AS DECIMAL ) + - 0 * + COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9536
SELECT ALL CAST ( NULL AS REAL ) + - 0 * + COUNT ( * ) col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT ALL 74 DIV 74 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 74 / 74 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT ALL col2 + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT ALL col2 + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 51 * 88 FROM tab0
----
4488
4488
4488

query I rowsort
SELECT - ( col1 ) * col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ( + 74 ) * col1 FROM tab2
----
3774
4958
5698

query I rowsort
SELECT + col2 FROM tab2 WHERE - 90 NOT IN ( col2 )
----
23
40
58

query I rowsort
SELECT 81 * - 63 FROM tab0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT - col1 DIV 42 AS col2 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9544
SELECT - col1 / 42 AS col2 FROM tab1 WHERE NULL IS NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT ( 2 ) FROM tab0 AS cor0
----
2

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( col0 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT - ( + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 70 AS col0 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT - 3 * COUNT( * ) AS col2 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9550
SELECT - 3 * COUNT ( * ) AS col2 FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9551
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( - 31 )
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - col2 ) NOT IN ( - 31 )
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - col2 BETWEEN - col0 * col1 AND ( - col1 / - 79 )
----
97
1
99

query I rowsort
SELECT + + 49 + col2 AS col1 FROM tab1 cor0
----
108
117
145

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE - 46 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9556
SELECT DISTINCT COUNT( * ) + - CAST( + COUNT( * ) AS SIGNED ) + + 85 DIV - 20 AS col1 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT COUNT ( * ) + - CAST ( + COUNT ( * ) AS INTEGER ) + + 85 / - 20 AS col1 FROM tab0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col0 FROM tab2 WHERE + 32 + - 33 * 33 BETWEEN col1 AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 WHERE + 32 + - 33 * 33 BETWEEN col1 AND ( - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT - COUNT( + + col0 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9558
SELECT DISTINCT - COUNT ( + + col0 ) col1 FROM tab2
----
-3

query I rowsort
SELECT ALL col1 * + + col2 * col2 + col2 * 21 FROM tab1
----
131040
18644
218756

query I rowsort
SELECT DISTINCT 29 + col1 * - col0 FROM tab1
----
-396
-4248
-685

query I rowsort
SELECT ALL - ( 8 ) * + col0 + col2 FROM tab1 AS cor0
----
-312
-621
-660

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - - col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT ALL + col0 DIV - + ( 92 ) * col1 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + col0 / - + ( 92 ) * col1 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9564
SELECT - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) - MIN( DISTINCT + 22 ) * SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) - MIN ( DISTINCT + 22 ) * SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 + col2 AND ( NULL ) AND NOT ( col0 ) BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9566
SELECT DISTINCT 75 DIV + - col2 FROM tab2
----
-1
-3

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT 75 / + - col2 FROM tab2
----
-1
-3

query I rowsort
SELECT col1 * + + col2 + - 14 FROM tab1
----
1330
281
3182

query I rowsort
SELECT col2 + 75 * col1 + 62 FROM tab0
----
1647
236
6184

query I rowsort
SELECT 75 - 25 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT + 62 + + 31 AS col2 FROM tab2
----
93
93
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col0 ) < - col1 * col1
----

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL - col0 - + - col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + AVG ( ALL + 11 ) AS col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 5 - + col0 - + - col0 AS col0 FROM tab2 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + - col0 = NULL OR col2 * + 78 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col2 )
----

query II rowsort
SELECT 82 AS col1, + 9 FROM tab1 AS cor0
----
82
9
82
9
82
9

query II rowsort
SELECT - - col2 AS col1, 72 FROM tab2 AS cor0
----
23
72
40
72
58
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col0 - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - ( ( - - col0 ) ) FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 15 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9583
SELECT 90 * + col1 AS col2, 60 DIV - 45 - col0 FROM tab0
----
1890
-88
7290
-16
90
-98

skipif mysql # not compatible
query II rowsort label-9583
SELECT 90 * + col1 AS col2, 60 / - 45 - col0 FROM tab0
----
1890
-88
7290
-16
90
-98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9584
SELECT COUNT( * ) DIV 77 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9584
SELECT COUNT ( * ) / 77 col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT DISTINCT + COUNT( ALL - col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9585
SELECT DISTINCT + COUNT ( ALL - col0 ) col2 FROM tab1
----
3

query I rowsort
SELECT + 28 * + col2 AS col0 FROM tab2
----
1120
1624
644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2 AS cor0 WHERE NOT 64 / + 60 * + + 89 * 1 NOT BETWEEN col1 AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT ALL - MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= col2 / + ( - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT ALL - MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL <= col2 / + ( - + col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 21 ) <= col2 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col1 * - col0 + + + 41 col2 FROM tab0
----
-1
138
-21
1868
-81
1256

onlyif mysql # aggregate syntax: 
query I rowsort label-9592
SELECT 5 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-9592
SELECT 5 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9593
SELECT ALL - COUNT( * ) AS col1, - MIN( + col0 ) FROM tab0 cor0
----
-3
-15

skipif mysql # not compatible
query II rowsort label-9593
SELECT ALL - COUNT ( * ) AS col1, - MIN ( + col0 ) FROM tab0 cor0
----
-3
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col2 / + col0 )
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT NULL BETWEEN + 87 / - - col1 * 84 * col0 AND 89
----

query II rowsort
SELECT + 20, ( + + col2 ) FROM tab0 AS cor0
----
20
10
20
47
20
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 + - - 9 IS NOT NULL
----

query I rowsort
SELECT + - 38 AS col0 FROM tab2 AS cor0
----
-38
-38
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + - COUNT( ALL col0 ) * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 / + - ( + 0 )
----
0

skipif mysql # not compatible
query I rowsort label-9599
SELECT + - COUNT ( ALL col0 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 / + - ( + 0 )
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 * - 7 + - col2 / - ( ( - col1 ) ) + - col0 NOT BETWEEN ( NULL ) AND 63
----

query I rowsort
SELECT col1 * 53 * + 14 FROM tab2 cor0
----
37842
49714
57134

query I rowsort
SELECT + - 72 * 4 AS col0 FROM tab1 AS cor0
----
-288
-288
-288

query I rowsort
SELECT - col1 * - 68 * + col2 FROM tab2
----
209440
264248
79764

query II rowsort
SELECT DISTINCT + 4, + 17 AS col0 FROM tab0
----
4
17

onlyif mysql # aggregate syntax: 
query II rowsort label-9605
SELECT DISTINCT COUNT( * ), COUNT( * ) * + 35 AS col2 FROM tab1
----
3
105

skipif mysql # not compatible
query II rowsort label-9605
SELECT DISTINCT COUNT ( * ), COUNT ( * ) * + 35 AS col2 FROM tab1
----
3
105

query I rowsort
SELECT ALL - 46 + - col0 * + col0 + - col0 AS col2 FROM tab0
----
-286
-7702
-9552

query III rowsort
SELECT * FROM tab2 WHERE 32 - - 45 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT ( - SUM( DISTINCT col0 ) ) + - - COUNT( col1 ) AS col1 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT ( - SUM ( DISTINCT col0 ) ) + - - COUNT ( col1 ) AS col1 FROM tab2
----
-182

query I rowsort
SELECT 24 + + + col1 AS col1 FROM tab1 AS cor0
----
29
38
71

query I rowsort
SELECT 94 + - col1 * - 66 FROM tab2 AS cor0
----
3460
4516
5176

query I rowsort
SELECT DISTINCT - ( - - 83 ) + - col0 AS col0 FROM tab0 cor0
----
-170
-180
-98

query I rowsort
SELECT + - col0 * - - col2 * col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT ALL - col1 + + - col1 FROM tab2
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 10 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT COUNT( * ) - MAX( - col1 ) * + 97 col2 FROM tab1
----
488

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9615
SELECT COUNT ( * ) - MAX ( - col1 ) * + 97 col2 FROM tab1
----
488

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT - - MAX( 62 ) * 57 - - - ( SUM( - col1 ) ) FROM tab2 AS cor0
----
3729

skipif mysql # not compatible
query I rowsort label-9616
SELECT - - MAX ( 62 ) * 57 - - - ( SUM ( - col1 ) ) FROM tab2 AS cor0
----
3729

query II rowsort
SELECT DISTINCT - + col1 + + col2 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-28
46
-37
64
-9
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT CAST( NULL AS SIGNED ) + + + col2 col1 FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9618
SELECT CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 53 col1 FROM tab0 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT DISTINCT + + CAST( - 55 AS SIGNED ) FROM tab2 cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + + CAST ( - 55 AS INTEGER ) FROM tab2 cor0
----
-55

query I rowsort
SELECT DISTINCT 73 * + 74 * col0 AS col0 FROM tab1
----
275502
459170
491582

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT 59 * - COUNT( - + col1 ) * - - ( 67 ) AS col1 FROM tab1
----
-11859

skipif mysql # not compatible
query I rowsort label-9623
SELECT 59 * - COUNT ( - + col1 ) * - - ( 67 ) AS col1 FROM tab1
----
-11859

query I rowsort
SELECT ALL + 23 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 * + + 54 FROM tab0
----
2538
5346
540

query I rowsort
SELECT ( + - 47 ) * - - col1 + + col2 * - col2 AS col1 FROM tab1
----
-3716
-6833
-9874

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN col1 AND 13 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT + 77 * + CAST( - col2 AS SIGNED ), + col2 FROM tab0
----
-3619
47
-7623
99
-770
10

skipif mysql # not compatible
query II rowsort label-9628
SELECT + 77 * + CAST ( - col2 AS INTEGER ), + col2 FROM tab0
----
-3619
47
-7623
99
-770
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - ( + 97 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT + SUM( - + 44 ) * - - COUNT( * ) FROM tab2
----
-396

skipif mysql # not compatible
query I rowsort label-9631
SELECT + SUM ( - + 44 ) * - - COUNT ( * ) FROM tab2
----
-396

onlyif mysql # DIV for integer division: 
query II rowsort label-9632
SELECT ALL col0 DIV col1 * + 57 AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
171
96
57
68
969
59

skipif mysql # not compatible
query II rowsort label-9632
SELECT ALL col0 / col1 * + 57 AS col1, col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
171
96
57
68
969
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT ALL MAX( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL MAX ( DISTINCT - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col1 * - + col0 * + 8 + 21 AS col1 FROM tab2 AS cor0
----
-18747
-39403
-40179

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT ALL COUNT( - col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL COUNT ( - col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9636
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col0 + - - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + MIN( + col2 ) + - 71 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + MIN ( + col2 ) + - 71 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9638
SELECT col0 AS col0, CAST( + + 99 AS SIGNED ) col0 FROM tab0 WHERE NOT NULL <> + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9638
SELECT col0 AS col0, CAST ( + + 99 AS INTEGER ) col0 FROM tab0 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT + 11 * - - col2 * + 53 AS col1 FROM tab0
----
27401
57717
5830

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 IN ( col2, + col2 + col0, - ( col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 63 + - col0 FROM tab1 cor0
----
-114
-148
-154

query I rowsort
SELECT DISTINCT + + 72 * - 0 + + 56 + 11 AS col0 FROM tab1 cor0
----
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9644
SELECT - col2 + 93 DIV + - col2 FROM tab1 cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-9644
SELECT - col2 + 93 / + - col2 FROM tab1 cor0
----
-60
-69
-96

query I rowsort
SELECT - col2 * + 35 + - 35 FROM tab2 AS cor0
----
-1435
-2065
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT - + ( + - AVG ( ALL + col1 ) ) * - CAST( NULL AS SIGNED ) + + - 61 + + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT - + ( + - AVG ( ALL + col1 ) ) * - CAST ( NULL AS INTEGER ) + + - 61 + + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT MAX( DISTINCT + + col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9647
SELECT MAX ( DISTINCT + + col2 ) col2 FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE NULL > - 91
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT - CAST( NULL AS SIGNED ) / + 0 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT - CAST ( NULL AS INTEGER ) / + 0 * col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9650
SELECT * FROM tab2 WHERE ( ( + col0 ) - 93 + + - col2 * + CAST( NULL AS SIGNED ) * + ( + + 44 ) / - col2 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-9650
SELECT * FROM tab2 WHERE ( ( + col0 ) - 93 + + - col2 * + CAST ( NULL AS INTEGER ) * + ( + + 44 ) / - col2 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT + col2 DIV + - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9651
SELECT + col2 / + - col0 FROM tab0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT ALL CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - - col0 * + - 75 col2 FROM tab2 AS cor0
----
-3427
-4760
-5567

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 23 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + + 55 * - 50 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-2758
-2758
-2758

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT DISTINCT - MIN( + + 92 ) AS col1, + 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
24

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT - MIN ( + + 92 ) AS col1, + 24 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL + - ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9657
SELECT ALL + - ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 + - 1 FROM tab2
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 75 * - 49 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 75 * - 49 FROM tab2
----
NULL

query II rowsort
SELECT ALL + ( col0 ) AS col2, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT - + col0 AS col1, + 32 FROM tab2 AS cor0
----
-46
32
-64
32
-75
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 93 + col1 IN ( - col1, 39, - col0 * + 14 )
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * + - col0 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT ALL 22 * + 43 AS col0 FROM tab2
----
946
946
946

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT MAX( ( - - 53 ) ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-9666
SELECT MAX ( ( - - 53 ) ) FROM tab2
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( * ) * - - 44 AS col1 FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( * ) * - - 44 AS col1 FROM tab1
----
132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT ALL + 52 * COUNT( 47 ) DIV - 86 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL + 52 * COUNT ( 47 ) / - 86 FROM tab2
----
-1

query I rowsort
SELECT - 36 * col1 FROM tab0
----
-2916
-36
-756

query I rowsort
SELECT + col2 * - - col2 - + + 41 AS col1 FROM tab0 WHERE NOT + - col0 - - ( + col1 ) BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT + col0 * + col0 * + 35 FROM tab1
----
252875
289835
91035

query I rowsort
SELECT DISTINCT col2 * - col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT - + col1 + - + 1 * - col2 AS col2 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9674
SELECT ( + 65 ) + + 55, SUM( ALL - 12 ) * COUNT( * ) AS col2 FROM tab2
----
120
-108

skipif mysql # not compatible
query II rowsort label-9674
SELECT ( + 65 ) + + 55, SUM ( ALL - 12 ) * COUNT ( * ) AS col2 FROM tab2
----
120
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT ALL + 56 * + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT ALL + 56 * + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT - col0 + - 40 DIV - col0 AS col2 FROM tab0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-9676
SELECT - col0 + - 40 / - col0 AS col2 FROM tab0
----
-13
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT ALL COUNT( col2 ) * + 54 FROM tab1 cor0
----
162

skipif mysql # not compatible
query I rowsort label-9677
SELECT ALL COUNT ( col2 ) * + 54 FROM tab1 cor0
----
162

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT + ( CAST( - - col2 AS SIGNED ) ) * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

skipif mysql # not compatible
query I rowsort label-9678
SELECT + ( CAST ( - - col2 AS INTEGER ) ) * + col0 + - col2 AS col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT - SUM( ALL + col0 ) - + MAX( + 78 ) AS col1 FROM tab2 AS cor0
----
-263

skipif mysql # not compatible
query I rowsort label-9679
SELECT - SUM ( ALL + col0 ) - + MAX ( + 78 ) AS col1 FROM tab2 AS cor0
----
-263

query I rowsort
SELECT - 73 - + ( + col0 ) * + - col2 FROM tab1
----
4823
4942
6115

query I rowsort
SELECT - col0 + - - col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9682
SELECT - col1 + col2 DIV + col1 FROM tab1
----
-46
-8
6

skipif mysql # not compatible
query I rowsort label-9682
SELECT - col1 + col2 / + col1 FROM tab1
----
-46
-8
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT DISTINCT COUNT( ALL col0 ) + - COUNT( * ) * - SUM( ALL - col0 ) FROM tab0
----
-594

skipif mysql # not compatible
query I rowsort label-9683
SELECT DISTINCT COUNT ( ALL col0 ) + - COUNT ( * ) * - SUM ( ALL - col0 ) FROM tab0
----
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 >= ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( - ( + 0 ) - - + 32 ) NOT IN ( - col0 * + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT DISTINCT 13 + - 0 DIV - 47 * ( - 79 ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT 13 + - 0 / - 47 * ( - 79 ) FROM tab1
----
13

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col2 * col1 - ( - + col2 ) * + - col2 FROM tab0 AS cor0
----
-18370
-19404
-59314

query II rowsort
SELECT + ( - 68 ) * - + col2 - + col0 col1, col2 AS col0 FROM tab1 AS cor0
----
3927
59
4533
68
6477
96

query I rowsort
SELECT DISTINCT - - 16 * 86 AS col0 FROM tab0 AS cor0
----
1376

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 0 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 11 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT col1 * + 74 AS col1 FROM tab0
----
1554
5994
74

query I rowsort
SELECT + - 17 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT 54 * - - col1 * - 91 AS col1 FROM tab0
----
-103194
-398034
-4914

query II rowsort
SELECT ALL + col0, - col2 AS col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT - col0 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query II rowsort label-9698
SELECT - - COUNT( * ), ( 12 ) AS col0 FROM tab1 cor0
----
3
12

skipif mysql # not compatible
query II rowsort label-9698
SELECT - - COUNT ( * ), ( 12 ) AS col0 FROM tab1 cor0
----
3
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9699
SELECT DISTINCT CAST( - 91 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9699
SELECT DISTINCT CAST ( - 91 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9700
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 > col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9700
SELECT * FROM tab2 AS cor0 WHERE NOT + 7 > col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT CAST( - MAX( ALL - - col1 ) AS SIGNED ) col1 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9701
SELECT CAST ( - MAX ( ALL - - col1 ) AS INTEGER ) col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT ALL - COUNT( * ) * - 99 AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9702
SELECT ALL - COUNT ( * ) * - 99 AS col0 FROM tab1
----
297

query I rowsort
SELECT DISTINCT + col2 * - 44 AS col2 FROM tab1
----
-2596
-2992
-4224

query II rowsort
SELECT DISTINCT + col0 AS col2, - col0 FROM tab1 WHERE + 4 * 38 + + col1 IS NOT NULL
----
51
-51
85
-85
91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9705
SELECT - col0 * + - col1 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-9705
SELECT - col0 * + - col1 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
-36125
-36414
-389207

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 NOT IN ( col2 + - 47 + - + col2 )
----
91
47
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 77 <> + - 53
----

query I rowsort
SELECT ALL col1 * - + 66 FROM tab1
----
-3102
-330
-924

query II rowsort
SELECT DISTINCT + + col0 AS col0, 40 FROM tab2 AS cor0
----
46
40
64
40
75
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT SUM( 3 ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9710
SELECT SUM ( 3 ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43, col2 col2 FROM tab1 AS cor0
----
43
59
43
68
43
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 < + 30
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-9714
SELECT + SUM( ALL - col0 ) col2, 92 AS col2 FROM tab2
----
-185
92

skipif mysql # not compatible
query II rowsort label-9714
SELECT + SUM ( ALL - col0 ) col2, 92 AS col2 FROM tab2
----
-185
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT 35 + - COUNT( - 96 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9715
SELECT 35 + - COUNT ( - 96 ) FROM tab0
----
32

query II rowsort
SELECT col0 AS col1, + col0 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( - col0 * - + col1 - + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9718
SELECT + ( - + 60 ) + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9718
SELECT + ( - + 60 ) + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT col1 + + - col0 + - 73 AS col2 FROM tab0 AS cor0
----
-139
-169
-7

query I rowsort
SELECT ALL - + 26 + + - 77 FROM tab2 AS cor0
----
-103
-103
-103

onlyif mysql # DIV for integer division: 
query II rowsort label-9721
SELECT ALL - col0 DIV - col0, - col0 AS col0 FROM tab1 AS cor0
----
1
-51
1
-85
1
-91

skipif mysql # not compatible
query II rowsort label-9721
SELECT ALL - col0 / - col0, - col0 AS col0 FROM tab1 AS cor0
----
1
-51
1
-85
1
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT DISTINCT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT - MIN( DISTINCT - 45 ) AS col1 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9723
SELECT - MIN ( DISTINCT - 45 ) AS col1 FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-9724
SELECT + COUNT( * ) AS col2, 76 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-9724
SELECT + COUNT ( * ) AS col2, 76 FROM tab1
----
3
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 49 col1 FROM tab0
----
-28
-48
32

query I rowsort
SELECT - col2 * - col2 - - ( + 62 ) AS col0 FROM tab1
----
3543
4686
9278

query III rowsort
SELECT * FROM tab2 WHERE - 59 * 82 + 70 IS NULL
----

query I rowsort
SELECT 63 - 20 FROM tab0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9729
SELECT ALL COUNT( * ) + COUNT( * ) + - 46 AS col2 FROM tab2 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9729
SELECT ALL COUNT ( * ) + COUNT ( * ) + - 46 AS col2 FROM tab2 cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT + MAX( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9730
SELECT + MAX ( ALL + + col1 ) AS col1 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT - - MAX( DISTINCT + 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - - MAX ( DISTINCT + 73 ) FROM tab2 AS cor0
----
73

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9733
SELECT ALL - - CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9733
SELECT ALL - - CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT ALL - SUM( DISTINCT 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL - SUM ( DISTINCT 0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN + col1 * + - col0 + - col0 - + 99 * + + ( + + col1 ) - + col1 AND ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9736
SELECT + + CAST( NULL AS SIGNED ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9736
SELECT + + CAST ( NULL AS INTEGER ) / - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + + - col2 / + 24 * + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9738
SELECT ALL + - col2 * 82 DIV - ( - 98 ) AS col1 FROM tab0 AS cor0
----
-39
-8
-82

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL + - col2 * 82 / - ( - 98 ) AS col1 FROM tab0 AS cor0
----
-39
-8
-82

query I rowsort
SELECT ALL + 25 * - + col0 FROM tab2
----
-1150
-1600
-1875

query II rowsort
SELECT col0 AS col2, + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 / + col2 - col1
----

query I rowsort
SELECT col1 + + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col0, - col1 * 66 * + col1 AS col1 FROM tab0
----
15
-433026
87
-29106
97
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT - MAX( + 84 ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-9743
SELECT - MAX ( + 84 ) FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT DISTINCT + 74 + COUNT( * ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9744
SELECT DISTINCT + 74 + COUNT ( * ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL col1 + - - col2 AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9746
SELECT ALL - CAST( NULL AS DECIMAL ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL - CAST ( NULL AS REAL ) * col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 53 + + 41 * - - 99 FROM tab0 AS cor0
----
4127
4199
4209

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT ALL + COUNT( + 9 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9748
SELECT ALL + COUNT ( + 9 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + - col0 NOT IN ( + col0 )
----

query II rowsort
SELECT DISTINCT - col2 col0, - col1 AS col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT 8 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT DISTINCT col1 + - - 96 FROM tab2 cor0
----
147
163
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col2 ) * col2 col1 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT ( col2 ) - + 56 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT ALL - SUM( ( - - col1 ) ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL - SUM ( ( - - col1 ) ) FROM tab0 cor0
----
-103

query I rowsort
SELECT ALL - 78 - col2 FROM tab0 AS cor0
----
-125
-177
-88

query I rowsort
SELECT ALL col1 + - - 65 + + - col1 / + + col1 / col2 AS col1 FROM tab2 AS cor0 WHERE - col1 * + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9758
SELECT col1 - - col2 + + + col0 DIV - - 90 FROM tab2 AS cor0
----
117
125
74

skipif mysql # not compatible
query I rowsort label-9758
SELECT col1 - - col2 + + + col0 / - - 90 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT - + col0 * + - col0 * col0 + + - 85 FROM tab0 AS cor0
----
3290
658418
912588

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT - + col2 DIV + - 75 + + col2 - - + 19 + - 24 FROM tab1 AS cor0
----
54
63
92

skipif mysql # not compatible
query I rowsort label-9760
SELECT - + col2 / + - 75 + + col2 - - + 19 + - 24 FROM tab1 AS cor0
----
54
63
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9761
SELECT DISTINCT col1 - + col1 * - col1 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT col1 - + col1 * - col1 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 col0 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - + col0 <= + + 4 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-9763
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - + col0 <= + + 4 + + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + 74 * + COUNT( * ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + 74 * + COUNT ( * ) FROM tab2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT - 83 * + 84 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT - 83 * + 84 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - + 42 * 5 * + + col1 * - col1 AS col1 FROM tab1 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 33 * - 52 * col2 AS col0 FROM tab2 WHERE NULL <> + - col1 + 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1, + col1 * + col1 col0 FROM tab0
----
162
6561
2
1
42
441

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT + ( - + SUM( DISTINCT 9 ) ) * 3 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + ( - + SUM ( DISTINCT 9 ) ) * 3 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-81

query I rowsort
SELECT + col0 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-9771
SELECT ALL 99 DIV - col1 + ( - 3 ) * col0 FROM tab1 AS cor0
----
-160
-274
-275

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL 99 / - col1 + ( - 3 ) * col0 FROM tab1 AS cor0
----
-160
-274
-275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9772
SELECT col0 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9772
SELECT col0 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - col0 AS col2, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9774
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( - - ( 95 ) AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9774
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( - - ( 95 ) AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9775
SELECT DISTINCT - 4 AS col0, + 41 * COUNT( * ) FROM tab1 AS cor0
----
-4
123

skipif mysql # not compatible
query II rowsort label-9775
SELECT DISTINCT - 4 AS col0, + 41 * COUNT ( * ) FROM tab1 AS cor0
----
-4
123

query I rowsort
SELECT ALL 74 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9777
SELECT ALL - MAX( col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL - MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT - CAST( + 35 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-9778
SELECT - CAST ( + 35 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9779
SELECT ALL + + 70 AS col0, + COUNT( + ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-9779
SELECT ALL + + 70 AS col0, + COUNT ( + ( - + col2 ) ) AS col0 FROM tab0 AS cor0
----
70
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + - 94 + - col1 * + col1 * col0 * - 44 BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0, + 34 FROM tab2 AS cor0
----
46
34
64
34
75
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT SUM( - - 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9782
SELECT SUM ( - - 17 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT - COUNT( - - 50 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT - COUNT ( - - 50 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + 98 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 42 / col2 ) < NULL
----

query I rowsort
SELECT ALL + ( + + col0 ) + col0 AS col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9787
SELECT DISTINCT - COUNT( * ) + - - ( - - MAX( - col2 ) ) * - 71 + COUNT( * ) DIV + ( - + 84 ) FROM tab0
----
707

skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - COUNT ( * ) + - - ( - - MAX ( - col2 ) ) * - 71 + COUNT ( * ) / + ( - + 84 ) FROM tab0
----
707

query I rowsort
SELECT - ( + + 50 ) * - + col0 FROM tab0 AS cor0
----
4350
4850
750

query I rowsort
SELECT ALL - col1 * - col1 FROM tab0 AS cor0 WHERE NOT + 81 - - col2 * col2 > + 89
----

query I rowsort
SELECT + 64 + - col0 AS col0 FROM tab1
----
-21
-27
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 50 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
50

query I rowsort
SELECT + ( 76 ) + - col0 AS col2 FROM tab2
----
1
12
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9793
SELECT * FROM tab1 WHERE + CAST( + + 33 AS SIGNED ) IN ( + + 44, col0, - - 11, - + col1 * col2 * 80, + + col1, 73 )
----

skipif mysql # not compatible
query III rowsort label-9793
SELECT * FROM tab1 WHERE + CAST ( + + 33 AS INTEGER ) IN ( + + 44, col0, - - 11, - + col1 * col2 * 80, + + col1, 73 )
----

query I rowsort
SELECT DISTINCT col2 * - col1 * - + col1 FROM tab0 AS cor0 WHERE - col1 * col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 65 + - + col2 + + 1 col1 FROM tab0 AS cor0
----
-33
19
56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 27 AND + col0 * - 52 + + 93
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9799
SELECT ALL + 1 - - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL + 1 - - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - 67 ) * - - 86 - - col1 AS col1 FROM tab1 AS cor0
----
5767
5776
5809

query II rowsort
SELECT + + col2 AS col2, 6 AS col0 FROM tab2 cor0
----
23
6
40
6
58
6

query I rowsort
SELECT DISTINCT 63 * col2 AS col0 FROM tab1
----
3717
4284
6048

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT col1 - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT col1 - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 69 FROM tab2 WHERE col0 <> - col1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT ALL + COUNT( * ) * + - 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + COUNT ( * ) * + - 25 FROM tab0
----
-75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9806
SELECT - CAST( col1 AS SIGNED ) DIV + col1 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9806
SELECT - CAST ( col1 AS INTEGER ) / + col1 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9807
SELECT + MAX( - + ( - col2 ) ) DIV ( 31 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9807
SELECT + MAX ( - + ( - col2 ) ) / ( 31 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9808
SELECT DISTINCT + ( col2 ) DIV 29 + ( - 2 ) * + col1 * - 63 AS col1, + col1 + + - col1 FROM tab2
----
6426
0
8444
0
9703
0

skipif mysql # not compatible
query II rowsort label-9808
SELECT DISTINCT + ( col2 ) / 29 + ( - 2 ) * + col1 * - 63 AS col1, + col1 + + - col1 FROM tab2
----
6426
0
8444
0
9703
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT DISTINCT + - COUNT( + + 35 ) * SUM( - col2 ) + - 90 AS col0 FROM tab2 WHERE NOT - - col0 * col1 / + col1 * 87 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT + - COUNT ( + + 35 ) * SUM ( - col2 ) + - 90 AS col0 FROM tab2 WHERE NOT - - col0 * col1 / + col1 * 87 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 * - + col1 * + col0 FROM tab0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT - 62 DIV + - ( col2 ) AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9811
SELECT - 62 / + - ( col2 ) AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL + col1 * + col0 * - col0 + - col1 FROM tab2 AS cor0
----
-107967
-315469
-376942

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT - + COUNT( * ) * + 87 FROM tab1 AS cor0 WHERE NOT col1 * - 5 * + col0 + + col0 IS NULL
----
-261

skipif mysql # not compatible
query I rowsort label-9813
SELECT - + COUNT ( * ) * + 87 FROM tab1 AS cor0 WHERE NOT col1 * - 5 * + col0 + + col0 IS NULL
----
-261

onlyif mysql # DIV for integer division: 
query II rowsort label-9814
SELECT ALL col1 col1, col1 DIV - col1 + col1 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
14
-38
47
-45
5
-81

skipif mysql # not compatible
query II rowsort label-9814
SELECT ALL col1 col1, col1 / - col1 + col1 + - ( + col0 ) AS col2 FROM tab1 AS cor0
----
14
-38
47
-45
5
-81

query I rowsort
SELECT DISTINCT + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9817
SELECT DISTINCT + ( + 34 ) * CAST( NULL AS SIGNED ) * + 35 * + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + ( + 34 ) * CAST ( NULL AS INTEGER ) * + 35 * + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + + 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 41 NOT BETWEEN col0 AND + 73
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * + 78 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT MIN( DISTINCT - 14 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9822
SELECT MIN ( DISTINCT - 14 ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT DISTINCT + col1 * + + col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9824
SELECT ALL + col0 AS col1, col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-9824
SELECT ALL + col0 AS col1, col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query II rowsort
SELECT ALL - col1, + col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT - MAX( ALL + col0 ) * - 46 FROM tab2
----
3450

skipif mysql # not compatible
query I rowsort label-9826
SELECT - MAX ( ALL + col0 ) * - 46 FROM tab2
----
3450

query I rowsort
SELECT 13 * - + 60 AS col0 FROM tab2
----
-780
-780
-780

query I rowsort
SELECT DISTINCT + col2 + + ( - 95 ) AS col0 FROM tab1
----
-27
-36
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT - COUNT( * ) + + + 73 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9829
SELECT - COUNT ( * ) + + + 73 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 + + col2 - - + col0 + - 10 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 + + col2 - - + col0 + - 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 84 - - - col2 FROM tab1 AS cor0
----
-12
16
25

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 22 * + + 45 * col1 * + col1 FROM tab2 AS cor0
----
-2574990
-4444110
-5869710

query I rowsort
SELECT 2 - - + ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-21
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL + COUNT( * ) - 58 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + COUNT ( * ) - 58 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT + ( - col2 ) * - - col1 + 22 - - col2 FROM tab1 AS cor0
----
-1226
-214
-3106

query I rowsort
SELECT ALL - + col1 - col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT AVG ( - + col2 ) * + 86 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < 96
----
NULL

query I rowsort
SELECT - 95 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
40375
406315
67830

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9840
SELECT DISTINCT col0, col2 FROM tab1 cor0 WHERE + CAST( NULL AS DECIMAL ) - - + 5 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9840
SELECT DISTINCT col0, col2 FROM tab1 cor0 WHERE + CAST ( NULL AS REAL ) - - + 5 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT 93 * COUNT( * ) AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-9841
SELECT 93 * COUNT ( * ) AS col2 FROM tab2
----
279

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL 60 * - + COUNT( * ) AS col0 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL 60 * - + COUNT ( * ) AS col0 FROM tab2
----
-180

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9843
SELECT DISTINCT * FROM tab1 WHERE NOT - + 40 * + col0 / + col0 + - CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-9843
SELECT DISTINCT * FROM tab1 WHERE NOT - + 40 * + col0 / + col0 + - CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * + col1 AS col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <= - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + ( col0 ) FROM tab0 WHERE NOT col0 IS NULL
----
174
194
30

query I rowsort
SELECT DISTINCT + col1 * - col2 * col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT ALL + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9848
SELECT ALL + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - 54 * + 29 AS col1 FROM tab0 AS cor0
----
-1566
-1566
-1566

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL + MAX( DISTINCT + ( - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL + MAX ( DISTINCT + ( - col1 ) ) FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL - 18 * - 51 * - 38 FROM tab1
----
-34884
-34884
-34884

onlyif mysql # aggregate syntax: 
query I rowsort label-9852
SELECT DISTINCT - COUNT( * ) * - + 64 FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT - COUNT ( * ) * - + 64 FROM tab0
----
192

query I rowsort
SELECT 80 * 0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col1 * + col1 + - + ( - 1 ) AS col1 FROM tab1
----
197
2210
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col0 + + col1 col0 FROM tab2
----
23
5
40
13
58
-8

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + 30 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 / + - 93 - col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 21 col2 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT + MIN( ALL ( - col0 ) ) * + + COUNT( * ) * + 69 + + 6 AS col1 FROM tab2 AS cor0
----
-15519

skipif mysql # not compatible
query I rowsort label-9859
SELECT + MIN ( ALL ( - col0 ) ) * + + COUNT ( * ) * + 69 + + 6 AS col1 FROM tab2 AS cor0
----
-15519

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 69 + + col2, + col1 )
----

query II rowsort
SELECT - col1 * - + col2 AS col2, + ( col0 ) AS col1 FROM tab0
----
210
87
3807
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT ALL col1 DIV + + col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL col1 / + + col1 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT + 32 * - - 5 + - - COUNT( * ) AS col1 FROM tab2
----
163

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + 32 * - - 5 + - - COUNT ( * ) AS col1 FROM tab2
----
163

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT DISTINCT + 20 * - COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT + 20 * - COUNT ( * ) FROM tab1
----
-60

query I rowsort
SELECT ALL col1 * 46 FROM tab0
----
3726
46
966

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 * col1 col0 FROM tab0
----
1197
4617
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT DISTINCT - CAST( - - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col1 FROM tab1 AS cor0 WHERE NOT ( NULL >= - 15 )
----

query I rowsort
SELECT + + col2 * - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT DISTINCT - AVG ( - + col2 ) FROM tab1 AS cor0 WHERE NOT ( - + col0 * col2 + + 96 - + col0 * - col1 + 52 > + CAST( NULL AS SIGNED ) * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9871
SELECT DISTINCT - AVG ( - + col2 ) FROM tab1 AS cor0 WHERE NOT ( - + col0 * col2 + + 96 - + col0 * - col1 + 52 > + CAST ( NULL AS INTEGER ) * col1 )
----
NULL

query I rowsort
SELECT - col1 + ( - 94 ) AS col1 FROM tab1 AS cor0
----
-108
-141
-99

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 8 * - 18 FROM tab2
----
144
144
144

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + ( - + col2 ) FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT DISTINCT + COUNT( * ) * + 77 AS col1 FROM tab1 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9878
SELECT DISTINCT + COUNT ( * ) * + 77 AS col1 FROM tab1 AS cor0
----
231

query I rowsort
SELECT ALL - - col0 + 75 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 55 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT - COUNT( * ) * + 66 AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT - COUNT ( * ) * + 66 AS col0 FROM tab2 AS cor0
----
-198

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT ALL 51 DIV 68 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9883
SELECT ALL 51 / 68 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9884
SELECT + + 29 DIV 32 + + col1 * + col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-9884
SELECT + + 29 / 32 + + col1 * + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-9885
SELECT - col0 DIV - col2 AS col2 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9885
SELECT - col0 / - col2 AS col2 FROM tab0 cor0
----
0
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + SUM( - - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-9886
SELECT + SUM ( - - col1 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
66

query I rowsort
SELECT + col0 * - - col0 FROM tab2 cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 40 col0 FROM tab2 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 85 * col0 AS col2 FROM tab0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + MAX( col2 ) + + 40 AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-9890
SELECT + MAX ( col2 ) + + 40 AS col0 FROM tab2
----
98

query I rowsort
SELECT DISTINCT col0 + - col2 + + col2 AS col1 FROM tab1
----
51
85
91

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT + + COUNT( * ) + + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9893
SELECT + + COUNT ( * ) + + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9894
SELECT ALL + CAST( col1 AS SIGNED ) * 3 + + + col2 FROM tab1 AS cor0
----
138
209
74

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL + CAST ( col1 AS INTEGER ) * 3 + + + col2 FROM tab1 AS cor0
----
138
209
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9895
SELECT DISTINCT + - col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-9895
SELECT DISTINCT + - col2 / - col1 AS col0 FROM tab0 AS cor0
----
0
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 46 * - - col2 * - col1 >= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - 17 FROM tab2 cor0 WHERE NOT ( col1 ) IS NULL
----
-17
-17
-17

query II rowsort
SELECT ALL 8 col1, - col1 FROM tab2
----
8
-51
8
-67
8
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT ALL + SUM( DISTINCT + 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL + SUM ( DISTINCT + 40 ) FROM tab1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, - col0 col1 FROM tab0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT DISTINCT + 39 AS col2, + col0 FROM tab0
----
39
15
39
87
39
97

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab2 WHERE NOT NULL > - col2
----

query II rowsort
SELECT 10 AS col2, col2 AS col1 FROM tab2
----
10
23
10
40
10
58

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab1 cor0 WHERE NOT + 55 + + + col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT DISTINCT + MIN( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9906
SELECT DISTINCT + MIN ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
10

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 54 AS col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 + + col1 - col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - - col0 + - col2 - col2 + - - col1 * - + col2 + + col0 FROM tab0 AS cor0
----
-103
-3871
-56

query I rowsort
SELECT + 70 + col1 AS col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL col0 + + 30 AS col0 FROM tab1 cor0
----
115
121
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 11 - + + col2 ) <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9914
SELECT + + ( COUNT( * ) ) + 44 AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9914
SELECT + + ( COUNT ( * ) ) + 44 AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT - - 73 AS col0 FROM tab1 AS cor0 WHERE 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9916
SELECT DISTINCT - - CAST( col0 AS SIGNED ) AS col2, - 68 FROM tab2 AS cor0
----
46
-68
64
-68
75
-68

skipif mysql # not compatible
query II rowsort label-9916
SELECT DISTINCT - - CAST ( col0 AS INTEGER ) AS col2, - 68 FROM tab2 AS cor0
----
46
-68
64
-68
75
-68

query I rowsort
SELECT 24 FROM tab0 WHERE + 80 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col0 * + col1 col0 FROM tab2
----
16422
34496
35175

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT ALL + SUM( col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9919
SELECT ALL + SUM ( col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT - ( 6 ) FROM tab1
----
-6
-6
-6

query I rowsort
SELECT + 92 * + 0 * - col2 * + col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab1 WHERE NULL IS NULL
----
-4
-4
-4

query I rowsort
SELECT - col1 - - - col0 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT 74 AS col0 FROM tab0 AS cor0 WHERE ( col0 + + col1 + - + col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9925
SELECT ALL + 47 - - CAST( + 44 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-9925
SELECT ALL + 47 - - CAST ( + 44 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
91
91
91

query I rowsort
SELECT + col0 * + col2 + + col0 + - col1 FROM tab2 AS cor0
----
1053
2547
4358

query I rowsort
SELECT DISTINCT col1 - - + 39 AS col2 FROM tab0 AS cor0
----
120
40
60

query II rowsort
SELECT - col1 col2, - col1 AS col1 FROM tab2
----
-51
-51
-67
-67
-77
-77

query I rowsort
SELECT ALL + - 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT + MAX( - + col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9930
SELECT + MAX ( - + col0 ) AS col1 FROM tab2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT + col0 * - + 6 FROM tab0
----
-522
-582
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL COUNT( * ) * - 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-216

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL COUNT ( * ) * - 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-9934
SELECT ALL ( + 15 ) DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL ( + 15 ) / - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 <= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND + + 35 * + col1 * - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9937
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT - col2 IS NULL
----
-3

query I rowsort
SELECT - 16 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + ( 58 ) ) col2 FROM tab2 cor0
----
-58

query II rowsort
SELECT + + 1 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
1
51
1
67
1
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT + - 94 * - - SUM( + col0 ) FROM tab2 cor0
----
-17390

skipif mysql # not compatible
query I rowsort label-9941
SELECT + - 94 * - - SUM ( + col0 ) FROM tab2 cor0
----
-17390

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL MAX( DISTINCT - 33 ) AS col1 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL MAX ( DISTINCT - 33 ) AS col1 FROM tab1
----
-33

query I rowsort
SELECT ALL 57 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - col2 - 87 * - 60 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * - col1 - col2 AS col1 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN NULL AND - col1
----
-2369
-4968
-5083

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, col0 * col2, + 71 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT DISTINCT - 85 col1, COUNT( * ) * - + 62 FROM tab1 cor0 WHERE NOT + 35 IS NOT NULL
----
-85
0

skipif mysql # not compatible
query II rowsort label-9947
SELECT DISTINCT - 85 col1, COUNT ( * ) * - + 62 FROM tab1 cor0 WHERE NOT + 35 IS NOT NULL
----
-85
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9948
SELECT ALL - COUNT( * ) + - 35 + - + ( + ( + 4 ) ) AS col0 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9948
SELECT ALL - COUNT ( * ) + - 35 + - + ( + ( + 4 ) ) AS col0 FROM tab2
----
-42

query I rowsort
SELECT DISTINCT col2 * - ( - col2 ) + ( + - 9 ) AS col2 FROM tab2
----
1591
3355
520

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9950
SELECT + CAST( NULL AS SIGNED ), SUM( + 56 ) col1 FROM tab1 AS cor0
----
NULL
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9950
SELECT + CAST ( NULL AS INTEGER ), SUM ( + 56 ) col1 FROM tab1 AS cor0
----
NULL
168

onlyif mysql # DIV for integer division: 
query I rowsort label-9951
SELECT DISTINCT + col1 + - col2 DIV + - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT + col1 + - col2 / + - col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9952
SELECT + COUNT( col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9952
SELECT + COUNT ( col2 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9953
SELECT - CAST( NULL AS SIGNED ) - - - 65 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9953
SELECT - CAST ( NULL AS INTEGER ) - - - 65 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT DISTINCT SUM( ALL 38 ) FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT SUM ( ALL 38 ) FROM tab1 AS cor0
----
114

query I rowsort
SELECT + - 25 - - + col0 * + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
36100
36389
389182

query I rowsort
SELECT DISTINCT + col1 - + 53 FROM tab1 AS cor0
----
-39
-48
-6

query I rowsort
SELECT - + ( + 57 ) + ( + 68 ) AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9958
SELECT - col1 + + CAST( + col0 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-9958
SELECT - col1 + + CAST ( + col0 AS INTEGER ) FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 + + - 51 IS NULL OR NOT - + col2 = NULL
----

query II rowsort
SELECT ALL - ( + - col2 ) AS col2, + 53 * + 44 FROM tab2
----
23
2332
40
2332
58
2332

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9961
SELECT ALL - ( COUNT( * ) ) + COUNT( ALL + col2 ) + COUNT( * ) DIV MIN( DISTINCT - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL - ( COUNT ( * ) ) + COUNT ( ALL + col2 ) + COUNT ( * ) / MIN ( DISTINCT - col2 ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + 87 + + col0 * + + col1 + - + col1 col0 FROM tab1
----
4352
542
822

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT DISTINCT COUNT( * ) * + MAX( ( - col2 ) ) + + SUM( DISTINCT + - 73 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT COUNT ( * ) * + MAX ( ( - col2 ) ) + + SUM ( DISTINCT + - 73 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT 25 + - col1 * + - col0 + - col1 FROM tab1
----
4255
445
725

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9965
SELECT ALL + col1 AS col1, col2 + + + col1 FROM tab1 cor0 WHERE NOT + CAST( NULL AS SIGNED ) = col2
----

skipif mysql # not compatible
query II rowsort label-9965
SELECT ALL + col1 AS col1, col2 + + + col1 FROM tab1 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = col2
----

query I rowsort
SELECT ALL col2 / 80 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9967
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 44 FROM tab1 AS cor0 WHERE - col1 + + col2 * - + 84 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 44 FROM tab1 AS cor0 WHERE - col1 + + col2 * - + 84 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT ALL + - 35 DIV - COUNT( * ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + - 35 / - COUNT ( * ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT + col2 * + + ( + col1 ) + col0 AS col2 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL MIN( - + ( - col1 ) ) * + COUNT( * ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL MIN ( - + ( - col1 ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT + COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9971
SELECT + COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9972
SELECT DISTINCT + ( - + COUNT( 74 ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT + ( - + COUNT ( 74 ) ) AS col2 FROM tab1
----
-3

query II rowsort
SELECT + 48, col0 AS col1 FROM tab1
----
48
51
48
85
48
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT DISTINCT + ( + 69 ) * - COUNT( * ) AS col0 FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-9974
SELECT DISTINCT + ( + 69 ) * - COUNT ( * ) AS col0 FROM tab2
----
-207

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9975
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) - + ( COUNT( 83 ) ) col2 FROM tab1
----
NULL
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9975
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) - + ( COUNT ( 83 ) ) col2 FROM tab1
----
NULL
-6

query I rowsort
SELECT ALL col1 * + + col0 + col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT + col0 * - + col0 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + - col2
----

query I rowsort
SELECT ALL + col1 + - 51 FROM tab0 AS cor0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9980
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( ( - - col2 ), 34 * - CAST( NULL AS SIGNED ) * 31 )
----

skipif mysql # not compatible
query III rowsort label-9980
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 NOT IN ( ( - - col2 ), 34 * - CAST ( NULL AS INTEGER ) * 31 )
----

query II rowsort
SELECT + col2 * + col1 AS col1, 74 - - col0 FROM tab2
----
1173
120
3080
138
3886
149

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 1 * + 72 + - 61 - + + col2 + - col1 AS col2 FROM tab2
----
-106
-114
-63

query I rowsort
SELECT + col2 + - 46 * - + col0 * + + col1 * + col0 FROM tab2
----
14508072
17336308
4964159

query I rowsort
SELECT + 5 * col0 + - col2 AS col1 FROM tab0 WHERE - + 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9986
SELECT DISTINCT - col2 * + - col0 + + - 39 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - col2 * + - col0 + + - 39 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 * + + col2 IS NULL
----
-59
-68
-96

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE 73 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9989
SELECT DISTINCT CAST( 38 AS SIGNED ) * - 73 + + col2 + 78 - - col2 FROM tab2 AS cor0
----
-2580
-2616
-2650

skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT CAST ( 38 AS INTEGER ) * - 73 + + col2 + 78 - - col2 FROM tab2 AS cor0
----
-2580
-2616
-2650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9990
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) + - CAST( NULL AS SIGNED ) * 92 * 13 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) + - CAST ( NULL AS INTEGER ) * 92 * 13 AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT DISTINCT MAX( DISTINCT + - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9991
SELECT DISTINCT MAX ( DISTINCT + - col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT ALL - COUNT( * ) + + + 53 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-9992
SELECT ALL - COUNT ( * ) + + + 53 FROM tab1
----
50

query I rowsort
SELECT 91 * - col2 + + 98 AS col0 FROM tab1
----
-5271
-6090
-8638

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9994
SELECT + col1 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) / - 98 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9994
SELECT + col1 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / - 98 IS NULL
----
51
67
77

query I rowsort
SELECT 80 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + 50 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 / col2 + col0 FROM tab1 WHERE NOT ( NULL ) < - 19 * - col1
----

query I rowsort
SELECT ALL 23 + - 7 FROM tab2
----
16
16
16

query I rowsort
SELECT ( + 10 ) * 14 + col0 FROM tab1 WHERE NOT col0 BETWEEN 88 AND NULL
----
191
225

