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)

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( 88 ) col0 FROM tab2
----
111
128
146

query I rowsort
SELECT DISTINCT col1 + + col0 * + 28 FROM tab2
----
1339
1869
2167

query I rowsort
SELECT + col0 * + - 83 AS col0 FROM tab0 AS cor0
----
-1245
-7221
-8051

query I rowsort
SELECT - col0 * + 30 FROM tab2 AS cor0
----
-1380
-1920
-2250

onlyif mysql # aggregate syntax: 
query I rowsort label-5
SELECT DISTINCT COUNT( * ) * + 14 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5
SELECT DISTINCT COUNT ( * ) * + 14 AS col1 FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT - 26 - - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-26

skipif mysql # not compatible
query I rowsort label-6
SELECT - 26 - - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT 68 * - - MIN( + 9 ) * + + MAX( + - col0 ) FROM tab2 AS cor0
----
-28152

skipif mysql # not compatible
query I rowsort label-7
SELECT 68 * - - MIN ( + 9 ) * + + MAX ( + - col0 ) FROM tab2 AS cor0
----
-28152

query I rowsort
SELECT + + 98 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9
SELECT - COUNT( * ), + 5 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
8

skipif mysql # not compatible
query II rowsort label-9
SELECT - COUNT ( * ), + 5 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-10
SELECT DISTINCT COUNT ( DISTINCT + - col2 ) col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 17 * 47 AS col1 FROM tab0 AS cor0
----
-799

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

query I rowsort
SELECT ALL col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

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

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

query I rowsort
SELECT 19 * col2 * col2 - - 89 FROM tab0 cor0
----
186308
1989
42060

onlyif mysql # DIV for integer division: 
query I rowsort label-16
SELECT ALL + ( col2 ) DIV - col0 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL + ( col2 ) / - col0 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT ALL + + 39 - + 92 FROM tab2 WHERE NOT + 81 IS NULL
----
-53
-53
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-18
SELECT ALL - col0 * 55 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) * col0 - col2 * 97 IS NOT NULL
----
-2805
-4675
-5005

skipif mysql # not compatible
query I rowsort label-18
SELECT ALL - col0 * 55 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 - col2 * 97 IS NOT NULL
----
-2805
-4675
-5005

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT + + 11 DIV + + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-20
SELECT + + 11 / + + col0 FROM tab2 AS cor0
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-23
SELECT CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-23
SELECT CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-24
SELECT + ( ( 86 ) ) DIV + 54 * + 1 FROM tab0 AS cor0 WHERE NOT col1 >= - 69 DIV - - col0 * - col0
----

skipif mysql # not compatible
query I rowsort label-24
SELECT + ( ( 86 ) ) / + 54 * + 1 FROM tab0 AS cor0 WHERE NOT col1 >= - 69 / - - col0 * - col0
----

query I rowsort
SELECT DISTINCT - + 25 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-26
SELECT - col0 * - col1 DIV + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-26
SELECT - col0 * - col1 / + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col2 * 98 AS col0 FROM tab1
----
5782
6664
9408

query I rowsort
SELECT - col0 + + - col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL ( 8 ) + + col2 AS col0 FROM tab1 AS cor0
----
104
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + COUNT( * ) + - AVG ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-30
SELECT + COUNT ( * ) + - AVG ( ALL col2 ) FROM tab2 AS cor0 WHERE NULL < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - - - ( - 19 ) IN ( 73, + col2, - 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + 62, col1 * - col2 * + + col2 AS col0 FROM tab1
----
62
-129024
62
-17405
62
-217328

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-33
SELECT ALL 89 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-33
SELECT ALL 89 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - 19 * - col0 - + - 68 * - col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-35
SELECT + col1 DIV 69 - 27 FROM tab2 AS cor0
----
-26
-27
-27

skipif mysql # not compatible
query I rowsort label-35
SELECT + col1 / 69 - 27 FROM tab2 AS cor0
----
-26
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT + COUNT( * ) + + 98 AS col0 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT + COUNT ( * ) + + 98 AS col0 FROM tab2 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-37
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-37
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-38
SELECT - COUNT( * ) * + 83 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-38
SELECT - COUNT ( * ) * + 83 FROM tab1 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col1 FROM tab1 cor0
----
196
2209
25

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

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

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

skipif mysql # not compatible
query I rowsort label-41
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

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

query I rowsort
SELECT ALL ( - col2 ) * col0 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

skipif mysql # not compatible
query I rowsort label-44
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 23 IS NULL
----
3

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

query I rowsort
SELECT + ( - col1 ) * + col2 * col0 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-47
SELECT DISTINCT 95 * + + col1 DIV col1 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-47
SELECT DISTINCT 95 * + + col1 / col1 FROM tab0
----
95

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

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

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

query I rowsort
SELECT - ( 5 ) FROM tab2
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-51
SELECT COUNT( * ) AS col2, 3 * + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-52
SELECT + 80 DIV + col0 col2, col2 * - - 88 + - col2 DIV - col1 AS col0 FROM tab1
----
0
5203
0
5985
1
8454

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-52
SELECT + 80 / + col0 col2, col2 * - - 88 + - col2 / - col1 AS col0 FROM tab1
----
0
5203
0
5985
1
8454

query III rowsort
SELECT * FROM tab1 WHERE + ( - - col0 ) <> 20
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 93 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query II rowsort
SELECT ALL - col2 + + - col2 AS col2, 4 FROM tab0 AS cor0
----
-198
4
-20
4
-94
4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-56
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 + - 92 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-56
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 + - 92 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-57
SELECT ALL col1 DIV 16 + col0 FROM tab1 AS cor0
----
51
85
93

skipif mysql # not compatible
query I rowsort label-57
SELECT ALL col1 / 16 + col0 FROM tab1 AS cor0
----
51
85
93

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

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

query I rowsort
SELECT - - 68 * - col1 - - 59 AS col2 FROM tab0 AS cor0
----
-1369
-5449
-9

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

query I rowsort
SELECT - 76 + + col1 AS col1 FROM tab0 AS cor0
----
-55
-75
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT col2 DIV + - 85 + 56 AS col1 FROM tab0
----
55
56
56

skipif mysql # not compatible
query I rowsort label-64
SELECT col2 / + - 85 + 56 AS col1 FROM tab0
----
55
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col2, + 90 AS col0 FROM tab2 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT 26 * + - 96 + - 76 AS col0 FROM tab0
----
-2572
-2572
-2572

query I rowsort
SELECT DISTINCT + - 66 FROM tab0 AS cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - col0 + - + col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-69
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / + + col1 NOT BETWEEN + - col2 AND ( + + CAST( - ( + + ( - + col2 ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-69
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / + + col1 NOT BETWEEN + - col2 AND ( + + CAST ( - ( + + ( - + col2 ) ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-70
SELECT ALL + COUNT( * ) AS col1, 49 + - - 72 FROM tab1 AS cor0
----
3
121

skipif mysql # not compatible
query II rowsort label-70
SELECT ALL + COUNT ( * ) AS col1, 49 + - - 72 FROM tab1 AS cor0
----
3
121

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT - 17 * - - COUNT( * ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-71
SELECT - 17 * - - COUNT ( * ) FROM tab1 AS cor0
----
-51

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 / + + ( - - col1 ) + - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-75
SELECT + - col0 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col2 FROM tab0 AS cor0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1, col1 col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE - col2 >= col0
----
0

skipif mysql # not compatible
query I rowsort label-80
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE - col2 >= col0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 = col0 - - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col2, col0 col2 FROM tab0
----
210
87
3807
15
99
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-84
SELECT + COUNT( * ) * - 63 - + 16 * - 39 FROM tab1 AS cor0
----
435

skipif mysql # not compatible
query I rowsort label-84
SELECT + COUNT ( * ) * - 63 - + 16 * - 39 FROM tab1 AS cor0
----
435

onlyif mysql # DIV for integer division: 
query II rowsort label-85
SELECT ALL + 18 DIV col0 * col0 AS col1, col2 col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-85
SELECT ALL + 18 / col0 * col0 AS col1, col2 col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # DIV for integer division: 
query I rowsort label-86
SELECT ALL col2 DIV 40 DIV - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL col2 / 40 / - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-87
SELECT DISTINCT ( - 33 ) + + 83 + ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT col2 * - col2 + col1 * - col2 * + col2 FROM tab2 AS cor0
----
-124800
-228752
-27508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-89
SELECT - - ( + - CAST( NULL AS SIGNED ) ) + + 73 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

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

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

query I rowsort
SELECT ALL + col0 - + 50 FROM tab1 AS cor0
----
1
35
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-94
SELECT - CAST( - 8 AS SIGNED ) AS col0 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-94
SELECT - CAST ( - 8 AS INTEGER ) AS col0 FROM tab1
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-95
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) + - - ( col2 ), col0 + - col1 AS col0 FROM tab1
----
-23
44
-26
80
45
37

skipif mysql # not compatible
query II rowsort label-95
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) + - - ( col2 ), col0 + - col1 AS col0 FROM tab1
----
-23
44
-26
80
45
37

onlyif mysql # DIV for integer division: 
query I rowsort label-96
SELECT + 63 - - 44 + 49 DIV col0 * col1 - col0 FROM tab0
----
10
20
335

skipif mysql # not compatible
query I rowsort label-96
SELECT + 63 - - 44 + 49 / col0 * col1 - col0 FROM tab0
----
10
20
335

query I rowsort
SELECT ALL 42 * + col0 * - col2 AS col2 FROM tab1
----
-205632
-210630
-259896

query II rowsort
SELECT ( - col1 ) AS col1, col0 FROM tab0
----
-1
97
-21
87
-81
15

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

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

query I rowsort
SELECT ALL + + 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query I rowsort
SELECT - 20 + - 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - + 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-104
SELECT DISTINCT - COUNT( - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL = 84 - - - 59
----
0

skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - COUNT ( - + col2 ) FROM tab0 AS cor0 WHERE NOT NULL = 84 - - - 59
----
0

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 * - ( - ( col2 ) ) ) > 2
----

query I rowsort
SELECT ALL + + 33 AS col0 FROM tab1 AS cor0 WHERE + col1 - + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + - col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-108
SELECT ALL - COUNT( * ) col1 FROM tab0 AS cor0 WHERE - 39 + col0 / + col2 * + + col2 + col2 + - 83 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT ALL - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE - 39 + col0 / + col2 * + + col2 + col2 + - 83 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-109
SELECT ALL - - CAST( + CAST( + 23 AS SIGNED ) AS SIGNED ) AS col0, - CAST( NULL AS SIGNED ) + - 67 FROM tab1 AS cor0
----
23
NULL
23
NULL
23
NULL

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL - - CAST ( + CAST ( + 23 AS INTEGER ) AS INTEGER ) AS col0, - CAST ( NULL AS INTEGER ) + - 67 FROM tab1 AS cor0
----
23
NULL
23
NULL
23
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col1, col1 * + + col2 * - + col1 FROM tab1
----
57
-1475
57
-150212
57
-18816

query I rowsort
SELECT ALL + 79 + + 66 - + 3 FROM tab0
----
142
142
142

query I rowsort
SELECT ( 27 ) FROM tab2
----
27
27
27

query I rowsort
SELECT ( + 83 ) + col1 AS col1 FROM tab2
----
134
150
160

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT DISTINCT + col1 DIV col0 + col2 AS col2 FROM tab0
----
10
52
99

skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT + col1 / col0 + col2 AS col2 FROM tab0
----
10
52
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN NULL AND + 17 AND - 52 IS NOT NULL
----

query I rowsort
SELECT 88 + + col0 * - 82 - + 50 * col1 + + col1 + 37 FROM tab1
----
-4743
-7090
-9640

query I rowsort
SELECT 6 + 4 AS col1 FROM tab2
----
10
10
10

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

onlyif mysql # DIV for integer division: 
query I rowsort label-119
SELECT col0 + + 10 DIV 48 DIV + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-119
SELECT col0 + + 10 / 48 / + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-120
SELECT ALL - + CAST( NULL AS SIGNED ) AS col1, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-120
SELECT ALL - + CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-122
SELECT ALL + 56 + + COUNT( * ) AS col1, ( + MAX( DISTINCT 85 ) ) FROM tab1
----
59
85

skipif mysql # not compatible
query II rowsort label-122
SELECT ALL + 56 + + COUNT ( * ) AS col1, ( + MAX ( DISTINCT 85 ) ) FROM tab1
----
59
85

query I rowsort
SELECT 86 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT - col1 - + - col2 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT - col0 - - col2 AS col1 FROM tab1 cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-126
SELECT col1 + + - col2 - + col2 DIV col0 FROM tab1 AS cor0
----
-21
-54
-83

skipif mysql # not compatible
query I rowsort label-126
SELECT col1 + + - col2 - + col2 / col0 FROM tab1 AS cor0
----
-21
-54
-83

query I rowsort
SELECT + - ( - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) = + 20 + - 29 + + - 91
----

onlyif mysql # DIV for integer division: 
query I rowsort label-128
SELECT col2 DIV + + 91 FROM tab1
----
0
0
1

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - + 25 < - col2 * - col0 + 16
----

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

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

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

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

query I rowsort
SELECT ALL + - ( 22 ) * - col0 AS col1 FROM tab1 AS cor0
----
1122
1870
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT - - MIN( + - col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-134
SELECT - - MIN ( + - col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-135
SELECT 48 * - CAST( - col2 AS SIGNED ), - 22 AS col0 FROM tab0 cor0
----
2256
-22
4752
-22
480
-22

skipif mysql # not compatible
query II rowsort label-135
SELECT 48 * - CAST ( - col2 AS INTEGER ), - 22 AS col0 FROM tab0 cor0
----
2256
-22
4752
-22
480
-22

query I rowsort
SELECT + + 50 AS col2 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT 71 + COUNT( * ) AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT 71 + COUNT ( * ) AS col0 FROM tab0
----
74

query I rowsort
SELECT col0 + - 53 AS col0 FROM tab1
----
-2
32
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 96 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT col0 + - 67 FROM tab2
----
-21
-3
8

onlyif mysql # aggregate syntax: 
query I rowsort label-143
SELECT - MIN( ALL col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-143
SELECT - MIN ( ALL col2 ) col1 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * 75 NOT IN ( 73 - 65 / 33 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-146
SELECT CAST( NULL AS SIGNED ) * - 17 + + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-146
SELECT CAST ( NULL AS INTEGER ) * - 17 + + 74 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-147
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-149
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
-3

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-151
SELECT + 58 * COUNT( * ) AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-151
SELECT + 58 * COUNT ( * ) AS col0 FROM tab2
----
174

query I rowsort
SELECT + 37 * + col1 - + col2 AS col0 FROM tab1
----
126
1671
422

onlyif mysql # aggregate syntax: 
query I rowsort label-153
SELECT MIN( DISTINCT col0 ) * + 83 + COUNT( * ) FROM tab2
----
3821

skipif mysql # not compatible
query I rowsort label-153
SELECT MIN ( DISTINCT col0 ) * + 83 + COUNT ( * ) FROM tab2
----
3821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-154
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * col0 + + 4 BETWEEN - ( - 42 ) * + 88 - - 80 AND - 42
----
0

skipif mysql # not compatible
query I rowsort label-154
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * col0 + + 4 BETWEEN - ( - 42 ) * + 88 - - 80 AND - 42
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-156
SELECT DISTINCT - col2 + - col1 * ( ( col2 ) DIV col1 ) FROM tab1
----
-114
-115
-180

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT - col2 + - col1 * ( ( col2 ) / col1 ) FROM tab1
----
-114
-115
-180

query I rowsort
SELECT ALL - 36 FROM tab0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col2 > 90 + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - 14 + 29
----

query I rowsort
SELECT ALL + 53 * col2 AS col0 FROM tab1
----
3127
3604
5088

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT ALL + ( MIN( 77 ) ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-161
SELECT ALL + ( MIN ( 77 ) ) FROM tab1 WHERE NOT ( col0 ) NOT BETWEEN NULL AND ( NULL )
----
NULL

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

query I rowsort
SELECT DISTINCT 90 * + col2 AS col1 FROM tab0 WHERE NOT - col2 IN ( col0 )
----
4230
8910
900

query III rowsort
SELECT * FROM tab1 WHERE NULL <= col0 * - 12
----

query I rowsort
SELECT DISTINCT - col1 * 91 AS col2 FROM tab0
----
-1911
-7371
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-166
SELECT - CAST( NULL AS SIGNED ) - MAX( 71 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT - CAST ( NULL AS INTEGER ) - MAX ( 71 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * col2 = - ( - 20 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + 70 ) BETWEEN col2 * + 19 AND ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - MAX( + 21 ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-169
SELECT - MAX ( + 21 ) AS col1 FROM tab0
----
-21

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT DISTINCT 97 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT 97 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + MAX( DISTINCT - col0 ) - 33 AS col0 FROM tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-172
SELECT + MAX ( DISTINCT - col0 ) - 33 AS col0 FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND 76
----

query I rowsort
SELECT DISTINCT + 58 FROM tab2 AS cor0 CROSS JOIN tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT 40 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab1 WHERE ( + 13 + - col2 ) IN ( + 76 )
----

skipif mysql # not compatible
query I rowsort label-175
SELECT 40 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 WHERE ( + 13 + - col2 ) IN ( + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-176
SELECT ALL + CAST( + 20 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL + CAST ( + 20 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT DISTINCT - 46 * - COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-178
SELECT DISTINCT - 46 * - COUNT ( * ) FROM tab2
----
138

query III rowsort
SELECT * FROM tab0 WHERE + 75 NOT IN ( col0 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT + 10 * COUNT( * ) + 60 AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-180
SELECT + 10 * COUNT ( * ) + 60 AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT DISTINCT + COUNT( * ) + 38 AS col1 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + COUNT ( * ) + 38 AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT DISTINCT - col2 - - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-752
-880
-9702

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT + SUM( DISTINCT + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT + SUM ( DISTINCT + col2 ) col1 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 28 NOT BETWEEN 23 AND ( + col2 ) * + 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT - - 99 + CAST( + 63 AS SIGNED ) col0 FROM tab2 AS cor0
----
162

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

query I rowsort
SELECT DISTINCT - 45 - + 42 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT - 98 FROM tab1 cor0 WHERE NOT - col2 * - 87 <> NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 3 * 2 col1 FROM tab0 AS cor0
----
6
6
6

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

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

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + ( ( - col2 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 14 * + 44 AS col2 FROM tab2
----
31416
41272
47432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 81 col1 FROM tab0
----
3807
8019
810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-194
SELECT ALL + MIN( - - CAST( NULL AS SIGNED ) ) * + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-194
SELECT ALL + MIN ( - - CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col2 * 16 AS col2 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-196
SELECT COUNT( * ) FROM tab0 WHERE NOT + col1 + 30 DIV - col0 IN ( col1 )
----
1

skipif mysql # not compatible
query I rowsort label-196
SELECT COUNT ( * ) FROM tab0 WHERE NOT + col1 + 30 / - col0 IN ( col1 )
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-197
SELECT + MAX( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT col1 DIV 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-198
SELECT col1 / 82 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT + COUNT( * ) col0 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-199
SELECT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL > ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT ALL - MIN( ALL 72 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - MIN ( ALL 72 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-72

query I rowsort
SELECT ALL - 92 * 31 + col1 FROM tab2 AS cor0 WHERE col0 IN ( col2 )
----

query I rowsort
SELECT ALL - + ( + col0 ) * + col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT ALL - COUNT( * ) DIV 83 AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-203
SELECT ALL - COUNT ( * ) / 83 AS col1 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-204
SELECT DISTINCT - - COUNT( * ) DIV - 37 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - - COUNT ( * ) / - 37 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT ALL COUNT( * ) * MIN( - col0 ) AS col1 FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-205
SELECT ALL COUNT ( * ) * MIN ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE + col2 > NULL
----
NULL

query I rowsort
SELECT + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-207
SELECT ALL ( SUM( DISTINCT - col1 ) ) DIV 37 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-207
SELECT ALL ( SUM ( DISTINCT - col1 ) ) / 37 FROM tab2
----
-5

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

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

query I rowsort
SELECT - col1 * 44 + + col2 + - 45 FROM tab1 AS cor0
----
-2045
-206
-565

query I rowsort
SELECT + 23 * col1 AS col1 FROM tab2 cor0 WHERE col1 BETWEEN 70 AND + col1 OR col2 NOT BETWEEN NULL AND NULL
----
1771

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <> - + 41 + 39 * 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT MAX( DISTINCT 62 ) * 25 AS col1 FROM tab0 AS cor0
----
1550

skipif mysql # not compatible
query I rowsort label-212
SELECT MAX ( DISTINCT 62 ) * 25 AS col1 FROM tab0 AS cor0
----
1550

query III rowsort
SELECT * FROM tab2 cor0 WHERE 65 = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL - 32 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL - 32 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, ( - col1 ) col2 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL - - 19 * MAX( ALL + 9 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - - 19 * MAX ( ALL + 9 ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT 22 * col1 * - col0 + - col0 FROM tab1
----
-15759
-94185
-9435

query I rowsort
SELECT col0 FROM tab2 WHERE + col2 <> - 97 + col0 * col1
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-222
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col0 > - + col2 * - 62 * + col0 + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-222
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col0 > - + col2 * - 62 * + col0 + - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-223
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - CAST( - col0 AS SIGNED ) / + col1 <= ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-223
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - CAST ( - col0 AS INTEGER ) / + col1 <= ( - col0 ) )
----

query I rowsort
SELECT 85 * + col1 - - col2 - + - col2 FROM tab2
----
4381
5811
6625

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col0 ) NOT IN ( - + col1 + - col2 + - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-227
SELECT ( + ( COUNT( DISTINCT + 0 ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-227
SELECT ( + ( COUNT ( DISTINCT + 0 ) ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 75 * - 40 FROM tab1 AS cor0
----
-3000
-3000
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT + MIN( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT + MIN ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT + COUNT( * ), 66 AS col0 FROM tab0
----
3
66

skipif mysql # not compatible
query II rowsort label-230
SELECT + COUNT ( * ), 66 AS col0 FROM tab0
----
3
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-231
SELECT ALL + + col2 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + 46 > + col2
----

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL + + col2 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + 46 > + col2
----

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

skipif mysql # not compatible
query II rowsort label-232
SELECT DISTINCT + col0, + CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 97 * 1 NOT IN ( - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT - + COUNT( * ) * MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-234
SELECT - + COUNT ( * ) * MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-235
SELECT + + COUNT( - col0 ) * 40 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-235
SELECT + + COUNT ( - col0 ) * 40 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - - ( + 56 ) FROM tab0
----
137
57
77

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT ALL 19 + 23 DIV + ( + col1 ) col1 FROM tab2
----
19
19
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-237
SELECT ALL 19 + 23 / + ( + col1 ) col1 FROM tab2
----
19
19
19

query I rowsort
SELECT ALL - col1 + - 64 AS col2 FROM tab2
----
-115
-131
-141

query I rowsort
SELECT - 4 + - ( - col0 ) AS col0 FROM tab1 AS cor0
----
47
81
87

query II rowsort
SELECT DISTINCT - col1 + - + col1 AS col2, col0 + - col1 FROM tab1 AS cor0
----
-10
80
-28
37
-94
44

query I rowsort
SELECT col1 + - 1 + - col2 FROM tab0 cor0
----
-99
10
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-242
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = ( + + 29 ) * - col1 * CAST( - 20 AS SIGNED ) * + 29
----

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

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

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

query I rowsort
SELECT DISTINCT - + col2 * 21 * - 42 + - + col0 AS col2 FROM tab2 AS cor0
----
20240
35216
51081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-245
SELECT ALL + COUNT( + col1 ) DIV COUNT( * ) * + 71 FROM tab1 cor0
----
71

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL + COUNT ( + col1 ) / COUNT ( * ) * + 71 FROM tab1 cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + + col2 * + + col0 + col0 + + col2
----

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

query II rowsort
SELECT + col2 AS col0, - ( 32 ) FROM tab0
----
10
-32
47
-32
99
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT ALL - 13 + - - ( col0 ) DIV - + col0 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL - 13 + - - ( col0 ) / - + col0 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT ( + col2 ) - + 64 AS col1 FROM tab1 AS cor0
----
-5
32
4

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL - MAX( - col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-251
SELECT ALL - MAX ( - col2 ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT + 30 FROM tab0, tab0 AS cor0
----
30

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NOT + - 24 / + 7 IS NULL )
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-254
SELECT col2 / col0 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT 95 * - col2 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT ( col1 ) * + col0 AS col1 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 * - col1 )
----

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

query I rowsort
SELECT - 32 * - 85 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT DISTINCT + 72 * - + ( - MIN( col2 ) ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2160

skipif mysql # not compatible
query I rowsort label-260
SELECT DISTINCT + 72 * - + ( - MIN ( col2 ) ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2160

onlyif mysql # aggregate syntax: 
query I rowsort label-261
SELECT 92 * + MAX( ALL + col0 ) AS col0 FROM tab0
----
8924

skipif mysql # not compatible
query I rowsort label-261
SELECT 92 * + MAX ( ALL + col0 ) AS col0 FROM tab0
----
8924

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

query I rowsort
SELECT col2 * - 85 * 53 AS col0 FROM tab0
----
-211735
-445995
-45050

onlyif mysql # aggregate syntax: 
query I rowsort label-264
SELECT - 9 * - + MIN( - - col2 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-264
SELECT - 9 * - + MIN ( - - col2 ) AS col2 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-265
SELECT - COUNT( * ) * + - 33 AS col0 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-265
SELECT - COUNT ( * ) * + - 33 AS col0 FROM tab2
----
99

query I rowsort
SELECT 41 * - col2 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT DISTINCT col0 * + 56 FROM tab1
----
2856
4760
5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-268
SELECT ALL + COUNT( * ) AS col0, + ( - CAST( - + 85 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-268
SELECT ALL + COUNT ( * ) AS col0, + ( - CAST ( - + 85 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
3
85

query I rowsort
SELECT 26 + - col1 AS col2 FROM tab1 AS cor0
----
-21
12
21

query I rowsort
SELECT ALL + col0 * + col1 - - col1 AS col2 FROM tab1 AS cor0
----
430
4324
728

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-273
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-273
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col2 + col2, - col2, - - 45, 0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 - 90 FROM tab2 cor0
----
-13
-23
-39

query I rowsort
SELECT + 38 + col2 * col0 * + col0 FROM tab2 AS cor0
----
163878
326288
48706

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-277
SELECT 73 * - COUNT( * ) + + 21 + + + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + 0 AS col0, - col0 col2 FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab0 WHERE + 54 BETWEEN NULL AND ( + 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT - 39 DIV col2 + - col0 FROM tab0
----
-15
-90
-97

skipif mysql # not compatible
query I rowsort label-280
SELECT - 39 / col2 + - col0 FROM tab0
----
-15
-90
-97

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

query I rowsort
SELECT DISTINCT 20 * - ( - 68 ) AS col1 FROM tab2
----
1360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-283
SELECT + 69, CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-283
SELECT + 69, CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
69
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT ALL MAX( + 52 ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-285
SELECT ALL MAX ( + 52 ) FROM tab2 AS cor0
----
52

query II rowsort
SELECT ALL - col2 AS col0, col0 * - 12 AS col2 FROM tab0 AS cor0
----
-10
-1044
-47
-180
-99
-1164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-287
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 + - + col1 + + col2 * - + CAST( col0 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-287
SELECT ALL col0 FROM tab1 AS cor0 WHERE - col2 + - + col1 + + col2 * - + CAST ( col0 AS REAL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-288
SELECT - CAST( NULL AS SIGNED ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-288
SELECT - CAST ( NULL AS INTEGER ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-290
SELECT CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 + + col0 * 13 + + 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-294
SELECT - CAST( NULL AS SIGNED ) * + - AVG ( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT ( + 51 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-294
SELECT - CAST ( NULL AS INTEGER ) * + - AVG ( + col1 ) AS col0 FROM tab0 cor0 WHERE NOT ( + 51 ) IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-295
SELECT + 79 / - col2 AS col2 FROM tab2 AS cor0
----
-1
-1
-3

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

query I rowsort
SELECT + 29 * 93 * col1 + + + col1 AS col1 FROM tab0 AS cor0
----
218538
2698
56658

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30 * + col0 * - col0 - + col0 * col0 col2, - col1 * + + 78 FROM tab1 AS cor0
----
-223975
-390
-256711
-3666
-80631
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-299
SELECT + SUM( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-299
SELECT + SUM ( DISTINCT - col1 ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 + - + col0 >= ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 71 - col1 - - + col0 * + 36, col2 AS col1 FROM tab0 AS cor0 WHERE NOT 13 NOT IN ( + + 70 * + - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= + ( + - col1 ) / 81 / - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL 11 * + col0 * + - col0 AS col2 FROM tab1
----
-28611
-79475
-91091

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT col2 AS col0 FROM tab0 WHERE CAST( - col1 AS SIGNED ) NOT BETWEEN + col1 AND NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-305
SELECT col2 AS col0 FROM tab0 WHERE CAST ( - col1 AS INTEGER ) NOT BETWEEN + col1 AND NULL
----
10
47
99

query I rowsort
SELECT ALL 1 * - - col2 + - col1 FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 29 * - 83 AND + + col1
----

query I rowsort
SELECT + 30 - 55 AS col2 FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-309
SELECT ALL CAST( NULL AS SIGNED ) / - 62 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL CAST ( NULL AS INTEGER ) / - 62 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col0 + + 19 FROM tab1
----
4296
444
733

query II rowsort
SELECT DISTINCT + col2 AS col2, - col2 / - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT - ( MIN( DISTINCT ( 81 ) ) ) - + 16 FROM tab1 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-312
SELECT - ( MIN ( DISTINCT ( 81 ) ) ) - + 16 FROM tab1 cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT ALL - 76 DIV + - 77 col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-313
SELECT ALL - 76 / + - 77 col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 37 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-315
SELECT * FROM tab1 WHERE NOT CAST( - 35 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-315
SELECT * FROM tab1 WHERE NOT CAST ( - 35 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-316
SELECT DISTINCT - 32 * + - col0 - - col2 DIV - 88 col2 FROM tab2 cor0
----
1472
2048
2400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-316
SELECT DISTINCT - 32 * + - col0 - - col2 / - 88 col2 FROM tab2 cor0
----
1472
2048
2400

query I rowsort
SELECT ALL + + col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT 39 FROM tab2 AS cor0 WHERE NOT + 85 * col0 / - 11 NOT IN ( col0 * - 59 - CAST( 91 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-318
SELECT 39 FROM tab2 AS cor0 WHERE NOT + 85 * col0 / - 11 NOT IN ( col0 * - 59 - CAST ( 91 AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-319
SELECT ALL + 93 DIV + - ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-319
SELECT ALL + 93 / + - ( + col0 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-320
SELECT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-320
SELECT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 58 > + - col1
----
15
81
47

query I rowsort
SELECT ALL 29 + + + col1 FROM tab2
----
106
80
96

query I rowsort
SELECT ( 79 ) FROM tab1
----
79
79
79

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT + ( + - 5 ) * - col2 + + col0 + + + col1 BETWEEN - - col1 AND - 38
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-325
SELECT CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab0 WHERE NOT - col2 * ( 80 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-325
SELECT CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab0 WHERE NOT - col2 * ( 80 ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-327
SELECT DISTINCT - col1 + + col0 DIV + col0, ( + col0 ) FROM tab1
----
-13
51
-4
85
-46
91

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT - col1 + + col0 / + col0, ( + col0 ) FROM tab1
----
-13
51
-4
85
-46
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-328
SELECT col1, - col2 * - CAST( NULL AS SIGNED ) / - 5 AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-328
SELECT col1, - col2 * - CAST ( NULL AS INTEGER ) / - 5 AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 NOT IN ( - col0, col0 + col1 / - 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT 77 + - SUM( DISTINCT - 0 ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-330
SELECT 77 + - SUM ( DISTINCT - 0 ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-331
SELECT 80 - + 62 - - 16 * - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-331
SELECT 80 - + 62 - - 16 * - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT 79 + COUNT( * ) AS col0 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-332
SELECT 79 + COUNT ( * ) AS col0 FROM tab0
----
82

query I rowsort
SELECT DISTINCT + 18 + - col2 FROM tab1
----
-41
-50
-78

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 I rowsort label-335
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT 41 NOT IN ( + col1 * - 73 + - - 90 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT 41 NOT IN ( + col1 * - 73 + - - 90 * - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT ALL - 55, col0 AS col2 FROM tab2 AS cor0
----
-55
46
-55
64
-55
75

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

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

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

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

query I rowsort
SELECT ALL + col1 * - + 98 + + 31 AS col2 FROM tab2
----
-4967
-6535
-7515

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 94 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + - - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT ( + 51 ) + col1 FROM tab0 AS cor0
----
132
52
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-343
SELECT col0 FROM tab2 cor0 WHERE - col1 + CAST( NULL AS DECIMAL ) + 29 NOT BETWEEN - + 96 AND + col2
----

skipif mysql # not compatible
query I rowsort label-343
SELECT col0 FROM tab2 cor0 WHERE - col1 + CAST ( NULL AS REAL ) + 29 NOT BETWEEN - + 96 AND + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT - - 33 + - COUNT( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-345
SELECT - - 33 + - COUNT ( DISTINCT + col1 ) col0 FROM tab2 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-347
SELECT * FROM tab2 AS cor0 WHERE + ( + 91 ) * + + col0 * + - col0 <> - + ( - CAST( + ( + 23 ) AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-347
SELECT * FROM tab2 AS cor0 WHERE + ( + 91 ) * + + col0 * + - col0 <> - + ( - CAST ( + ( + 23 ) AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 19 - col1 - col0 FROM tab1 AS cor0
----
-119
-46
-71

query I rowsort
SELECT DISTINCT - col1 * - col1 * 69 - + - col0 + + col2 * - + col0 AS col1 FROM tab0
----
-9437
29646
452019

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT 35 / 84 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT 35 / 84 IS NULL
----
-3

query I rowsort
SELECT DISTINCT col0 + + - 65 * + ( + col2 ) AS col1 FROM tab2 WHERE NOT NULL IN ( - - ( + col1 ) + + + 50 + ( - - col0 ) )
----

query I rowsort
SELECT ALL 69 * - 69 FROM tab2
----
-4761
-4761
-4761

query I rowsort
SELECT ALL - 57 FROM tab1 WHERE NOT - + 85 > col0 + col2
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT - COUNT( 73 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-354
SELECT DISTINCT - COUNT ( 73 ) col1 FROM tab1
----
-3

query I rowsort
SELECT ALL - col0 + + + 34 FROM tab0
----
-53
-63
19

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

skipif mysql # not compatible
query I rowsort label-356
SELECT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-357
SELECT DISTINCT MAX( DISTINCT + 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-357
SELECT DISTINCT MAX ( DISTINCT + 11 ) FROM tab0
----
11

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

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

query I rowsort
SELECT DISTINCT - col1 * - + 76 AS col0 FROM tab0
----
1596
6156
76

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 46 * - 77 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

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

query I rowsort
SELECT - + 54 * - - col1 * + col2 AS col0 FROM tab2 AS cor0
----
-166320
-209844
-63342

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 col2, + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

query I rowsort
SELECT + + col0 * + - 8 AS col1 FROM tab2 AS cor0
----
-368
-512
-600

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

onlyif mysql # aggregate syntax: 
query I rowsort label-368
SELECT DISTINCT SUM( DISTINCT - col1 ) * + 70 + - 91 AS col1 FROM tab1 AS cor0
----
-4711

skipif mysql # not compatible
query I rowsort label-368
SELECT DISTINCT SUM ( DISTINCT - col1 ) * + 70 + - 91 AS col1 FROM tab1 AS cor0
----
-4711

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + col1 / - col1 <= NULL
----

query I rowsort
SELECT DISTINCT + - col2 * + 44 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT ALL - col2 * - col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
19404
2914
970

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab2 cor0 WHERE + col2 + 50 <> + col1
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-373
SELECT DISTINCT + - CAST( + - col1 AS SIGNED ) + 53 AS col1 FROM tab2 AS cor0
----
104
120
130

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT + - CAST ( + - col1 AS INTEGER ) + 53 AS col1 FROM tab2 AS cor0
----
104
120
130

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-375
SELECT DISTINCT col1 DIV + - 79, - col1 DIV col0 AS col2 FROM tab1
----
0
0

skipif mysql # not compatible
query II rowsort label-375
SELECT DISTINCT col1 / + - 79, - col1 / col0 AS col2 FROM tab1
----
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-376
SELECT ALL + 37 + + col0 AS col2, + ( - ( + col2 ) ) DIV + col0 AS col2 FROM tab1
----
122
0
128
0
88
-1

skipif mysql # not compatible
query II rowsort label-376
SELECT ALL + 37 + + col0 AS col2, + ( - ( + col2 ) ) / + col0 AS col2 FROM tab1
----
122
0
128
0
88
-1

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

query I rowsort
SELECT DISTINCT - + 8 FROM tab1 WHERE + - col2 IS NOT NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT - COUNT( * ) * - + ( + 99 ) * + SUM( - + 16 ) col2 FROM tab1
----
-14256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-379
SELECT DISTINCT - COUNT ( * ) * - + ( + 99 ) * + SUM ( - + 16 ) col2 FROM tab1
----
-14256

query II rowsort
SELECT ALL col1 + + + 69 AS col0, col1 + col1 AS col2 FROM tab1
----
116
94
74
10
83
28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 0, col2 FROM tab2
----
0
23
0
40
0
58

query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) - - - col0 + - 36 / ( - + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT + MIN( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-384
SELECT + MIN ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
10

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, + 85 col0 FROM tab2 AS cor0
----
51
85
67
85
77
85

query II rowsort
SELECT ALL + col2 * - col2 AS col1, col2 / + + ( col2 ) FROM tab1 cor0 WHERE NULL NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 11 = NULL
----

query I rowsort
SELECT ALL - ( + 69 ) FROM tab1 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-390
SELECT ALL + col0 - - - col2 + + - CAST( - 74 AS SIGNED ) FROM tab0 AS cor0
----
151
42
72

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL + col0 - - - col2 + + - CAST ( - 74 AS INTEGER ) FROM tab0 AS cor0
----
151
42
72

query II rowsort
SELECT + col2, col0 + - + col0 - 86 FROM tab1 cor0
----
59
-86
68
-86
96
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + ( + ( - 91 ) ) col2, 96 AS col0 FROM tab2 AS cor0
----
91
96

query I rowsort
SELECT ALL + + col1 * - + 89 - - 88 FROM tab0 AS cor0
----
-1
-1781
-7121

query II rowsort
SELECT DISTINCT + + 40 - - + 6 * + col0 AS col1, 55 AS col0 FROM tab2 AS cor0
----
316
55
424
55
490
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col1
----

query II rowsort
SELECT + + ( + col2 ), + col0 FROM tab1 WHERE + 58 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT + SUM( DISTINCT col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-398
SELECT + SUM ( DISTINCT col0 ) col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT ALL - col0 + CAST( NULL AS SIGNED ) * - + col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col0 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-400
SELECT COUNT( * ) + - COUNT( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 23 / - + 60 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-400
SELECT COUNT ( * ) + - COUNT ( + + col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + 23 / - + 60 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL - ( - MAX( - + 61 ) ) * + COUNT( * ) col1 FROM tab2
----
-183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-401
SELECT ALL - ( - MAX ( - + 61 ) ) * + COUNT ( * ) col1 FROM tab2
----
-183

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 NOT BETWEEN col0 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 53 <> + 72 + - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-405
SELECT DISTINCT - COUNT( * ) * - 17 + - + 25 AS col0 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-405
SELECT DISTINCT - COUNT ( * ) * - 17 + - + 25 AS col0 FROM tab1 AS cor0
----
26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-408
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + col0 * col1 + + col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-408
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND + col0 * col1 + + col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT DISTINCT col2 DIV - 61 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-409
SELECT DISTINCT col2 / - 61 FROM tab1 cor0
----
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 * - col2 + col2 * + col1 * 15 = col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 ) + + col0 + - col2 / - col0 * - col2 * col0 > NULL
----

query I rowsort
SELECT - col1 * - - col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col2 + + col2 * col2 AS col1 FROM tab2
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query I rowsort label-415
SELECT DISTINCT - SUM( - - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT - SUM ( - - col2 ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT col2 + + col2 * + - col2 AS col0 FROM tab1
----
-3422
-4556
-9120

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL IN ( - 65 )
----

query I rowsort
SELECT + col2 + - - 4 + + 37 AS col2 FROM tab2
----
64
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT ALL + 76 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-420
SELECT DISTINCT - + MAX( DISTINCT col0 ) DIV + + 26 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT - + MAX ( DISTINCT col0 ) / + + 26 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-421
SELECT DISTINCT + ( + - MIN( DISTINCT - 42 ) ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT + ( + - MIN ( DISTINCT - 42 ) ) FROM tab0 AS cor0
----
42

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) > col2 * 28
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-423
SELECT - MIN( DISTINCT + 48 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-423
SELECT - MIN ( DISTINCT + 48 ) / + COUNT ( * ) FROM tab0 AS cor0
----
-16

query I rowsort
SELECT + 66 AS col0 FROM tab0 AS cor0 WHERE - 99 IS NOT NULL
----
66
66
66

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-426
SELECT * FROM tab1 WHERE ( NOT + 17 * + CAST( NULL AS SIGNED ) < NULL )
----

skipif mysql # not compatible
query III rowsort label-426
SELECT * FROM tab1 WHERE ( NOT + 17 * + CAST ( NULL AS INTEGER ) < NULL )
----

query I rowsort
SELECT ALL 9 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT DISTINCT 42 + - - 70 - - 26 AS col0 FROM tab1
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT 54 + + COUNT( * ) + - 51 AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-429
SELECT 54 + + COUNT ( * ) + - 51 AS col2 FROM tab2 AS cor0
----
6

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

skipif mysql # not compatible
query I rowsort label-430
SELECT + MAX ( DISTINCT + + col0 ) FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 col1, 1 * col2 + - + col2 FROM tab2 AS cor0
----
1173
0
3080
0
3886
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-432
SELECT DISTINCT + CAST( 13 AS SIGNED ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + CAST ( 13 AS INTEGER ) FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL + COUNT( * ) * 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + COUNT ( * ) * 40 FROM tab1
----
120

query I rowsort
SELECT ALL + col0 + col1 FROM tab0 WHERE NOT - ( - - col1 ) IS NULL
----
108
96
98

query II rowsort
SELECT DISTINCT - col1, + 50 AS col1 FROM tab0
----
-1
50
-21
50
-81
50

query II rowsort
SELECT ALL - 3, - col1 * col0 AS col0 FROM tab2
----
-3
-2346
-3
-4928
-3
-5025

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / + col2 IS NOT NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 <> ( + - col1 )
----

query II rowsort
SELECT - col2 + - - col2, col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT - 7 * + col2 + - - col2 AS col0 FROM tab1 AS cor0
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT ALL 45 * SUM( ALL col0 ) FROM tab1 AS cor0
----
10215

skipif mysql # not compatible
query I rowsort label-444
SELECT ALL 45 * SUM ( ALL col0 ) FROM tab1 AS cor0
----
10215

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <> + 18
----

query I rowsort
SELECT + col2 * + - col1 + col0 FROM tab0 AS cor0
----
-123
-2
-3792

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

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

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

query II rowsort
SELECT col0 AS col1, + 70 FROM tab1 WHERE ( col0 IS NULL )
----

query I rowsort
SELECT ALL - 5 AS col0 FROM tab0 WHERE NOT - 51 IS NULL
----
-5
-5
-5

query II rowsort
SELECT ALL + ( + 65 ) + + 36 AS col1, + col0 * + col0 AS col1 FROM tab2
----
101
2116
101
4096
101
5625

query I rowsort
SELECT DISTINCT + col1 * + - col2 + col1 AS col1 FROM tab2
----
-1122
-3003
-3819

query II rowsort
SELECT ALL col2 * + 27 + - 26 AS col0, col0 + - + 64 FROM tab1
----
1567
21
1810
27
2566
-13

query I rowsort
SELECT DISTINCT - 15 + - + 64 FROM tab1
----
-79

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT ALL + CAST( + - col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-457
SELECT ALL + CAST ( + - col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL col1 * ( - col1 ) + col1 FROM tab2
----
-2550
-4422
-5852

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 59 BETWEEN + col2 AND + col0
----
46
51
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-460
SELECT DISTINCT 46 DIV + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
15

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) > 68
----

query I rowsort
SELECT ALL - ( + 20 ) FROM tab1 cor0
----
-20
-20
-20

query I rowsort
SELECT ALL + 42 * - col1 FROM tab0 AS cor0
----
-3402
-42
-882

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + col0 IS NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-466
SELECT DISTINCT + 9 DIV + 49, 57 * col1 DIV + - col0 AS col2 FROM tab2
----
0
-50
0
-63
0
-68

skipif mysql # not compatible
query II rowsort label-466
SELECT DISTINCT + 9 / + 49, 57 * col1 / + - col0 AS col2 FROM tab2
----
0
-50
0
-63
0
-68

query I rowsort
SELECT + col1 * + + 79 * - col0 AS col2 FROM tab2
----
-185334
-389312
-396975

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + 0 < + 58
----
85
5
59
91
47
68

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

onlyif mysql # aggregate syntax: 
query II rowsort label-470
SELECT COUNT( - col2 ) * + - 44 AS col0, + 64 * - 40 FROM tab2
----
-132
-2560

skipif mysql # not compatible
query II rowsort label-470
SELECT COUNT ( - col2 ) * + - 44 AS col0, + 64 * - 40 FROM tab2
----
-132
-2560

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT - SUM( DISTINCT + + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-471
SELECT - SUM ( DISTINCT + + col2 ) FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query II rowsort label-472
SELECT col0 DIV - - col2, col0 AS col2 FROM tab2 AS cor0
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-472
SELECT col0 / - - col2, col0 AS col2 FROM tab2 AS cor0
----
1
64
1
75
2
46

query I rowsort
SELECT ALL ( 85 ) AS col0 FROM tab1
----
85
85
85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT + COUNT( * ) + - ( + - 99 ) FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT + COUNT ( * ) + - ( + - 99 ) FROM tab2 cor0
----
102

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 + + col2 AS col1 FROM tab1 AS cor0
----
51
192
85
118
91
136

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > ( + col0 ) - + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - + SUM( + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - + SUM ( + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + - col1 * + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN 45 * - - col1 AND NULL
----
-425
-4277
-714

query I rowsort
SELECT + col2 + col0 * + - 73 AS col2 FROM tab1
----
-3627
-6146
-6575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + 83 col2 FROM tab1
----
1162
3901
415

query III rowsort
SELECT ALL * FROM tab0 WHERE + 93 > NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) + - 7 FROM tab2
----
39
57
68

query I rowsort
SELECT DISTINCT col2 - 10 * - col2 FROM tab0 AS cor0
----
1089
110
517

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT SUM( - 3 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-487
SELECT SUM ( - 3 ) FROM tab0
----
-9

query I rowsort
SELECT + 64 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-489
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) * - 31 AS col2 FROM tab1
----
1829
2108
2976

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) * - 31 AS col2 FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-490
SELECT ALL CAST( NULL AS SIGNED ) * + 41 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-490
SELECT ALL CAST ( NULL AS INTEGER ) * + 41 FROM tab1 AS cor0 WHERE NULL > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT - - CAST( - - 92 AS SIGNED ) * + + 47 AS col0 FROM tab1 AS cor0
----
4324
4324
4324

skipif mysql # not compatible
query I rowsort label-492
SELECT - - CAST ( - - 92 AS INTEGER ) * + + 47 AS col0 FROM tab1 AS cor0
----
4324
4324
4324

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

query I rowsort
SELECT + col2 * - 2 AS col2 FROM tab2 AS cor0 WHERE NOT 40 + + + col1 BETWEEN - - col2 AND - col2
----
-116
-46
-80

query I rowsort
SELECT ALL + 48 * - - col1 FROM tab1
----
2256
240
672

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT DISTINCT - MIN( ALL - 6 ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-497
SELECT DISTINCT - MIN ( ALL - 6 ) AS col1 FROM tab0
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-499
SELECT DISTINCT - CAST( 65 AS SIGNED ) + + - 17 + - - 62 - col2 + 86 * - col2 * - + col0 * - + CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT + 94 >= col1
----

skipif mysql # not compatible
query I rowsort label-499
SELECT DISTINCT - CAST ( 65 AS INTEGER ) + + - 17 + - - 62 - col2 + 86 * - col2 * - + col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT + 94 >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT + col1 + + + col1 FROM tab0
----
162
2
42

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

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

query I rowsort
SELECT + + col0 + + col0 FROM tab2 cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-504
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 18 = + col0 * 16
----
0

skipif mysql # not compatible
query I rowsort label-504
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 18 = + col0 * 16
----
0

query I rowsort
SELECT DISTINCT - + 4 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND - + 50 + - - col0 + 22 + + 15 + col1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-506
SELECT ALL + + 20 + - ( + + ( - COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-506
SELECT ALL + + 20 + - ( + + ( - COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= 65
----
0

skipif mysql # not compatible
query I rowsort label-507
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= 65
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 68
----

query I rowsort
SELECT col0 * + - 21 FROM tab1
----
-1071
-1785
-1911

query I rowsort
SELECT DISTINCT + ( + + col2 ) + + 60 * - 99 AS col1 FROM tab1
----
-5844
-5872
-5881

query I rowsort
SELECT DISTINCT + 49 AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-513
SELECT CAST( NULL AS SIGNED ) * + MAX( + + col0 ) - - SUM( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT 2 * col0 - + col0 * col2 AS col1 FROM tab2
----
-2432
-4200
-966

query II rowsort
SELECT + col2 - + col0 * + - col0, + col0 FROM tab1 AS cor0
----
2697
51
7284
85
8349
91

query I rowsort
SELECT - col2 * - 23 + 57 FROM tab1 AS cor0
----
1414
1621
2265

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

query I rowsort
SELECT DISTINCT + ( ( + col2 ) ) AS col0 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * col1, col2 col1 FROM tab0
----
1
99
441
10
6561
47

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT - 98 DIV - col1 FROM tab1
----
19
2
7

skipif mysql # not compatible
query I rowsort label-520
SELECT - 98 / - col1 FROM tab1
----
19
2
7

query I rowsort
SELECT DISTINCT + col0 * 23 AS col0 FROM tab0 AS cor0
----
2001
2231
345

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 27 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 35 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col2 * col1 - + col1 - + + col2 * + 64 FROM tab2 cor0
----
-350
107
443

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT - COUNT( + + 65 ) * + SUM( DISTINCT col2 ) * - 7 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
14049

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - COUNT ( + + 65 ) * + SUM ( DISTINCT col2 ) * - 7 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
14049

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 - + - col1 * + + col2 BETWEEN + col2 + - 92 AND NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 80 >= NULL
----

query II rowsort
SELECT DISTINCT + 31, col1 FROM tab1
----
31
14
31
47
31
5

query II rowsort
SELECT 36 AS col2, col2 AS col1 FROM tab2
----
36
23
36
40
36
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col1 AS col0 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT + col0 AS col0, 64 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
64
87
64
97
64

query I rowsort
SELECT 6 * + - col1 * - ( - col2 ) FROM tab2
----
-18480
-23316
-7038

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

query I rowsort
SELECT DISTINCT - col2 * + 51 AS col2 FROM tab1 AS cor0
----
-3009
-3468
-4896

query I rowsort
SELECT ALL + col2 * - + col2 AS col1 FROM tab0 cor0
----
-100
-2209
-9801

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

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

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

query I rowsort
SELECT ALL - col0 * 85 + 2 AS col2 FROM tab2 AS cor0
----
-3908
-5438
-6373

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT ALL col0 + + 31 - - col2 AS col1 FROM tab1
----
175
178
190

query II rowsort
SELECT + col1, col1 * + col1 + + 81 * - col2 FROM tab1
----
14
-7580
47
-3299
5
-4754

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT 62 + - COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-548
SELECT 62 + - COUNT ( * ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT col0 - 42 * - col2 FROM tab0 AS cor0
----
1989
4255
507

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

skipif mysql # not compatible
query I rowsort label-550
SELECT + COUNT ( * ) + + 21 AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT - COUNT( * ) + + COUNT( * ) + - - 65 * - 62 AS col0 FROM tab1
----
-4030

skipif mysql # not compatible
query I rowsort label-551
SELECT - COUNT ( * ) + + COUNT ( * ) + - - 65 * - 62 AS col0 FROM tab1
----
-4030

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT ALL + col2 DIV + - 3 AS col0 FROM tab1
----
-19
-22
-32

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL + col2 / + - 3 AS col0 FROM tab1
----
-19
-22
-32

query I rowsort
SELECT DISTINCT 36 + 31 FROM tab0
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-554
SELECT ALL * FROM tab0 WHERE NOT + - 51 + - CAST( + + 50 AS SIGNED ) IN ( - 33 + + col1 - - col1, + 55, + col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-554
SELECT ALL * FROM tab0 WHERE NOT + - 51 + - CAST ( + + 50 AS INTEGER ) IN ( - 33 + + col1 - - col1, + 55, + col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + - 27 ) + - + 6 AS col2, - 69 + - + col1 col0 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
21
-150
21
-70
21
-90

query I rowsort
SELECT ALL + col2 * col2 * - 96 AS col1 FROM tab0 AS cor0 WHERE 62 * - col2 IS NOT NULL
----
-212064
-940896
-9600

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-557
SELECT + col0 * + col0 AS col2, - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 4 * + col1 - + 83 + col2
----

skipif mysql # not compatible
query II rowsort label-557
SELECT + col0 * + col0 AS col2, - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 4 * + col1 - + 83 + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-559
SELECT ALL MIN( DISTINCT 13 ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-559
SELECT ALL MIN ( DISTINCT 13 ) AS col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT - COUNT( * ) * COUNT( * ) * ( 95 ) AS col2 FROM tab1 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-560
SELECT - COUNT ( * ) * COUNT ( * ) * ( 95 ) AS col2 FROM tab1 AS cor0
----
-855

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col2, 8 FROM tab1 AS cor0
----
51
8
85
8
91
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-562
SELECT + CAST( + col2 AS SIGNED ) * - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-562
SELECT + CAST ( + col2 AS INTEGER ) * - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - MIN( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46

skipif mysql # not compatible
query I rowsort label-563
SELECT - MIN ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-46

query II rowsort
SELECT + + 22 AS col2, col0 FROM tab0 AS cor0
----
22
15
22
87
22
97

onlyif mysql # DIV for integer division: 
query II rowsort label-565
SELECT + + col1, - col2 DIV - col2 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-565
SELECT + + col1, - col2 / - col2 FROM tab2 AS cor0
----
51
1
67
1
77
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 BETWEEN + col1 AND 77
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - - 10 ) AS col2 FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-571
SELECT ALL + CAST( NULL AS SIGNED ) + - - 11 + + col2 + + ( + + col0 ) / + ( + - col1 ) * col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + + col0 * - col2 - - + col2 AS col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT DISTINCT + 80 + - COUNT( * ) + - 31 AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-573
SELECT DISTINCT + 80 + - COUNT ( * ) + - 31 AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col1 * + 59 AS col1 FROM tab1 AS cor0
----
2773
295
826

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-576
SELECT DISTINCT - col1 + + - col2 DIV 96 * - col0 AS col0 FROM tab1 AS cor0
----
-47
-5
37

skipif mysql # not compatible
query I rowsort label-576
SELECT DISTINCT - col1 + + - col2 / 96 * - col0 AS col0 FROM tab1 AS cor0
----
-47
-5
37

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

query I rowsort
SELECT + 45 AS col0 FROM tab1 WHERE ( 4 IS NULL )
----

query I rowsort
SELECT DISTINCT - 19 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-19

query I rowsort
SELECT ALL 28 + + + col2 AS col1 FROM tab2
----
51
68
86

query I rowsort
SELECT ALL - col1 + - - col2 * 74 - - col0 FROM tab2
----
1697
2947
4300

query I rowsort
SELECT col0 + - + 57 FROM tab1 AS cor0
----
-6
28
34

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT ALL 27 - COUNT( * ) * + SUM( DISTINCT 73 ) AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-583
SELECT ALL 27 - COUNT ( * ) * + SUM ( DISTINCT 73 ) AS col2 FROM tab1 AS cor0
----
-192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 IN ( + - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - 64 + - 61 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-586
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT + 44 ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-586
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT + 44 ) FROM tab2 AS cor0
----
132

query I rowsort
SELECT - 88 - - + 41 FROM tab0
----
-47
-47
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-588
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-589
SELECT + COUNT( * ) * - + 83 DIV + SUM( DISTINCT + 27 ) - - 4 AS col1 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-589
SELECT + COUNT ( * ) * - + 83 / + SUM ( DISTINCT + 27 ) - - 4 AS col1 FROM tab2
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-590
SELECT ALL 21 + + CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-590
SELECT ALL 21 + + CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab0
----
NULL
3

query I rowsort
SELECT - col0 * - 86 FROM tab1
----
4386
7310
7826

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-592
SELECT col1 AS col0, col0 * + col1 * CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-592
SELECT col1 AS col0, col0 * + col1 * CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT 4 AS col1, + col2 FROM tab1
----
4
59
4
68
4
96

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL AND - 24 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-595
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col0 - + 66 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT - 11 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-11
-11
-11

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 52 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-599
SELECT 46 DIV - col2 + - + 20 AS col1 FROM tab2 AS cor0
----
-20
-21
-22

skipif mysql # not compatible
query I rowsort label-599
SELECT 46 / - col2 + - + 20 AS col1 FROM tab2 AS cor0
----
-20
-21
-22

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT DISTINCT col2 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 60 + + ( - + 90 ) AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-601
SELECT DISTINCT col2 col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN + 60 + + ( - + 90 ) AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 23 * + col2 FROM tab2 AS cor0
----
1334
529
920

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

onlyif mysql # aggregate syntax: 
query II rowsort label-604
SELECT ALL MIN( ALL + + col1 ), + 94 AS col1 FROM tab0 AS cor0
----
1
94

skipif mysql # not compatible
query II rowsort label-604
SELECT ALL MIN ( ALL + + col1 ), + 94 AS col1 FROM tab0 AS cor0
----
1
94

onlyif mysql # aggregate syntax: 
query I rowsort label-605
SELECT ALL + COUNT( * ) + + - 39 AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-605
SELECT ALL + COUNT ( * ) + + - 39 AS col1 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT COUNT( - 84 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-606
SELECT COUNT ( - 84 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col2 + 65 AS col0 FROM tab2
----
105
123
88

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT DISTINCT - MAX( - 48 ) + + - 54 AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT - MAX ( - 48 ) + + - 54 AS col0 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-609
SELECT DISTINCT - COUNT( * ) + + ( - - 4 ) * + + 35 FROM tab1
----
137

skipif mysql # not compatible
query I rowsort label-609
SELECT DISTINCT - COUNT ( * ) + + ( - - 4 ) * + + 35 FROM tab1
----
137

query I rowsort
SELECT DISTINCT + 42 + + - 95 * col2 AS col2 FROM tab1
----
-5563
-6418
-9078

query I rowsort
SELECT col2 * + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4896
5015
6188

query I rowsort
SELECT ALL col0 + - 62 + - - 52 AS col1 FROM tab0 AS cor0
----
5
77
87

query II rowsort
SELECT ALL + 62 AS col2, col1 FROM tab2 AS cor0
----
62
51
62
67
62
77

query I rowsort
SELECT + ( 71 ) FROM tab1
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-615
SELECT + 30 DIV col1 + 14 FROM tab2
----
14
14
14

skipif mysql # not compatible
query I rowsort label-615
SELECT + 30 / col1 + 14 FROM tab2
----
14
14
14

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 BETWEEN ( col2 / - ( + col2 * col0 ) + - col1 * - 90 ) AND 78
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-617
SELECT 62 * - COUNT( * ) AS col2 FROM tab2 WHERE NOT + 52 + 36 * 23 > col0
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT 62 * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 52 + 36 * 23 > col0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 * - col2 < 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 33 - - col0 FROM tab0
----
120
130
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 2 ) BETWEEN col2 AND col2 * col0
----

query I rowsort
SELECT col1 + col1 * - col1 FROM tab0
----
-420
-6480
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 11 + col2 BETWEEN 51 * col0 AND ( - col1 )
----

query I rowsort
SELECT ALL 16 + col2 FROM tab1
----
112
75
84

onlyif mysql # DIV for integer division: 
query I rowsort label-624
SELECT col1 DIV 16 AS col0 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-624
SELECT col1 / 16 AS col0 FROM tab1
----
0
0
2

query I rowsort
SELECT ALL - 48 + - col2 * - col1 FROM tab1
----
1296
247
3148

query I rowsort
SELECT DISTINCT - 19 * col2 - + 84 FROM tab1
----
-1205
-1376
-1908

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT DISTINCT COUNT( * ) * 22 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-628
SELECT DISTINCT COUNT ( * ) * 22 FROM tab0
----
66

query III rowsort
SELECT * FROM tab2 WHERE NOT 24 IN ( 21 * - 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-630
SELECT DISTINCT - 89 DIV + col2 AS col0 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT - 89 / + col2 AS col0 FROM tab0
----
-1
-8
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 >= + 86
----
51
14
96
85
5
59

query I rowsort
SELECT + 35 * + col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT 3 + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT DISTINCT - col0 DIV + ( col2 ) AS col2 FROM tab1
----
-1
0

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( 31 ) BETWEEN + 33 AND + 11 * 98
----
14
47
5

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

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

query I rowsort
SELECT col1 * + col2 - - 37 * + 51 AS col2 FROM tab1
----
2182
3231
5083

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT + MIN( 35 ) * - COUNT( * ) + + MIN( - 59 ) AS col1 FROM tab2
----
-164

skipif mysql # not compatible
query I rowsort label-639
SELECT + MIN ( 35 ) * - COUNT ( * ) + + MIN ( - 59 ) AS col1 FROM tab2
----
-164

query I rowsort
SELECT col2 * 52 - - 66 AS col1 FROM tab0
----
2510
5214
586

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-641
SELECT DISTINCT CAST( - 47 AS SIGNED ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT CAST ( - 47 AS INTEGER ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-642
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( col2 * ( 34 * + CAST( 49 AS SIGNED ) ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( col2 * ( 34 * + CAST ( 49 AS INTEGER ) ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT ALL + MIN( ALL - 4 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-643
SELECT ALL + MIN ( ALL - 4 ) AS col1 FROM tab1
----
-4

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-646
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL = ( col2 - col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT - SUM( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-647
SELECT - SUM ( - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-648
SELECT ALL COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 93 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-648
SELECT ALL COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 93 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT ALL MIN( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23

query I rowsort
SELECT 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-651
SELECT - COUNT( * ) DIV 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
0

skipif mysql # not compatible
query I rowsort label-651
SELECT - COUNT ( * ) / 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-652
SELECT + MAX( ALL + 52 ) FROM tab0 WHERE NOT col2 + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT + MAX ( ALL + 52 ) FROM tab0 WHERE NOT col2 + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-653
SELECT + 94 DIV col2 + 77 FROM tab0 AS cor0
----
77
79
86

skipif mysql # not compatible
query I rowsort label-653
SELECT + 94 / col2 + 77 FROM tab0 AS cor0
----
77
79
86

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 38 + col2 BETWEEN + col0 AND 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 66 + - col0 FROM tab1 AS cor0
----
-117
-151
-157

query I rowsort
SELECT 16 * - col1 + + 21 FROM tab2 AS cor0
----
-1051
-1211
-795

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 * - 32 ) NOT IN ( - 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 * + col0 + - 50 FROM tab0 AS cor0
----
-755
-920
-9653

query I rowsort
SELECT + + col2 + 15 * col2 FROM tab1 cor0
----
1088
1536
944

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT - col2 DIV + 34 + 33 FROM tab2
----
32
33

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT - col2 / + 34 + 33 FROM tab2
----
32
33

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT DISTINCT - 94 + - COUNT( * ) AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-661
SELECT DISTINCT - 94 + - COUNT ( * ) AS col2 FROM tab2
----
-97

query III rowsort
SELECT * FROM tab0 WHERE col0 * - col2 + col1 * 63 IN ( - 24 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT - 81 + - 59 - - COUNT( * ) AS col2 FROM tab0
----
-137

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT - 81 + - 59 - - COUNT ( * ) AS col2 FROM tab0
----
-137

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col0 AND ( col1 ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL 71 AS col2 FROM tab0 WHERE NOT + 10 * - col1 IS NULL
----
71
71
71

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT ALL AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2, tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 53 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-669
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-669
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 + - + 27 FROM tab1
----
24
58
64

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-674
SELECT DISTINCT + + col1 - + - col2 * + + 81 * CAST( NULL AS SIGNED ) + ( + 1 ) FROM tab1 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col2 / + 19 > - 32 + + col2
----

query I rowsort
SELECT ALL + col2 * + + 74 * - + col1 FROM tab0 cor0
----
-15540
-281718
-7326

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT DISTINCT - SUM( ALL + col2 ) + 17 FROM tab1 AS cor0 WHERE NOT - col1 <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT DISTINCT - SUM ( ALL + col2 ) + 17 FROM tab1 AS cor0 WHERE NOT - col1 <= + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT DISTINCT 28 * - - SUM( + 47 ) FROM tab2
----
3948

skipif mysql # not compatible
query I rowsort label-678
SELECT DISTINCT 28 * - - SUM ( + 47 ) FROM tab2
----
3948

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-679
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + 65, - 15 col1 FROM tab2
----
2990
-15
4160
-15
4875
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT COUNT( * ) * + 87 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-681
SELECT COUNT ( * ) * + 87 FROM tab0
----
261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-682
SELECT * FROM tab1 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-682
SELECT * FROM tab1 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 96 * + col1 FROM tab2
----
4896
6432
7392

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-684
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1, 5 FROM tab2
----
NULL
5

skipif mysql # not compatible
query II rowsort label-684
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1, 5 FROM tab2
----
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-685
SELECT MIN( ALL - col2 ) * + 6 FROM tab0
----
-594

skipif mysql # not compatible
query I rowsort label-685
SELECT MIN ( ALL - col2 ) * + 6 FROM tab0
----
-594

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT - col0 DIV - + col0 AS col2 FROM tab1
----
1
1
1

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE ( NOT - - col1 > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-688
SELECT + CAST( ( - col1 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 75 BETWEEN + col2 AND col2
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-688
SELECT + CAST ( ( - col1 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 75 BETWEEN + col2 AND col2
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE col2 + 84 * + col1 NOT IN ( 23 * 86 + + col2 )
----
14
47
5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 35 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + 96 - - col1 BETWEEN - 5 AND - - 15
----
51
85
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-695
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

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

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL + MAX ( col0 ) AS col2 FROM tab1
----
91

query I rowsort
SELECT col0 + 8 FROM tab1
----
59
93
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-698
SELECT ( CAST( NULL AS SIGNED ) ) + + + 95 - 41 * 65 * 80 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-698
SELECT ( CAST ( NULL AS INTEGER ) ) + + + 95 - 41 * 65 * 80 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + col2 * + + col0 * - 54 + - - col1 col0 FROM tab2
----
-138248
-234918
-57166

query I rowsort
SELECT ALL - ( + - col0 ) + + col1 AS col2 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT - col1 + - 47 * - col2 AS col0 FROM tab1
----
2768
3149
4498

query I rowsort
SELECT col2 + 11 AS col2 FROM tab0
----
110
21
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-703
SELECT DISTINCT COUNT( ALL - + col1 ) + MIN( ALL - 93 ) - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT COUNT ( ALL - + col1 ) + MIN ( ALL - 93 ) - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-704
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 43 / - col1 BETWEEN NULL AND ( - CAST( NULL AS SIGNED ) + + + 7 - - col1 * col0 * col1 )
----

skipif mysql # not compatible
query III rowsort label-704
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + 43 / - col1 BETWEEN NULL AND ( - CAST ( NULL AS INTEGER ) + + + 7 - - col1 * col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT DISTINCT + - 19 col2, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-705
SELECT DISTINCT + - 19 col2, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-19
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL 13 - 76 DIV - 29 + + SUM( + 25 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
240

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 13 - 76 / - 29 + + SUM ( + 25 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
240

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NOT col2 = + + 96
----
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-708
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - - ( col2 ) AS DECIMAL ) NOT BETWEEN - col0 AND + col2
----
87
21
10

skipif mysql # not compatible
query III rowsort label-708
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - - ( col2 ) AS REAL ) NOT BETWEEN - col0 AND + col2
----
87
21
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 69 > - col1
----

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

query I rowsort
SELECT ALL - + col2 * + 75 AS col0 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

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

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

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

query I rowsort
SELECT ALL + 99 * + col0 FROM tab2
----
4554
6336
7425

query I rowsort
SELECT col1 * + 54 * + + ( 74 ) AS col0 FROM tab0
----
323676
3996
83916

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT - COUNT( ALL - 75 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-717
SELECT - COUNT ( ALL - 75 ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 95 col0 FROM tab2 AS cor0
----
-4370
-6080
-7125

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT DISTINCT COUNT( * ) + - MIN( ALL + - 95 ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL + - 95 ) FROM tab1
----
98

query II rowsort
SELECT col2 + - 50 AS col0, ( col0 ) * col1 AS col1 FROM tab1 WHERE + - col0 > ( + - col2 - - - col0 )
----
18
4277
46
714
9
425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-721
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - CAST( - - col0 AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-721
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> - CAST ( - - col0 AS INTEGER ) * - col1
----

query I rowsort
SELECT + - col2 + + + col2 * + 94 FROM tab0 AS cor0
----
4371
9207
930

query II rowsort
SELECT DISTINCT - col0 / + col1 * + col1 AS col0, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT ALL - 97 DIV + + 57 + - 86 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-724
SELECT ALL - 97 / + + 57 + - 86 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

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

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

skipif mysql # not compatible
query I rowsort label-726
SELECT SUM ( + 60 ) AS col1 FROM tab0 AS cor0
----
180

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * - col2 * + - 92 col2 FROM tab2 cor0
----
-148120
-257600
-373520

query I rowsort
SELECT DISTINCT 29 + - - col1 AS col1 FROM tab1
----
34
43
76

query I rowsort
SELECT 98 - - col1 FROM tab0
----
119
179
99

query I rowsort
SELECT col1 - - + col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - - 18 * - - col2 / + + 8 * col2 AS col1 FROM tab0 AS cor0 WHERE + col2 > NULL
----

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

query II rowsort
SELECT 4 AS col1, col2 AS col1 FROM tab2
----
4
23
4
40
4
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 3 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-736
SELECT - 60, CAST( NULL AS SIGNED ) + - + col0 + - + 85 AS col1, + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 9e416d52a4f91b26a435cbe32168f624

skipif mysql # not compatible
query III rowsort label-736
SELECT - 60, CAST ( NULL AS INTEGER ) + - + col0 + - + 85 AS col1, + - col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to 9e416d52a4f91b26a435cbe32168f624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + col2 col2 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT DISTINCT SUM( 69 ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-738
SELECT DISTINCT SUM ( 69 ) FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-739
SELECT COUNT( + 55 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-739
SELECT COUNT ( + 55 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 66 * - col2 FROM tab2 WHERE NOT - + 42 BETWEEN ( - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-742
SELECT DISTINCT 47 * - MAX( col1 ) FROM tab0
----
-3807

skipif mysql # not compatible
query I rowsort label-742
SELECT DISTINCT 47 * - MAX ( col1 ) FROM tab0
----
-3807

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 4 * + col2 col2, col0 AS col1 FROM tab2
----
160
64
232
75
92
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + + 74 AND - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-745
SELECT - + 94 * + - COUNT( + 72 ) + + COUNT( ALL col1 ) FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-745
SELECT - + 94 * + - COUNT ( + 72 ) + + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
285

query II rowsort
SELECT DISTINCT + 54, + col2 FROM tab0 AS cor0 WHERE 44 IS NULL
----

query II rowsort
SELECT DISTINCT + col1, + col0 * - col2 * + - col1 FROM tab2
----
51
53958
67
291450
77
197120

query I rowsort
SELECT ALL - col1 + 28 FROM tab1
----
-19
14
23

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT + SUM( DISTINCT + - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-749
SELECT + SUM ( DISTINCT + - col0 ) AS col2 FROM tab1
----
-227

query II rowsort
SELECT + col0, col2 * - + col0 FROM tab0
----
15
-705
87
-870
97
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-751
SELECT DISTINCT col1 DIV 4 FROM tab2 cor0
----
12
16
19

skipif mysql # not compatible
query I rowsort label-751
SELECT DISTINCT col1 / 4 FROM tab2 cor0
----
12
16
19

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

query I rowsort
SELECT - col0 + - col2 + - 8 + + col0 AS col2 FROM tab2 AS cor0
----
-31
-48
-66

query I rowsort
SELECT ALL - ( - col1 ) FROM tab1 AS cor0 WHERE NOT ( + 15 ) IS NULL
----
14
47
5

query I rowsort
SELECT 0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL ( 6 ) AS col2 FROM tab1 AS cor0
----
6
6
6

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

query III rowsort
SELECT * FROM tab1 WHERE 13 < + 15 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT - 53 + + + ( - SUM( + - col0 ) ) col0 FROM tab0
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-759
SELECT - 53 + + + ( - SUM ( + - col0 ) ) col0 FROM tab0
----
146

query I rowsort
SELECT + col0 + - - col0 * 88 * col0 AS col0 FROM tab2 WHERE + + col0 >= - - col2 * - + col2
----
186254
360512
495075

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 WHERE - - col0 NOT IN ( col2 )
----
59
68
96

query I rowsort
SELECT + ( col2 ) - 8 FROM tab1 AS cor0
----
51
60
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-763
SELECT ALL - COUNT( * ) * CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - COUNT ( * ) * CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 AS col0, - 72 col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 6f77dae08233f16952f766a358ba7231

query I rowsort
SELECT - 34 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-766
SELECT COUNT( * ) DIV - + 36 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-766
SELECT COUNT ( * ) / - + 36 AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT 42 DIV - ( col1 ) + 99 DIV + ( - - col2 ) FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-768
SELECT 42 / - ( col1 ) + 99 / + ( - - col2 ) FROM tab2 AS cor0
----
1
2
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT ALL CAST( - - 22 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-769
SELECT ALL CAST ( - - 22 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
22
22
22

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

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

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

query I rowsort
SELECT DISTINCT - 2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND ( + 8 )
----

query II rowsort
SELECT 23 AS col0, 31 FROM tab2
----
23
31
23
31
23
31

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT MIN( - 85 ) AS col1 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-774
SELECT MIN ( - 85 ) AS col1 FROM tab1
----
-85

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - ( - 3 ) * - + col2 FROM tab2
----
-120
-174
-69

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

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - 99 * - + col2 * + 75 FROM tab0
----
348975
735075
74250

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

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

query I rowsort
SELECT - 67 * + col0 FROM tab1 AS cor0
----
-3417
-5695
-6097

onlyif mysql # aggregate syntax: 
query II rowsort label-781
SELECT - - COUNT( * ) AS col1, 50 * - COUNT( * ) FROM tab0 AS cor0
----
3
-150

skipif mysql # not compatible
query II rowsort label-781
SELECT - - COUNT ( * ) AS col1, 50 * - COUNT ( * ) FROM tab0 AS cor0
----
3
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT + + MAX( DISTINCT 23 ) AS col2 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-782
SELECT + + MAX ( DISTINCT 23 ) AS col2 FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT ( + SUM( 65 ) ) + + 46 AS col1 FROM tab1
----
241

skipif mysql # not compatible
query I rowsort label-783
SELECT ( + SUM ( 65 ) ) + + 46 AS col1 FROM tab1
----
241

query I rowsort
SELECT DISTINCT 48 + - - col0 FROM tab0
----
135
145
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-785
SELECT 39 FROM tab1 cor0 LEFT JOIN tab0 cor1 ON NULL BETWEEN 74 * - + CAST( NULL AS SIGNED ) AND 69
----
39
39
39

skipif mysql # not compatible
query I rowsort label-785
SELECT 39 FROM tab1 cor0 LEFT JOIN tab0 cor1 ON NULL BETWEEN 74 * - + CAST ( NULL AS INTEGER ) AND 69
----
39
39
39

query II rowsort
SELECT DISTINCT col0 * col0 + col0 AS col2, - col0 AS col1 FROM tab0
----
240
-15
7656
-87
9506
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 7 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-788
SELECT DISTINCT - 72 - - CAST( + ( + - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
-123
-157
-163

skipif mysql # not compatible
query I rowsort label-788
SELECT DISTINCT - 72 - - CAST ( + ( + - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
-123
-157
-163

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * col0 + - - col1 * col2 > + + col1
----
51
14
96

onlyif mysql # DIV for integer division: 
query II rowsort label-790
SELECT - 22 * + 63 AS col0, - col2 DIV + col0 AS col1 FROM tab0 cor0
----
-1386
-1
-1386
-3
-1386
0

skipif mysql # not compatible
query II rowsort label-790
SELECT - 22 * + 63 AS col0, - col2 / + col0 AS col1 FROM tab0 cor0
----
-1386
-1
-1386
-3
-1386
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-791
SELECT ALL - - MAX( DISTINCT 62 ), SUM( ALL + 40 ) * - 71 - + + CAST( NULL AS SIGNED ) * - 48 AS col1 FROM tab0 AS cor0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-791
SELECT ALL - - MAX ( DISTINCT 62 ), SUM ( ALL + 40 ) * - 71 - + + CAST ( NULL AS INTEGER ) * - 48 AS col1 FROM tab0 AS cor0
----
62
NULL

query I rowsort
SELECT ALL col0 - + col2 * + col2 FROM tab0 AS cor0
----
-13
-2194
-9704

query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT + + COUNT( * ) * + - 96 FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-794
SELECT + + COUNT ( * ) * + - 96 FROM tab2 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT ALL + 68 - - MAX( - 50 ) AS col1 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-795
SELECT ALL + 68 - - MAX ( - 50 ) AS col1 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query II rowsort label-796
SELECT col2 * - col1 AS col0, - col0 DIV - col1 FROM tab1 AS cor0
----
-1344
3
-295
17
-3196
1

skipif mysql # not compatible
query II rowsort label-796
SELECT col2 * - col1 AS col0, - col0 / - col1 FROM tab1 AS cor0
----
-1344
3
-295
17
-3196
1

query I rowsort
SELECT ALL - col0 * + col0 AS col1 FROM tab1 cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-798
SELECT DISTINCT COUNT( * ) * 1 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-798
SELECT DISTINCT COUNT ( * ) * 1 AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT ALL COUNT( * ) + + + COUNT( * ) + 77 AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-799
SELECT ALL COUNT ( * ) + + + COUNT ( * ) + 77 AS col1 FROM tab0
----
83

query I rowsort
SELECT col0 * + 63 - col0 AS col0 FROM tab0
----
5394
6014
930

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL - 9 * + COUNT( * ) col0 FROM tab2
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-801
SELECT ALL - 9 * + COUNT ( * ) col0 FROM tab2
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT 49 - 56 AS col0 FROM tab2
----
-7
-7
-7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-804
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( + 4 ) col1, - 86 AS col0 FROM tab1
----
NULL
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-804
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( + 4 ) col1, - 86 AS col0 FROM tab1
----
NULL
-86

query I rowsort
SELECT col1 * + - 30 + col0 AS col1 FROM tab1
----
-1319
-369
-65

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

query II rowsort
SELECT - col1 AS col0, - col1 * + col1 FROM tab2 AS cor0
----
-51
-2601
-67
-4489
-77
-5929

onlyif mysql # aggregate syntax: 
query II rowsort label-808
SELECT ALL + - COUNT( * ) AS col0, 31 * - COUNT( * ) FROM tab1 AS cor0
----
-3
-93

skipif mysql # not compatible
query II rowsort label-808
SELECT ALL + - COUNT ( * ) AS col0, 31 * - COUNT ( * ) FROM tab1 AS cor0
----
-3
-93

query I rowsort
SELECT ALL - - col0 * 75 + + col1 + - col2 AS col2 FROM tab2 AS cor0
----
3478
4837
5634

query II rowsort
SELECT ALL col1, - col0 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT col2 * col0 * - 86 AS col2 FROM tab1
----
-421056
-431290
-532168

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT SUM( ALL + 53 ) * COUNT( * ) FROM tab1
----
477

skipif mysql # not compatible
query I rowsort label-812
SELECT SUM ( ALL + 53 ) * COUNT ( * ) FROM tab1
----
477

query II rowsort
SELECT + 32, - 57 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab1 cor0 WHERE NOT NULL < ( + 61 )
----

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

skipif mysql # not compatible
query I rowsort label-815
SELECT COUNT ( - 14 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT SUM( ALL 59 ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-816
SELECT SUM ( ALL 59 ) FROM tab2
----
177

query III rowsort
SELECT * FROM tab0 WHERE NOT + 4 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT DISTINCT + COUNT( * ) * - 93 col2 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-819
SELECT DISTINCT + COUNT ( * ) * - 93 col2 FROM tab2
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 38 col2 FROM tab1
----
123
129
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * + col1 + + col2 col2 FROM tab1
----
129120
17464
217396

onlyif mysql # aggregate syntax: 
query II rowsort label-822
SELECT ALL + - COUNT( * ) AS col2, 38 * 70 FROM tab0 WHERE NOT + - 89 + - + col2 + 0 + - 85 * + col2 * + - col2 = + + col2
----
-3
2660

skipif mysql # not compatible
query II rowsort label-822
SELECT ALL + - COUNT ( * ) AS col2, 38 * 70 FROM tab0 WHERE NOT + - 89 + - + col2 + 0 + - 85 * + col2 * + - col2 = + + col2
----
-3
2660

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-824
SELECT DISTINCT - MAX ( DISTINCT + col1 ) col1 FROM tab2
----
-77

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

onlyif mysql # DIV for integer division: 
query I rowsort label-826
SELECT col1 DIV 22 DIV - col2 * 11 + - 5 + - 86 col0 FROM tab0 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-826
SELECT col1 / 22 / - col2 * 11 + - 5 + - 86 col0 FROM tab0 AS cor0
----
-91
-91
-91

query I rowsort
SELECT 69 + + - col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 29 + - col2 AND NULL
----

query I rowsort
SELECT + 8 + - 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-830
SELECT DISTINCT - col1, - col0 DIV + col2 AS col0 FROM tab0
----
-1
0
-21
-8
-81
0

skipif mysql # not compatible
query II rowsort label-830
SELECT DISTINCT - col1, - col0 / + col2 AS col0 FROM tab0
----
-1
0
-21
-8
-81
0

query I rowsort
SELECT ( - 30 ) AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-832
SELECT ALL CAST( NULL AS SIGNED ) + AVG ( 23 ) col2 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-833
SELECT ALL + 59 + + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL + 59 + + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
56

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

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

query I rowsort
SELECT - + 81 + col0 FROM tab0 AS cor0
----
-66
16
6

query I rowsort
SELECT - col2 + + 49 AS col1 FROM tab1 cor0
----
-10
-19
-47

query I rowsort
SELECT ALL - + col2 * col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-838
SELECT + - col2 FROM tab1 WHERE NULL BETWEEN + ( - col2 ) / - - col2 / + col1 - + CAST( - col2 AS SIGNED ) AND - - 26
----

skipif mysql # not compatible
query I rowsort label-838
SELECT + - col2 FROM tab1 WHERE NULL BETWEEN + ( - col2 ) / - - col2 / + col1 - + CAST ( - col2 AS INTEGER ) AND - - 26
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 WHERE NOT - - col2 BETWEEN NULL AND + ( 2 )
----
-1
-21
-81

query I rowsort
SELECT ALL ( + - ( col2 ) ) AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL - 91 * - col0 + col2 * - col0 FROM tab0 AS cor0
----
-776
660
7047

query I rowsort
SELECT - ( + 89 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 )
----

query I rowsort
SELECT - 30 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

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

query I rowsort
SELECT DISTINCT - 66 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-848
SELECT + CAST( - 1 AS SIGNED ) * ( - col0 ) + + 27 FROM tab1 AS cor0
----
112
118
78

skipif mysql # not compatible
query I rowsort label-848
SELECT + CAST ( - 1 AS INTEGER ) * ( - col0 ) + + 27 FROM tab1 AS cor0
----
112
118
78

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + COUNT( * ) * + AVG ( DISTINCT + + 53 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + 3 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-849
SELECT + COUNT ( * ) * + AVG ( DISTINCT + + 53 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - + 3 + col0
----
NULL

query I rowsort
SELECT - 95 + col0 FROM tab2 AS cor0
----
-20
-31
-49

query I rowsort
SELECT ALL 62 * - + col0 FROM tab0 AS cor0
----
-5394
-6014
-930

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + 68 * - col1 col1, - 40 FROM tab0 AS cor0
----
-1407
-40
-5427
-40
-67
-40

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

query II rowsort
SELECT - col1 AS col0, - col0 - + 42 * - 23 FROM tab1 AS cor0
----
-14
915
-47
875
-5
881

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-855
SELECT DISTINCT COUNT( * ) DIV - COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-855
SELECT DISTINCT COUNT ( * ) / - COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-856
SELECT DISTINCT col0 * - col1 + + CAST( + col2 AS SIGNED ) + + col1 FROM tab0
----
-1087
-1796
3

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT col0 * - col1 + + CAST ( + col2 AS INTEGER ) + + col1 FROM tab0
----
-1087
-1796
3

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 46 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT - + ( - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-859
SELECT - + ( - COUNT ( * ) ) FROM tab1 cor0
----
3

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 = + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT 51 DIV 15 DIV - - 67 + - col2 col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-862
SELECT 51 / 15 / - - 67 + - col2 col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT - COUNT( DISTINCT col1 ) + + MAX( DISTINCT - - col0 ) FROM tab2 WHERE NULL <> + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-863
SELECT - COUNT ( DISTINCT col1 ) + + MAX ( DISTINCT - - col0 ) FROM tab2 WHERE NULL <> + + col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-865
SELECT + + CAST( + 58 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-865
SELECT + + CAST ( + 58 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL - - 93 - - COUNT( * ) col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-866
SELECT ALL - - 93 - - COUNT ( * ) col2 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT ALL - + COUNT( * ) + + 85 AS col1 FROM tab0 cor0 WHERE NULL = col2
----
85

skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - + COUNT ( * ) + + 85 AS col1 FROM tab0 cor0 WHERE NULL = col2
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT 98 AS col0, + COUNT( * ) FROM tab2 AS cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-868
SELECT 98 AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
98
3

query I rowsort
SELECT DISTINCT - col1 - + col0 AS col0 FROM tab0 cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-870
SELECT ALL + 53 - - col2 + - 36 - - + col1 * - col2 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL + 53 - - col2 + - 36 - - + col1 * - col2 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + 38 + - col1
----

query I rowsort
SELECT ALL + + col0 - - + col1 AS col1 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + ( + + ( + col0 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-875
SELECT DISTINCT MAX( - 3 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-875
SELECT DISTINCT MAX ( - 3 ) col1 FROM tab2
----
-3

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

query II rowsort
SELECT - 24 AS col2, 43 FROM tab1
----
-24
43
-24
43
-24
43

query I rowsort
SELECT - col0 * - - 27 FROM tab2
----
-1242
-1728
-2025

query I rowsort
SELECT ALL + 23 AS col0 FROM tab0 WHERE NOT NULL > + col1 / + - 62 + - col1 * - col0 + col1 + - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + - col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT + + 66 * - + col0 AS col0 FROM tab0 AS cor0
----
-5742
-6402
-990

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT + 55 DIV COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
6

skipif mysql # not compatible
query I rowsort label-883
SELECT + 55 / COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
6

query I rowsort
SELECT - ( + - 23 ) * + - col0 + - + 88 FROM tab0
----
-2089
-2319
-433

query I rowsort
SELECT ALL + + 98 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

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

skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL col1 DIV + col0 * - col2 FROM tab1 cor0
----
0
0
0

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

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

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

query I rowsort
SELECT ALL + + 43 AS col2 FROM tab0 AS cor0
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT col1 + - 51 DIV - col0 FROM tab2
----
52
67
77

skipif mysql # not compatible
query I rowsort label-891
SELECT col1 + - 51 / - col0 FROM tab2
----
52
67
77

query II rowsort
SELECT DISTINCT - 88 AS col1, col1 FROM tab1
----
-88
14
-88
47
-88
5

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT 28 * + col1 + + + col0 DIV + - col1 AS col1 FROM tab2
----
1428
1875
2156

skipif mysql # not compatible
query I rowsort label-893
SELECT 28 * + col1 + + + col0 / + - col1 AS col1 FROM tab2
----
1428
1875
2156

query I rowsort
SELECT - col0 + - + 6 AS col0 FROM tab2
----
-52
-70
-81

query I rowsort
SELECT col2 + - - 4 * + + col1 AS col2 FROM tab1
----
152
256
79

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 1 + col1 AS col1 FROM tab2
----
52
68
78

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN - 83 + - - 52 AND - col1
----

query I rowsort
SELECT DISTINCT col0 - - col2 + + col2 AS col1 FROM tab2 AS cor0
----
144
191
92

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

query I rowsort
SELECT col2 * + col2 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND + 47
----

query I rowsort
SELECT DISTINCT - 35 + + + col1 FROM tab2 AS cor0
----
16
32
42

query I rowsort
SELECT 98 + 75 AS col1 FROM tab0 AS cor0
----
173
173
173

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

query I rowsort
SELECT ALL col2 * - - 55 * col0 FROM tab0 AS cor0
----
38775
47850
528165

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT MIN( ALL - col0 ) + - + ( + - 17 ) * - 69 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1248

skipif mysql # not compatible
query I rowsort label-907
SELECT MIN ( ALL - col0 ) + - + ( + - 17 ) * - 69 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1248

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT ALL - 38 + MIN( DISTINCT - - col0 ) FROM tab1 WHERE NOT NULL >= - + 25
----
NULL

skipif mysql # not compatible
query I rowsort label-908
SELECT ALL - 38 + MIN ( DISTINCT - - col0 ) FROM tab1 WHERE NOT NULL >= - + 25
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT ALL + SUM( + 49 ) FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-909
SELECT ALL + SUM ( + 49 ) FROM tab1 cor0
----
147

onlyif mysql # DIV for integer division: 
query II rowsort label-910
SELECT - - col2 DIV + ( col2 ), col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-910
SELECT - - col2 / + ( col2 ), col1 FROM tab2 AS cor0
----
1
51
1
67
1
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-911
SELECT - - 97 DIV - ( - + SUM( - col0 ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-911
SELECT - - 97 / - ( - + SUM ( - col0 ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT COUNT( * ) + SUM( ALL col2 ) - - COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT + col2 - 90 IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-912
SELECT COUNT ( * ) + SUM ( ALL col2 ) - - COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT + col2 - 90 IS NULL
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-913
SELECT DISTINCT MIN( + + ( + 3 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-913
SELECT DISTINCT MIN ( + + ( + 3 ) ) FROM tab0
----
3

query I rowsort
SELECT - ( + + col1 ) + + col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-915
SELECT DISTINCT - - COUNT( col0 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT col0 + ( - 79 ) FROM tab0 AS cor0
----
-64
18
8

query II rowsort
SELECT DISTINCT - ( - 79 ), + 84 AS col0 FROM tab0 AS cor0
----
79
84

query I rowsort
SELECT - + col1 + + 0 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-919
SELECT + col1, col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED ) + col0 - - 2 + + col1
----

skipif mysql # not compatible
query II rowsort label-919
SELECT + col1, col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER ) + col0 - - 2 + + col1
----

query I rowsort
SELECT ALL + col1 + + - col2 + + - ( col2 ) AS col2 FROM tab1
----
-113
-178
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-921
SELECT ALL ( - col1 ) + col0 - + CAST( NULL AS SIGNED ) + + 1 * 28 * ( + + col2 ) col0 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL col1 * - col2 + + col2 AS col0 FROM tab0
----
-200
-3760
0

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT col2 DIV 35 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-923
SELECT col2 / 35 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL + 91 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT MAX( - col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-925
SELECT MAX ( - col1 ) col1 FROM tab2
----
-51

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 62 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT - COUNT( - - 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-927
SELECT - COUNT ( - - 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

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

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

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

query II rowsort
SELECT ALL + col2 AS col1, col1 * 67 AS col2 FROM tab1 AS cor0
----
59
335
68
3149
96
938

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 51 FROM tab0 AS cor0
----
1
-51
21
-51
81
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-933
SELECT ( + CAST( NULL AS SIGNED ) ) * col0 AS col1 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT COUNT( - ( 24 ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-934
SELECT COUNT ( - ( 24 ) ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-935
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( col2 ) FROM tab0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-936
SELECT ( - MIN( + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-936
SELECT ( - MIN ( + col0 ) ) FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1 * + - 66
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 61 / - - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 70 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT col0 * - + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - col2 * 57 + + 98 * 80 FROM tab0 AS cor0
----
2197
5161
7270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 + + col1 col1 FROM tab2 AS cor0
----
69
85
95

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL + - MIN( DISTINCT + + 43 ) FROM tab1 cor0
----
-43

skipif mysql # not compatible
query I rowsort label-943
SELECT ALL + - MIN ( DISTINCT + + 43 ) FROM tab1 cor0
----
-43

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

query I rowsort
SELECT col0 + - - col2 + - + col0 FROM tab0 cor0
----
10
47
99

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

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

query I rowsort
SELECT - col0 + + 97 AS col0 FROM tab0 AS cor0
----
0
10
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT DISTINCT SUM( ALL + + col0 ) * + 43 AS col0 FROM tab1
----
9761

skipif mysql # not compatible
query I rowsort label-949
SELECT DISTINCT SUM ( ALL + + col0 ) * + 43 AS col0 FROM tab1
----
9761

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 * + col0 col0 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT + col2 + + - col1 + - col1 AS col0 FROM tab0
----
-115
-32
97

onlyif mysql # DIV for integer division: 
query I rowsort label-952
SELECT col1 + + + 7 DIV col2 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-952
SELECT col1 + + + 7 / col2 AS col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT + 13 * + + 2 DIV - col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT + 13 * + + 2 / - col0 AS col2 FROM tab1
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + ( - + 13 ) NOT BETWEEN - 63 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT 82 * + + COUNT( * ) FROM tab0, tab2 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-956
SELECT 82 * + + COUNT ( * ) FROM tab0, tab2 AS cor0
----
738

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

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

query I rowsort
SELECT ( ( + 57 ) ) FROM tab1 cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT - MAX( ALL ( - 92 ) ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-959
SELECT - MAX ( ALL ( - 92 ) ) FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT + + col2 - col0 * + col0 AS col1 FROM tab1 cor0
----
-2505
-7166
-8213

query I rowsort
SELECT 78 * - col1 - - col1 AS col0 FROM tab0 AS cor0
----
-1617
-6237
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-962
SELECT + 60 - - - MAX( ALL col0 ) AS col0, 22 col1 FROM tab0
----
-37
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-962
SELECT + 60 - - - MAX ( ALL col0 ) AS col0, 22 col1 FROM tab0
----
-37
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-963
SELECT * FROM tab0 WHERE NOT - - col1 BETWEEN CAST( NULL AS SIGNED ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-963
SELECT * FROM tab0 WHERE NOT - - col1 BETWEEN CAST ( NULL AS INTEGER ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-964
SELECT ALL - CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT ( + 6 ) AS col1, + col1 AS col1 FROM tab0 AS cor0
----
6
1
6
21
6
81

query I rowsort
SELECT DISTINCT col1 * - col1 + - col0 * - 81 * + ( - col1 ) FROM tab2 AS cor0
----
-192627
-405097
-411514

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 18 ) col0 FROM tab0
----
18
18
18

query I rowsort
SELECT ALL - col0 * - 21 AS col1 FROM tab0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT DISTINCT ( + col0 ) DIV col2 * col2 FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT ( + col0 ) / col2 * col2 FROM tab2
----
40
46
58

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT ALL SUM( - col2 ) - + + 5 FROM tab2 WHERE 46 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT ALL SUM ( - col2 ) - + + 5 FROM tab2 WHERE 46 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL MIN( - - 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL MIN ( - - 21 ) FROM tab1
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT DISTINCT - 11 DIV - - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-974
SELECT DISTINCT - 11 / - - col1 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col2, + col0 AS col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL COUNT( ALL 96 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL COUNT ( ALL 96 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT - - 12 AS col0, - col1 + + col2 FROM tab1 AS cor0
----
12
21
12
54
12
82

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - 81 IS NULL
----

query I rowsort
SELECT 53 + + - 15 FROM tab0
----
38
38
38

query I rowsort
SELECT + 78 + col2 AS col2 FROM tab2 cor0
----
101
118
136

query I rowsort
SELECT ALL col2 - - col1 * - col2 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 * - col2 IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT ALL 32 * - COUNT( * ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-984
SELECT ALL 32 * - COUNT ( * ) FROM tab0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - 69 / - MAX( + ( + col1 ) ) * - - 3 / + MIN( ALL - ( + col2 ) ) + 35 AS col2 FROM tab1 WHERE - 95 = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT - 69 / - MAX ( + ( + col1 ) ) * - - 3 / + MIN ( ALL - ( + col2 ) ) + 35 AS col2 FROM tab1 WHERE - 95 = + col1
----
NULL

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

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

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

query I rowsort
SELECT ALL 18 + + + ( col0 ) AS col1 FROM tab0
----
105
115
33

query I rowsort
SELECT ALL + col2 + col0 + col0 * - + col1 FROM tab2
----
-2277
-4824
-4892

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE - col1 <> - col2
----
10
47
99

query II rowsort
SELECT 96 AS col2, 1 FROM tab2 AS cor0
----
96
1
96
1
96
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 79 * + col0 - - col2 * col0 + - col1 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-993
SELECT DISTINCT - SUM( DISTINCT 5 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-993
SELECT DISTINCT - SUM ( DISTINCT 5 ) AS col1 FROM tab1
----
-5

query I rowsort
SELECT - 78 * col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

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

query I rowsort
SELECT - 26 * - - col1 * + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 / - - 49 * + col0 * - col1 NOT BETWEEN - - 48 AND + 48
----

query II rowsort
SELECT ALL - + col1 * 19, + col1 + - col2 + + 56 AS col2 FROM tab0 cor0
----
-1539
90
-19
-42
-399
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col1 FROM tab2
----
1173
3080
3886

query II rowsort
SELECT + col1 * - 60 AS col0, 46 * + + 46 * + - col1 * col2 * - - col2 AS col1 FROM tab0
----
-1260
-4443600
-4860
-378613764
-60
-20738916

query I rowsort
SELECT DISTINCT + 62 * + + 46 * 66 FROM tab1
----
188232

query II rowsort
SELECT + col2 + - col1 AS col1, col1 FROM tab1 AS cor0
----
21
47
54
5
82
14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1005
SELECT DISTINCT MIN( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1005
SELECT DISTINCT MIN ( DISTINCT - col1 ) AS col1 FROM tab1
----
-47

query I rowsort
SELECT - - 56 AS col1 FROM tab2 WHERE NULL IS NULL
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT + - COUNT( * ) + + 84 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
75

skipif mysql # not compatible
query I rowsort label-1007
SELECT + - COUNT ( * ) + + 84 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
75

query I rowsort
SELECT DISTINCT col0 + col1 - + col1 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1009
SELECT * FROM tab1 AS cor0 WHERE + 32 NOT IN ( + CAST( - 76 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1009
SELECT * FROM tab1 AS cor0 WHERE + 32 NOT IN ( + CAST ( - 76 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 51 + col0 FROM tab2 cor0
----
115
126
97

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * - + col2 AND + ( - col2 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1013
SELECT ALL 64 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL 64 - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 7 + + col0 FROM tab0 cor0
----
8
80
90

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT DISTINCT - 12 * - 34 FROM tab2 AS cor0 WHERE NOT - 23 IS NOT NULL
----

query II rowsort
SELECT - 57 * + + col0 AS col1, col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT - + col0 + - + col2 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT + 59 * - col1 + col0 AS col1 FROM tab1
----
-210
-2682
-775

query I rowsort
SELECT DISTINCT + col2 * + + col1 + - col0 AS col2 FROM tab1 WHERE NOT - - 2 * - - 27 * 84 * + col0 = NULL
----

query I rowsort
SELECT col1 * - col2 + - col0 + - col0 FROM tab2
----
-1265
-3208
-4036

onlyif mysql # aggregate syntax: 
query II rowsort label-1022
SELECT + 96 * COUNT( * ), - 44 AS col2 FROM tab2
----
288
-44

skipif mysql # not compatible
query II rowsort label-1022
SELECT + 96 * COUNT ( * ), - 44 AS col2 FROM tab2
----
288
-44

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1023
SELECT DISTINCT + COUNT ( + - col2 ) col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1024
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) <= - col0 * + 67
----
0

skipif mysql # not compatible
query I rowsort label-1024
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) <= - col0 * + 67
----
0

query II rowsort
SELECT ALL 15 + + 59, + ( 6 ) AS col1 FROM tab1
----
74
6
74
6
74
6

query I rowsort
SELECT ( + ( - col0 ) ) * - + col1 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 63 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 63 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1028
SELECT - - COUNT( - 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1028
SELECT - - COUNT ( - 28 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab2 AS cor0 WHERE NOT + 73 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT DISTINCT MAX( ALL - + col0 ) * + ( - 71 ) FROM tab0 AS cor0
----
1065

skipif mysql # not compatible
query I rowsort label-1030
SELECT DISTINCT MAX ( ALL - + col0 ) * + ( - 71 ) FROM tab0 AS cor0
----
1065

query I rowsort
SELECT - col2 + - col0 * + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1081
-2600
-4408

query I rowsort
SELECT ALL + 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # DIV for integer division: 
query I rowsort label-1033
SELECT ALL 74 * ( 43 ) DIV col0 AS col1 FROM tab1 AS cor0
----
34
37
62

skipif mysql # not compatible
query I rowsort label-1033
SELECT ALL 74 * ( 43 ) / col0 AS col1 FROM tab1 AS cor0
----
34
37
62

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT DISTINCT - COUNT( * ) * + - 45 FROM tab0 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT - COUNT ( * ) * + - 45 FROM tab0 AS cor0
----
135

query I rowsort
SELECT - 47 * + - col2 FROM tab2 cor0
----
1081
1880
2726

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

query I rowsort
SELECT ALL - + col2 * + + 78 FROM tab2 AS cor0
----
-1794
-3120
-4524

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

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

query I rowsort
SELECT - - 82 * - - col1 FROM tab0 AS cor0
----
1722
6642
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT - SUM( DISTINCT + col0 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-1040
SELECT - SUM ( DISTINCT + col0 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-555

query I rowsort
SELECT ALL ( + col0 ) FROM tab2 AS cor0 WHERE NOT - 64 / col0 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1042
SELECT 67 DIV - col1 FROM tab0 AS cor0
----
-3
-67
0

skipif mysql # not compatible
query I rowsort label-1042
SELECT 67 / - col1 FROM tab0 AS cor0
----
-3
-67
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 54 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT col1 + 40 FROM tab0 WHERE NOT + CAST( - col1 AS SIGNED ) IS NULL
----
121
41
61

skipif mysql # not compatible
query I rowsort label-1045
SELECT col1 + 40 FROM tab0 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NULL
----
121
41
61

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * + col1 + - col2 + + 85 > NULL
----

query II rowsort
SELECT ALL 6 + col2 AS col0, + col2 FROM tab0
----
105
99
16
10
53
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT ALL COUNT( * ) * SUM( - + 48 ) * 89 AS col0 FROM tab2
----
-38448

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL COUNT ( * ) * SUM ( - + 48 ) * 89 AS col0 FROM tab2
----
-38448

query I rowsort
SELECT ALL - col0 * + ( - 34 ) * col0 + - - 22 * + + col1 + + col1 FROM tab1 AS cor0
----
245765
282635
88756

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1050
SELECT ALL + + COUNT( * ) * 61 DIV - + 21 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1050
SELECT ALL + + COUNT ( * ) * 61 / - + 21 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( - - col2 IN ( - + 9 + + 65 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col0 * + 81 AS col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT + 91 AS col0 FROM tab1 AS cor0 WHERE ( NOT ( NOT ( NULL ) < + 94 ) )
----

query II rowsort
SELECT - col2, - col0 + - col0 + - - 86 AS col2 FROM tab1 cor0
----
-59
-84
-68
-96
-96
-16

query II rowsort
SELECT ALL + + ( 88 ), - col2 + - + col1 + + col0 AS col0 FROM tab2 AS cor0
----
88
-28
88
-50
88
-53

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT + 29 DIV + CAST( - + CAST( - col0 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, col1 col2 FROM tab2 AS cor0
----
23
51
40
77
58
67

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 73 > - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 14 * - col0 - - col1 AS col2 FROM tab0
----
-1197
-129
-1357

query II rowsort
SELECT ( 8 ), 8 AS col2 FROM tab2 AS cor0
----
8
8
8
8
8
8

query I rowsort
SELECT ALL - - col1 * - col2 * 71 - + - 26 FROM tab2 AS cor0
----
-218654
-275880
-83257

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 26 * col1 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT + MAX( 64 ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1065
SELECT + MAX ( 64 ) AS col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN + 58 * + 47 / + 91 AND NULL
----

query I rowsort
SELECT ALL + col0 - + + 33 AS col2 FROM tab0
----
-18
54
64

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT - 99 + + col0 + 18 / - 3 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 > + 81
----
3

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 > + 81
----
3

query I rowsort
SELECT 21 * + col1 * col2 AS col1 FROM tab1
----
28224
6195
67116

onlyif mysql # DIV for integer division: 
query I rowsort label-1071
SELECT col1 * 17 DIV + col1 FROM tab2
----
17
17
17

skipif mysql # not compatible
query I rowsort label-1071
SELECT col1 * 17 / + col1 FROM tab2
----
17
17
17

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1072
SELECT + col1 / + - col2 col2 FROM tab0
----
-1
-2
0

query II rowsort
SELECT 28, 48 AS col0 FROM tab2 AS cor0
----
28
48
28
48
28
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1074
SELECT + 24 - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1074
SELECT + 24 - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1075
SELECT DISTINCT 6, + CAST( - 23 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
6
-104
6
-24
6
-44

skipif mysql # not compatible
query II rowsort label-1075
SELECT DISTINCT 6, + CAST ( - 23 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
6
-104
6
-24
6
-44

query II rowsort
SELECT col1 AS col0, col2 * 30 FROM tab0 AS cor0
----
1
2970
21
300
81
1410

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 32 NOT BETWEEN + - col2 AND - 69
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT + MAX( col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1078
SELECT + MAX ( col0 ) AS col2 FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT + 16 * 27 * col1 AS col2, col1 + + col0 FROM tab1 AS cor0
----
20304
138
2160
90
6048
65

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

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

query I rowsort
SELECT + 83 AS col0 FROM tab2 WHERE NOT ( - col1 * 65 ) <= ( NULL )
----

query I rowsort
SELECT + 90 + 70 FROM tab2
----
160
160
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1083
SELECT DISTINCT col0 + CAST( + col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT col0 + CAST ( + col0 AS INTEGER ) FROM tab1
----
102
170
182

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - 28 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE col2 * col2 + col1 IS NULL
----

query I rowsort
SELECT 96 + + 45 AS col0 FROM tab1 WHERE NULL IS NULL
----
141
141
141

query I rowsort
SELECT ALL col0 / col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col2 + + 43 * 10 AS col1 FROM tab2
----
453
470
488

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( 14 + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT col0 DIV col0 + - col2 FROM tab0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-1093
SELECT col0 / col0 + - col2 FROM tab0
----
-46
-9
-98

query I rowsort
SELECT ALL + col1 * - 24 FROM tab0
----
-1944
-24
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-1095
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT NULL < + col0
----
0

query I rowsort
SELECT DISTINCT + col0 * col1 + + col2 FROM tab1 WHERE NOT 52 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + MIN( - col1 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1098
SELECT + MIN ( - col1 ) AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 80
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 93 ) - 25 col1 FROM tab0
----
68
68
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1101
SELECT col0 * ( + col0 DIV + col1 ) FROM tab2
----
0
0
75

skipif mysql # not compatible
query I rowsort label-1101
SELECT col0 * ( + col0 / + col1 ) FROM tab2
----
0
0
75

query I rowsort
SELECT 99 * - col2 AS col0 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT COUNT( * ) * + 61 AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-1103
SELECT COUNT ( * ) * + 61 AS col2 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT ALL - CAST( NULL AS SIGNED ) * col0 col2 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + col2 * 92 FROM tab1
----
5513
6347
8883

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1108
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN ( + col0 ) AND CAST( - col0 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-1108
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT BETWEEN ( + col0 ) AND CAST ( - col0 AS INTEGER ) + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE 48 * col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1110
SELECT ALL + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) + + col0 col0 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT DISTINCT - MAX( DISTINCT + col1 ) + + ( COUNT( * ) ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-1111
SELECT DISTINCT - MAX ( DISTINCT + col1 ) + + ( COUNT ( * ) ) AS col0 FROM tab2
----
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1112
SELECT ALL + MIN( ALL + col0 ) + + 4 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL + MIN ( ALL + col0 ) + + 4 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1114
SELECT ALL ( + ( + 48 ) ) + CAST( + 54 AS SIGNED ) FROM tab1 AS cor0
----
102
102
102

skipif mysql # not compatible
query I rowsort label-1114
SELECT ALL ( + ( + 48 ) ) + CAST ( + 54 AS INTEGER ) FROM tab1 AS cor0
----
102
102
102

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT COUNT( col1 ) + SUM( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-1115
SELECT COUNT ( col1 ) + SUM ( + ( col0 ) ) AS col2 FROM tab1 AS cor0
----
230

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 41 * col0 >= 94
----

query I rowsort
SELECT - 25 + col1 AS col1 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL - ( + col0 ) - - col2 * + col1 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT MAX( + col1 ) + MAX( 9 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1119
SELECT MAX ( + col1 ) + MAX ( 9 ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT col0 * 99 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # DIV for integer division: 
query I rowsort label-1121
SELECT ( + col2 ) DIV 21 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-1121
SELECT ( + col2 ) / 21 FROM tab0 AS cor0
----
0
2
4

query I rowsort
SELECT ALL - col0 * 1 AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 82 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 + + col0 ) AND col0 + 79
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 97 IS NULL
----

query I rowsort
SELECT ALL + 72 AS col0 FROM tab2 WHERE NOT ( 49 ) IS NULL
----
72
72
72

query I rowsort
SELECT + 95 / - 84 AS col2 FROM tab2 WHERE NOT ( + col0 ) <> - 16 + - 62
----

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

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

query I rowsort
SELECT 11 * + ( col0 ) FROM tab2
----
506
704
825

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

query I rowsort
SELECT 90 FROM tab2 WHERE NOT NULL NOT IN ( - 14 )
----

query I rowsort
SELECT ( - - 20 ) * + col1 FROM tab0
----
1620
20
420

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 > + 95 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT DISTINCT 8 DIV - col0 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1133
SELECT DISTINCT 8 / - col0 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL CAST( + col1 AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND 55 * + col2 + + 96 * - col0
----

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL CAST ( + col1 AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND 55 * + col2 + + 96 * - col0
----

query I rowsort
SELECT - 66 AS col0 FROM tab1 WHERE NOT col1 * - 76 + col1 IS NULL
----
-66
-66
-66

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

query I rowsort
SELECT - 34 AS col2 FROM tab2 cor0 WHERE NOT + 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1138
SELECT ALL + + CAST( - + 84 AS SIGNED ) * col1 FROM tab1 AS cor0
----
-1176
-3948
-420

skipif mysql # not compatible
query I rowsort label-1138
SELECT ALL + + CAST ( - + 84 AS INTEGER ) * col1 FROM tab1 AS cor0
----
-1176
-3948
-420

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

query I rowsort
SELECT col2 + + + 98 + - - col1 FROM tab2
----
172
215
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 22 * - col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL - + 16, + col2 - + col1 AS col0 FROM tab2 AS cor0
----
-16
-28
-16
-37
-16
-9

query I rowsort
SELECT + 87 + + col0 + - 58 FROM tab0 AS cor0
----
116
126
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT COUNT( - - 40 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1144
SELECT COUNT ( - - 40 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1145
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND - 96
----

skipif mysql # not compatible
query III rowsort label-1145
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND - 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1146
SELECT ALL * FROM tab0 WHERE NOT CAST( - + 72 AS SIGNED ) + - col2 * 77 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1146
SELECT ALL * FROM tab0 WHERE NOT CAST ( - + 72 AS INTEGER ) + - col2 * 77 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL COUNT( * ) + + 50 + + + 93 AS col1 FROM tab1
----
146

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL COUNT ( * ) + + 50 + + + 93 AS col1 FROM tab1
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT 97 * + COUNT( * ) FROM tab0 WHERE + 62 * col2 NOT BETWEEN - 28 AND + col0 + - 28
----
291

skipif mysql # not compatible
query I rowsort label-1148
SELECT 97 * + COUNT ( * ) FROM tab0 WHERE + 62 * col2 NOT BETWEEN - 28 AND + col0 + - 28
----
291

query I rowsort
SELECT ALL - 71 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - col1 - + col1 AND ( col1 )
----

query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) * - ( + col1 ) * 21 FROM tab2
----
103488
105525
49266

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab1 WHERE 82 <= ( 45 * 4 )
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE + - col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT DISTINCT ( + COUNT( * ) ) + COUNT( * ) * + - 39 * COUNT( * ) FROM tab1
----
-348

skipif mysql # not compatible
query I rowsort label-1153
SELECT DISTINCT ( + COUNT ( * ) ) + COUNT ( * ) * + - 39 * COUNT ( * ) FROM tab1
----
-348

query III rowsort
SELECT * FROM tab0 WHERE ( 12 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-1155
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col2
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT SUM( ALL - + 90 ) + + - COUNT( * ) AS col2 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT SUM ( ALL - + 90 ) + + - COUNT ( * ) AS col2 FROM tab2
----
-273

query I rowsort
SELECT 12 + - col0 AS col1 FROM tab2 WHERE - col1 / - 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT + COUNT( + 43 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1159
SELECT + COUNT ( + 43 ) FROM tab0
----
3

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

query I rowsort
SELECT + 61 * - col2 AS col0 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT + 81 NOT BETWEEN - + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT + 93 + + 71 * + + COUNT( * ) FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-1163
SELECT + 93 + + 71 * + + COUNT ( * ) FROM tab1
----
306

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE col2 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1167
SELECT DISTINCT - 72 DIV + 99 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT - 72 / + 99 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1168
SELECT + - COUNT( * ) * - 60 AS col0 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1168
SELECT + - COUNT ( * ) * - 60 AS col0 FROM tab2 AS cor0
----
180

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT + 50 * col0 AS col2 FROM tab2 AS cor0
----
2300
3200
3750

query I rowsort
SELECT ALL - ( - col2 ) * + col2 FROM tab2 AS cor0
----
1600
3364
529

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

query I rowsort
SELECT + 84 * col0 * - col2 FROM tab0
----
-59220
-73080
-806652

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1174
SELECT - COUNT( * ) * - + COUNT( * ) DIV + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1174
SELECT - COUNT ( * ) * - + COUNT ( * ) / + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT + col1 * + ( - 17 ) FROM tab1
----
-238
-799
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT 21 DIV + col2 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1176
SELECT 21 / + col2 AS col2 FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1177
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 26 * + + CAST( - col1 AS SIGNED ) * + col0 + ( - col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1177
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 26 * + + CAST ( - col1 AS INTEGER ) * + col0 + ( - col0 ) IS NULL
----
3

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

query I rowsort
SELECT DISTINCT - + 58 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-58

query I rowsort
SELECT DISTINCT - ( - col2 ) + - col1 + + + col1 * - col1 * - col2 * - 32 - - col0 AS col2 FROM tab1 AS cor0
----
-47061
-4806672
-601979

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 NOT BETWEEN + + 93 AND + col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + + 57 AS col0 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT + - SUM( - col2 ) + - 73 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-1185
SELECT + - SUM ( - col2 ) + - 73 FROM tab0 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1186
SELECT ALL - COUNT( ALL ( + - 6 ) ) + - - ( COUNT( + col0 ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT ALL - COUNT ( ALL ( + - 6 ) ) + - - ( COUNT ( + col0 ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT + col2 + + - 79 AS col1 FROM tab1
----
-11
-20
17

query I rowsort
SELECT ( - col2 ) * 71 + col2 - + col0 AS col0 FROM tab1
----
-4215
-4851
-6771

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE + - col1 * - 93 IS NULL
----

query I rowsort
SELECT ALL col1 + + col2 + + 57 - - ( + col0 ) AS col2 FROM tab1
----
206
218
263

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT ALL COUNT( * ) - - 94 * COUNT( * ) AS col0 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-1191
SELECT ALL COUNT ( * ) - - 94 * COUNT ( * ) AS col0 FROM tab0
----
285

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

query I rowsort
SELECT ALL + 66 + + col0 FROM tab2 cor0
----
112
130
141

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1194
SELECT DISTINCT - COUNT ( * ) col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1195
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-1195
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1196
SELECT 58 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT 58 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 29 * + col0 AS col1 FROM tab0
----
2523
2813
435

query I rowsort
SELECT DISTINCT + + 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
83

query I rowsort
SELECT 81 - - col2 FROM tab2
----
104
121
139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL 95 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL 95 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 21 * 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 23386ae5819bce3b2edec868f61de72e

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT ALL - MAX( - + 93 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93

skipif mysql # not compatible
query I rowsort label-1202
SELECT ALL - MAX ( - + 93 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL - + COUNT( - ( - + 4 ) ) AS col2 FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL - + COUNT ( - ( - + 4 ) ) AS col2 FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
-3

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

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

query I rowsort
SELECT ALL 99 + col0 + + - 69 FROM tab1 AS cor0 WHERE - col1 * - col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT ALL CAST( - CAST( - - 8 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-8
-8
-8

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1207
SELECT CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1207
SELECT CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT - col0 * - 13 * col2 FROM tab1
----
63648
65195
80444

onlyif mysql # aggregate syntax: 
query I rowsort label-1209
SELECT ALL COUNT( DISTINCT 42 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL COUNT ( DISTINCT 42 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 79 + MAX( DISTINCT - + col1 ) FROM tab2 WHERE NOT NULL >= ( + + ( + + 81 ) * + col0 - - 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1210
SELECT 79 + MAX ( DISTINCT - + col1 ) FROM tab2 WHERE NOT NULL >= ( + + ( + + 81 ) * + col0 - - 73 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT DISTINCT + + 7 * + COUNT( * ) FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-1212
SELECT DISTINCT + + 7 * + COUNT ( * ) FROM tab0 AS cor0
----
21

query I rowsort
SELECT ALL col1 * - - col1 FROM tab0 AS cor0
----
1
441
6561

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

query II rowsort
SELECT + ( col0 ) * 2 AS col0, col2 FROM tab2 AS cor0
----
128
40
150
58
92
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL - 40 * + 54 * + + COUNT( - - col0 ) AS col1 FROM tab1 cor0 WHERE + col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - 40 * + 54 * + + COUNT ( - - col0 ) AS col1 FROM tab1 cor0 WHERE + col0 <> NULL
----
0

query I rowsort
SELECT - 59 AS col0 FROM tab1 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT + col2 + - ( 24 ) * + col0 * - + col0 AS col2 FROM tab0
----
181666
225915
5447

query I rowsort
SELECT ALL - 28 + + - col0 FROM tab2 AS cor0
----
-103
-74
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1220
SELECT 37 + + 37 DIV + col2 - + - 30 + - 41 + - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2575
-7199
-8255

skipif mysql # not compatible
query I rowsort label-1220
SELECT 37 + + 37 / + col2 - + - 30 + - 41 + - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2575
-7199
-8255

query I rowsort
SELECT 71 + - col0 * + 57 FROM tab0 AS cor0
----
-4888
-5458
-784

query I rowsort
SELECT ALL - 28 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-28
-28
-28

query I rowsort
SELECT - ( + 21 ) * + 60 FROM tab2 AS cor0
----
-1260
-1260
-1260

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

skipif mysql # not compatible
query I rowsort label-1224
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 >= col2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - col0 AND + col0
----
15
81
47
97
1
99

query I rowsort
SELECT DISTINCT - + col2 * + + col1 + - col0 FROM tab0 AS cor0
----
-196
-297
-3822

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT - - 15 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT - - 15 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT + col0 FROM tab2 WHERE ( + CAST( + col0 AS SIGNED ) * - col0 + - col2 IS NOT NULL )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1228
SELECT + col0 FROM tab2 WHERE ( + CAST ( + col0 AS INTEGER ) * - col0 + - col2 IS NOT NULL )
----
46
64
75

query I rowsort
SELECT ALL col1 + col1 * - col0 FROM tab0
----
-1134
-1806
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT + MIN( + + 79 ) AS col2 FROM tab1 WHERE ( 70 ) <= - col1 + - col0 + col2 + - + col0 * col2 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1231
SELECT + MIN ( + + 79 ) AS col2 FROM tab1 WHERE ( 70 ) <= - col1 + - col0 + col2 + - + col0 * col2 * col0
----
NULL

query I rowsort
SELECT + col0 * + - col0 * col0 - - col2 AS col1 FROM tab2
----
-262104
-421817
-97313

onlyif mysql # DIV for integer division: 
query II rowsort label-1233
SELECT - 93 + + col2 AS col1, col1 DIV ( 20 ) col1 FROM tab2 AS cor0
----
-35
3
-53
3
-70
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1233
SELECT - 93 + + col2 AS col1, col1 / ( 20 ) col1 FROM tab2 AS cor0
----
-35
3
-53
3
-70
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT col0 + - - 91 DIV + 18 FROM tab0 AS cor0
----
102
20
92

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT col0 + - - 91 / + 18 FROM tab0 AS cor0
----
102
20
92

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

query I rowsort
SELECT - - col2 + 87 AS col2 FROM tab0 AS cor0
----
134
186
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1237
SELECT DISTINCT + CAST( 74 AS SIGNED ) - + + col2 col1 FROM tab1 AS cor0
----
-22
15
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1237
SELECT DISTINCT + CAST ( 74 AS INTEGER ) - + + col2 col1 FROM tab1 AS cor0
----
-22
15
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT DISTINCT - MIN( - - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-1239
SELECT DISTINCT - MIN ( - - col1 ) AS col0 FROM tab1
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1240
SELECT - 20 DIV - col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1240
SELECT - 20 / - col2 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1241
SELECT + ( - 62 ) DIV - MIN( DISTINCT - + col0 ) - - SUM( col2 ) * + COUNT( * ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-1241
SELECT + ( - 62 ) / - MIN ( DISTINCT - + col0 ) - - SUM ( col2 ) * + COUNT ( * ) FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-1242
SELECT MIN( ALL + + col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1242
SELECT MIN ( ALL + + col1 ) FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-1243
SELECT DISTINCT + - 52, - MIN( col2 ) col1 FROM tab1 AS cor0
----
-52
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1243
SELECT DISTINCT + - 52, - MIN ( col2 ) col1 FROM tab1 AS cor0
----
-52
-59

query II rowsort
SELECT + col0, 88 - - - 88 FROM tab1 AS cor0
----
51
0
85
0
91
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 IS NOT NULL
----

query I rowsort
SELECT + 84 FROM tab2 cor0 WHERE NOT 47 IS NULL
----
84
84
84

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

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT ALL - col1 * + col0 * + col2 * - 73 FROM tab1
----
1830475
21231028
5003712

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1252
SELECT - CAST( NULL AS DECIMAL ) * + 11 * - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1252
SELECT - CAST ( NULL AS REAL ) * + 11 * - col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - col1 * + 19 FROM tab2 AS cor0
----
-1198
-1399
-923

query I rowsort
SELECT DISTINCT - 81 * ( - col0 ) * + col0 FROM tab2 AS cor0
----
171396
331776
455625

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT DISTINCT COUNT( + 46 ) AS col1 FROM tab1
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1256
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE ( NULL BETWEEN + col2 AND + col2 + + - CAST( NULL AS SIGNED ) * + col0 + - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE ( NULL BETWEEN + col2 AND + col2 + + - CAST ( NULL AS INTEGER ) * + col0 + - + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1257
SELECT ALL - 21 DIV col1 FROM tab0 cor0
----
-1
-21
0

skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL - 21 / col1 FROM tab0 cor0
----
-1
-21
0

query I rowsort
SELECT + col1 - - + 67 + 6 AS col0 FROM tab1 cor0
----
120
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT + col2 + + ( CAST( + - 50 AS SIGNED ) ) + - col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + col2 + + ( CAST ( + - 50 AS INTEGER ) ) + - col2 FROM tab0 AS cor0
----
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1260
SELECT * FROM tab2 AS cor0 WHERE + col0 IN ( col0, + CAST( NULL AS SIGNED ) * + 72 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1260
SELECT * FROM tab2 AS cor0 WHERE + col0 IN ( col0, + CAST ( NULL AS INTEGER ) * + 72 * - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 - + - 7 FROM tab1 cor0
----
-40
-7
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1264
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 + - col1 col2 FROM tab2 AS cor0
----
-19
-9
7

query I rowsort
SELECT + col2 * + - 16 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-368
-640
-928

onlyif mysql # DIV for integer division: 
query I rowsort label-1267
SELECT + 91 DIV - - col0 + 55 * col1 AS col1 FROM tab0
----
1156
4461
55

skipif mysql # not compatible
query I rowsort label-1267
SELECT + 91 / - - col0 + 55 * col1 AS col1 FROM tab0
----
1156
4461
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - 87 * - 8 + - + SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
817

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 87 * - 8 + - + SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
817

query II rowsort
SELECT DISTINCT + ( - col0 ) + + col0 * - col1 AS col1, - col2 + - 3 + + - col0 FROM tab0
----
-1230
-65
-1914
-100
-194
-199

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1270
SELECT ALL + col2 DIV - CAST( + 38 AS SIGNED ) + + col2 AS col0 FROM tab0
----
10
46
97

skipif mysql # not compatible
query I rowsort label-1270
SELECT ALL + col2 / - CAST ( + 38 AS INTEGER ) + + col2 AS col0 FROM tab0
----
10
46
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1271
SELECT col0 DIV + + col0 AS col1 FROM tab2
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1272
SELECT ALL 31 * - col0 DIV col0 FROM tab0
----
-31
-31
-31

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL 31 * - col0 / col0 FROM tab0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT DISTINCT COUNT( * ) + - 99 AS col1 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-1273
SELECT DISTINCT COUNT ( * ) + - 99 AS col1 FROM tab2
----
-96

query I rowsort
SELECT ALL + col0 / - + col1 FROM tab0 cor0 WHERE NULL NOT IN ( 18, ( col1 ), - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - - 24 * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 IS NULL
----
72

skipif mysql # not compatible
query I rowsort label-1275
SELECT - - 24 * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 * col2 IS NULL
----
72

query I rowsort
SELECT ALL col1 * + col1 * 55 FROM tab0
----
24255
360855
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN + ( + 90 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1277
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN + ( + 90 ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT 28 DIV - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT 28 / - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + + 99 * - col1 AS col0 FROM tab2 AS cor0
----
-5049
-6633
-7623

query I rowsort
SELECT + ( + 14 ) AS col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT ALL - - 25 FROM tab2 cor0
----
25
25
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 65 col1 FROM tab0 AS cor0
----
65
65
65

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1286
SELECT DISTINCT - col1, - CAST( NULL AS SIGNED ) / 40 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-1286
SELECT DISTINCT - col1, - CAST ( NULL AS INTEGER ) / 40 AS col1 FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

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

query I rowsort
SELECT DISTINCT 67 + - + col0 FROM tab0
----
-20
-30
52

query II rowsort
SELECT + col1 AS col1, 83 FROM tab0
----
1
83
21
83
81
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1290
SELECT * FROM tab1 WHERE NOT + col0 + - + CAST( ( 75 ) AS SIGNED ) * 31 IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1290
SELECT * FROM tab1 WHERE NOT + col0 + - + CAST ( ( 75 ) AS INTEGER ) * 31 IN ( + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 + + - 59 FROM tab2
----
-37

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 86 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 * 61 * - 72 BETWEEN - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT 43 * - COUNT( * ) FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1295
SELECT 43 * - COUNT ( * ) FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT + MAX( ALL + 9 ) AS col2 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1296
SELECT + MAX ( ALL + 9 ) AS col2 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1297
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL IN ( + - col1, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1297
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IN ( + - col1, - col0 )
----
0

query I rowsort
SELECT ALL - col2 + col0 - col2 AS col1 FROM tab0
----
-101
-79
67

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + + col2 AS col0 FROM tab1 AS cor0 WHERE - col1 + - col0 IS NULL
----

query II rowsort
SELECT col0 * - col0 AS col0, + 84 * col0 FROM tab0 AS cor0
----
-225
1260
-7569
7308
-9409
8148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1302
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - + col2 + - 0 * - 30 / + 40 * 98 + - col2 * + col2 / col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - + col2 + - 0 * - 30 / + 40 * 98 + - col2 * + col2 / col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 - + 78 + - 72 AS col1 FROM tab2 AS cor0
----
-173
-190
-208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1304
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ), + ( + - SUM( ALL - - col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL
-66

skipif mysql # not compatible
query II rowsort label-1304
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ), + ( + - SUM ( ALL - - col1 ) ) AS col2 FROM tab1 AS cor0
----
NULL
-66

query I rowsort
SELECT col2 - - + col2 AS col2 FROM tab1 cor0
----
118
136
192

query I rowsort
SELECT ( + col2 ) - + 83 AS col0 FROM tab1
----
-15
-24
13

query I rowsort
SELECT + AVG ( 9 ) * - - 33 FROM tab0 WHERE NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1308
SELECT DISTINCT + MAX( ALL col2 ) * + COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + MAX ( ALL col2 ) * + COUNT ( * ) FROM tab2
----
174

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

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

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

query I rowsort
SELECT DISTINCT 13 + + col0 FROM tab1
----
104
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT + COUNT( DISTINCT col2 ) FROM tab1 WHERE - + 70 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1312
SELECT + COUNT ( DISTINCT col2 ) FROM tab1 WHERE - + 70 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1313
SELECT DISTINCT 40 DIV + 95 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT 40 / + 95 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1314
SELECT DISTINCT 38, MIN( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
38
46

skipif mysql # not compatible
query II rowsort label-1314
SELECT DISTINCT 38, MIN ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
38
46

query I rowsort
SELECT - 39 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query II rowsort
SELECT DISTINCT + col1, + 12 FROM tab0
----
1
12
21
12
81
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT MIN( ALL - 46 ) AS col2 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT MIN ( ALL - 46 ) AS col2 FROM tab0
----
-46

query I rowsort
SELECT + + 39 + + - col2 * - 33 + col1 / col1 / ( - - col0 ) * - ( + col0 ) AS col1 FROM tab0 WHERE NOT - + 34 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT col1 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-1321
SELECT col1 / - 85 col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT + + MIN( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + + MIN ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL + SUM( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL + SUM ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 / + - 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT - 80 DIV - col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1326
SELECT - 80 / - col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1327
SELECT ALL 32 * COUNT( DISTINCT + 98 ) col0 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1327
SELECT ALL 32 * COUNT ( DISTINCT + 98 ) col0 FROM tab0
----
32

query I rowsort
SELECT DISTINCT - 82 * - 70 * - - 52 + col2 FROM tab1
----
298539
298548
298576

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT + ( + + 89 ) + + COUNT( * ) col0 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1329
SELECT DISTINCT + ( + + 89 ) + + COUNT ( * ) col0 FROM tab1
----
92

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

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

query I rowsort
SELECT DISTINCT 93 * - - col1 + - + col2 AS col1 FROM tab1
----
1206
406
4303

query I rowsort
SELECT + col0 + - - col1 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT ALL - 66 + - COUNT( * ) + + COUNT( * ) * + 9 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1333
SELECT ALL - 66 + - COUNT ( * ) + + COUNT ( * ) * + 9 FROM tab2 AS cor0
----
-42

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * ( + + col0 ) AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT 37 * + + 5 AS col1 FROM tab2
----
185

query I rowsort
SELECT col2 + - - col0 * 56 FROM tab0 AS cor0
----
4882
5531
887

query I rowsort
SELECT DISTINCT + col0 - + 73 AS col2 FROM tab2 AS cor0
----
-27
-9
2

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT ALL 70 - - - CAST( + col1 AS SIGNED ) * - - 81 + 15 AS col1 FROM tab0 AS cor0
----
-1616
-6476
4

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL 70 - - - CAST ( + col1 AS INTEGER ) * - - 81 + 15 AS col1 FROM tab0 AS cor0
----
-1616
-6476
4

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1345
SELECT DISTINCT - MIN( DISTINCT - + 56 ) * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT - MIN ( DISTINCT - + 56 ) * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT col2 + col0 * - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 84 <> NULL
----

query I rowsort
SELECT ALL 23 - + 5 FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT + col1 + 46 AS col1 FROM tab1
----
51
60
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1351
SELECT + col2 DIV - - col1 FROM tab0
----
0
0
99

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

query I rowsort
SELECT - - 50 AS col1 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 / + col2 AS col1 FROM tab0 WHERE NOT + 11 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1354
SELECT DISTINCT col2 AS col2, - col1 * - col1 * + - col0 FROM tab1 WHERE NOT NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1354
SELECT DISTINCT col2 AS col2, - col1 * - col1 * + - col0 FROM tab1 WHERE NOT NULL >= + CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 6 IS NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 19 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1359
SELECT + - col1 DIV col0 + - - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1360
SELECT DISTINCT + 39 DIV col1 + + - col2 AS col2, - col2 * 1 AS col2 FROM tab0 AS cor0
----
-47
-47
-60
-99
-9
-10

skipif mysql # not compatible
query II rowsort label-1360
SELECT DISTINCT + 39 / col1 + + - col2 AS col2, - col2 * 1 AS col2 FROM tab0 AS cor0
----
-47
-47
-60
-99
-9
-10

query I rowsort
SELECT 44 + - col2 FROM tab0 AS cor0
----
-3
-55
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1362
SELECT col2, + col2 + col1 DIV - + col2 AS col0 FROM tab2 AS cor0
----
23
21
40
39
58
57

skipif mysql # not compatible
query II rowsort label-1362
SELECT col2, + col2 + col1 / - + col2 AS col0 FROM tab2 AS cor0
----
23
21
40
39
58
57

query I rowsort
SELECT + ( col2 ) * + + col1 * + ( col0 ) - - col2 AS col2 FROM tab0 AS cor0
----
18280
57152
9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT 42 DIV col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT 42 / col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - - 62 ) * + col2 AS col1 FROM tab1 cor0
----
3658
4216
5952

onlyif mysql # DIV for integer division: 
query II rowsort label-1367
SELECT ALL 41 + - + col1 + + col1 * col2 * + col2 * + col0 AS col2, col1 DIV - col0 FROM tab0
----
182720
0
2683895
-5
950737
0

skipif mysql # not compatible
query II rowsort label-1367
SELECT ALL 41 + - + col1 + + col1 * col2 * + col2 * + col0 AS col2, col1 / - col0 FROM tab0
----
182720
0
2683895
-5
950737
0

query I rowsort
SELECT DISTINCT col0 + - 24 AS col2 FROM tab2
----
22
40
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1369
SELECT - COUNT( DISTINCT - - col1 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1369
SELECT - COUNT ( DISTINCT - - col1 ) AS col1 FROM tab0
----
-3

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1371
SELECT ALL 98 + - COUNT( * ) * - + CAST( - 48 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL 98 + - COUNT ( * ) * - + CAST ( - 48 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - 93 + - col0 FROM tab0 AS cor0
----
-108
-180
-190

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1374
SELECT DISTINCT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-1374
SELECT DISTINCT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
-9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1375
SELECT 6 * + 66 AS col1 FROM tab1 AS cor0 WHERE 51 + + CAST( - - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1375
SELECT 6 * + 66 AS col1 FROM tab1 AS cor0 WHERE 51 + + CAST ( - - col2 AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT DISTINCT + + MIN( 33 ) - + 59 AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1376
SELECT DISTINCT + + MIN ( 33 ) - + 59 AS col0 FROM tab0 AS cor0
----
-26

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

query I rowsort
SELECT DISTINCT + 76 + - ( - - col2 ) FROM tab2 AS cor0
----
18
36
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT DISTINCT - COUNT( * ) * + 90 AS col2 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1379
SELECT DISTINCT - COUNT ( * ) * + 90 AS col2 FROM tab1 AS cor0
----
-270

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

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

query I rowsort
SELECT DISTINCT - - 26 - + - ( col2 ) FROM tab2 AS cor0
----
49
66
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1383
SELECT DISTINCT - COUNT( DISTINCT - 76 ) col1 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1383
SELECT DISTINCT - COUNT ( DISTINCT - 76 ) col1 FROM tab2
----
-1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1385
SELECT ALL + COUNT( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT ALL + COUNT ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
0

query I rowsort
SELECT col0 * + 42 * - + col1 FROM tab0
----
-4074
-51030
-76734

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1388
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1388
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1389
SELECT ALL 35 AS col1, 93 * + + 42 / - - COUNT( * ) / - + CAST( NULL AS SIGNED ) FROM tab2
----
35
NULL

skipif mysql # not compatible
query II rowsort label-1389
SELECT ALL 35 AS col1, 93 * + + 42 / - - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) FROM tab2
----
35
NULL

query II rowsort
SELECT - - 85 * - 49 + + - col1 AS col0, - col0 FROM tab0 AS cor0
----
-4166
-97
-4186
-87
-4246
-15

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) * - col0 + col2 - - col1 / - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 12 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * - 79 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1395
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT col1 DIV 88 - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT col1 / 88 - + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 36 + - col1 AS col0 FROM tab2
----
-15
-31
-41

query I rowsort
SELECT - 25 + - col2 AS col1 FROM tab0
----
-124
-35
-72

query I rowsort
SELECT ALL col0 + - 40 FROM tab0
----
-25
47
57

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE - 45 * + col0 * - col2 / col1 * + col0 <= - col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT + 90 - + COUNT( * ) AS col2 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + 90 - + COUNT ( * ) AS col2 FROM tab1
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT ALL + 87 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + 87 / - col0 AS col1 FROM tab0 cor0
----
-1
-5
0

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

query I rowsort
SELECT DISTINCT + - col2 + + - col1 + + - col2 + col1 * + 99 + + col0 * - col1 + - 80 AS col2 FROM tab2 AS cor0
----
1345
2458
2526

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

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

query I rowsort
SELECT DISTINCT + + 43 AS col2 FROM tab2 AS cor0 WHERE NOT 58 + - col1 >= - + col0
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1412
SELECT ALL - COUNT( - - col2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL - COUNT ( - - col2 ) FROM tab0
----
-3

query I rowsort
SELECT - ( 94 ) AS col1 FROM tab2
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT ALL SUM( + + 42 ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1414
SELECT ALL SUM ( + + 42 ) FROM tab0
----
126

onlyif mysql # DIV for integer division: 
query I rowsort label-1415
SELECT DISTINCT + 74 * + col0 DIV - col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + 74 * + col0 / - col0 FROM tab2 AS cor0
----
-74

query I rowsort
SELECT DISTINCT + 4 * - col1 FROM tab2 AS cor0
----
-204
-268
-308

query I rowsort
SELECT - 4 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 + + - col1 - - + 34 - - - 5 AS col0 FROM tab2
----
29
29
29

query I rowsort
SELECT ALL + - col1 * - 1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1420
SELECT 21 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1420
SELECT 21 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1421
SELECT DISTINCT 13 DIV - + 98 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT 13 / - + 98 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT + + MIN( - + col2 ) + - 23 * 56 AS col1 FROM tab1 AS cor0
----
-1384

skipif mysql # not compatible
query I rowsort label-1422
SELECT + + MIN ( - + col2 ) + - 23 * 56 AS col1 FROM tab1 AS cor0
----
-1384

onlyif mysql # aggregate syntax: 
query II rowsort label-1423
SELECT COUNT( * ) AS col2, - 49 + + 25 FROM tab1 AS cor0
----
3
-24

skipif mysql # not compatible
query II rowsort label-1423
SELECT COUNT ( * ) AS col2, - 49 + + 25 FROM tab1 AS cor0
----
3
-24

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 17 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 71 BETWEEN ( col1 ) * + col0 * col2 AND ( + 45 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1426
SELECT DISTINCT ( 34 ) DIV - 39 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT ( 34 ) / - 39 + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE 45 * col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL 88 + + + col0 AS col2 FROM tab0
----
103
175
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1429
SELECT + CAST( NULL AS SIGNED ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1429
SELECT + CAST ( NULL AS INTEGER ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1430
SELECT DISTINCT - + COUNT( * ) - - AVG ( CAST( NULL AS SIGNED ) ) + + 91 AS col2, COUNT( * ) * 84 * - COUNT( * ) FROM tab1 cor0
----
NULL
-756

skipif mysql # not compatible
query II rowsort label-1430
SELECT DISTINCT - + COUNT ( * ) - - AVG ( CAST ( NULL AS INTEGER ) ) + + 91 AS col2, COUNT ( * ) * 84 * - COUNT ( * ) FROM tab1 cor0
----
NULL
-756

query I rowsort
SELECT DISTINCT + col0 * - ( + 85 ) + + col2 AS col0 FROM tab1 AS cor0
----
-4239
-7166
-7667

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT - + 65 DIV - col2 + + col0 + - + col1 * col1 FROM tab1 AS cor0
----
-145
-2118
61

skipif mysql # not compatible
query I rowsort label-1433
SELECT - + 65 / - col2 + + col0 + - + col1 * col1 FROM tab1 AS cor0
----
-145
-2118
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT ALL + MIN( ALL 83 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
83

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + MIN ( ALL 83 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
83

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL >= col1
----

query I rowsort
SELECT DISTINCT - col2 * - col1 + + 3 AS col0 FROM tab0 AS cor0
----
102
213
3810

onlyif mysql # DIV for integer division: 
query I rowsort label-1438
SELECT ALL 18 DIV + + col0 * + 35 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL 18 / + + col0 * + 35 FROM tab2 AS cor0
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1439
SELECT + + COUNT ( - + col0 ) col2 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 27 AND + 47
----

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

query I rowsort
SELECT DISTINCT - 23 * col2 * + 99 AS col0 FROM tab1
----
-134343
-154836
-218592

query II rowsort
SELECT DISTINCT - col0, col1 * + col0 AS col0 FROM tab1
----
-51
714
-85
425
-91
4277

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, - 2, - 86 )
----
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( col2, - 2, - 86 )
----
0

query I rowsort
SELECT DISTINCT 17 FROM tab1 WHERE NULL IS NULL
----
17

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

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

query I rowsort
SELECT ALL + 23 + - 87 FROM tab1 cor0
----
-64
-64
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 75 col0, + col1 FROM tab0 AS cor0
----
122
81
174
1
85
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, + col2 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT + 32 < col0 + 78 + + 3
----

query I rowsort
SELECT 29 + - 52 + + 48 AS col1 FROM tab1
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1454
SELECT ALL SUM( DISTINCT col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-1454
SELECT ALL SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
199

query I rowsort
SELECT col1 + + + 46 FROM tab2
----
113
123
97

query I rowsort
SELECT 36 + + + 13 FROM tab0
----
49
49
49

query I rowsort
SELECT + col0 * + - col1 + - col2 FROM tab0
----
-1262
-1837
-196

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 > - ( 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1459
SELECT DISTINCT col0 + 63 / + - ( col1 ) + 11 + + col1 + - CAST( NULL AS SIGNED ) * - col2 * - col2 * + col1 - col0 + + ( + col0 ) * + + col0 * ( - 79 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1459
SELECT DISTINCT col0 + 63 / + - ( col1 ) + 11 + + col1 + - CAST ( NULL AS INTEGER ) * - col2 * - col2 * + col1 - col0 + + ( + col0 ) * + + col0 * ( - 79 ) FROM tab2
----
NULL

query I rowsort
SELECT 69 * + col2 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT - - col0 + 60 FROM tab0 cor0
----
147
157
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + ( + col0 ), - col0 col1 FROM tab0 AS cor0
----
225
-15
7569
-87
9409
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-1464
SELECT - col1 DIV - col1, + col2 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-1464
SELECT - col1 / - col1, + col2 FROM tab0
----
1
10
1
47
1
99

query I rowsort
SELECT 8 + + col2 / + 34 * - col2 * col2 FROM tab2 AS cor0 WHERE NOT 69 * - + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT MIN ( - col0 ) AS col1 FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT ALL + - 86 DIV - COUNT( * ) FROM tab1 cor0
----
28

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL + - 86 / - COUNT ( * ) FROM tab1 cor0
----
28

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1469
SELECT ALL - COUNT( * ) * + - 60 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL - COUNT ( * ) * + - 60 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
177

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL < 6
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT + 13 DIV - - MAX( + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + 13 / - - MAX ( + col2 ) FROM tab2
----
0

query I rowsort
SELECT ALL + 69 * + col2 FROM tab2
----
1587
2760
4002

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1475
SELECT * FROM tab1 WHERE NOT CAST( - + ( col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1475
SELECT * FROM tab1 WHERE NOT CAST ( - + ( col0 ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1476
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1476
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS REAL ) IS NOT NULL
----

query II rowsort
SELECT ALL + + col0, col2 * + col0 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query I rowsort
SELECT - - col1 * 27 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL > + col2 * col1
----

query II rowsort
SELECT + 93 AS col1, 37 FROM tab1 AS cor0
----
93
37
93
37
93
37

query II rowsort
SELECT + ( ( - + 28 ) ) + + col0 AS col0, col0 FROM tab1
----
23
51
57
85
63
91

query I rowsort
SELECT ALL + col0 + 96 + + col1 - - col2 + + col2 AS col2 FROM tab0
----
224
286
392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + + col0 ) col0, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + - col2 * col2 BETWEEN - 28 AND + 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1485
SELECT + + col0, col1 + - CAST( 63 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
-12
64
14
75
4

skipif mysql # not compatible
query II rowsort label-1485
SELECT + + col0, col1 + - CAST ( 63 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
-12
64
14
75
4

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

query I rowsort
SELECT - 47 * + + col2 FROM tab2 AS cor0
----
-1081
-1880
-2726

query III rowsort
SELECT * FROM tab1 WHERE col1 * 6 + + 95 IS NULL
----

query I rowsort
SELECT 98 - - + col2 FROM tab2
----
121
138
156

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

query II rowsort
SELECT DISTINCT 94 + + - col0, - col2 AS col0 FROM tab2
----
19
-58
30
-40
48
-23

query I rowsort
SELECT 39 + - - 27 AS col0 FROM tab2
----
66
66
66

query I rowsort
SELECT DISTINCT + col1 - + col2 - + 83 FROM tab1
----
-104
-137
-165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL + SUM( ALL - CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL + SUM ( ALL - CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-103

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - + 32 * + 2 * + ( - 56 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1498
SELECT + - CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab2 AS cor0
----
3

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

query I rowsort
SELECT - col2 * + 50 AS col1 FROM tab1 AS cor0
----
-2950
-3400
-4800

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < - col2 * - 95 * col0 - - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1502
SELECT ALL + COUNT( * ) + + - 74 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-1502
SELECT ALL + COUNT ( * ) + + - 74 FROM tab0
----
-71

query I rowsort
SELECT ALL 34 + col0 AS col1 FROM tab2
----
109
80
98

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1505
SELECT ALL 5 DIV 97 DIV - col0 + + col0 AS col2, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-1505
SELECT ALL 5 / 97 / - col0 + + col0 AS col2, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - col2 * + ( 16 ) FROM tab2 AS cor0
----
-368
-640
-928

query I rowsort
SELECT - 34 AS col1 FROM tab2 WHERE - - 50 IS NOT NULL
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1508
SELECT ALL COUNT( * ) + - + 10 AS col2 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL COUNT ( * ) + - + 10 AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1509
SELECT ALL CAST( + + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1509
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL + col0 + col0 + 27 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
119
155
177

query I rowsort
SELECT + - col1 + + + col2 + col1 AS col2 FROM tab2 AS cor0
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1512
SELECT DISTINCT + + SUM ( + col0 ) col2 FROM tab1 cor0
----
227

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + - col0 * + 21 * - + col0 + - 35 AS col2 FROM tab0 AS cor0
----
158914
197554
4690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1515
SELECT - - COUNT( * ) AS col1, 20 AS col2 FROM tab2 WHERE + 41 NOT IN ( 20, - 4 * + - ( + + CAST( + 74 AS SIGNED ) ) - col1, 98, + col0 )
----
3
20

skipif mysql # not compatible
query II rowsort label-1515
SELECT - - COUNT ( * ) AS col1, 20 AS col2 FROM tab2 WHERE + 41 NOT IN ( 20, - 4 * + - ( + + CAST ( + 74 AS INTEGER ) ) - col1, 98, + col0 )
----
3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT 41 ) AS col1 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT 41 ) AS col1 FROM tab0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT - 19 * - - SUM( ALL col2 ) AS col2 FROM tab2
----
-2299

skipif mysql # not compatible
query I rowsort label-1517
SELECT - 19 * - - SUM ( ALL col2 ) AS col2 FROM tab2
----
-2299

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 85 * ( + 38 ) col1 FROM tab2
----
3230
3230
3230

query II rowsort
SELECT col0 AS col2, col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT ALL - - 49 * COUNT( * ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - - 49 * COUNT ( * ) FROM tab2 AS cor0
----
147

query II rowsort
SELECT DISTINCT - col2 AS col0, 15 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

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

query I rowsort
SELECT 29 * + 78 FROM tab0 AS cor0
----
2262
2262
2262

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1524
SELECT * FROM tab1 AS cor0 WHERE NOT 43 BETWEEN + ( - - col2 ) AND + CAST( NULL AS DECIMAL ) + - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1524
SELECT * FROM tab1 AS cor0 WHERE NOT 43 BETWEEN + ( - - col2 ) AND + CAST ( NULL AS REAL ) + - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 65 * - - 36 FROM tab2 AS cor0
----
2340
2340
2340

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1526
SELECT MIN( DISTINCT col2 ), + 92 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
NULL

skipif mysql # not compatible
query II rowsort label-1526
SELECT MIN ( DISTINCT col2 ), + 92 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
NULL

query I rowsort
SELECT 45 * + 4 FROM tab2 AS cor0
----
180
180
180

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + COUNT( + + 39 ) + SUM( ALL - col0 ) AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1529
SELECT + COUNT ( + + 39 ) + SUM ( ALL - col0 ) AS col2 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 col2 FROM tab0, tab1 cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT DISTINCT 96 + + + 56 + + + 68 - + 13 + col1 + + 30 * + col2 + col0 - - col2 + - col2 FROM tab2
----
1548
2089
994

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1532
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL OR NOT + - CAST( + + col1 AS DECIMAL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1532
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL OR NOT + - CAST ( + + col1 AS REAL ) IS NULL
----
15
87
97

query I rowsort
SELECT - col2 + 33 FROM tab1 AS cor0
----
-26
-35
-63

query I rowsort
SELECT DISTINCT + 37 * - col2 AS col0 FROM tab1 AS cor0
----
-2183
-2516
-3552

query I rowsort
SELECT - 88 * + 93 FROM tab0
----
-8184
-8184
-8184

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 31 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1537
SELECT + COUNT( * ) * + MAX( DISTINCT - col0 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-1537
SELECT + COUNT ( * ) * + MAX ( DISTINCT - col0 ) FROM tab1
----
-153

query I rowsort
SELECT ALL - 96 + col0 FROM tab2
----
-21
-32
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1539
SELECT - CAST( COUNT( * ) AS SIGNED ) + - COUNT( 21 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1539
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( 21 ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT COUNT( * ) FROM tab2 WHERE - 49 >= ( + 5 )
----
0

skipif mysql # not compatible
query I rowsort label-1540
SELECT COUNT ( * ) FROM tab2 WHERE - 49 >= ( + 5 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= 20
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT ALL ( ( AVG ( - col2 ) ) ) * COUNT( * ) FROM tab1 WHERE NOT 14 * 17 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1542
SELECT ALL ( ( AVG ( - col2 ) ) ) * COUNT ( * ) FROM tab1 WHERE NOT 14 * 17 IS NOT NULL
----
NULL

query I rowsort
SELECT 7 + col2 * col1 FROM tab1
----
1351
302
3203

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT 45 + CAST( col0 - 47 AS SIGNED ) AS col2 FROM tab2
----
44
62
73

skipif mysql # not compatible
query I rowsort label-1545
SELECT 45 + CAST ( col0 - 47 AS INTEGER ) AS col2 FROM tab2
----
44
62
73

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

query I rowsort
SELECT ALL + ( + ( - 67 ) ) * col2 FROM tab0
----
-3149
-6633
-670

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 21 * + 50 ) BETWEEN col1 + - 81 AND col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT ALL col1 DIV - col0 AS col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( col0 ) IN ( col0 + - 73 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1552
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1552
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT 81 + 71 FROM tab0
----
152

query I rowsort
SELECT DISTINCT 86 + col1 * col2 AS col2 FROM tab0 WHERE col0 + 64 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col1 FROM tab2 WHERE NULL IS NULL
----
96
96
96

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 ALL col2 + - col2 * col1 col1 FROM tab1
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-1559
SELECT - col0 DIV 7 FROM tab1
----
-12
-13
-7

skipif mysql # not compatible
query I rowsort label-1559
SELECT - col0 / 7 FROM tab1
----
-12
-13
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1560
SELECT SUM( 95 ) DIV - 11 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-1560
SELECT SUM ( 95 ) / - 11 FROM tab2
----
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1561
SELECT DISTINCT - 8 + 82 DIV COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - 8 + 82 / COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1562
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE 78 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1562
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE 78 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1563
SELECT ALL * FROM tab2 WHERE NOT NULL > + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1563
SELECT ALL * FROM tab2 WHERE NOT NULL > + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + 68 * - COUNT( * ) FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1564
SELECT + 68 * - COUNT ( * ) FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1565
SELECT CAST( - 41 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1565
SELECT CAST ( - 41 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1567
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 + - col1 * + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1567
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 + - col1 * + col0 <= NULL
----
0

query I rowsort
SELECT ALL 7 * - 6 AS col2 FROM tab1
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 44 IN ( 84 * + 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT ALL + 42 * + COUNT( col1 / - col2 ) FROM tab2 AS cor0 WHERE NOT ( col0 ) <= - 8
----
126

skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL + 42 * + COUNT ( col1 / - col2 ) FROM tab2 AS cor0 WHERE NOT ( col0 ) <= - 8
----
126

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT + MAX( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT + MAX ( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL NOT IN ( 61 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1574
SELECT ALL COUNT( DISTINCT 78 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL COUNT ( DISTINCT 78 ) AS col1 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 * + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 2 + 42 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT + 74 + + + MIN( ALL col2 ) + 25 FROM tab2
----
122

skipif mysql # not compatible
query I rowsort label-1578
SELECT + 74 + + + MIN ( ALL col2 ) + 25 FROM tab2
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT DISTINCT - MIN( ALL 37 ) FROM tab0 WHERE ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT - MIN ( ALL 37 ) FROM tab0 WHERE ( NULL ) < NULL
----
NULL

query I rowsort
SELECT col0 * + 94 FROM tab0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT + 59 + + + 24 AS col0 FROM tab2
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1582
SELECT 60 + - COUNT( * ) + - COUNT( * ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-1582
SELECT 60 + - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT - COUNT( * ) + + MAX( ALL - col2 ) * 28 AS col1 FROM tab2
----
-647

skipif mysql # not compatible
query I rowsort label-1583
SELECT - COUNT ( * ) + + MAX ( ALL - col2 ) * 28 AS col1 FROM tab2
----
-647

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( NULL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT ALL col0 + + col2 DIV + ( ( - 38 ) * + col0 - - col0 ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL col0 + + col2 / + ( ( - 38 ) * + col0 - - col0 ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1586
SELECT ALL CAST( ( - 36 ) AS SIGNED ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL CAST ( ( - 36 ) AS INTEGER ) AS col2 FROM tab1 WHERE ( NULL ) IS NULL
----
-36
-36
-36

query I rowsort
SELECT + ( - ( ( + 15 ) ) ) + col0 FROM tab0
----
0
72
82

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

query I rowsort
SELECT + 52 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT col2 * - + col1 * col0 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT - COUNT( * ) * 45 AS col2 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1591
SELECT - COUNT ( * ) * 45 AS col2 FROM tab0 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1592
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1593
SELECT - COUNT( * ) DIV - 88 - - 22 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1593
SELECT - COUNT ( * ) / - 88 - - 22 FROM tab0
----
22

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1595
SELECT DISTINCT - ( 69 ) DIV 78 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1595
SELECT DISTINCT - ( 69 ) / 78 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 19 IS NULL
----

query I rowsort
SELECT ALL + - col2 - - col2 + 39 FROM tab0 cor0
----
39
39
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT + CAST( NULL AS SIGNED ) * + + col1 * + - 11 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 87 / + col2 + + col0 / col2 FROM tab1 cor0 WHERE ( NULL ) >= 35 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT + - MAX( ALL + - 85 ) AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1601
SELECT + - MAX ( ALL + - 85 ) AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT + - MIN( col2 ) AS col0 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1602
SELECT + - MIN ( col2 ) AS col0 FROM tab0 cor0
----
-10

query I rowsort
SELECT DISTINCT - - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) BETWEEN + 78 AND - 60 * - ( - 46 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1605
SELECT COUNT( * ) * - 79 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-1605
SELECT COUNT ( * ) * - 79 FROM tab1
----
-237

query I rowsort
SELECT ALL + col0 * - - col1 * + col0 AS col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT DISTINCT - 97 * + 70 FROM tab1
----
-6790

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

skipif mysql # not compatible
query I rowsort label-1608
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ALL col2 * + - ( - col2 ) FROM tab1
----
3481
4624
9216

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * - 76 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1612
SELECT ALL - 73 DIV + col2 + + + 61 - + col2 col2 FROM tab2
----
2
20
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1612
SELECT ALL - 73 / + col2 + + + 61 - + col2 col2 FROM tab2
----
2
20
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1613
SELECT ALL + + 97 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
97
9

skipif mysql # not compatible
query II rowsort label-1613
SELECT ALL + + 97 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
97
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - - 84 AS col1 FROM tab1 AS cor0
----
84
84
84

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

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

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

query I rowsort
SELECT - col0 * ( + col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
-1035
-2520
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL - MAX( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - MAX ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT - 55 * + 64 + col0 AS col2 FROM tab2 AS cor0
----
-3445
-3456
-3474

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT + col2 * - col0 BETWEEN - col1 AND ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE col1 IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 57 + - col1 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT 91 - + - COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1628
SELECT 91 - + - COUNT ( * ) FROM tab1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 32 + - col2 - + col2 * - col2 * col0 col0 FROM tab1 AS cor0
----
295794
420684
469888

onlyif mysql # DIV for integer division: 
query I rowsort label-1630
SELECT DISTINCT - + 46 + col1 - + 30 DIV - col1 FROM tab0 cor0 WHERE NOT 36 IS NULL
----
-15
-24
35

skipif mysql # not compatible
query I rowsort label-1630
SELECT DISTINCT - + 46 + col1 - + 30 / - col1 FROM tab0 cor0 WHERE NOT 36 IS NULL
----
-15
-24
35

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT + COUNT( * ), ( COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-1631
SELECT + COUNT ( * ), ( COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1632
SELECT - - COUNT( * ) + - 92 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-1632
SELECT - - COUNT ( * ) + - 92 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1633
SELECT * FROM tab2 WHERE + - 68 BETWEEN CAST( NULL AS SIGNED ) AND col1 + + - 72
----

skipif mysql # not compatible
query III rowsort label-1633
SELECT * FROM tab2 WHERE + - 68 BETWEEN CAST ( NULL AS INTEGER ) AND col1 + + - 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT col2 + - - col2 + - col0 * - col2 * col2 FROM tab2
----
102480
24380
252416

onlyif mysql # DIV for integer division: 
query I rowsort label-1636
SELECT ( + 45 ) DIV - - col2 FROM tab2 AS cor0
----
0
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT + MAX( DISTINCT 71 ) col0 FROM tab1 cor0
----
71

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 61 * - - col0, + ( + col1 ) )
----

query I rowsort
SELECT ALL - col2 * 79 FROM tab2 cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-1817
-3160
-4582

query I rowsort
SELECT DISTINCT col1 * - + 60 * - col1 FROM tab0 AS cor0
----
26460
393660
60

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1641
SELECT ALL + MIN ( ALL col0 ) col1 FROM tab2 AS cor0
----
46

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

query I rowsort
SELECT DISTINCT + 98 FROM tab1 AS cor0 WHERE NULL > + col2
----

query I rowsort
SELECT col0 * - ( + + col2 ) FROM tab2 WHERE NOT NULL < 99 + - 38
----

query I rowsort
SELECT col0 * + ( - 8 ) FROM tab2
----
-368
-512
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT MAX( 49 ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-1646
SELECT MAX ( 49 ) FROM tab1
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 80 AS col2, + ( + 27 ) col2 FROM tab1
----
80
27
80
27
80
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT - SUM( DISTINCT - 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT - SUM ( DISTINCT - 54 ) FROM tab2 AS cor0
----
54

query II rowsort
SELECT ALL col0, + 3 AS col0 FROM tab2 cor0
----
46
3
64
3
75
3

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

query I rowsort
SELECT - - ( ( + + 78 ) ) - - - col1 FROM tab2 WHERE NOT NULL <> 88 / - col2
----

query I rowsort
SELECT 66 * + col1 FROM tab0
----
1386
5346
66

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

query I rowsort
SELECT col1 * - - col0 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL SUM( + - ( - 47 ) ) AS col1 FROM tab0 cor0
----
141

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL SUM ( + - ( - 47 ) ) AS col1 FROM tab0 cor0
----
141

query I rowsort
SELECT 93 + 29 FROM tab1 AS cor0
----
122
122
122

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( + col1 )
----

query II rowsort
SELECT DISTINCT 28 AS col1, col1 * - - col2 * col0 * - 44 * - 90 FROM tab0
----
28
226135800
28
38027880
28
72349200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1659
SELECT 12 + - CAST( NULL AS SIGNED ) * COUNT( * ) * + AVG ( ALL - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1659
SELECT 12 + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * + AVG ( ALL - col1 ) FROM tab2
----
NULL

query I rowsort
SELECT col0 + + + 18 + + col1 * - col0 FROM tab2
----
-2282
-4846
-4932

query I rowsort
SELECT - 33 + - - col2 FROM tab1
----
26
35
63

query I rowsort
SELECT DISTINCT ( 54 ) + + col2 + col1 FROM tab1
----
118
164
169

onlyif mysql # DIV for integer division: 
query I rowsort label-1663
SELECT DISTINCT col1 DIV 56 + 51 AS col1 FROM tab0
----
51
52

skipif mysql # not compatible
query I rowsort label-1663
SELECT DISTINCT col1 / 56 + 51 AS col1 FROM tab0
----
51
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1664
SELECT DISTINCT * FROM tab1 WHERE - 90 IN ( - CAST( + col1 AS DECIMAL ) + - col1, + col0 )
----

skipif mysql # not compatible
query III rowsort label-1664
SELECT DISTINCT * FROM tab1 WHERE - 90 IN ( - CAST ( + col1 AS REAL ) + - col1, + col0 )
----

query I rowsort
SELECT 60 + - col1 FROM tab0
----
-21
39
59

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

query I rowsort
SELECT DISTINCT 46 * + - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1058
-1840
-2668

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1669
SELECT - COUNT( - col0 ) - - 74 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1669
SELECT - COUNT ( - col0 ) - - 74 FROM tab0 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 BETWEEN + col1 * - 53 * - - 88 + - 16 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1671
SELECT - - col0 AS col1 FROM tab0 WHERE + CAST( - + 28 AS SIGNED ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1671
SELECT - - col0 AS col1 FROM tab0 WHERE + CAST ( - + 28 AS INTEGER ) IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT - - col0 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT DISTINCT COUNT( * ) * - 64 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-1673
SELECT DISTINCT COUNT ( * ) * - 64 FROM tab2
----
-192

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

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

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NOT 21 = + col0
----
-15
-87
-97

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

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

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE + 76 BETWEEN + col2 AND NULL
----

query III rowsort
SELECT ALL - col0, col0, + col1 FROM tab1 AS cor0
----
9 values hashing to c8beef9b5d95032ecdf18cdd53ed129b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col0 AS col2, + col0 + - col2 FROM tab1 AS cor0
----
-51
-45
-85
26
-91
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT + MIN( ALL - + col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1683
SELECT + MIN ( ALL - + col0 ) AS col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE ( NULL ) = - col1 - + - 39
----

query I rowsort
SELECT ALL 19 * + 83 FROM tab2
----
1577
1577
1577

query I rowsort
SELECT ALL 65 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 21 FROM tab2 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - + col2 col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + - 75 FROM tab1 WHERE NOT - 19 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + - 21 / + 36 - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1691
SELECT ALL + + ( - 31 ), ( + + COUNT( * ) ) DIV - COUNT( * ) col2 FROM tab1 AS cor0
----
-31
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1691
SELECT ALL + + ( - 31 ), ( + + COUNT ( * ) ) / - COUNT ( * ) col2 FROM tab1 AS cor0
----
-31
-1

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * 5 - + col0 col2 FROM tab0
----
-91
39
471

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + - - 71 * - + col2 AS col1, col0 * ( - - col0 ) + - col0 col1 FROM tab2 AS cor0
----
-1587
2070
-2776
4032
-4043
5550

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

query I rowsort
SELECT + 48 * - - 78 FROM tab0 cor0
----
3744
3744
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT DISTINCT + - 39 * + ( 42 ) * SUM( col0 ) AS col1 FROM tab0 AS cor0
----
-325962

skipif mysql # not compatible
query I rowsort label-1698
SELECT DISTINCT + - 39 * + ( 42 ) * SUM ( col0 ) AS col1 FROM tab0 AS cor0
----
-325962

query I rowsort
SELECT DISTINCT col1 * - - 42 AS col2 FROM tab0 AS cor0
----
3402
42
882

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= - col2 * - - 83
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + ( + + 31 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 53 col0 FROM tab0 WHERE NOT col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1704
SELECT ALL CAST( NULL AS SIGNED ) + 46, - col0 * col1 + - CAST( NULL AS SIGNED ) + - col2 col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1704
SELECT ALL CAST ( NULL AS INTEGER ) + 46, - col0 * col1 + - CAST ( NULL AS INTEGER ) + - col2 col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT 46 BETWEEN + - col2 AND + col0 + col2
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT DISTINCT - CAST( + + 9 AS SIGNED ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - CAST ( + + 9 AS INTEGER ) FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT ALL 86 DIV - + 79 + - - col2 - - + col2 FROM tab2
----
115
45
79

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 86 / - + 79 + - - col2 - - + col2 FROM tab2
----
115
45
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT DISTINCT 10 + - 59 - + COUNT( * ) AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1708
SELECT DISTINCT 10 + - 59 - + COUNT ( * ) AS col1 FROM tab1
----
-52

query I rowsort
SELECT ALL 85 * - - col1 + + 80 FROM tab0
----
165
1865
6965

query I rowsort
SELECT ALL - + ( col2 ) - - 25 AS col2 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + 74 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-1711
SELECT + 74 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + 97 - + 58 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + 85 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab1 cor0 WHERE NOT - col1 > NULL
----

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1718
SELECT 42 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2
-42
0

skipif mysql # not compatible
query I rowsort label-1718
SELECT 42 / - col1 AS col0 FROM tab0 AS cor0
----
-2
-42
0

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - 80 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL - - 56 col0, + COUNT( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
56
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1721
SELECT ALL - - 56 col0, + COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
56
0

query II rowsort
SELECT ALL 5 AS col0, - 15 * - 51 AS col2 FROM tab2
----
5
765
5
765
5
765

query I rowsort
SELECT + 82 * 81 AS col0 FROM tab2
----
6642
6642
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT - COUNT( * ) * + ( - COUNT( * ) ) * + - COUNT( * ) + + 2 * MIN( col1 ) FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-1724
SELECT - COUNT ( * ) * + ( - COUNT ( * ) ) * + - COUNT ( * ) + + 2 * MIN ( col1 ) FROM tab1
----
-17

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

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

query I rowsort
SELECT 72 + + - col1 FROM tab0
----
-9
51
71

query I rowsort
SELECT ALL - col2 * 91 FROM tab0 WHERE - + 71 <= + col0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT ALL + COUNT( * ) * + + COUNT( * ) + 0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + COUNT ( * ) * + + COUNT ( * ) + 0 FROM tab0
----
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1729
SELECT - + ( - MIN ( ALL + col0 ) ) col0 FROM tab2 cor0
----
46

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1731
SELECT DISTINCT - 69 + - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1732
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE + col0 BETWEEN NULL AND NULL
----
0

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + + 50 / - - col1 + + 53 + + - col0 * col2 IS NULL AND + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT 5 + - - col0, col2 * - ( - col0 ) AS col2, + col2 col2 FROM tab2 AS cor0
----
9 values hashing to 89e4fd39f56c67a8702a320292a28734

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 90 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 14 * + + col1 - + 90 + + col1 - - col2 + + col0 AS col0 FROM tab0 AS cor0
----
1187
121
322

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + + 29 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-1740
SELECT + 55 + + COUNT ( * ) FROM tab1
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT - 53 DIV - col1 FROM tab0
----
0
2
53

skipif mysql # not compatible
query I rowsort label-1741
SELECT - 53 / - col1 FROM tab0
----
0
2
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1742
SELECT ALL - - COUNT( * ), CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + 8 IS NULL
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1742
SELECT ALL - - COUNT ( * ), CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + 8 IS NULL
----
3
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1744
SELECT ALL - CAST( 50 AS SIGNED ) FROM tab1 AS cor0
----
-50
-50
-50

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

query I rowsort
SELECT - - ( 68 ) AS col2 FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1746
SELECT + - SUM( DISTINCT - ( 62 ) ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1746
SELECT + - SUM ( DISTINCT - ( 62 ) ) AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT col0 * + + 99 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1485
8613
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL SUM( DISTINCT col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL SUM ( DISTINCT col1 ) AS col2 FROM tab1
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + ( + MAX( DISTINCT - col2 ) ) col1 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1750
SELECT ALL + ( + MAX ( DISTINCT - col2 ) ) col1 FROM tab2
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1751
SELECT ALL CAST( NULL AS DECIMAL ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT ALL CAST ( NULL AS REAL ) + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - + 36 * + - col0 < - + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1752
SELECT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + 36 * + - col0 < - + col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL CAST( + col0 AS SIGNED ) * col0 col2 FROM tab0 cor0
----
225
7569
9409

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT ALL CAST ( + col0 AS INTEGER ) * col0 col2 FROM tab0 cor0
----
225
7569
9409

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

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

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
162
2
42

query I rowsort
SELECT - 51 + + + col0 * - - 58 + - col0 * - - col0 FROM tab1 cor0
----
-2346
-3054
306

query II rowsort
SELECT DISTINCT + 69, col1 + - + col2 * col2 * + col2 - + col1 AS col2 FROM tab0 AS cor0
----
69
-1000
69
-103823
69
-970299

query I rowsort
SELECT + 12 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( ( 27 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1760
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE ( NOT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * + - CAST( NULL AS SIGNED ) * + col1 >= - col1 )
----

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE ( NOT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * + col1 >= - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1761
SELECT + MAX( DISTINCT col1 ) * + 12 AS col2 FROM tab2
----
924

skipif mysql # not compatible
query I rowsort label-1761
SELECT + MAX ( DISTINCT col1 ) * + 12 AS col2 FROM tab2
----
924

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT SUM( ALL - - col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1762
SELECT SUM ( ALL - - col1 ) AS col2 FROM tab0
----
103

query I rowsort
SELECT ALL - 12 + 4 * 37 AS col0 FROM tab1 AS cor0
----
136
136
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT + - CAST( - 39 AS SIGNED ) * 47 FROM tab1 cor0
----
1833
1833
1833

skipif mysql # not compatible
query I rowsort label-1764
SELECT + - CAST ( - 39 AS INTEGER ) * 47 FROM tab1 cor0
----
1833
1833
1833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1765
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 15 - + + 58 AS col1 FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT + 89 * + 31 AS col0, 73 AS col2 FROM tab1 AS cor0
----
2759
73
2759
73
2759
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT DISTINCT - - MIN( DISTINCT + ( + col1 ) ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1767
SELECT DISTINCT - - MIN ( DISTINCT + ( + col1 ) ) AS col0 FROM tab2 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1768
SELECT ALL CAST( col2 AS SIGNED ) - + + col0 * - col1 FROM tab0 AS cor0
----
1262
1837
196

skipif mysql # not compatible
query I rowsort label-1768
SELECT ALL CAST ( col2 AS INTEGER ) - + + col0 * - col1 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT ALL - - 96 * col1 AS col0 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT col1 * 94 + 71 * - col1 - - 95 FROM tab0 AS cor0
----
118
1958
578

query I rowsort
SELECT DISTINCT - col2 - + + col0 + + 61 AS col0 FROM tab2 AS cor0
----
-43
-72
-8

query I rowsort
SELECT ALL + col1 - - col0 + + col0 + 67 - + 82 AS col0 FROM tab0
----
180
180
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1773
SELECT ALL ( + CAST( - - 49 AS SIGNED ) ) * 42 + - col2, + col1 AS col0 FROM tab2
----
2000
67
2018
77
2035
51

skipif mysql # not compatible
query II rowsort label-1773
SELECT ALL ( + CAST ( - - 49 AS INTEGER ) ) * 42 + - col2, + col1 AS col0 FROM tab2
----
2000
67
2018
77
2035
51

query I rowsort
SELECT ALL col2 * - + 98 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT COUNT( DISTINCT - 48 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1775
SELECT COUNT ( DISTINCT - 48 ) FROM tab1
----
1

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1778
SELECT DISTINCT - - MIN( DISTINCT + 42 ) AS col2, + 9 DIV - 92 + + COUNT( * ) * + COUNT( * ) - + + COUNT( * ) FROM tab0 AS cor0
----
42
6

skipif mysql # not compatible
query II rowsort label-1778
SELECT DISTINCT - - MIN ( DISTINCT + 42 ) AS col2, + 9 / - 92 + + COUNT ( * ) * + COUNT ( * ) - + + COUNT ( * ) FROM tab0 AS cor0
----
42
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1779
SELECT CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1779
SELECT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT COUNT( DISTINCT 44 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1780
SELECT COUNT ( DISTINCT 44 ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1781
SELECT - 86, + SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-86
227

skipif mysql # not compatible
query II rowsort label-1781
SELECT - 86, + SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-86
227

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1783
SELECT - + CAST( NULL AS SIGNED ) / + - 48 * - 60, - col0 + - 67 AS col0 FROM tab2 AS cor0
----
NULL
-113
NULL
-131
NULL
-142

skipif mysql # not compatible
query II rowsort label-1783
SELECT - + CAST ( NULL AS INTEGER ) / + - 48 * - 60, - col0 + - 67 AS col0 FROM tab2 AS cor0
----
NULL
-113
NULL
-131
NULL
-142

query II rowsort
SELECT DISTINCT + 71 AS col0, ( - col0 ) FROM tab1 AS cor0
----
71
-51
71
-85
71
-91

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) > ( col2 )
----

query I rowsort
SELECT 59 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 12
----

query II rowsort
SELECT - col0 + + col1 AS col1, + col2 FROM tab0
----
-66
10
-96
99
66
47

query I rowsort
SELECT + 75 + - 93 FROM tab0
----
-18
-18
-18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1789
SELECT COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT DISTINCT + 40 * 60 * col0 + - col1 + + ( 4 ) AS col1 FROM tab1 AS cor0 WHERE NOT - 20 <> NULL
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 11 IN ( - - col1, col1 * col1 * - col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - + col1 + + col0 AS col0 FROM tab0 cor0
----
-19
195
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL 33 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT 0 AS col2, + ( - - col1 ) FROM tab0 AS cor0
----
0
1
0
21
0
81

query I rowsort
SELECT DISTINCT col2 * + col0 * - col2 AS col2 FROM tab1 cor0
----
-295885
-420784
-470016

query I rowsort
SELECT + 81 * - - 95 AS col2 FROM tab2
----
7695
7695
7695

query I rowsort
SELECT ALL 60 * + col2 * 87 AS col2 FROM tab1
----
307980
354960
501120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1799
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 6 AS col2 FROM tab0
----
NULL

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

query I rowsort
SELECT + 48 * - col2 * col0 FROM tab0
----
-33840
-41760
-460944

onlyif mysql # DIV for integer division: 
query II rowsort label-1801
SELECT col2, - ( - 86 ) + + + ( - + col1 ) DIV - 33 AS col0 FROM tab1
----
59
86
68
87
96
86

skipif mysql # not compatible
query II rowsort label-1801
SELECT col2, - ( - 86 ) + + + ( - + col1 ) / - 33 AS col0 FROM tab1
----
59
86
68
87
96
86

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

query II rowsort
SELECT DISTINCT 70 AS col2, 51 AS col2 FROM tab1
----
70
51

query I rowsort
SELECT ALL col0 * + ( 81 ) FROM tab1 AS cor0
----
4131
6885
7371

query II rowsort
SELECT 60, + 79 AS col1 FROM tab0 cor0
----
60
79
60
79
60
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT DISTINCT + SUM( 21 ) AS col2 FROM tab2 cor0
----
63

skipif mysql # not compatible
query I rowsort label-1806
SELECT DISTINCT + SUM ( 21 ) AS col2 FROM tab2 cor0
----
63

query I rowsort
SELECT DISTINCT - + ( + - col1 ) FROM tab0 cor0
----
1
21
81

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1809
SELECT - CAST( 19 AS SIGNED ) DIV + 22 - + col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1809
SELECT - CAST ( 19 AS INTEGER ) / + 22 - + col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1810
SELECT - - 57 DIV col1 col1 FROM tab0 AS cor0
----
0
2
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1810
SELECT - - 57 / col1 col1 FROM tab0 AS cor0
----
0
2
57

query I rowsort
SELECT DISTINCT - - 37 * - col0 AS col1 FROM tab1 AS cor0
----
-1887
-3145
-3367

onlyif mysql # DIV for integer division: 
query I rowsort label-1812
SELECT + - col2 DIV - 21 FROM tab0 AS cor0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-1812
SELECT + - col2 / - 21 FROM tab0 AS cor0
----
0
2
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 84 + - col1 col1 FROM tab2 AS cor0
----
3813
5299
6233

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1815
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN - - ( - 19 ) AND + + CAST( + 78 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1815
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN - - ( - 19 ) AND + + CAST ( + 78 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 20 + col1 AS col2 FROM tab1
----
25
34
67

query I rowsort
SELECT - 62 AS col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT 10 + + col2 FROM tab2 AS cor0
----
33
50
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1819
SELECT + MAX( - 50 ) DIV + + COUNT( * ) + - 51 + + COUNT( * ) FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-1819
SELECT + MAX ( - 50 ) / + + COUNT ( * ) + - 51 + + COUNT ( * ) FROM tab1 AS cor0
----
-64

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

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

query I rowsort
SELECT DISTINCT + col0 * col1 - - ( + col1 ) + - - 61 AS col0 FROM tab2 AS cor0
----
2458
5066
5153

query I rowsort
SELECT ALL col2 + + 87 + - + col0 FROM tab0 AS cor0
----
10
119
89

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) - - 66 FROM tab2 AS cor0
----
117
133
143

query I rowsort
SELECT - + col2 * - col0 + + - 97 FROM tab0 AS cor0
----
608
773
9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 83 IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) = 86 - - + 65
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1829
SELECT ALL + COUNT( * ), - 69 AS col2 FROM tab1 WHERE NOT ( + col0 ) = ( NULL )
----
0
-69

skipif mysql # not compatible
query II rowsort label-1829
SELECT ALL + COUNT ( * ), - 69 AS col2 FROM tab1 WHERE NOT ( + col0 ) = ( NULL )
----
0
-69

query I rowsort
SELECT DISTINCT - 55 * - + col2 AS col0 FROM tab2
----
1265
2200
3190

onlyif mysql # DIV for integer division: 
query I rowsort label-1831
SELECT - col1 DIV - 12 AS col1 FROM tab1
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1831
SELECT - col1 / - 12 AS col1 FROM tab1
----
0
1
3

query I rowsort
SELECT 41 FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
41
41
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1833
SELECT col1 DIV + 76 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1833
SELECT col1 / + 76 FROM tab1
----
0
0
0

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + 28 >= col2
----
14
47
5

query II rowsort
SELECT + - col2 * - - col2 * col2 AS col1, 9 AS col0 FROM tab0 AS cor0
----
-1000
9
-103823
9
-970299
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1836
SELECT DISTINCT + COUNT( * ) DIV 18 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT + COUNT ( * ) / 18 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1837
SELECT ALL + col0 * + - ( + col0 ) col2, CAST( col0 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
-2601
-4896
-7225
-5015
-8281
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1837
SELECT ALL + col0 * + - ( + col0 ) col2, CAST ( col0 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
-2601
-4896
-7225
-5015
-8281
-6188

query I rowsort
SELECT DISTINCT + col0 * + 35 FROM tab0
----
3045
3395
525

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1839
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) / - 4 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL 60 + - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - - col2, + col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + 60 * + - 57 AS col1 FROM tab1 AS cor0
----
-3420
-3420
-3420

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT DISTINCT + col2 DIV - 92 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT + col2 / - 92 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-87
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-1844
SELECT DISTINCT col0 DIV + col1 + - 35 FROM tab0 cor0
----
-31
-35
62

skipif mysql # not compatible
query I rowsort label-1844
SELECT DISTINCT col0 / + col1 + - 35 FROM tab0 cor0
----
-31
-35
62

query I rowsort
SELECT ALL + 8 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT ( 12 ) + MAX( DISTINCT - + 90 ) AS col0 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-1846
SELECT ( 12 ) + MAX ( DISTINCT - + 90 ) AS col0 FROM tab2
----
-78

query I rowsort
SELECT col0 + + - col1 AS col2 FROM tab1
----
37
44
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 11 ) * - 71 + - col0 col0 FROM tab2
----
-827
-845
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - COUNT( * ) + ( + - 43 ) AS col2 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-1850
SELECT - COUNT ( * ) + ( + - 43 ) AS col2 FROM tab1
----
-46

query I rowsort
SELECT ALL col0 * - - 89 * col0 - + + 63 * - - col2 AS col0 FROM tab0
----
17064
673011
831164

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1853
SELECT DISTINCT col2 - + CAST( + 46 AS SIGNED ) FROM tab1 AS cor0
----
13
22
50

skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT col2 - + CAST ( + 46 AS INTEGER ) FROM tab1 AS cor0
----
13
22
50

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

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

query I rowsort
SELECT - 33 - col0 * - - 52 FROM tab2
----
-2425
-3361
-3933

query I rowsort
SELECT DISTINCT - ( 18 ) FROM tab1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

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

query I rowsort
SELECT col2 + + 70 FROM tab0 AS cor0 WHERE NOT NULL IN ( 26 + - col0 )
----

query I rowsort
SELECT DISTINCT col0 * + col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2601
7225
8281

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col2 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1864
SELECT + col0 DIV + 77 AS col1 FROM tab0
----
0
1
1

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col0 ) - - 43 + + - col0 * + 47 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1868
SELECT + MAX( - 88 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-88

skipif mysql # not compatible
query I rowsort label-1868
SELECT + MAX ( - 88 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-88

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT - 41 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + - 70 * + - col2 AS col0 FROM tab0 AS cor0
----
3290
6930
700

query I rowsort
SELECT DISTINCT - col2 * - - ( col2 ) AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

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

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

query I rowsort
SELECT + col0 * + - col2 * + 36 FROM tab1 AS cor0
----
-176256
-180540
-222768

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1875
SELECT MIN( DISTINCT - col1 ) DIV - + 14 AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1875
SELECT MIN ( DISTINCT - col1 ) / - + 14 AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT 87 AS col0, + ( - ( + 91 ) ) * - 37 * + col1 + - col0 AS col1 FROM tab1
----
87
158158
87
16750
87
47087

onlyif mysql # aggregate syntax: 
query I rowsort label-1877
SELECT ALL + 14 + + - ( + COUNT( * ) ) col0 FROM tab2
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1877
SELECT ALL + 14 + + - ( + COUNT ( * ) ) col0 FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 88 + col1 col2, + col0 FROM tab0
----
-67
87
-7
15
-87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT DISTINCT - MIN( 13 ) + + + MAX( DISTINCT + + 80 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT - MIN ( 13 ) + + + MAX ( DISTINCT + + 80 ) FROM tab0
----
67

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - 95
----

query I rowsort
SELECT + col2 + + ( 26 ) AS col1 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT ALL + 77 + + 93 * + 63 AS col1 FROM tab2
----
5936
5936
5936

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1883
SELECT ALL + col2 * - 65 col2, ( - col2 ) / - col0 * + ( + - 32 ) - + - 59 + + CAST( NULL AS SIGNED ) FROM tab1
----
-3835
NULL
-4420
NULL
-6240
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1883
SELECT ALL + col2 * - 65 col2, ( - col2 ) / - col0 * + ( + - 32 ) - + - 59 + + CAST ( NULL AS INTEGER ) FROM tab1
----
-3835
NULL
-4420
NULL
-6240
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1884
SELECT - + MAX( col0 ) DIV + + ( 66 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1884
SELECT - + MAX ( col0 ) / + + ( 66 ) AS col1 FROM tab0 AS cor0
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1885
SELECT DISTINCT + - CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - col2, 55 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1887
SELECT 24 AS col2, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
3

skipif mysql # not compatible
query II rowsort label-1887
SELECT 24 AS col2, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
24
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1888
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + + CAST( - - 56 AS SIGNED ) AND - CAST( NULL AS SIGNED ) - - 26 )
----

skipif mysql # not compatible
query III rowsort label-1888
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + + CAST ( - - 56 AS INTEGER ) AND - CAST ( NULL AS INTEGER ) - - 26 )
----

query I rowsort
SELECT ALL + 81 * - col1 AS col1 FROM tab1
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT SUM( DISTINCT 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1890
SELECT SUM ( DISTINCT 0 ) FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN col0 + - - 88 AND + col2
----

query I rowsort
SELECT ( 83 ) AS col1 FROM tab2
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1894
SELECT ALL - SUM( col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL - SUM ( col0 ) FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - 72 * + 59 FROM tab1
----
-4248

query I rowsort
SELECT DISTINCT 24 FROM tab0 AS cor0 WHERE NOT - ( - + col2 ) IS NULL
----
24

query I rowsort
SELECT ALL + col1 + - 84 FROM tab0 AS cor0
----
-3
-63
-83

query III rowsort
SELECT * FROM tab2 WHERE - - 77 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1899
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 16 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1899
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 16 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1900
SELECT DISTINCT - CAST( + - 86 AS SIGNED ) + + + MAX( ALL col1 ) - 54 AS col2 FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT - CAST ( + - 86 AS INTEGER ) + + + MAX ( ALL col1 ) - 54 AS col2 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query II rowsort label-1901
SELECT - MAX( DISTINCT - col1 ), - COUNT( * ) col1 FROM tab2
----
51
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1901
SELECT - MAX ( DISTINCT - col1 ), - COUNT ( * ) col1 FROM tab2
----
51
-3

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( col2 ) BETWEEN 59 AND - + ( + - 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT col1 + + - col0 * - - col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1907
SELECT ALL + 13 * 95 * col2 + + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT DISTINCT - col2 - - + col2 * + col1 - - - CAST( + + ( + col0 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
1197
151
3037

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - col2 - - + col2 * + col1 - - - CAST ( + + ( + col0 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
1197
151
3037

query I rowsort
SELECT DISTINCT + 17 * + col0 AS col0 FROM tab2
----
1088
1275
782

query I rowsort
SELECT DISTINCT + 79 + - 14 AS col2 FROM tab1 WHERE NOT col1 * col2 BETWEEN NULL AND - 73 + 20 + + 91 + - - col1
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, 18 col0 FROM tab1
----
NULL
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1912
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, 18 col0 FROM tab1
----
NULL
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 + + - 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1915
SELECT ALL 79, + COUNT ( * ) col0 FROM tab0 AS cor0
----
79
3

query I rowsort
SELECT DISTINCT 68 * 98 AS col2 FROM tab1 AS cor0
----
6664

onlyif mysql # aggregate syntax: 
query II rowsort label-1917
SELECT - SUM( DISTINCT + + col2 ) AS col2, + MAX( + + 11 ) * + COUNT( * ) FROM tab1 AS cor0
----
-223
33

skipif mysql # not compatible
query II rowsort label-1917
SELECT - SUM ( DISTINCT + + col2 ) AS col2, + MAX ( + + 11 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-223
33

query I rowsort
SELECT DISTINCT - - ( + - col0 ) + - 20 AS col1 FROM tab2 WHERE ( - col1 + col2 NOT BETWEEN + col2 + 90 AND + col0 + + col0 + + - 70 )
----
-66
-84
-95

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

skipif mysql # not compatible
query II rowsort label-1919
SELECT DISTINCT col2 AS col1, col1 * CAST ( + - col2 AS INTEGER ) * col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 40 * col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + ( 54 ) + - + col0 FROM tab2 AS cor0
----
-10
-21
8

query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 FROM tab1
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-1923
SELECT DISTINCT + 98 * + SUM( ALL 43 ) FROM tab1 AS cor0
----
12642

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT + 98 * + SUM ( ALL 43 ) FROM tab1 AS cor0
----
12642

query I rowsort
SELECT 74 * - 59 AS col0 FROM tab0 AS cor0
----
-4366
-4366
-4366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, col1 col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1926
SELECT - - CAST( NULL AS SIGNED ), + 67 col0 FROM tab1 AS cor0
----
NULL
67
NULL
67
NULL
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1926
SELECT - - CAST ( NULL AS INTEGER ), + 67 col0 FROM tab1 AS cor0
----
NULL
67
NULL
67
NULL
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1929
SELECT * FROM tab0 WHERE + - ( + col2 ) + - CAST( col0 AS SIGNED ) + col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1929
SELECT * FROM tab0 WHERE + - ( + col2 ) + - CAST ( col0 AS INTEGER ) + col2 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + 38 - 36 FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1932
SELECT ALL COUNT( * ) * - 37 AS col1 FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-1932
SELECT ALL COUNT ( * ) * - 37 AS col1 FROM tab1
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL + 78 + SUM( ALL - 4 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL + 78 + SUM ( ALL - 4 ) FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT + SUM( DISTINCT + + col2 ) * + 46 + + SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
10324

skipif mysql # not compatible
query I rowsort label-1934
SELECT + SUM ( DISTINCT + + col2 ) * + 46 + + SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
10324

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

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

query II rowsort
SELECT DISTINCT 5 * - - ( - 11 ) AS col0, 17 AS col2 FROM tab2
----
-55
17

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT ALL - CAST( CAST( - + 64 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
64
64
64

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

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

query I rowsort
SELECT ALL - + 44 * - 48 AS col2 FROM tab0 AS cor0
----
2112
2112
2112

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col0, + col2, + col0 )
----

query I rowsort
SELECT ( - + 20 ) FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT ALL - SUM( - - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-1944
SELECT ALL - SUM ( - - col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT col1 + + - col0 + col2 AS col2 FROM tab0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 + - 0 col1 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT - col2 + - 47 * col2 AS col1 FROM tab1
----
-2832
-3264
-4608

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT ALL - 77 * + COUNT( * ) col1 FROM tab0
----
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1948
SELECT ALL - 77 * + COUNT ( * ) col1 FROM tab0
----
-231

query I rowsort
SELECT DISTINCT ( + - col2 ) * col2 * - ( + + col0 ) AS col0 FROM tab2
----
102400
24334
252300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT DISTINCT - 66 + 38 + col1 + col0 AS col0 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
68
70
80

skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT - 66 + 38 + col1 + col0 AS col0 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
68
70
80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1952
SELECT + 72 AS col1 FROM tab2 AS cor0 WHERE + 72 NOT IN ( - CAST( - + col1 AS SIGNED ) )
----
72
72
72

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 72 AS col1 FROM tab2 AS cor0 WHERE + 72 NOT IN ( - CAST ( - + col1 AS INTEGER ) )
----
72
72
72

query I rowsort
SELECT - 42 + + col2 AS col2 FROM tab2
----
-19
-2
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT + + col1 DIV + + 47 + + 74 DIV 18 FROM tab0 AS cor0
----
4
4
5

skipif mysql # not compatible
query I rowsort label-1954
SELECT + + col1 / + + 47 + + 74 / 18 FROM tab0 AS cor0
----
4
4
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1955
SELECT ALL + col2 - col2 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + - col2 + + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1958
SELECT DISTINCT 23 DIV + - 75 + - COUNT( * ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1958
SELECT DISTINCT 23 / + - 75 + - COUNT ( * ) AS col0 FROM tab2
----
-3

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1960
SELECT DISTINCT + 2 AS col1, - COUNT( * ) FROM tab2
----
2
-3

skipif mysql # not compatible
query II rowsort label-1960
SELECT DISTINCT + 2 AS col1, - COUNT ( * ) FROM tab2
----
2
-3

query I rowsort
SELECT col2 * + 20 FROM tab0
----
1980
200
940

onlyif mysql # aggregate syntax: 
query II rowsort label-1962
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) + + 98 FROM tab0
----
3
95

skipif mysql # not compatible
query II rowsort label-1962
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) + + 98 FROM tab0
----
3
95

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

query I rowsort
SELECT ALL + + 53 * + - col2 AS col0 FROM tab2 AS cor0 WHERE 10 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col0 IN ( - 17 )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 - - col1 * - 68 ) IS NOT NULL
----

query I rowsort
SELECT - col2 + - 54 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 53 * col2 AS col1 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT + 75 + COUNT( * ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1970
SELECT + 75 + COUNT ( * ) FROM tab1
----
78

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 58 + - col1 >= ( col2 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1973
SELECT ALL col0 FROM tab2 WHERE NOT + col1 * CAST( col0 * col1 AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL col0 FROM tab2 WHERE NOT + col1 * CAST ( col0 * col1 AS INTEGER ) <> - col1
----

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

query I rowsort
SELECT 63 * - col0 + - 20 FROM tab0
----
-5501
-6131
-965

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1977
SELECT * FROM tab0 WHERE NOT - col0 * - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1977
SELECT * FROM tab0 WHERE NOT - col0 * - CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT DISTINCT - COUNT( * ) + COUNT( - 28 + - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - COUNT ( * ) + COUNT ( - 28 + - col2 ) FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 74 + 40 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT ALL + 27 * SUM( ALL - 70 ) + - COUNT( * ) FROM tab2
----
-5673

skipif mysql # not compatible
query I rowsort label-1980
SELECT ALL + 27 * SUM ( ALL - 70 ) + - COUNT ( * ) FROM tab2
----
-5673

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= - ( 70 ) - + col1 * col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 / 80 <> col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT 42 + 29 FROM tab2
----
71
71
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN - 48 AND ( 95 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 BETWEEN ( - col0 ) / - col0 AND ( col1 * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 + 55 FROM tab0
----
142
152
70

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab1 WHERE col2 BETWEEN + 58 + + 48 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT COUNT( * ) + 24 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT COUNT ( * ) + 24 FROM tab2
----
27

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 16 + - 49 FROM tab0
----
-33

query I rowsort
SELECT DISTINCT - 60 * 57 FROM tab2
----
-3420

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 71 * col1 > ( col2 )
----

query I rowsort
SELECT DISTINCT col2 * 76 FROM tab1
----
4484
5168
7296

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT + col2 = ( col1 )
----
59
68
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2000
SELECT ALL - 65 * COUNT( * ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2000
SELECT ALL - 65 * COUNT ( * ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2001
SELECT 83 + CAST( ( 55 ) AS SIGNED ) * - 65 FROM tab2
----
-3492
-3492
-3492

skipif mysql # not compatible
query I rowsort label-2001
SELECT 83 + CAST ( ( 55 ) AS INTEGER ) * - 65 FROM tab2
----
-3492
-3492
-3492

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT ALL col1 DIV 62 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL col1 / 62 FROM tab0 cor0
----
0
0
1

query I rowsort
SELECT - 20 * - col2 FROM tab2 AS cor0
----
1160
460
800

query I rowsort
SELECT + 0 + - 18 FROM tab1 cor0
----
-18
-18
-18

query I rowsort
SELECT 54 * col0 + - 98 AS col1 FROM tab0 AS cor0
----
4600
5140
712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2007
SELECT ALL - 15 DIV - MAX( 57 * - col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - 15 / - MAX ( 57 * - col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + - col0 * 94 FROM tab0 AS cor0
----
-1491
-8199
-9119

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 - 38 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT DISTINCT + ( COUNT( * ) ) col2 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-2011
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab1 AS cor0 WHERE ( ( col1 ) ) IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2012
SELECT + + COUNT( * ) * CAST( + ( MAX( col0 ) ) + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-2012
SELECT + + COUNT ( * ) * CAST ( + ( MAX ( col0 ) ) + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
264

query I rowsort
SELECT col0 * + 47 AS col1 FROM tab0 AS cor0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT ALL MAX( col1 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2014
SELECT ALL MAX ( col1 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
44

query I rowsort
SELECT + + ( + col0 ) AS col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT - 9 - COUNT( * ) col1 FROM tab1 AS cor0
----
-12

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

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

skipif mysql # not compatible
query I rowsort label-2017
SELECT ALL + CAST ( col1 AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT col0 * + ( 24 + col2 * 73 ) - + col0 * col2 AS col1 FROM tab0 AS cor0
----
51120
64728
693744

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT ALL 5 - SUM( + 28 ) col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2020
SELECT ALL 5 - SUM ( + 28 ) col1 FROM tab0 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT COUNT( * ) - MIN( col2 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2021
SELECT COUNT ( * ) - MIN ( col2 ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT DISTINCT 93 * - COUNT( * ) FROM tab2
----
-279

skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT 93 * - COUNT ( * ) FROM tab2
----
-279

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT SUM( DISTINCT + ( - CAST( + col2 AS SIGNED ) ) ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT CAST( NULL AS SIGNED ) * + COUNT( ALL - col2 ) * MIN( DISTINCT col2 * - col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2024
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( ALL - col2 ) * MIN ( DISTINCT col2 * - col2 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL SUM( - 61 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL SUM ( - 61 ) FROM tab0
----
-183

query I rowsort
SELECT DISTINCT + 0 * col1 * + col2 + col0 * col0 AS col2 FROM tab2 AS cor0
----
2116
4096
5625

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL ( 15 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2030
SELECT DISTINCT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) < 24 + - 81
----

query I rowsort
SELECT + 77 * 90 FROM tab1 AS cor0
----
6930
6930
6930

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = col2 OR NOT + 8 NOT BETWEEN ( + col1 ) AND - 43
----

query II rowsort
SELECT DISTINCT + 47, col0 FROM tab0 AS cor0
----
47
15
47
87
47
97

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

query I rowsort
SELECT DISTINCT - - ( - ( - + 36 ) ) * + 83 FROM tab2 cor0
----
2988

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * ( col0 ) * + col2 - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 < + 98 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query III rowsort
SELECT * FROM tab1 WHERE col1 + col2 > ( 11 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 44 + + col2 * - col2 FROM tab1
----
-3525
-4668
-9260

query I rowsort
SELECT ALL 18 + 0 + + ( + 10 ) AS col1 FROM tab1
----
28
28
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - MIN( col2 ) + + + ( + 64 ) AS col1 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-2044
SELECT - MIN ( col2 ) + + + ( + 64 ) AS col1 FROM tab0
----
54

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( NULL ) >= + 3
----

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

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

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

query I rowsort
SELECT DISTINCT - 97 * - col2 - + 63 + + col0 + + ( + 46 ) + - 63 FROM tab2 AS cor0
----
2197
3864
5621

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT DISTINCT + COUNT( * ) FROM tab1 cor0 WHERE NOT ( NOT NULL < - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT DISTINCT + COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NOT NULL < - - col0 )
----
0

query I rowsort
SELECT DISTINCT + col1 * + 40 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 80 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2052
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT ( - col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT DISTINCT ( + - MAX( - 22 ) ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-2053
SELECT DISTINCT ( + - MAX ( - 22 ) ) FROM tab0
----
22

query I rowsort
SELECT - 85 * + 1 * + + 19 FROM tab0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + 41 - + + 56 AS col1 FROM tab2 cor0
----
-15

query I rowsort
SELECT ALL 84 - - - 56 + - + col2 FROM tab2 AS cor0
----
-12
-30
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - col0 * + - col1 + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col1 IN ( 21 * + col1 )
----

query II rowsort
SELECT - + col0 AS col2, + col1 + col2 FROM tab2 AS cor0
----
-46
74
-64
117
-75
125

query I rowsort
SELECT + + col2 + - col2 * 34 AS col1 FROM tab1 AS cor0 WHERE NOT + 65 - 80 IS NULL
----
-1947
-2244
-3168

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

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

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

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab0 AS cor0 WHERE NOT ( - col0 * - col0 ) IS NULL
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + col2 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
104
133
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT DISTINCT COUNT( * ) * 52 AS col1 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT COUNT ( * ) * 52 AS col1 FROM tab2
----
156

query I rowsort
SELECT + - col2 * + 5 FROM tab2 WHERE NOT ( NOT + 35 > 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + 17 * - + COUNT( * ) * - - MAX( ALL + col1 ) AS col2 FROM tab0
----
-4131

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 17 * - + COUNT ( * ) * - - MAX ( ALL + col1 ) AS col2 FROM tab0
----
-4131

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT + COUNT( * ) * + - COUNT( ALL + + col1 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2072
SELECT + COUNT ( * ) * + - COUNT ( ALL + + col1 ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT 26 * 76 + COUNT( * ) AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN + col1 AND col1
----
1979

skipif mysql # not compatible
query I rowsort label-2073
SELECT 26 * 76 + COUNT ( * ) AS col1 FROM tab0 WHERE NOT col1 NOT BETWEEN + col1 AND col1
----
1979

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2074
SELECT - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( col2 + + col1 * - col1 + col1 ) IS NULL
----
-3

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 29 ) col1, col0 AS col1 FROM tab1 AS cor0
----
29
51
29
85
29
91

query I rowsort
SELECT - - col1 * + - 72 * - col2 FROM tab1 AS cor0
----
21240
230112
96768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2079
SELECT MIN( ALL col1 ) FROM tab1 WHERE NOT + ( + col2 ) / 33 + - CAST( NULL AS SIGNED ) <= col0 * CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2079
SELECT MIN ( ALL col1 ) FROM tab1 WHERE NOT + ( + col2 ) / 33 + - CAST ( NULL AS INTEGER ) <= col0 * CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT ALL - 50 + 64 + + col2 FROM tab0
----
113
24
61

query I rowsort
SELECT ( + col2 ) + - - 8 FROM tab2 AS cor0
----
31
48
66

query I rowsort
SELECT + col0 * - - col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col2 ) + + + col0 <= col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2085
SELECT ALL - 49 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2085
SELECT ALL - 49 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

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

query I rowsort
SELECT + ( - col2 ) FROM tab2 AS cor0 WHERE col2 * - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT - MIN( - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT - MIN ( - col2 ) AS col0 FROM tab2 AS cor0
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2091
SELECT + 47 + - 37 DIV 18 FROM tab2 AS cor0 WHERE ( - 1 * + 41 DIV + col2 NOT IN ( + col2 * + col0 + + 57 ) )
----
45
45
45

skipif mysql # not compatible
query I rowsort label-2091
SELECT + 47 + - 37 / 18 FROM tab2 AS cor0 WHERE ( - 1 * + 41 / + col2 NOT IN ( + col2 * + col0 + + 57 ) )
----
45
45
45

query I rowsort
SELECT ALL - col2 + + col0 + + 77 * ( - col2 ) AS col0 FROM tab1
----
-4517
-5213
-7437

query I rowsort
SELECT - 84 FROM tab1 WHERE + - col1 + + col1 / - + col0 <= col0 / col2 - - col0
----
-84
-84
-84

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

query I rowsort
SELECT DISTINCT 27 + ( - col1 ) AS col2 FROM tab1
----
-20
13
22

query I rowsort
SELECT - col2 - + 58 + col0 - col0 FROM tab2
----
-116
-81
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT - 15 + - col2 FROM tab0 WHERE + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 15 + - col2 FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT DISTINCT + COUNT( * ) + + - 40 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-2098
SELECT DISTINCT + COUNT ( * ) + + - 40 FROM tab1
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 88 ) + ( - 89 ) + + col1 + + col2 * - col2 col0 FROM tab0
----
-2129
-80
-9801

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

query I rowsort
SELECT + 47 + + - 52 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT + + 14 + - col0 FROM tab0 AS cor0
----
-1
-73
-83

query I rowsort
SELECT DISTINCT + 56 * - col2 AS col1 FROM tab2 AS cor0
----
-1288
-2240
-3248

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 30 / + ( + 44 ) * col0 + + + col0 IN ( 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT ( - - COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2105
SELECT DISTINCT ( - - COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT + MIN( - col1 ) FROM tab0 AS cor0 WHERE + col2 NOT IN ( - + col1 )
----
-81

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT + MIN ( - col1 ) FROM tab0 AS cor0 WHERE + col2 NOT IN ( - + col1 )
----
-81

query I rowsort
SELECT + 59 * - 84 FROM tab2 cor0
----
-4956
-4956
-4956

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT DISTINCT + COUNT( ALL + 88 ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT DISTINCT + COUNT ( ALL + 88 ) col0 FROM tab2 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 49 >= NULL
----

query I rowsort
SELECT DISTINCT - ( ( + - col2 ) ) FROM tab1 cor0 WHERE NOT col2 + - + col2 IS NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col0 FROM tab1 AS cor0 WHERE NOT + col0 * - 60 < NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2113
SELECT DISTINCT + col1 * 50 DIV CAST( + - col1 AS SIGNED ) * + 25 * + 76 * - 80 AS col2 FROM tab0
----
7600000

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT + col1 * 50 / CAST ( + - col1 AS INTEGER ) * + 25 * + 76 * - 80 AS col2 FROM tab0
----
7600000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2114
SELECT ALL CAST( - + SUM( - col0 ) AS SIGNED ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2114
SELECT ALL CAST ( - + SUM ( - col0 ) AS INTEGER ) FROM tab1
----
227

query I rowsort
SELECT ALL ( - + 21 ) FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT + col2 * ( - col1 ) DIV - 10 AS col0 FROM tab1
----
134
29
319

skipif mysql # not compatible
query I rowsort label-2116
SELECT + col2 * ( - col1 ) / - 10 AS col0 FROM tab1
----
134
29
319

query I rowsort
SELECT - col2 * + 92 FROM tab0
----
-4324
-9108
-920

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

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

query I rowsort
SELECT - - 18 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT + col0 * - col2 * - - col1 AS col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL col2 + col2 * + ( - col0 ) + + - col2 AS col0 FROM tab2
----
-1058
-2560
-4350

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2123
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2123
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE CAST ( - CAST ( NULL AS REAL ) AS REAL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 79 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

query I rowsort
SELECT - - col0 * + + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 25 col2 FROM tab2 AS cor0
----
51
25
67
25
77
25

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

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

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

query I rowsort
SELECT ALL col1 / - col2 / col0 FROM tab1 AS cor0 WHERE col0 - + 30 IS NOT NULL AND NOT + 48 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, + col0 + - 6 AS col2 FROM tab2 AS cor0
----
46
40
64
58
75
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2132
SELECT + CAST( NULL AS SIGNED ) + + - 8 + - COUNT( * ) + + COUNT( * ) * 94 col0 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( + ( - col2 ) ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2133
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( + ( - col2 ) ), CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2134
SELECT + - col2 + + 27 DIV col1 * col2 AS col1 FROM tab1 AS cor0
----
-68
0
236

skipif mysql # not compatible
query I rowsort label-2134
SELECT + - col2 + + 27 / col1 * col2 AS col1 FROM tab1 AS cor0
----
-68
0
236

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

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

query I rowsort
SELECT - 25 + + ( ( 4 ) ) FROM tab2
----
-21
-21
-21

query II rowsort
SELECT - col1 + - - col0 * - + col2 - - 57 + + col1 AS col2, col1 AS col1 FROM tab1
----
-4839
14
-4958
5
-6131
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2138
SELECT col0 + col2 * + col2 DIV + col2 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2138
SELECT col0 + col2 * + col2 / + col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT DISTINCT COUNT( * ) * - 6 + + - COUNT( DISTINCT + - col0 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT COUNT ( * ) * - 6 + + - COUNT ( DISTINCT + - col0 ) FROM tab2
----
-21

query I rowsort
SELECT ALL + 47 - - - col0 * - 35 AS col0 FROM tab0 AS cor0
----
3092
3442
572

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 12 * ( col2 ) < 94
----

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + + col2 NOT BETWEEN col1 + - + col2 AND col1
----
46
51
23

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 * - col0 + - - ( - col2 ) + + + col2 / - - 96 - + 29 / - col2 ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND - 72 + - col1 + + col2
----

query I rowsort
SELECT - col2 * - col2 + 88 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 + - - 72 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT ALL 28 * - + col0 FROM tab0 cor0
----
-2436
-2716
-420

query II rowsort
SELECT ALL + col1, col2 FROM tab1 AS cor0 WHERE - 29 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + col1 IS NULL
----

query I rowsort
SELECT ALL - 14 * + - col1 FROM tab0 AS cor0
----
1134
14
294

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

query I rowsort
SELECT ALL + col1 * + 80 AS col0 FROM tab0 AS cor0
----
1680
6480
80

query I rowsort
SELECT 2 * - 27 * - 2 FROM tab2
----
108
108
108

query I rowsort
SELECT - 43 * - col2 * + - col0 AS col0 FROM tab1
----
-210528
-215645
-266084

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

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

query I rowsort
SELECT 50 * 9 FROM tab0
----
450
450
450

query II rowsort
SELECT DISTINCT + - 43 * + + col1 AS col2, + 30 AS col2 FROM tab0 AS cor0
----
-3483
30
-43
30
-903
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 6 + 63 BETWEEN NULL AND - - col1
----
46
51
23
75
67
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 79 * col1 col0 FROM tab0 AS cor0
----
-16590
-300753
-7821

query I rowsort
SELECT - col0 + col1 + - 90 FROM tab2 AS cor0
----
-77
-85
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-2168
SELECT ALL 84 DIV + 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL 84 / + 99 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT ALL 29 + + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL 29 + + COUNT ( * ) FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + + 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col1 + + 22 * - 62 col1 FROM tab0
----
-1256
-1266
-1268

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT 19 + + + COUNT( * ) col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2172
SELECT DISTINCT 19 + + + COUNT ( * ) col1 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - MAX( 99 ) * + 32 col2 FROM tab2 cor0
----
-3168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2173
SELECT - MAX ( 99 ) * + 32 col2 FROM tab2 cor0
----
-3168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT - + SUM( col0 ) * - 34 FROM tab2 AS cor0
----
6290

skipif mysql # not compatible
query I rowsort label-2175
SELECT - + SUM ( col0 ) * - 34 FROM tab2 AS cor0
----
6290

query I rowsort
SELECT + + col2 * - + 53 * - col1 FROM tab0 AS cor0
----
11130
201771
5247

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 IS NULL AND + col1 > + col1 * + - col1 * + 80
----

query I rowsort
SELECT DISTINCT 35 + - 77 FROM tab1
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL COUNT( * ) + + 22 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL COUNT ( * ) + + 22 FROM tab1
----
25

query I rowsort
SELECT col1 + 90 + - col0 + - 43 * + col1 AS col1 FROM tab0
----
-3327
-49
-879

query I rowsort
SELECT ALL - col0 * - - ( + + ( + 7 ) ) * - col0 - - col1 - - 30 AS col2 FROM tab2 AS cor0
----
14893
28779
39472

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2183
SELECT DISTINCT - 15 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
-15
-3

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT - 15 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
-15
-3

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

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

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

query II rowsort
SELECT - col0 * + + col0, 93 AS col0 FROM tab0
----
-225
93
-7569
93
-9409
93

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

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT DISTINCT - 96 * + COUNT( ALL + 69 ) FROM tab2 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2188
SELECT DISTINCT - 96 * + COUNT ( ALL + 69 ) FROM tab2 AS cor0
----
-288

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + + 48 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 78 + 35 + + + ( - 72 ) FROM tab1
----
41
41
41

query II rowsort
SELECT ALL col1, 49 FROM tab1
----
14
49
47
49
5
49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 57 * - col0 NOT BETWEEN NULL AND - col2 * - + 61 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2193
SELECT DISTINCT COUNT( * ) * + MIN( DISTINCT col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2193
SELECT DISTINCT COUNT ( * ) * + MIN ( DISTINCT col1 ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2194
SELECT ALL + 72 * - + 94 + + - CAST( + col2 AS SIGNED ) FROM tab0
----
-6778
-6815
-6867

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + 72 * - + 94 + + - CAST ( + col2 AS INTEGER ) FROM tab0
----
-6778
-6815
-6867

query I rowsort
SELECT + ( 72 ) + - col0 AS col2 FROM tab0 AS cor0 WHERE - 7 <= NULL
----

query I rowsort
SELECT + col0 + - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT ALL + + col0 * - + col0 + 42 + col0 AS col1 FROM tab2 cor0
----
-2028
-3990
-5508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT DISTINCT + col0 * col2 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT NULL <> - + col2 / - + 86 )
----

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT + col0 * col2 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT NULL <> - + col2 / - + 86 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL BETWEEN 51 * - 10 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT 70 DIV + - 3 AS col2 FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-2201
SELECT 70 / + - 3 AS col2 FROM tab0
----
-23
-23
-23

query I rowsort
SELECT + col2 * - col2 AS col2 FROM tab2 WHERE - + col1 / - col1 <> + col0
----
-1600
-3364
-529

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

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

query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab1 WHERE NOT - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 75 + 50 FROM tab0 WHERE NOT + + ( + col2 ) IS NULL
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT + COUNT( * ) * + 32 col1 FROM tab2
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2206
SELECT + COUNT ( * ) * + 32 col1 FROM tab2
----
96

query I rowsort
SELECT ALL col2 * - ( - + col2 ) + + - col2 FROM tab2
----
1560
3306
506

onlyif mysql # DIV for integer division: 
query III rowsort label-2208
SELECT * FROM tab0 WHERE - col1 <= col0 DIV - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2208
SELECT * FROM tab0 WHERE - col1 <= col0 / - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE + ( - col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2211
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - + col1 - + 28 * + 80 * + + col1 * - + col2, col1 * - col0 * + + 91, - CAST( NULL AS DECIMAL ), col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2211
SELECT DISTINCT - col2 col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - + col1 - + 28 * + 80 * + + col1 * - + col2, col1 * - col0 * + + 91, - CAST ( NULL AS REAL ), col2 )
----

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

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

query I rowsort
SELECT DISTINCT 93 * + - 54 FROM tab1 AS cor0
----
-5022

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL > + col0
----

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

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

query I rowsort
SELECT - 73 * - col0 AS col0 FROM tab0 AS cor0
----
1095
6351
7081

query I rowsort
SELECT - 61 AS col1 FROM tab0 cor0
----
-61
-61
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + - ( - 15 ) + - - 74 IS NOT NULL
----

query II rowsort
SELECT ALL - col0 + col0, col1 + col0 AS col0 FROM tab0
----
0
108
0
96
0
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2221
SELECT DISTINCT COUNT( * ) + - ( - 40 ) DIV 58 AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT COUNT ( * ) + - ( - 40 ) / 58 AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT COUNT( * ) * + + COUNT( * ) * 81 * - COUNT( * ) * - + COUNT( * ) col0 FROM tab2
----
6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2222
SELECT COUNT ( * ) * + + COUNT ( * ) * 81 * - COUNT ( * ) * - + COUNT ( * ) col0 FROM tab2
----
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL + + ( + MAX( ( + 58 ) ) ) AS col1 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + + ( + MAX ( ( + 58 ) ) ) AS col1 FROM tab0 AS cor0
----
58

query I rowsort
SELECT + - col2 * 34 + col0 + ( + 73 ) FROM tab1 AS cor0
----
-1848
-2148
-3140

query I rowsort
SELECT ALL + col1 + + ( + 4 ) AS col1 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2226
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col0 NOT IN ( + col2, - 71 * - + col2, + + CAST( - + col0 AS SIGNED ), + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2226
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col0 NOT IN ( + col2, - 71 * - + col2, + + CAST ( - + col0 AS INTEGER ), + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT COUNT( * ) + + 97 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT COUNT ( * ) + + 97 FROM tab1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-2228
SELECT DISTINCT 15 + + ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT 15 + + ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
24

query II rowsort
SELECT + 96 AS col0, ( + col1 ) FROM tab2 WHERE NULL IS NULL
----
96
51
96
67
96
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 * - 85 IS NOT NULL
----

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

query I rowsort
SELECT - ( - - 54 ) * - - col2 FROM tab1 AS cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2233
SELECT DISTINCT + + 70 AS col1, + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
70
3

skipif mysql # not compatible
query II rowsort label-2233
SELECT DISTINCT + + 70 AS col1, + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT - 40 - - ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-2234
SELECT - 40 - - ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-37

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

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

query I rowsort
SELECT DISTINCT col0 * + 28 - - - col0 * - col1 * - col1 AS col1 FROM tab1 AS cor0
----
-198471
-8568
255

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( - col2 ) col0 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - + 24 AS col2 FROM tab0 WHERE NOT + ( - col1 ) * + col0 * + col0 IS NULL
----
-24
-24
-24

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 29 * col1 - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 * + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - COUNT( - 42 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - COUNT ( - 42 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2243
SELECT - col0 DIV + col0 AS col2, 13 AS col0 FROM tab0
----
-1
13
-1
13
-1
13

skipif mysql # not compatible
query II rowsort label-2243
SELECT - col0 / + col0 AS col2, 13 AS col0 FROM tab0
----
-1
13
-1
13
-1
13

onlyif mysql # aggregate syntax: 
query II rowsort label-2244
SELECT ALL - COUNT( ALL - col2 ), MIN( ALL 75 ) AS col2 FROM tab2 AS cor0
----
-3
75

skipif mysql # not compatible
query II rowsort label-2244
SELECT ALL - COUNT ( ALL - col2 ), MIN ( ALL 75 ) AS col2 FROM tab2 AS cor0
----
-3
75

query I rowsort
SELECT - 82 * - col2 * col1 FROM tab2
----
252560
318652
96186

query I rowsort
SELECT + - 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query II rowsort
SELECT DISTINCT + col1 AS col0, col0 * - col2 FROM tab1
----
14
-4896
47
-6188
5
-5015

query I rowsort
SELECT - - col1 * - - 30 AS col0 FROM tab1 AS cor0
----
1410
150
420

onlyif mysql # aggregate syntax: 
query II rowsort label-2249
SELECT + 38, COUNT( * ) AS col1 FROM tab2 AS cor0
----
38
3

skipif mysql # not compatible
query II rowsort label-2249
SELECT + 38, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
38
3

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

query I rowsort
SELECT col2 + + 68 AS col2 FROM tab1 AS cor0
----
127
136
164

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 71 + - col1 FROM tab1
----
24
57
66

query I rowsort
SELECT ALL col0 * - ( + 6 ) + - + col0 + - col1 AS col0 FROM tab0
----
-186
-630
-680

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

query I rowsort
SELECT - 46 + 92 FROM tab1
----
46
46
46

query I rowsort
SELECT 78 + + col1 + col0 AS col0 FROM tab2
----
175
219
220

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL 99 + COUNT( * ) AS col2 FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2259
SELECT ALL 99 + COUNT ( * ) AS col2 FROM tab2
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT ALL col0 DIV - 91 * - col2 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2260
SELECT ALL col0 / - 91 * - col2 + + col1 FROM tab2
----
51
67
77

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

query II rowsort
SELECT + col2 + - + col2 AS col1, col0 FROM tab1
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2263
SELECT - + COUNT( * ) FROM tab2 WHERE - col0 IN ( + 75 * + + 78, col1, - col2, 66 )
----
0

skipif mysql # not compatible
query I rowsort label-2263
SELECT - + COUNT ( * ) FROM tab2 WHERE - col0 IN ( + 75 * + + 78, col1, - col2, 66 )
----
0

query I rowsort
SELECT - col0 * + 90 AS col1 FROM tab1
----
-4590
-7650
-8190

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

query I rowsort
SELECT 57 - - col0 - col2 FROM tab1
----
12
80
83

query I rowsort
SELECT ALL - ( + 61 ) + col0 AS col2 FROM tab1
----
-10
24
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2268
SELECT + CAST( NULL AS DECIMAL ) - - - 33 AS col2 FROM tab0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2269
SELECT ALL * FROM tab0 WHERE - 55 BETWEEN - col1 * - - col2 * col1 + ( - CAST( NULL AS SIGNED ) ) * + - col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2269
SELECT ALL * FROM tab0 WHERE - 55 BETWEEN - col1 * - - col2 * col1 + ( - CAST ( NULL AS INTEGER ) ) * + - col2 AND NULL
----

query I rowsort
SELECT ALL + 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * - - 36 col1 FROM tab1 WHERE ( NULL ) IS NULL
----
3168
3168
3168

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

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

query I rowsort
SELECT DISTINCT - - 32 + + - 42 AS col0 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT ALL - 74 * col2 + + + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-3544
-674
-7230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - col2 + col0 col0, ( - col0 ) FROM tab0 AS cor0
----
-1
-97
49
-15
98
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2276
SELECT - + 23 FROM tab0 AS cor0 WHERE NOT NULL <> + col1 * - + CAST( NULL AS SIGNED ) / - CAST( - + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2276
SELECT - + 23 FROM tab0 AS cor0 WHERE NOT NULL <> + col1 * - + CAST ( NULL AS INTEGER ) / - CAST ( - + col1 AS INTEGER )
----

query I rowsort
SELECT ALL 18 * col2 AS col2 FROM tab1
----
1062
1224
1728

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT ALL + ( 79 ) DIV + - 52 + - 76 AS col0 FROM tab0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL + ( 79 ) / + - 52 + - 76 AS col0 FROM tab0
----
-77
-77
-77

query II rowsort
SELECT 75, 98 - col2 AS col2 FROM tab2
----
75
40
75
58
75
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2280
SELECT + 84 DIV - + COUNT( * ) AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-2280
SELECT + 84 / - + COUNT ( * ) AS col0 FROM tab1
----
-28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2281
SELECT + COUNT( * ) DIV COUNT( * ) col2 FROM tab0
----
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT + 41 DIV + COUNT( * ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + 41 / + COUNT ( * ) AS col1 FROM tab2
----
13

onlyif mysql # DIV for integer division: 
query II rowsort label-2283
SELECT DISTINCT col1 AS col2, col2 DIV + 22 AS col2 FROM tab0
----
1
4
21
0
81
2

skipif mysql # not compatible
query II rowsort label-2283
SELECT DISTINCT col1 AS col2, col2 / + 22 AS col2 FROM tab0
----
1
4
21
0
81
2

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / col2 * + col0 - col0 + - col2 * - + col2 * + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT + 79 * - col2 - - ( + - col0 ) FROM tab0 AS cor0
----
-3728
-7918
-877

query I rowsort
SELECT 47 AS col2 FROM tab1 cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2287
SELECT - + ( + - MAX( ALL - 17 ) ) col2 FROM tab2 WHERE NOT + CAST( - ( + + col0 ) AS SIGNED ) IS NULL
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2287
SELECT - + ( + - MAX ( ALL - 17 ) ) col2 FROM tab2 WHERE NOT + CAST ( - ( + + col0 ) AS INTEGER ) IS NULL
----
-17

onlyif mysql # DIV for integer division: 
query II rowsort label-2288
SELECT DISTINCT 9 DIV - col1, col0 AS col2 FROM tab1
----
-1
85
0
51
0
91

skipif mysql # not compatible
query II rowsort label-2288
SELECT DISTINCT 9 / - col1, col0 AS col2 FROM tab1
----
-1
85
0
51
0
91

query I rowsort
SELECT ALL + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT + + col2 DIV - 12 + + ( 16 ) AS col1 FROM tab1 AS cor0
----
11
12
8

skipif mysql # not compatible
query I rowsort label-2290
SELECT + + col2 / - 12 + + ( 16 ) AS col1 FROM tab1 AS cor0
----
11
12
8

query I rowsort
SELECT + - 20 * - col1 AS col2 FROM tab2 AS cor0
----
1020
1340
1540

query I rowsort
SELECT col2 * col2 / + 15 + - 72 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col2 * + ( + col0 ) + - + 62 * col0 / - 61 * - ( + 90 ) + col2 - - col0
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2294
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + CAST( + + 60 AS SIGNED ) > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2294
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + + CAST ( + + 60 AS INTEGER ) > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 96 * + + 63 * + col2 + - col2 FROM tab0 AS cor0
----
-284303
-598851
-60490

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT ( - SUM( - col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2296
SELECT ( - SUM ( - col0 ) ) AS col2 FROM tab0
----
199

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT DISTINCT + COUNT( * ) + + + 34 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2298
SELECT DISTINCT + COUNT ( * ) + + + 34 FROM tab2
----
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * col1 NOT IN ( 76, + col2, + + ( + col2 ), + col2 + + 21, - - 43 )
----

query I rowsort
SELECT + 46 + 29 + col0 * + 98 FROM tab1 cor0
----
5073
8405
8993

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT + 39 AS col1, + MIN( - + col1 ) * - 16 AS col2 FROM tab2
----
39
1232

skipif mysql # not compatible
query II rowsort label-2302
SELECT + 39 AS col1, + MIN ( - + col1 ) * - 16 AS col2 FROM tab2
----
39
1232

query I rowsort
SELECT DISTINCT + col0 - 68 AS col1 FROM tab0
----
-53
19
29

query I rowsort
SELECT - - col0 - - ( col0 ) FROM tab2 cor0
----
128
150
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * + + col1 + - 57 col1 FROM tab0 AS cor0
----
-204
-624
-64

query I rowsort
SELECT ALL col0 - + - col0 - - col0 FROM tab1 cor0 WHERE + 49 + - col1 - + 65 IS NULL
----

query I rowsort
SELECT DISTINCT 16 * 94 * col1 - + 96 + + col0 AS col1 FROM tab2 AS cor0
----
100747
115776
76654

query I rowsort
SELECT ALL col1 * col0 * + 40 FROM tab0
----
3880
48600
73080

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2
----
9

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

query I rowsort
SELECT DISTINCT + 40 + - AVG ( 25 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / - - 21 col2 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * + 7 col0 FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT ALL + SUM( ALL + 31 ) AS col0 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-2315
SELECT ALL + SUM ( ALL + 31 ) AS col0 FROM tab1
----
93

query I rowsort
SELECT DISTINCT - 57 * - - 86 FROM tab1
----
-4902

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT - COUNT( * ) * - - SUM( ALL col2 ) col0 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2320
SELECT - COUNT ( * ) * - - SUM ( ALL col2 ) col0 FROM tab2 AS cor0
----
-363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL col2 + - - col2 * CAST( NULL AS SIGNED ) - - + col1 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL col2 + - - col2 * CAST ( NULL AS INTEGER ) - - + col1 / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1 AS cor0 WHERE col1 * + 20 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1 AS cor0 WHERE col1 * + 20 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT DISTINCT COUNT( ALL col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT COUNT ( ALL col1 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2324
SELECT 44 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-2324
SELECT 44 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
44
3

query I rowsort
SELECT - 37 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 94 * col0 BETWEEN - 24 AND + + 96
----

query I rowsort
SELECT + + 89 + + col1 FROM tab0 AS cor0
----
110
170
90

query II rowsort
SELECT + 23 + col1 - col0, col1 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT DISTINCT ( - 92 ) + - COUNT( * ) FROM tab2 WHERE NULL = NULL
----
-92

skipif mysql # not compatible
query I rowsort label-2329
SELECT DISTINCT ( - 92 ) + - COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
-92

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE - 83 * + col2 + + col0 + col0 IS NULL
----

query II rowsort
SELECT ALL + col2 + col0, - col0 + - 1 AS col1 FROM tab0
----
196
-98
62
-16
97
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT - ( - COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2332
SELECT - ( - COUNT ( * ) ) col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT ( col1 ) - + 47 + + - 77 FROM tab0 AS cor0
----
-103
-123
-43

query I rowsort
SELECT ALL - - 17 + + col2 - - col2 AS col1 FROM tab0 AS cor0
----
111
215
37

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT + 99 DIV - + 54 - + ( + - 63 ) + - col2 col2 FROM tab1 AS cor0
----
-34
-6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2336
SELECT DISTINCT + 99 / - + 54 - + ( + - 63 ) + - col2 col2 FROM tab1 AS cor0
----
-34
-6
3

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT - 11 IS NOT NULL
----

query I rowsort
SELECT 63 * col0 * col1 + + 93 AS col0 FROM tab2
----
147891
310557
316668

query I rowsort
SELECT DISTINCT - 75 + col2 AS col2 FROM tab0
----
-28
-65
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col2 ) + + 7 * + 61
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( + col2 ) + + 7 * + 61
----
0

query I rowsort
SELECT ALL - - 86 * 42 + - + col2 AS col2 FROM tab2 AS cor0
----
3554
3572
3589

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT MIN( ALL + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2342
SELECT MIN ( ALL + col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT - SUM( ALL 25 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2343
SELECT - SUM ( ALL 25 ) AS col1 FROM tab2 cor0
----
-75

query I rowsort
SELECT + + col0 * + - 83 AS col2 FROM tab1 AS cor0
----
-4233
-7055
-7553

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, - ( - col2 ) col1 FROM tab2
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 18 col0, - col0 FROM tab0
----
18
-15
18
-87
18
-97

query II rowsort
SELECT ALL col1 AS col2, 41 + - 15 FROM tab2
----
51
26
67
26
77
26

query II rowsort
SELECT ALL - ( - col2 ), col0 AS col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT ALL 13 * + ( ( - 23 ) ) + + + COUNT( * ) col2 FROM tab1, tab0 AS cor0
----
-290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2349
SELECT ALL 13 * + ( ( - 23 ) ) + + + COUNT ( * ) col2 FROM tab1, tab0 AS cor0
----
-290

query I rowsort
SELECT DISTINCT - col1 * + 80 * col2 AS col0 FROM tab2
----
-246400
-310880
-93840

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT + MAX( - col0 ) FROM tab1 WHERE NOT ( NOT ( NOT ( NOT ( ( NOT - col0 = - col2 * + - 46 ) ) ) ) )
----
-51

skipif mysql # not compatible
query I rowsort label-2351
SELECT + MAX ( - col0 ) FROM tab1 WHERE NOT ( NOT ( NOT ( NOT ( ( NOT - col0 = - col2 * + - 46 ) ) ) ) )
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( 68 ) col0 FROM tab2 cor0
----
3128
4352
5100

query I rowsort
SELECT 45 + col0 + + 28 * - col1 * - col1 AS col1 FROM tab1
----
5584
61988
830

query I rowsort
SELECT DISTINCT 17 * - 1 FROM tab0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2355
SELECT - CAST( - col1 AS SIGNED ), + col0 * - + 86 AS col1 FROM tab2
----
51
-3956
67
-6450
77
-5504

skipif mysql # not compatible
query II rowsort label-2355
SELECT - CAST ( - col1 AS INTEGER ), + col0 * - + 86 AS col1 FROM tab2
----
51
-3956
67
-6450
77
-5504

query II rowsort
SELECT DISTINCT - - ( - col1 ) * + col1, + 25 * 21 + + 33 AS col0 FROM tab0 AS cor0
----
-1
558
-441
558
-6561
558

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT + MAX( + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 > - 91 )
----
91

skipif mysql # not compatible
query I rowsort label-2357
SELECT + MAX ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( + col0 > - 91 )
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2358
SELECT ALL + MIN( DISTINCT + col1 ) * - COUNT( * ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2358
SELECT ALL + MIN ( DISTINCT + col1 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2359
SELECT DISTINCT - + col1 + - 84 DIV + 46 col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT DISTINCT - + col1 + - 84 / + 46 col2 FROM tab0 AS cor0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT + SUM( - col0 ) * + 96 AS col1 FROM tab2 AS cor0
----
-17760

skipif mysql # not compatible
query I rowsort label-2360
SELECT + SUM ( - col0 ) * + 96 AS col1 FROM tab2 AS cor0
----
-17760

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT - COUNT( 22 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT - COUNT ( 22 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col0 * + + col2 + col0 FROM tab2 AS cor0
----
1104
2624
4425

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2365
SELECT ALL - CAST( NULL AS SIGNED ), col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2365
SELECT ALL - CAST ( NULL AS INTEGER ), col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 46 + + col0 FROM tab1
----
39
45
5

query I rowsort
SELECT ALL col1 + - - col0 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE - - 21 / - 65 * col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT col2 + + - col1 DIV - col1 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2369
SELECT col2 + + - col1 / - col1 FROM tab0
----
100
11
48

query I rowsort
SELECT col1 + + 72 FROM tab0 AS cor0
----
153
73
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT - 35 + col2 DIV + col1 FROM tab2 cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-2371
SELECT - 35 + col2 / + col1 FROM tab2 cor0
----
-35
-35
-35

query I rowsort
SELECT ALL - - col2 + + 22 AS col2 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT DISTINCT + col2 + + - CAST( + + ( col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2373
SELECT DISTINCT + col2 + + - CAST ( + + ( col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2374
SELECT - COUNT( ALL - col2 ) + - MAX( ALL - col1 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2374
SELECT - COUNT ( ALL - col2 ) + - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT 29 + + col1 AS col0 FROM tab0 AS cor0
----
110
30
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL + ( + - 12 ) - + ( COUNT( * ) ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL + ( + - 12 ) - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-15

query I rowsort
SELECT ALL + 21 + - + 64 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2379
SELECT + COUNT( * ) DIV - CAST( 56 AS SIGNED ) * + + 63 * + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2379
SELECT + COUNT ( * ) / - CAST ( 56 AS INTEGER ) * + + 63 * + + COUNT ( * ) FROM tab1
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2381
SELECT - - CAST( + + 53 AS SIGNED ) col1 FROM tab0 AS cor0
----
53
53
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2381
SELECT - - CAST ( + + 53 AS INTEGER ) col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT - col1 * - - col0 + 75 AS col1 FROM tab2 AS cor0
----
-2271
-4853
-4950

onlyif mysql # DIV for integer division: 
query I rowsort label-2383
SELECT ALL 37 DIV + 43 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL 37 / + 43 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col1 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 28 / col0 > + col2 + - + col0
----
85
5
59
91
47
68

query II rowsort
SELECT - col2, + col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + - col0 + col1 * - 48 col2 FROM tab2 WHERE NOT - + col2 >= 54
----
-1321
-680
595

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

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

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

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

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

query II rowsort
SELECT 68, col0 AS col1 FROM tab1
----
68
51
68
85
68
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT DISTINCT MAX( ALL - 37 ) AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT MAX ( ALL - 37 ) AS col1 FROM tab2
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-2394
SELECT 73 DIV 10 AS col2 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-2394
SELECT 73 / 10 AS col2 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT + 98 * + col0 AS col2 FROM tab0 AS cor0
----
1470
8526
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT COUNT( ALL - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2396
SELECT COUNT ( ALL - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2397
SELECT ALL 22 * + AVG ( ALL 29 ) + 89 + + COUNT( * ) + + COUNT( DISTINCT - 66 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL 22 * + AVG ( ALL 29 ) + 89 + + COUNT ( * ) + + COUNT ( DISTINCT - 66 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT + 22, ( col1 ) AS col2 FROM tab1
----
22
14
22
47
22
5

query I rowsort
SELECT - 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + 20 col2 FROM tab1 AS cor0
----
-39
-48
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN - - col1 * col1 - - col2 AND - - 64 / + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT 52 DIV - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT 52 / - col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT col2 + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-11
-34
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2405
SELECT ALL col2 AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2405
SELECT ALL col2 AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + ( - 45 ) = - 72 * col1 * + ( + 18 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2407
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col0, + SUM( DISTINCT + ( + + ( + col0 ) ) ) + - + CAST( NULL AS SIGNED ) col0 FROM tab2
----
-9
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2407
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col0, + SUM ( DISTINCT + ( + + ( + col0 ) ) ) + - + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
-9
NULL

query I rowsort
SELECT DISTINCT + col0 + col1 * + col0 * col1 AS col1 FROM tab2
----
119692
336750
379520

query I rowsort
SELECT 1 * - - col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT DISTINCT COUNT( * ) + - 76 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2410
SELECT DISTINCT COUNT ( * ) + - 76 FROM tab0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT DISTINCT MIN( - + col2 ) + - + 22 FROM tab0
----
-121

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT MIN ( - + col2 ) + - + 22 FROM tab0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT ALL - 28 - + 51 AS col1, ( COUNT( * ) ) FROM tab2
----
-79
3

skipif mysql # not compatible
query II rowsort label-2412
SELECT ALL - 28 - + 51 AS col1, ( COUNT ( * ) ) FROM tab2
----
-79
3

query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT ALL + - 24 + + col2 * col2 FROM tab2 cor0
----
1576
3340
505

query I rowsort
SELECT DISTINCT + - col2 - - col2 + col1 + - - 35 * - - 72 * + col0 * + + col0 AS col0 FROM tab1 AS cor0 WHERE NULL <> - col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2 AS col1, + 51 + + col2 AS col2 FROM tab0 AS cor0
----
10
61
47
98
99
150

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2421
SELECT + - 60 AS col2, 57 DIV SUM( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-60
0

skipif mysql # not compatible
query II rowsort label-2421
SELECT + - 60 AS col2, 57 / SUM ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-60
0

query I rowsort
SELECT - + 95 FROM tab0 cor0
----
-95
-95
-95

query I rowsort
SELECT DISTINCT col2 * + 42 * + col1 * + col0 AS col1 FROM tab1 cor0
----
1053150
12215112
2878848

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

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT - col2 + - + 15 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2426
SELECT SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
-199

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col1 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT col0 - - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query I rowsort
SELECT - + 66 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

query II rowsort
SELECT - - 3, col1 FROM tab1 AS cor0
----
3
14
3
47
3
5

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2432
SELECT + 78 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
78
78
78

skipif mysql # not compatible
query I rowsort label-2432
SELECT + 78 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2433
SELECT - - col0 col0, + CAST( - col1 AS SIGNED ) * + col2 AS col2 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2433
SELECT - - col0 col0, + CAST ( - col1 AS INTEGER ) * + col2 AS col2 FROM tab1 AS cor0
----
51
-1344
85
-295
91
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2434
SELECT SUM( DISTINCT - col1 ) DIV - 70 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( DISTINCT - col1 ) / - 70 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL 21 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
21
1
21
21
21
81

query I rowsort
SELECT - col0 - + + col1 * col0 * + 34 FROM tab0 AS cor0
----
-3395
-41325
-62205

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT ALL COUNT( * ) * COUNT( - - col0 ) col0 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2438
SELECT ALL COUNT ( * ) * COUNT ( - - col0 ) col0 FROM tab1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 43 col2 FROM tab0
----
3741
4171
645

query I rowsort
SELECT DISTINCT + 68 + + col2 FROM tab1
----
127
136
164

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

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

query I rowsort
SELECT ALL 24 * 53 * + col0 FROM tab2
----
58512
81408
95400

query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab0 WHERE - + 92 IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT DISTINCT col1 * ( 97 ) + + col0 AS col1 FROM tab1
----
1409
4650
570

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

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

query I rowsort
SELECT ALL ( - - 61 ) * col1 + - col2 AS col1 FROM tab1 AS cor0
----
246
2799
758

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT ALL - MIN( DISTINCT - 90 ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2448
SELECT ALL - MIN ( DISTINCT - 90 ) FROM tab2 AS cor0
----
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT ALL + COUNT( * ) * 24 * 12 * 5 FROM tab2
----
4320

skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + COUNT ( * ) * 24 * 12 * 5 FROM tab2
----
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2451
SELECT ALL COUNT( * ) * - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2451
SELECT ALL COUNT ( * ) * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
9

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

query I rowsort
SELECT ( - col0 ) * + 61 FROM tab0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2454
SELECT DISTINCT * 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-2454
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - - ( col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT - ( + 39 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2455
SELECT - ( + 39 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL - CAST( + 76 AS SIGNED ) * + col0 AS col2 FROM tab2 cor0
----
-3496
-4864
-5700

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL - CAST ( + 76 AS INTEGER ) * + col0 AS col2 FROM tab2 cor0
----
-3496
-4864
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - + MAX( + 98 ) FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - + MAX ( + 98 ) FROM tab1 AS cor0
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * - 8 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * + col0 + - - 2 col1 FROM tab2
----
2578
3586
4202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + col2 / + + col1 col0, - col0 AS col2 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2461
SELECT DISTINCT + 10 DIV 66 * - 18 + + 51 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2461
SELECT DISTINCT + 10 / 66 * - 18 + + 51 AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL 15 + + + col0 FROM tab1
----
100
106
66

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 59 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2465
SELECT + col1 AS col0, col1 DIV + - 97 * - col1 + 0 - + col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-2465
SELECT + col1 AS col0, col1 / + - 97 * - col1 + 0 - + col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL COUNT( ALL - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT DISTINCT + + 71 AS col0, 23 AS col1 FROM tab1 AS cor0
----
71
23

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

skipif mysql # not compatible
query I rowsort label-2468
SELECT ALL COUNT ( * ) + SUM ( + 62 ) - + ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
186

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - + 17 AND + col1
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + col0 + 78 IS NOT NULL
----

query I rowsort
SELECT col0 * - 21 + 31 AS col2 FROM tab1
----
-1040
-1754
-1880

query III rowsort
SELECT ALL * FROM tab0 WHERE - 55 * 24 NOT BETWEEN 97 AND ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - 20 ) AS col0 FROM tab0
----
-20

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col2 NOT IN ( - 65 * + 73 )
----
46
64
75

query I rowsort
SELECT ALL 96 + col2 FROM tab2
----
119
136
154

query III rowsort
SELECT ALL * FROM tab1 WHERE + 24 * - 16 + + col2 NOT IN ( - 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + MAX( DISTINCT 44 ) * + COUNT( ALL + 64 ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-2477
SELECT + MAX ( DISTINCT 44 ) * + COUNT ( ALL + 64 ) FROM tab1
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT - 41 + - COUNT( * ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-2478
SELECT - 41 + - COUNT ( * ) FROM tab1
----
-44

query I rowsort
SELECT ALL - 96 * ( 41 * col1 ) AS col0 FROM tab1
----
-184992
-19680
-55104

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < ( col0 ) - + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 - col1 ) > ( + 25 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2482
SELECT COUNT( * ) * 13 AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2482
SELECT COUNT ( * ) * 13 AS col2 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 10 AS col2 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col0 / col1 FROM tab0 WHERE NOT ( 81 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT ALL - MIN( ALL - 41 ) FROM tab2 WHERE NOT NULL <> - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL - MIN ( ALL - 41 ) FROM tab2 WHERE NOT NULL <> - col2
----
NULL

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

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

query I rowsort
SELECT + ( + col1 ) FROM tab0 WHERE NOT 35 + + col0 IN ( ( + 46 ) )
----
1
21
81

query I rowsort
SELECT ALL - 16 * col2 FROM tab1
----
-1088
-1536
-944

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

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

query I rowsort
SELECT DISTINCT 3 + + col0 AS col2 FROM tab1
----
54
88
94

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 13 ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 + + 24 FROM tab2
----
70
88
99

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 + col2 ) BETWEEN + 10 / - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col0 / col1 > ( - col2 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2495
SELECT SUM( ALL - 54 ) FROM tab1 AS cor0 WHERE NOT 20 * col2 + - col2 BETWEEN - 73 + - 73 * CAST( col2 * 37 AS SIGNED ) AND col0
----
-162

skipif mysql # not compatible
query I rowsort label-2495
SELECT SUM ( ALL - 54 ) FROM tab1 AS cor0 WHERE NOT 20 * col2 + - col2 BETWEEN - 73 + - 73 * CAST ( col2 * 37 AS INTEGER ) AND col0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT ALL COUNT( * ) FROM tab1 WHERE 18 * 25 + + 80 * col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL COUNT ( * ) FROM tab1 WHERE 18 * 25 + + 80 * col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT DISTINCT 3 * + COUNT( DISTINCT + 63 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
3

skipif mysql # not compatible
query I rowsort label-2497
SELECT DISTINCT 3 * + COUNT ( DISTINCT + 63 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
3

query I rowsort
SELECT + col0 * + 93 AS col0 FROM tab1 cor0 WHERE NOT col1 / col1 NOT IN ( col1 * - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT COUNT( * ) * 46 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-2500
SELECT COUNT ( * ) * 46 FROM tab1 AS cor0
----
138

query I rowsort
SELECT ALL + ( + 8 ) * col0 FROM tab2 AS cor0
----
368
512
600

query I rowsort
SELECT ALL - + 32 * - col1 FROM tab0 AS cor0
----
2592
32
672

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

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

query I rowsort
SELECT - 85 FROM tab1 cor0 WHERE NOT + col2 * 0 NOT BETWEEN 63 + + col2 AND ( NULL )
----

query I rowsort
SELECT ALL 4 * - col1 FROM tab0 AS cor0
----
-324
-4
-84

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

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 - ( 2 ) * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 + ( col0 ) * 76 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 25 * - 44 FROM tab2
----
-1100

query I rowsort
SELECT ALL 13 + + col0 FROM tab0
----
100
110
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2511
SELECT - MAX( ALL 48 ) AS col2 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2511
SELECT - MAX ( ALL 48 ) AS col2 FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT DISTINCT + COUNT( * ) + + 25 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + COUNT ( * ) + + 25 FROM tab1
----
28

query III rowsort
SELECT * FROM tab1 WHERE ( 7 ) IN ( - col0 * - 76 )
----

query I rowsort
SELECT ALL + 74 + + - 94 AS col2 FROM tab0
----
-20
-20
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL >= 38
----
0

skipif mysql # not compatible
query I rowsort label-2515
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL >= 38
----
0

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col2 * 33 ) BETWEEN NULL AND col1 + col2
----

query I rowsort
SELECT DISTINCT + 81 + - col1 * col1 FROM tab0 AS cor0
----
-360
-6480
80

query I rowsort
SELECT + - 77 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
-56
-76
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT + 95 * + + 3 + - CAST( 49 + 61 / + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT + 95 * + + 3 + - CAST ( 49 + 61 / + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 47 * - col2 + col1 + 38 FROM tab2 AS cor0
----
1170
1995
2831

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE ( 99 ) NOT IN ( 23 + - col0 )
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT IN ( + 18 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT - col2 + - 98 - + 7 DIV - 63 FROM tab2 cor0
----
-121
-138
-156

skipif mysql # not compatible
query I rowsort label-2524
SELECT - col2 + - 98 - + 7 / - 63 FROM tab2 cor0
----
-121
-138
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 * 99 col0 FROM tab0
----
6039
6039
6039

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

query I rowsort
SELECT DISTINCT - col0 - - ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
123
2
3792

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT col0 FROM tab2 AS cor0 WHERE + col2 BETWEEN ( + col2 / + CAST( - col2 AS SIGNED ) ) AND + 97
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2530
SELECT col0 FROM tab2 AS cor0 WHERE + col2 BETWEEN ( + col2 / + CAST ( - col2 AS INTEGER ) ) AND + 97
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2531
SELECT - col0 - - 65 DIV - ( 53 ) FROM tab2 AS cor0
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-2531
SELECT - col0 - - 65 / - ( 53 ) FROM tab2 AS cor0
----
-47
-65
-76

query I rowsort
SELECT ALL 67 - 44 FROM tab2 AS cor0
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT + col1 - - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-2533
SELECT + col1 - - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 35 * + col0 * col2 NOT BETWEEN ( NULL ) AND col2
----
59
68
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT - + 13 - - MIN( + - col0 ) FROM tab0 AS cor0
----
-110

skipif mysql # not compatible
query I rowsort label-2536
SELECT - + 13 - - MIN ( + - col0 ) FROM tab0 AS cor0
----
-110

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

query I rowsort
SELECT ALL col0 / - 48 FROM tab1 AS cor0 WHERE NOT 36 * + col2 - - col1 NOT BETWEEN col0 + - col2 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2539
SELECT - - 43 / + 30 + col1 * CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2539
SELECT - - 43 / + 30 + col1 * CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / + col0 * col1 IS NOT NULL
----

query I rowsort
SELECT - - 42 FROM tab2 WHERE NOT NULL IS NOT NULL
----
42
42
42

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

query I rowsort
SELECT + col1 * + 73 AS col1 FROM tab1
----
1022
3431
365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2544
SELECT DISTINCT CAST( CAST( + + col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2544
SELECT DISTINCT CAST ( CAST ( + + col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2546
SELECT 37 * + CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2546
SELECT 37 * + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
-111

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT 19 * MAX( ALL - 30 ) FROM tab0 WHERE NOT - col1 <> col2 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT 19 * MAX ( ALL - 30 ) FROM tab0 WHERE NOT - col1 <> col2 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT SUM( DISTINCT - + ( - - 80 ) ) AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT SUM ( DISTINCT - + ( - - 80 ) ) AS col0 FROM tab0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT COUNT( * ) * + - COUNT( * ) * + - 96 FROM tab0
----
864

skipif mysql # not compatible
query I rowsort label-2549
SELECT COUNT ( * ) * + - COUNT ( * ) * + - 96 FROM tab0
----
864

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 <> + col1
----

query I rowsort
SELECT ALL - + 60 * + col0 FROM tab0 AS cor0
----
-5220
-5820
-900

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT ALL + + MAX( ALL + 32 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + + MAX ( ALL + 32 ) FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2553
SELECT * FROM tab2 WHERE NOT ( 20 / + + 84 - CAST( NULL AS SIGNED ) - + 31 * 75 ) BETWEEN + col2 AND + 32
----

skipif mysql # not compatible
query III rowsort label-2553
SELECT * FROM tab2 WHERE NOT ( 20 / + + 84 - CAST ( NULL AS INTEGER ) - + 31 * 75 ) BETWEEN + col2 AND + 32
----

query I rowsort
SELECT DISTINCT ( + 2 ) + + col1 FROM tab2
----
53
69
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT DISTINCT col2 * - - col0 + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
658
860
9504

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT col2 * - - col0 + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
658
860
9504

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 62 - - + col1 * + 81 ) BETWEEN NULL AND ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 * - 73 + col0 + - col2 * - - 9 * + col2 + col1 * - 27 AS col0 FROM tab1 cor0
----
-31014
-39363
-82249

query I rowsort
SELECT - - col2 * + 1 * + col1 AS col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT ALL col0 / + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT DISTINCT - COUNT( * ) * - 97 FROM tab0 cor0
----
291

skipif mysql # not compatible
query I rowsort label-2560
SELECT DISTINCT - COUNT ( * ) * - 97 FROM tab0 cor0
----
291

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2561
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( CAST( + 16 AS DECIMAL ) AS DECIMAL ) * - col2 IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( CAST ( + 16 AS REAL ) AS REAL ) * - col2 IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL - - col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT + + 15 + + col0 FROM tab0 AS cor0
----
102
112
30

query I rowsort
SELECT DISTINCT col0 + - - 12 * - + 78 FROM tab2
----
-861
-872
-890

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

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

query I rowsort
SELECT + ( - col0 ) + - ( col0 ) FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ALL col1 + - - 56 FROM tab1
----
103
61
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT col0 * col1 + CAST( NULL AS SIGNED ) + 21 + - + 27 - - 90 * col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT col0 * col1 + CAST ( NULL AS INTEGER ) + 21 + - + 27 - - 90 * col1 * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 + - ( - + col1 ) FROM tab1
----
123
81
90

query I rowsort
SELECT ALL - col2 + + 13 + + - 36 FROM tab0
----
-122
-33
-70

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2574
SELECT ALL - 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-2574
SELECT ALL - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 81 AS col0, - col1 * - col0 + 7 FROM tab0 AS cor0
----
81
104
81
1222
81
1834

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT ALL + col2 DIV 67 * - + col2 + col2 AS col2 FROM tab0 cor0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-2577
SELECT ALL + col2 / 67 * - + col2 + col2 AS col2 FROM tab0 cor0
----
0
10
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT ALL + COUNT( ALL - - col0 ), + 30 - - COUNT( DISTINCT + 52 ) - - + 96 * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-257

skipif mysql # not compatible
query II rowsort label-2578
SELECT ALL + COUNT ( ALL - - col0 ), + 30 - - COUNT ( DISTINCT + 52 ) - - + 96 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-257

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT - MIN( col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2580
SELECT DISTINCT - MIN ( col0 ) col1 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL SUM( ALL + 83 ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL SUM ( ALL + 83 ) AS col0 FROM tab2
----
249

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= + 19 + col2 / 45
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - SUM( ALL - col0 ) col0 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2584
SELECT DISTINCT - SUM ( ALL - col0 ) col0 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT SUM( + col1 ) * ( - + COUNT( * ) ) + + + 3 AS col2 FROM tab2
----
-582

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT SUM ( + col1 ) * ( - + COUNT ( * ) ) + + + 3 AS col2 FROM tab2
----
-582

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * + + 15 <= NULL
----

query II rowsort
SELECT DISTINCT col1 AS col1, + 39 FROM tab1
----
14
39
47
39
5
39

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

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

query II rowsort
SELECT + + 73 AS col1, + 48 FROM tab1 AS cor0
----
73
48
73
48
73
48

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 88 * - col1 BETWEEN col0 AND col2 * + 65
----

query I rowsort
SELECT DISTINCT col0 + ( - 36 ) AS col1 FROM tab0
----
-21
51
61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 / - 26 * + - 85 IN ( - - col1 * 10 - - + col0, col1 + - col1 + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2595
SELECT - 60 * + - col2 AS col2, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
1380
NULL
2400
NULL
3480
NULL

skipif mysql # not compatible
query II rowsort label-2595
SELECT - 60 * + - col2 AS col2, CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
1380
NULL
2400
NULL
3480
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT ALL + ( + ( COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2596
SELECT ALL + ( + ( COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2599
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT + 24 * col1 + + + 58 * - + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2599
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 24 * col1 + + + 58 * - + col0 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + 34 * + 93 + col0 + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - 77 + + + col0 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 * + col2 + - col1 AS col2, - col1 col1 FROM tab1
----
-1358
-14
-300
-5
-3243
-47

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE ( NULL ) IS NULL AND ( NULL ) IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT 93 * - - col1 - - CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
1932
7452
92

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT 93 * - - col1 - - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
1932
7452
92

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

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

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

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

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

query I rowsort
SELECT ( - ( + col1 ) ) AS col1 FROM tab2
----
-51
-67
-77

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2611
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 * - col1, 97 + 96, + + col0, CAST( - + col0 AS SIGNED ) * - 62 )
----

skipif mysql # not compatible
query III rowsort label-2611
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 * - col1, 97 + 96, + + col0, CAST ( - + col0 AS INTEGER ) * - 62 )
----

query II rowsort
SELECT + col0 AS col2, + ( + col2 ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, 71 FROM tab0 AS cor0
----
-10
71
-47
71
-99
71

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2615
SELECT DISTINCT - + CAST( + 68 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT - + CAST ( + 68 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT DISTINCT + + MIN( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2616
SELECT DISTINCT + + MIN ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
-81

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + col1 - 89 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 65 > 42 * - + col2 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT 37 * + - MAX( DISTINCT - 54 ) * + COUNT( * ) * + - 30 + + 80 FROM tab1
----
-179740

skipif mysql # not compatible
query I rowsort label-2621
SELECT 37 * + - MAX ( DISTINCT - 54 ) * + COUNT ( * ) * + - 30 + + 80 FROM tab1
----
-179740

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT DISTINCT col1 DIV 99 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT col1 / 99 FROM tab0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - - 29 col1 FROM tab0 AS cor0
----
1682
1682
1682

query I rowsort
SELECT DISTINCT + 40 * + col1 FROM tab1 AS cor0
----
1880
200
560

query I rowsort
SELECT DISTINCT - col0 + + 62 FROM tab2
----
-13
-2
16

query I rowsort
SELECT DISTINCT + col1 + + 34 FROM tab0 AS cor0
----
115
35
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2628
SELECT DISTINCT - 42 / col1 * + 41 AS col0 FROM tab2 cor0 WHERE NOT NULL >= 1 / CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT - 42 / col1 * + 41 AS col0 FROM tab2 cor0 WHERE NOT NULL >= 1 / CAST ( - - CAST ( NULL AS REAL ) AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 76 = NULL
----

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

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL < + col0 * + - 39
----

query I rowsort
SELECT ALL + ( col2 ) + + 80 + + 3 + + + 54 * - 34 * - col1 AS col1 FROM tab2 AS cor0
----
123153
141495
93742

query I rowsort
SELECT + 62 + - ( + - 49 ) AS col1 FROM tab0
----
111
111
111

query I rowsort
SELECT ALL ( - 1 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL 30 + - col0 AS col0 FROM tab0
----
-57
-67
15

query I rowsort
SELECT - ( - 46 ) FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2637
SELECT DISTINCT - COUNT( * ) - - 11 + 54 AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2637
SELECT DISTINCT - COUNT ( * ) - - 11 + 54 AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT ALL 50 - col2 FROM tab2 AS cor0
----
-8
10
27

onlyif mysql # DIV for integer division: 
query I rowsort label-2639
SELECT ALL + + 31 DIV col2 - + col2 - + - ( - 9 ) AS col0 FROM tab1 AS cor0
----
-105
-68
-77

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + + 31 / col2 - + col2 - + - ( - 9 ) AS col0 FROM tab1 AS cor0
----
-105
-68
-77

query I rowsort
SELECT - 31 - - ( col0 ) FROM tab2 AS cor0
----
15
33
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2641
SELECT 15 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
18 values hashing to ad2e2c8a788f4909db31c90f96199bc2

skipif mysql # not compatible
query II rowsort label-2641
SELECT 15 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
18 values hashing to ad2e2c8a788f4909db31c90f96199bc2

query I rowsort
SELECT ALL + + col0 * - + 12 FROM tab0 cor0
----
-1044
-1164
-180

query I rowsort
SELECT ALL + 78 FROM tab2 AS cor0 WHERE - col0 + + + col1 = col2
----

query I rowsort
SELECT DISTINCT 68 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT DISTINCT + SUM( DISTINCT + 81 ) * - + COUNT( * ) FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2647
SELECT DISTINCT + SUM ( DISTINCT + 81 ) * - + COUNT ( * ) FROM tab0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 80 col2 FROM tab0
----
10
80
47
80
99
80

query I rowsort
SELECT col1 * - ( - col1 ) AS col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT + col0 + 42 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2651
SELECT + COUNT( - col2 ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-2651
SELECT + COUNT ( - col2 ) * COUNT ( * ) AS col1 FROM tab1
----
9

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

query II rowsort
SELECT DISTINCT col2 AS col2, + col0 AS col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 AS cor0 WHERE NOT col1 = - - col0 * - - col2
----
-23
-40
-58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2656
SELECT - AVG ( ALL CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query II rowsort
SELECT ALL col0 AS col2, 94 FROM tab2 AS cor0
----
46
94
64
94
75
94

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

query I rowsort
SELECT + 82 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # DIV for integer division: 
query II rowsort label-2660
SELECT + 23 AS col0, - col0 DIV + 80 FROM tab2 WHERE col2 * - col0 IS NOT NULL
----
23
0
23
0
23
0

skipif mysql # not compatible
query II rowsort label-2660
SELECT + 23 AS col0, - col0 / + 80 FROM tab2 WHERE col2 * - col0 IS NOT NULL
----
23
0
23
0
23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT + COUNT( ALL - col0 ) + - COUNT( 81 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2661
SELECT + COUNT ( ALL - col0 ) + - COUNT ( 81 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col0 IS NULL OR NOT ( - col2 BETWEEN - 30 AND + - 21 )
----
-15
-87
-97

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

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

query II rowsort
SELECT ALL - - ( - + col2 ) AS col1, col1 AS col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT ALL + 89 FROM tab1 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2667
SELECT + col0 - + + 92 DIV - col2 FROM tab0 AS cor0
----
16
96
97

skipif mysql # not compatible
query I rowsort label-2667
SELECT + col0 - + + 92 / - col2 FROM tab0 AS cor0
----
16
96
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL col1 * - + col0 + col2 * + + CAST( + - col1 AS SIGNED ) AS col1 FROM tab2
----
-3519
-8008
-8911

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL col1 * - + col0 + col2 * + + CAST ( + - col1 AS INTEGER ) AS col1 FROM tab2
----
-3519
-8008
-8911

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT DISTINCT - ( - col1 ) DIV + - col0 * + + col1 + col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2669
SELECT DISTINCT - ( - col1 ) / + - col0 * + + col1 + col0 AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL + 36 + - 92 AS col1 FROM tab0
----
-56
-56
-56

query I rowsort
SELECT DISTINCT col1 + - 2 AS col1 FROM tab0
----
-1
19
79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 34 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2673
SELECT SUM ( + + ( - ( - + col1 ) ) ) col1 FROM tab0 cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT DISTINCT - COUNT( ALL + - col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT - COUNT ( ALL + - col0 ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT - 12 * col0 AS col2, + col0 FROM tab2 AS cor0
----
-552
46
-768
64
-900
75

query I rowsort
SELECT DISTINCT + col1 * 74 AS col2 FROM tab1 AS cor0
----
1036
3478
370

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT ALL col0 DIV + col0 + - - col2 * + + 30 FROM tab0 AS cor0
----
1411
2971
301

skipif mysql # not compatible
query I rowsort label-2680
SELECT ALL col0 / + col0 + - - col2 * + + 30 FROM tab0 AS cor0
----
1411
2971
301

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
12

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

query II rowsort
SELECT DISTINCT - col1 * col0 AS col2, - col1 * col2 FROM tab0 cor0
----
-1215
-3807
-1827
-210
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( 38, - 23 * + CAST( NULL AS SIGNED ) * col0, - CAST( 9 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2684
SELECT * FROM tab1 WHERE NOT col1 NOT IN ( 38, - 23 * + CAST ( NULL AS INTEGER ) * col0, - CAST ( 9 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT DISTINCT 85 + - COUNT( * ) AS col0 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT 85 + - COUNT ( * ) AS col0 FROM tab1
----
82

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * - col1 + + + 40 AS col1 FROM tab0 WHERE NOT + + col2 IS NULL
----
1255
137
1867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 28 ) + - + col2 col2 FROM tab0
----
-127
-38
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT ALL col0 DIV - 84 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL col0 / - 84 AS col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2690
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 * - col1 + - + col2 + - ( - - 11 ) AND ( - col2 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2690
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 * - col1 + - + col2 + - ( - - 11 ) AND ( - col2 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + col1 * + - col0 + + col1 + + col1 AS col2 FROM tab0 AS cor0
----
-1053
-1785
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 6 )
----

query I rowsort
SELECT DISTINCT - col0 * ( col1 ) + - + col1 FROM tab0 cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2694
SELECT DISTINCT - 26 - + COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-44

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT - 26 - + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-44

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN ( NULL ) AND + 5
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2696
SELECT ALL + col2 + - + 12 + - + col2 + 55 - col0 DIV - col2 + col2 AS col0 FROM tab2 AS cor0
----
102
68
84

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL + col2 + - + 12 + - + col2 + 55 - col0 / - col2 + col2 AS col0 FROM tab2 AS cor0
----
102
68
84

query I rowsort
SELECT - 83 + 32 * + col2 * + 36 AS col2 FROM tab1 AS cor0
----
110509
67885
78253

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT + ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-2698
SELECT + ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( col0 )
----
3

query I rowsort
SELECT + col2 + - + col2 FROM tab2 AS cor0 WHERE col2 * + 68 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 71 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 16 + 44 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2703
SELECT SUM( - col2 ) * - 62 FROM tab0
----
9672

skipif mysql # not compatible
query I rowsort label-2703
SELECT SUM ( - col2 ) * - 62 FROM tab0
----
9672

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT - COUNT( DISTINCT - - col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2704
SELECT - COUNT ( DISTINCT - - col0 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT 58 * COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-2705
SELECT 58 * COUNT ( * ) AS col0 FROM tab1
----
174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL COUNT( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2707
SELECT ALL COUNT ( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2708
SELECT CAST( + col0 AS SIGNED ) AS col2, - col0 - - col2 DIV - col1 col0 FROM tab0 cor0
----
15
-15
87
-87
97
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2708
SELECT CAST ( + col0 AS INTEGER ) AS col2, - col0 - - col2 / - col1 col0 FROM tab0 cor0
----
15
-15
87
-87
97
-196

onlyif mysql # aggregate syntax: 
query II rowsort label-2709
SELECT DISTINCT 84 col0, + COUNT( * ) AS col1 FROM tab2
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2709
SELECT DISTINCT 84 col0, + COUNT ( * ) AS col1 FROM tab2
----
84
3

query I rowsort
SELECT ALL + col0 * - - col1 + - col1 FROM tab0 AS cor0
----
1134
1806
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT DISTINCT col0 + ( + CAST( + 6 AS SIGNED ) ) FROM tab2 WHERE NULL IS NULL
----
52
70
81

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT col0 + ( + CAST ( + 6 AS INTEGER ) ) FROM tab2 WHERE NULL IS NULL
----
52
70
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2712
SELECT DISTINCT + 93 * + COUNT( * ) AS col0 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + 93 * + COUNT ( * ) AS col0 FROM tab1
----
279

query II rowsort
SELECT ALL - col1 * + 12 AS col2, + col1 * col1 AS col1 FROM tab0
----
-12
1
-252
441
-972
6561

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT DISTINCT - col0 DIV col2 + + col1 + - 96 AS col0 FROM tab0
----
-15
-83
-95

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT - col0 / col2 + + col1 + - 96 AS col0 FROM tab0
----
-15
-83
-95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 15 AND - 85
----

query I rowsort
SELECT DISTINCT col1 * col2 * - 70 FROM tab2 AS cor0
----
-215600
-272020
-82110

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 * + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2718
SELECT DISTINCT col2 DIV + col0 col0, 47 AS col1 FROM tab0 AS cor0
----
0
47
1
47
3
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2718
SELECT DISTINCT col2 / + col0 col0, 47 AS col1 FROM tab0 AS cor0
----
0
47
1
47
3
47

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT + + 34 * + + col0 IS NULL
----
-59
-68
-96

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

query I rowsort
SELECT + + ( 26 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - 84 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT col0 + + 9 AS col1 FROM tab0 AS cor0
----
106
24
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2724
SELECT DISTINCT - 17 + + COUNT( * ) - + + 77 DIV - 75 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - 17 + + COUNT ( * ) - + + 77 / - 75 FROM tab0 AS cor0
----
-13

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2727
SELECT DISTINCT + 73 - MIN( DISTINCT col1 ) * COUNT( * ) + - 45 AS col2 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-2727
SELECT DISTINCT + 73 - MIN ( DISTINCT col1 ) * COUNT ( * ) + - 45 AS col2 FROM tab1 AS cor0
----
13

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT + - 44 DIV - 50 - + col2 * - col2 AS col1 FROM tab0 cor0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2729
SELECT + - 44 / - 50 - + col2 * - col2 AS col1 FROM tab0 cor0
----
100
2209
9801

query I rowsort
SELECT - - 6 AS col1 FROM tab0 AS cor0 WHERE ( NOT + col1 < NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2731
SELECT col0 DIV col2 * 25 + - - col1 + - col1 col2 FROM tab0
----
0
0
200

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2731
SELECT col0 / col2 * 25 + - - col1 + - col1 col2 FROM tab0
----
0
0
200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2732
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2732
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 75 <= + ( 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2734
SELECT ALL * FROM tab2 WHERE NOT - col1 * 48 - col2 NOT BETWEEN NULL AND - CAST( - ( + col1 ) AS SIGNED ) / - 29 * - 8
----

skipif mysql # not compatible
query III rowsort label-2734
SELECT ALL * FROM tab2 WHERE NOT - col1 * 48 - col2 NOT BETWEEN NULL AND - CAST ( - ( + col1 ) AS INTEGER ) / - 29 * - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2735
SELECT 27 DIV 15 AS col1 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2735
SELECT 27 / 15 AS col1 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2736
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) / - 88 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2736
SELECT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) / - 88 AND NULL
----

query I rowsort
SELECT ( - ( - col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT 65 * + - MAX( + col1 ) AS col2 FROM tab2 cor0
----
-5005

skipif mysql # not compatible
query I rowsort label-2738
SELECT 65 * + - MAX ( + col1 ) AS col2 FROM tab2 cor0
----
-5005

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 44 col2, - 15 + 83 AS col1 FROM tab1 cor0
----
44
68
44
68
44
68

query I rowsort
SELECT ALL col1 * - - 39 FROM tab0 cor0 WHERE NOT NULL = 73
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2741
SELECT DISTINCT + ( + + 59 ), - 63 DIV 17 AS col0 FROM tab2 cor0
----
59
-3

skipif mysql # not compatible
query II rowsort label-2741
SELECT DISTINCT + ( + + 59 ), - 63 / 17 AS col0 FROM tab2 cor0
----
59
-3

query II rowsort
SELECT + + 36 AS col2, 87 AS col1 FROM tab0 AS cor0
----
36
87
36
87
36
87

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

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

query II rowsort
SELECT 31 AS col2, + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to e5f09dcb4f477a82ce1fc995642e5dba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2745
SELECT - COUNT( * ) DIV - CAST( - 31 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT - COUNT ( * ) / - CAST ( - 31 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT + AVG ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL + CAST( - + 14 AS SIGNED ) * + col0 * + col0 FROM tab2 AS cor0
----
-29624
-57344
-78750

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL + CAST ( - + 14 AS INTEGER ) * + col0 * + col0 FROM tab2 AS cor0
----
-29624
-57344
-78750

query I rowsort
SELECT ALL 83 AS col1 FROM tab1 cor0
----
83
83
83

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

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

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

query II rowsort
SELECT - col1 * + 50 + + 69 - + 62 - - + col0 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
-2497
-46
-3268
-75
-3779
-64

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 WHERE + 57 IS NOT NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT - 76 + col1 DIV - col2 + - - col1 FROM tab2
----
-10
-27
0

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 76 + col1 / - col2 + - - col1 FROM tab2
----
-10
-27
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab1
----
-223

query I rowsort
SELECT col0 + - 64 AS col2 FROM tab0
----
-49
23
33

query I rowsort
SELECT ALL - 32 + + col0 AS col2 FROM tab0
----
-17
55
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT ALL + ( - - col2 ) + + + CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT col0 + col1 + col2 * - - col0 AS col2 FROM tab1
----
4961
5105
6326

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2760
SELECT SUM( - col2 ) + - CAST( + 54 AS SIGNED ) AS col1 FROM tab1
----
-277

skipif mysql # not compatible
query I rowsort label-2760
SELECT SUM ( - col2 ) + - CAST ( + 54 AS INTEGER ) AS col1 FROM tab1
----
-277

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

query II rowsort
SELECT col2, - 67 AS col2 FROM tab2
----
23
-67
40
-67
58
-67

query I rowsort
SELECT DISTINCT ( + - col2 ) FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2764
SELECT 23 - CAST( - col0 AS SIGNED ) * - + col2 * - + CAST( + col2 AS SIGNED ) + + - 42 AS col0 FROM tab1
----
295866
420765
469997

skipif mysql # not compatible
query I rowsort label-2764
SELECT 23 - CAST ( - col0 AS INTEGER ) * - + col2 * - + CAST ( + col2 AS INTEGER ) + + - 42 AS col0 FROM tab1
----
295866
420765
469997

onlyif mysql # DIV for integer division: 
query I rowsort label-2765
SELECT 72 + + - col1 DIV col1 AS col2 FROM tab2
----
71
71
71

skipif mysql # not compatible
query I rowsort label-2765
SELECT 72 + + - col1 / col1 AS col2 FROM tab2
----
71
71
71

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 NOT BETWEEN + - col0 AND ( + col1 ) * - col0 * + - col0 + ( - + 94 ) + - + 26
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2767
SELECT DISTINCT + 66 AS col2, COUNT( * ) AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
66
3

skipif mysql # not compatible
query II rowsort label-2767
SELECT DISTINCT + 66 AS col2, COUNT ( * ) AS col0 FROM tab1 WHERE - col0 IS NOT NULL
----
66
3

query I rowsort
SELECT DISTINCT - 41 + + col0 + + col0 * + + col1 AS col1 FROM tab2
----
2351
4951
5059

query I rowsort
SELECT + - 66 * + 73 FROM tab1 AS cor0
----
-4818
-4818
-4818

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2770
SELECT + COUNT ( ALL - col1 ) col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col2 * - - col2 + + 62 FROM tab2 AS cor0
----
1662
3426
591

query I rowsort
SELECT + + col0 * + col0 / + + col0 + - col0 * + col0 AS col2 FROM tab0 cor0 WHERE NOT + col1 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + 37 col2 FROM tab1 AS cor0
----
-1739
-185
-518

query I rowsort
SELECT - col0 * 46 AS col2 FROM tab2 cor0
----
-2116
-2944
-3450

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT ALL + COUNT( * ) * + + 81 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2775
SELECT ALL + COUNT ( * ) * + + 81 FROM tab0
----
243

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab1 WHERE NOT NULL >= col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2779
SELECT DISTINCT COUNT( * ) DIV + ( + 22 ) col2, COUNT( * ) AS col1 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2779
SELECT DISTINCT COUNT ( * ) / + ( + 22 ) col2, COUNT ( * ) AS col1 FROM tab0
----
0
3

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2785
SELECT ALL - ( - CAST( CAST( COUNT( DISTINCT + + col1 ) AS DECIMAL ) AS SIGNED ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL - ( - CAST ( CAST ( COUNT ( DISTINCT + + col1 ) AS REAL ) AS INTEGER ) ) FROM tab2 AS cor0
----
3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-2787
SELECT 88 AS col1, col0 + + - col1 DIV + 21 FROM tab2 AS cor0
----
88
44
88
61
88
72

skipif mysql # not compatible
query II rowsort label-2787
SELECT 88 AS col1, col0 + + - col1 / + 21 FROM tab2 AS cor0
----
88
44
88
61
88
72

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2791
SELECT ALL - MIN( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL - MIN ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2792
SELECT DISTINCT * FROM tab2 WHERE - col0 + - 40 <> - 85 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / - col0 / 21 + 96 + + col0
----

skipif mysql # not compatible
query III rowsort label-2792
SELECT DISTINCT * FROM tab2 WHERE - col0 + - 40 <> - 85 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / - col0 / 21 + 96 + + col0
----

query I rowsort
SELECT DISTINCT + - 71 AS col1 FROM tab2 WHERE + 4 <> - 76
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT 49 * - + SUM( ALL + + col2 ) FROM tab2
----
-5929

skipif mysql # not compatible
query I rowsort label-2794
SELECT 49 * - + SUM ( ALL + + col2 ) FROM tab2
----
-5929

query II rowsort
SELECT ALL + 98 + 27 AS col0, col0 * col0 * col1 * - ( + col2 ) FROM tab0
----
125
-1589490
125
-856575
125
-931491

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + col1 BETWEEN - col0 AND col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT DISTINCT + COUNT( * ) + 72 AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2798
SELECT DISTINCT + COUNT ( * ) + 72 AS col1 FROM tab2
----
75

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

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

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 0 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2802
SELECT ALL + CAST ( NULL AS INTEGER ), col1 col2 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2803
SELECT ( COUNT( * ) ) * + 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-2803
SELECT ( COUNT ( * ) ) * + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT ALL 79 DIV ( col1 ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2804
SELECT ALL 79 / ( col1 ) FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT CAST( + 48 AS SIGNED ) * + - 96 NOT BETWEEN + col2 AND col0
----

skipif mysql # not compatible
query I rowsort label-2805
SELECT - + col2 FROM tab2 AS cor0 WHERE NOT CAST ( + 48 AS INTEGER ) * + - 96 NOT BETWEEN + col2 AND col0
----

query I rowsort
SELECT ALL - - ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2807
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2807
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) FROM tab1
----
-9

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

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

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

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

query I rowsort
SELECT 99 FROM tab2 WHERE NOT - + 39 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - MAX( DISTINCT 2 ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - MAX ( DISTINCT 2 ) FROM tab1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2814
SELECT CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + 74 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2814
SELECT CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + 74 + + col2 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT - 25 DIV - 18 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 25 / - 18 FROM tab1
----
1
1
1

query II rowsort
SELECT DISTINCT - - 86 * + - col2 AS col0, - 75 AS col1 FROM tab1 AS cor0
----
-5074
-75
-5848
-75
-8256
-75

query I rowsort
SELECT ALL - ( - + col1 ) FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT col2 * + col1 * - col2 AS col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT ALL + col1 DIV - 77 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2820
SELECT ALL + col1 / - 77 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2821
SELECT SUM( - - ( - 0 ) ) AS col1, + MAX( + col2 ) AS col2 FROM tab0
----
0
99

skipif mysql # not compatible
query II rowsort label-2821
SELECT SUM ( - - ( - 0 ) ) AS col1, + MAX ( + col2 ) AS col2 FROM tab0
----
0
99

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
79

query I rowsort
SELECT ALL + ( + + 47 ) AS col2 FROM tab2 cor0 WHERE ( 24 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col2 * - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-129024
-17405
-217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT + MAX( DISTINCT - - 63 ) AS col0 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + MAX ( DISTINCT - - 63 ) AS col0 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL - col1 + - - col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query II rowsort label-2827
SELECT DISTINCT + - col1 DIV col0 + 34 col0, col1 - + 55 AS col2 FROM tab1 cor0
----
34
-41
34
-50
34
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2827
SELECT DISTINCT + - col1 / col0 + 34 col0, col1 - + 55 AS col2 FROM tab1 cor0
----
34
-41
34
-50
34
-8

query I rowsort
SELECT ALL + 39 * - col2 * 99 + + col2 FROM tab0
----
-181420
-382140
-38600

query I rowsort
SELECT DISTINCT col2 + + 58 + 26 FROM tab0
----
131
183
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2830
SELECT ALL SUM( - CAST( - - 98 AS SIGNED ) ) FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL SUM ( - CAST ( - - 98 AS INTEGER ) ) FROM tab0
----
-294

query I rowsort
SELECT ALL col0 + - col0 * + + col1 * - col0 AS col0 FROM tab2
----
107962
315456
376950

query I rowsort
SELECT DISTINCT + 37 + - - 41 + - col2 + ( - + col1 ) AS col1 FROM tab2
----
-39
-47
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT DISTINCT COUNT( * ) - - ( - + 41 ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT COUNT ( * ) - - ( - + 41 ) FROM tab0
----
-38

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2835
SELECT ALL col1 - - + 87 + + + col1 DIV 38 AS col1 FROM tab2
----
139
155
166

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL col1 - - + 87 + + + col1 / 38 AS col1 FROM tab2
----
139
155
166

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2836
SELECT DISTINCT col1 AS col1, 5 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2836
SELECT DISTINCT col1 AS col1, 5 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2837
SELECT DISTINCT - 61 + - 66 + + - MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - 61 + - 66 + + - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT 2 * - col0 - col0 * + - col2 FROM tab0 AS cor0
----
675
696
9409

query II rowsort
SELECT DISTINCT + col0 - + - col0 + + col1 * + col1 AS col2, - 61 - + + col1 + col0 - + col0 AS col1 FROM tab2 AS cor0
----
2693
-112
4639
-128
6057
-138

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + 51 + 62 - + - 6 FROM tab2
----
119
119
119

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT CAST( + COUNT( * ) AS SIGNED ) * - + 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-2843
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * - + 58 FROM tab0
----
-174

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL + + MAX( ALL + col2 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL + + MAX ( ALL + col2 ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

query I rowsort
SELECT - ( - - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - col0 col0 FROM tab0
----
-1485
-8613
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT - MIN( + 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-2851
SELECT - MIN ( + 22 ) AS col2 FROM tab2
----
-22

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT DISTINCT + ( - 25 ) AS col0 FROM tab2 WHERE NOT col0 + + 67 * col0 IN ( - 85 + + ( + + col2 ), CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT + ( - 25 ) AS col0 FROM tab2 WHERE NOT col0 + + 67 * col0 IN ( - 85 + + ( + + col2 ), CAST ( NULL AS INTEGER ) + - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - col1 * + 68 col0 FROM tab1 AS cor0 WHERE NOT col0 > col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + MAX( - 11 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + MAX ( - 11 ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + - col0 + ( - 32 ) + + 27 AS col1 FROM tab0 AS cor0
----
-102
-20
-92

query I rowsort
SELECT DISTINCT 21 + + 19 FROM tab2
----
40

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - + 94
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2860
SELECT DISTINCT + 57 DIV - 50 + - + COUNT( * ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-2860
SELECT DISTINCT + 57 / - 50 + - + COUNT ( * ) FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2861
SELECT ALL + + col0 + - + CAST( NULL AS SIGNED ) * - ( + col1 ) + 74 + 97 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2862
SELECT - ( - MAX( - 66 ) ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2862
SELECT - ( - MAX ( - 66 ) ) FROM tab2 AS cor0
----
-66

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT ALL + 13 AS col1, + SUM( col0 ) AS col2 FROM tab2
----
13
185

skipif mysql # not compatible
query II rowsort label-2865
SELECT ALL + 13 AS col1, + SUM ( col0 ) AS col2 FROM tab2
----
13
185

query III rowsort
SELECT * FROM tab0 WHERE NULL = + - col1
----

query I rowsort
SELECT ALL + 9 + - col1 FROM tab1
----
-38
-5
4

query I rowsort
SELECT ALL - + 82 FROM tab0 WHERE 15 IS NOT NULL
----
-82
-82
-82

query I rowsort
SELECT ALL + col0 * + col2 + + - ( col2 ) AS col0 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT + col1 + - ( - 91 ) AS col0 FROM tab1 AS cor0
----
105
138
96

query I rowsort
SELECT - - col1 + - - 25 + + col0 FROM tab2 AS cor0
----
122
166
167

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

query II rowsort
SELECT ALL 54 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
54
-59
54
-68
54
-96

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

query I rowsort
SELECT - 15 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 43 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT - 82 AS col0, - SUM( - col1 ) FROM tab0
----
-82
103

skipif mysql # not compatible
query II rowsort label-2877
SELECT - 82 AS col0, - SUM ( - col1 ) FROM tab0
----
-82
103

query IIIIII rowsort
SELECT * FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 ) WHERE 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2879
SELECT SUM( ALL + - 85 ) * ( + 44 ) * + 75 FROM tab0
----
-841500

skipif mysql # not compatible
query I rowsort label-2879
SELECT SUM ( ALL + - 85 ) * ( + 44 ) * + 75 FROM tab0
----
-841500

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

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

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

query I rowsort
SELECT DISTINCT 52 * + - ( + 47 ) FROM tab1 AS cor0
----
-2444

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

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

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

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

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

query II rowsort
SELECT - col1, 87 AS col1 FROM tab1 AS cor0
----
-14
87
-47
87
-5
87

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2888
SELECT + - CAST( NULL AS SIGNED ) col0, col1 * + col1 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2888
SELECT + - CAST ( NULL AS INTEGER ) col0, col1 * + col1 FROM tab2 AS cor0
----
NULL
2601
NULL
4489
NULL
5929

query I rowsort
SELECT ALL - 27 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + ( + 54 ) AS col1 FROM tab2 AS cor0
----
1242
2160
3132

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2892
SELECT DISTINCT col0 + - - ( - 90 ) DIV + 82 col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT DISTINCT col0 + - - ( - 90 ) / + 82 col0 FROM tab0
----
14
86
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2893
SELECT SUM( CAST( - col0 AS SIGNED ) ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2893
SELECT SUM ( CAST ( - col0 AS INTEGER ) ) FROM tab0
----
-199

query III rowsort
SELECT * FROM tab1 WHERE - + col0 <= + ( - + col0 ) * col0 + + col2 + - + col0 + + 22 * + col0 * + - 17
----

query II rowsort
SELECT ALL + - col0, ( - + 4 ) - - + col1 + 54 AS col2 FROM tab0 AS cor0
----
-15
131
-87
71
-97
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT - ( COUNT( * ) ) + + 86 * 22 FROM tab0 AS cor0
----
1889

skipif mysql # not compatible
query I rowsort label-2896
SELECT - ( COUNT ( * ) ) + + 86 * 22 FROM tab0 AS cor0
----
1889

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - ( - - MAX( ALL - 9 ) ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - ( - - MAX ( ALL - 9 ) ) AS col2 FROM tab2 AS cor0
----
9

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

query I rowsort
SELECT DISTINCT 19 + - 63 FROM tab1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2900
SELECT ALL MAX( ALL - col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2900
SELECT ALL MAX ( ALL - col1 ) col1 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - col0 + - col2 + - col1 FROM tab1 WHERE NOT + + 79 * - col2 IS NULL
----
-149
-161
-206

query I rowsort
SELECT ALL - col1 + + - col1 AS col0 FROM tab0
----
-162
-2
-42

query III rowsort
SELECT * FROM tab1 WHERE col0 IN ( - col1, + 23, + col0 * - - ( + 90 ) + + + 43, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL + MAX( - + 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL + MAX ( - + 3 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2905
SELECT CAST( col1 AS SIGNED ) FROM tab1 WHERE NOT - col2 IN ( ( - col1 ) )
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2905
SELECT CAST ( col1 AS INTEGER ) FROM tab1 WHERE NOT - col2 IN ( ( - col1 ) )
----
14
47
5

query I rowsort
SELECT ALL ( + + col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT ALL 17 DIV - 67 + + col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2907
SELECT ALL 17 / - 67 + + col1 FROM tab0 cor0
----
1
21
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT DISTINCT - + COUNT( DISTINCT 41 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2909
SELECT DISTINCT - + COUNT ( DISTINCT 41 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - + col2 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - col1 - - + 55 IS NULL
----
-59
-68
-96

query I rowsort
SELECT ( - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT - - col2 * 76 FROM tab2 AS cor0
----
1748
3040
4408

query II rowsort
SELECT - col0 AS col1, - 36 AS col2 FROM tab0
----
-15
-36
-87
-36
-97
-36

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT - col1 * + col0 / + + CAST( NULL AS SIGNED ) + col1 * 73 - + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2915
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT - col1 * + col0 / + + CAST ( NULL AS INTEGER ) + col1 * 73 - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL SUM( + 17 ) * - 28 + MIN( + + 61 ) AS col1 FROM tab2
----
-1367

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL SUM ( + 17 ) * - 28 + MIN ( + + 61 ) AS col1 FROM tab2
----
-1367

query I rowsort
SELECT DISTINCT + 22 * + - 2 + - col0 AS col0 FROM tab2
----
-108
-119
-90

query I rowsort
SELECT DISTINCT - col0 * + - 16 * + col1 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
1551
19359
29211

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - 24 * - COUNT( * ) + - + MIN( 83 ) - - COUNT( * ) - ( + + MAX( ALL col1 ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2920
SELECT - 24 * - COUNT ( * ) + - + MIN ( 83 ) - - COUNT ( * ) - ( + + MAX ( ALL col1 ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + - MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2921
SELECT + - MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + 98 + + COUNT( * ) FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + 98 + + COUNT ( * ) FROM tab2 AS cor0
----
101

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL + 69 - + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 69 - + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT 99 + + + 0 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ( col0 ) * + + col0 + + col2 FROM tab0 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT col2 - + col1 + + col2 + + - col2 - - 96 * - - 31 + + col2 * + col2 * - 53 AS col0 FROM tab1 AS cor0
----
-181463
-242075
-485390

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( - col2 ) / + 86 + 47 * + + 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 75 * col0 * col0 + + col2 - - + ( - col0 ) * - col1 col1 FROM tab2
----
161069
312168
426958

query I rowsort
SELECT DISTINCT col0 * - - 7 FROM tab2
----
322
448
525

query I rowsort
SELECT 5 * col1 + 29 AS col1 FROM tab2 cor0
----
284
364
414

query II rowsort
SELECT + - 57 AS col0, + 65 * col0 FROM tab2 AS cor0
----
-57
2990
-57
4160
-57
4875

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT CAST( 39 AS SIGNED ) AS col0 FROM tab0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-2933
SELECT CAST ( 39 AS INTEGER ) AS col0 FROM tab0
----
39
39
39

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

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

query I rowsort
SELECT 13 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT ALL - 97 * + col1 + ( col0 ) * col1 col2 FROM tab0 WHERE - 1 >= + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2936
SELECT ALL - 97 * + col1 + ( col0 ) * col1 col2 FROM tab0 WHERE - 1 >= + CAST ( col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT + 53 * COUNT( * ) + + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-2937
SELECT + 53 * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
162

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col2 NOT IN ( col1 * - col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 + + 7 * + col1 FROM tab1
----
120
149
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + MIN( DISTINCT - 48 ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2940
SELECT + MIN ( DISTINCT - 48 ) FROM tab0
----
-48

query I rowsort
SELECT col0 + 93 AS col0 FROM tab1
----
144
178
184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT - ( + MAX( DISTINCT col2 ) ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2943
SELECT - ( + MAX ( DISTINCT col2 ) ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( ( - col1 ) * col0 ) >= col0
----
3

skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( ( - col1 ) * col0 ) >= col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2945
SELECT DISTINCT MIN( 83 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-2945
SELECT DISTINCT MIN ( 83 ) FROM tab2
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-2946
SELECT 21 + 76 DIV + 44 FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-2946
SELECT 21 + 76 / + 44 FROM tab2
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN ( 43 ) AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ALL 31 - + COUNT( ALL 89 - - col2 ) AS col0 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL 31 - + COUNT ( ALL 89 - - col2 ) AS col0 FROM tab0
----
28

query I rowsort
SELECT 4 + col2 AS col2 FROM tab1 WHERE - col0 >= col2 + col1
----

query I rowsort
SELECT ( 89 ) * 25 FROM tab0
----
2225
2225
2225

query I rowsort
SELECT - 21 + col1 AS col0 FROM tab1
----
-16
-7
26

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col0 / - col2 <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 38 IN ( col2 * + col2 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2956
SELECT CAST( ( - col1 ) AS SIGNED ) AS col1 FROM tab0 WHERE 60 * col1 + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2956
SELECT CAST ( ( - col1 ) AS INTEGER ) AS col1 FROM tab0 WHERE 60 * col1 + + col1 IS NULL
----

query I rowsort
SELECT 25 * + 83 FROM tab0
----
2075
2075
2075

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 23 * col2 + col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT DISTINCT - COUNT( * ) * + ( + 3 * 76 ) AS col2 FROM tab0
----
-684

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - COUNT ( * ) * + ( + 3 * 76 ) AS col2 FROM tab0
----
-684

query I rowsort
SELECT DISTINCT - 68 + 58 AS col0 FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 * 43 AND ( col0 )
----

query I rowsort
SELECT DISTINCT 5 + col2 FROM tab1 WHERE NOT NULL BETWEEN ( 98 * - 7 ) AND 98
----

query I rowsort
SELECT col0 / + col1 AS col1 FROM tab2 AS cor0 WHERE 77 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2966
SELECT 9 DIV - ( col0 ) FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL ( col0 ) / 35 AS col2 FROM tab0 AS cor0 WHERE NOT 60 NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col1 * - col2 ) IS NULL
----

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

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col1 + + col1 * 95 FROM tab2 AS cor0
----
4896
6432
7392

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 94 + + col0 = col1 * ( ( ( col0 ) ) ) - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2975
SELECT ALL 94 + + MAX( + col0 + col0 ) FROM tab2 AS cor0
----
244

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL 94 + + MAX ( + col0 + col0 ) FROM tab2 AS cor0
----
244

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * col1 ) <> col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 - + col2 NOT BETWEEN ( ( - col0 ) + + col2 ) AND + 7
----
51
14
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2979
SELECT * FROM tab1 WHERE NULL IN ( ( CAST( NULL AS SIGNED ) ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-2979
SELECT * FROM tab1 WHERE NULL IN ( ( CAST ( NULL AS INTEGER ) ) + col1 )
----

query I rowsort
SELECT ALL + col2 + - 79 FROM tab1
----
-11
-20
17

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

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

query I rowsort
SELECT - col2 * + 2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 51 * col1 AS col2 FROM tab0
----
1071
4131
51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ( - 67 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT ALL - col0 * - + col1 FROM tab1
----
425
4277
714

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

query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2992
SELECT DISTINCT - - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT - - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2993
SELECT MIN( + 60 ) FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-2993
SELECT MIN ( + 60 ) FROM tab2 cor0
----
60

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2995
SELECT ALL + COUNT( ALL - CAST( + col2 AS DECIMAL ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + COUNT ( ALL - CAST ( + col2 AS REAL ) ) FROM tab2
----
3

query I rowsort
SELECT + 37 * 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 971f4498b3458997304cc8f8df05375d

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * col1 ) BETWEEN col2 + + col2 AND ( NULL ) OR NOT 36 + - 69 = NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2998
SELECT DISTINCT - + col2 DIV ( 21 ) FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT DISTINCT - + col2 / ( 21 ) FROM tab0 AS cor0
----
-2
-4
0

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 24 - + + col0 ) IS NULL
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3001
SELECT DISTINCT + MIN( + col0 ) DIV COUNT( * ) + MIN( ALL + col2 ) + + 47 * COUNT( * ) FROM tab1
----
217

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT + MIN ( + col0 ) / COUNT ( * ) + MIN ( ALL + col2 ) + + 47 * COUNT ( * ) FROM tab1
----
217

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * - + ( 89 ) col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 col1 FROM tab1 WHERE - col1 + - + col2 * + ( - 96 ) IS NOT NULL
----
-37
-44
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT - COUNT( * ) + 99 AS col0 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT - COUNT ( * ) + 99 AS col0 FROM tab2
----
96

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col2 < ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 63 IN ( - 68 )
----

query I rowsort
SELECT ALL - ( + + col0 ) + - - 52 * col1 FROM tab1
----
175
2353
677

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( 21 ) AND NULL AND NULL >= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3010
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 42 + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL + COUNT( * ) * - MAX( col1 ) + - ( ( 5 ) ) + 95 + MAX( DISTINCT + 26 ) AS col0 FROM tab0 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL + COUNT ( * ) * - MAX ( col1 ) + - ( ( 5 ) ) + 95 + MAX ( DISTINCT + 26 ) AS col0 FROM tab0 AS cor0
----
-127

query I rowsort
SELECT + col0 * + col2 + col0 FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT 99 + + + col0 AS col2 FROM tab1 cor0
----
150
184
190

query I rowsort
SELECT + - col2 + + 13 AS col0 FROM tab0 cor0
----
-34
-86
3

query I rowsort
SELECT - 21 + - - col1 AS col2 FROM tab1 AS cor0
----
-16
-7
26

query I rowsort
SELECT + col0 + + 42 AS col0 FROM tab2 AS cor0
----
106
117
88

query I rowsort
SELECT - - col0 * - col1 * - + 4 + + col1 + + col1 FROM tab1 AS cor0
----
1710
17202
2884

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 77 IS NOT NULL OR NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3021
SELECT ALL 7 - - col2 + - 63 DIV col0 + - col2 AS col0 FROM tab1
----
6
7
7

skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL 7 - - col2 + - 63 / col0 + - col2 AS col0 FROM tab1
----
6
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COUNT( col2 ) - - + 57 AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3022
SELECT COUNT ( col2 ) - - + 57 AS col2 FROM tab0
----
60

query I rowsort
SELECT - col2 - + col0 * - col1 * + col0 FROM tab2 AS cor0
----
107893
315352
376817

query I rowsort
SELECT - 58 - - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-2267
-254
-83

query I rowsort
SELECT ( col0 ) - 70 FROM tab2 AS cor0
----
-24
-6
5

query I rowsort
SELECT ALL - + 71 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - + 65 AND - col2
----
-71
-71
-71

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

query II rowsort
SELECT + 16 AS col0, - col0 + + col2 AS col2 FROM tab0 AS cor0
----
16
-77
16
2
16
32

query I rowsort
SELECT col0 * + + col2 AS col2 FROM tab2 WHERE NOT ( - col2 / col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3030
SELECT DISTINCT + 80, - ( - COUNT( * ) ) AS col2 FROM tab0
----
80
3

skipif mysql # not compatible
query II rowsort label-3030
SELECT DISTINCT + 80, - ( - COUNT ( * ) ) AS col2 FROM tab0
----
80
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 78 <= ( + 36 )
----

query I rowsort
SELECT + col0 / col0 * + 33 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 49 col1 FROM tab2 WHERE + col1 BETWEEN ( NULL ) AND + col1
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 83 IN ( + col2, 31 * - ( - - col1 ) * - 95 - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT ( 22 ) DIV col1 DIV - ( - col0 ) * 31 * 93 - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3036
SELECT ( 22 ) / col1 / - ( - col0 ) * 31 * 93 - col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT + MAX( ALL + + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-3037
SELECT + MAX ( ALL + + col0 ) FROM tab0 cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 42 + col0 FROM tab1 AS cor0
----
51
93
85
127
91
133

query I rowsort
SELECT DISTINCT + 92 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3040
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) col2, + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3040
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) col2, + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT + MAX( DISTINCT + 80 ) col2 FROM tab0 WHERE ( - + ( - + col2 ) * col1 / - - col0 + + 78 + col0 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT DISTINCT + MAX ( DISTINCT + 80 ) col2 FROM tab0 WHERE ( - + ( - + col2 ) * col1 / - - col0 + + 78 + col0 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + + - 65 FROM tab2
----
-14
12
2

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - 18 + + - col2
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3045
SELECT DISTINCT + col1 * + + col0 AS col2, - CAST( NULL AS SIGNED ) + + col1 / - + col2 FROM tab0
----
1215
NULL
1827
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3045
SELECT DISTINCT + col1 * + + col0 AS col2, - CAST ( NULL AS INTEGER ) + + col1 / - + col2 FROM tab0
----
1215
NULL
1827
NULL
97
NULL

query I rowsort
SELECT + col1 * col0 * - ( - 29 ) AS col1 FROM tab2 cor0
----
142912
145725
68034

onlyif mysql # DIV for integer division: 
query I rowsort label-3047
SELECT - - col2 DIV col0 * + + col2 AS col0 FROM tab0 AS cor0
----
0
141
99

skipif mysql # not compatible
query I rowsort label-3047
SELECT - - col2 / col0 * + + col2 AS col0 FROM tab0 AS cor0
----
0
141
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT DISTINCT + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3050
SELECT SUM( ALL - col2 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3050
SELECT SUM ( ALL - col2 ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT DISTINCT + col2 DIV - - 46 + + col0 AS col0 FROM tab1
----
53
86
92

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT + col2 / - - 46 + + col0 AS col0 FROM tab1
----
53
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT SUM( ALL 49 ) AS col0 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3052
SELECT SUM ( ALL 49 ) AS col0 FROM tab2
----
147

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

onlyif mysql # DIV for integer division: 
query II rowsort label-3054
SELECT col2, - col2 DIV - col2 AS col0 FROM tab1
----
59
1
68
1
96
1

skipif mysql # not compatible
query II rowsort label-3054
SELECT col2, - col2 / - col2 AS col0 FROM tab1
----
59
1
68
1
96
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3056
SELECT DISTINCT - col2 DIV + ( + - 37 ) + - ( - col2 ) FROM tab1 AS cor0
----
60
69
98

skipif mysql # not compatible
query I rowsort label-3056
SELECT DISTINCT - col2 / + ( + - 37 ) + - ( - col2 ) FROM tab1 AS cor0
----
60
69
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT - col0 * col2 - ( + 52 ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT + col1 * - CAST( + col0 AS SIGNED ) - - col2 + - + col2 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3058
SELECT + col1 * - CAST ( + col0 AS INTEGER ) - - col2 + - + col2 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT ALL COUNT( * ) * - - 74 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL COUNT ( * ) * - - 74 FROM tab2
----
222

query I rowsort
SELECT DISTINCT + - 67 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 89 = NULL
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - 33 + + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3063
SELECT - - CAST( - 94 AS SIGNED ) * MAX( + col2 ) col1, - 52 AS col1 FROM tab2 cor0
----
-5452
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3063
SELECT - - CAST ( - 94 AS INTEGER ) * MAX ( + col2 ) col1, - 52 AS col1 FROM tab2 cor0
----
-5452
-52

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE NOT - - 7 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + 85 * col0 AS col2 FROM tab2
----
3910
5440
6375

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3067
SELECT COUNT( * ) FROM tab2 WHERE NOT col1 < ( + col1 + - CAST( + col0 AS SIGNED ) + - - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-3067
SELECT COUNT ( * ) FROM tab2 WHERE NOT col1 < ( + col1 + - CAST ( + col0 AS INTEGER ) + - - col0 )
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3068
SELECT col1 DIV 36 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3068
SELECT col1 / 36 FROM tab1
----
0
0
1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT ALL + col2 * 66 + col0 + - col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
3894
4488
6336

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL + col2 * 66 + col0 + - col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
3894
4488
6336

query III rowsort
SELECT * FROM tab1 WHERE NOT 92 <> - col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( + col0 ) NOT IN ( - col2 * - ( + col2 ) * - col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT DISTINCT COUNT( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT COUNT ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT + col2 IN ( - col2 )
----
3

query I rowsort
SELECT - 25 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT ALL + SUM( ALL + col1 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL + SUM ( ALL + col1 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT 44 * + col1 + col2 AS col0 FROM tab1
----
2136
279
712

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

query II rowsort
SELECT + 41 AS col2, 56 * 25 AS col1 FROM tab1 AS cor0
----
41
1400
41
1400
41
1400

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT col1 * col0 DIV + + col1 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3080
SELECT col1 * col0 / + + col1 AS col2 FROM tab2 AS cor0
----
46
64
75

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

query I rowsort
SELECT 5 * - - col2 FROM tab0 AS cor0
----
235
495
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3083
SELECT ALL MIN( ALL - - CAST( NULL AS SIGNED ) ) + - - 82 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3083
SELECT ALL MIN ( ALL - - CAST ( NULL AS INTEGER ) ) + - - 82 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----
NULL

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

query I rowsort
SELECT + col2 - col0 - - + col0 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL 82 + + col1 FROM tab1 WHERE NULL IS NULL
----
129
87
96

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE - + col1 < NULL
----

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

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

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

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

query I rowsort
SELECT ALL - 0 * 8 - col2 FROM tab2 AS cor0
----
-23
-40
-58

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + 19 ) > + ( + 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT ALL 42 * - - 64 * + COUNT( * ) AS col0 FROM tab2 cor0 WHERE col0 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3095
SELECT ALL 42 * - - 64 * + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE col0 >= ( NULL )
----
0

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

query II rowsort
SELECT - 75 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
-75
59
-75
68
-75
96

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + ( 71 ) ) * - 43 ) > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT ALL - col1 * + col0 * - CAST( + col2 AS SIGNED ) FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL - col1 * + col0 * - CAST ( + col2 AS INTEGER ) FROM tab2
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query II rowsort label-3101
SELECT ALL col0 DIV col1 AS col0, col0 FROM tab0
----
0
15
4
87
97
97

skipif mysql # not compatible
query II rowsort label-3101
SELECT ALL col0 / col1 AS col0, col0 FROM tab0
----
0
15
4
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - + col1 ) <> NULL
----

query I rowsort
SELECT - 1 * + 76 AS col0 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query II rowsort
SELECT - col0 * - 86 AS col2, col1 AS col1 FROM tab0
----
1290
81
7482
21
8342
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL COUNT( * ) + + SUM( ALL - + col1 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL COUNT ( * ) + + SUM ( ALL - + col1 ) FROM tab2
----
-192

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT + + 39 DIV - + COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3108
SELECT + + 39 / - + COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-4

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 30 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + 85 + - - MAX( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-3110
SELECT + 85 + - - MAX ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 77 <> - 71 * - col0
----

query I rowsort
SELECT + col0 + - 65 FROM tab2 AS cor0
----
-1
-19
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT ( + + COUNT( + + col2 ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT ( + + COUNT ( + + col2 ) ) col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3115
SELECT ( 93 ) DIV + ( col2 ) AS col1 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-3115
SELECT ( 93 ) / + ( col2 ) AS col1 FROM tab2
----
1
2
4

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT + 45, SUM( DISTINCT - col0 ) AS col1 FROM tab2
----
45
-185

skipif mysql # not compatible
query II rowsort label-3116
SELECT + 45, SUM ( DISTINCT - col0 ) AS col1 FROM tab2
----
45
-185

query I rowsort
SELECT DISTINCT 39 + - 81 * + col0 FROM tab2
----
-3687
-5145
-6036

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE + col2 / + 21 * - + col1 + + 55 * - col2 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3119
SELECT CAST( NULL AS SIGNED ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3119
SELECT CAST ( NULL AS INTEGER ), col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3120
SELECT * FROM tab1 WHERE + CAST( + + col2 AS SIGNED ) + + 93 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3120
SELECT * FROM tab1 WHERE + CAST ( + + col2 AS INTEGER ) + + 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3121
SELECT ALL - 42 DIV col2 + - col1 AS col2 FROM tab2
----
-52
-67
-78

skipif mysql # not compatible
query I rowsort label-3121
SELECT ALL - 42 / col2 + - col1 AS col2 FROM tab2
----
-52
-67
-78

query III rowsort
SELECT * FROM tab0 WHERE - - col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT ALL + 58 - + 66 * + 61 * + COUNT( * ) FROM tab1 AS cor0
----
-12020

skipif mysql # not compatible
query I rowsort label-3124
SELECT ALL + 58 - + 66 * + 61 * + COUNT ( * ) FROM tab1 AS cor0
----
-12020

query II rowsort
SELECT + + col1 * 81 * col2 - - + col2, + col0 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT ALL 39 * + + col0 * - + col0 FROM tab2
----
-159744
-219375
-82524

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + - col0 ) col0, - col2 AS col0 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3128
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * + CAST( NULL AS SIGNED ) + ( + - 3 ) * - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3128
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * + CAST ( NULL AS INTEGER ) + ( + - 3 ) * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3129
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3129
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3130
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT ( + - col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3133
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 56 col0, + col2 * - + col0 * - ( - - 85 ) * col2 FROM tab1 AS cor0
----
NULL
25150225
NULL
35766640
NULL
39951360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3133
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 56 col0, + col2 * - + col0 * - ( - - 85 ) * col2 FROM tab1 AS cor0
----
NULL
25150225
NULL
35766640
NULL
39951360

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT ALL + ( 98 ) * 3 * col2 * col2 DIV - + col2 FROM tab1
----
-17346
-19992
-28224

skipif mysql # not compatible
query I rowsort label-3134
SELECT ALL + ( 98 ) * 3 * col2 * col2 / - + col2 FROM tab1
----
-17346
-19992
-28224

onlyif mysql # aggregate syntax: 
query II rowsort label-3135
SELECT DISTINCT - SUM( - - col0 ) * COUNT( * ) AS col2, - COUNT( * ) FROM tab0
----
-597
-3

skipif mysql # not compatible
query II rowsort label-3135
SELECT DISTINCT - SUM ( - - col0 ) * COUNT ( * ) AS col2, - COUNT ( * ) FROM tab0
----
-597
-3

query II rowsort
SELECT 1 AS col2, 34 AS col1 FROM tab0
----
1
34
1
34
1
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT ALL col0 DIV - - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3137
SELECT ALL col0 / - - col2 FROM tab2
----
1
1
2

query II rowsort
SELECT 76, + col0 AS col2 FROM tab0
----
76
15
76
87
76
97

query I rowsort
SELECT DISTINCT - col0 * + 30 AS col2 FROM tab0
----
-2610
-2910
-450

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3140
SELECT ALL - ( ( - + 4 ) ) DIV CAST( col2 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL - ( ( - + 4 ) ) / CAST ( col2 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3141
SELECT DISTINCT SUM( DISTINCT CAST( NULL AS SIGNED ) ) + + - 50 + + 63 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 50 + + 63 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( - + 29 ) * - - col1 + - - col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL 32 AS col1 FROM tab2 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query II rowsort label-3144
SELECT ALL - 62, SUM( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-62
185

skipif mysql # not compatible
query II rowsort label-3144
SELECT ALL - 62, SUM ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
-62
185

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT DISTINCT - ( 6 ) + col0 DIV - - col0 + + - col2 FROM tab1 AS cor0
----
-101
-64
-73

skipif mysql # not compatible
query I rowsort label-3146
SELECT DISTINCT - ( 6 ) + col0 / - - col0 + + - col2 FROM tab1 AS cor0
----
-101
-64
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( NULL IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - + - 68 AS col2 FROM tab0 AS cor0
----
-31
21
58

query I rowsort
SELECT + + col2 - + col0 * col0 FROM tab0 AS cor0
----
-178
-7559
-9310

query I rowsort
SELECT ( col1 ) - + - 14 - col0 FROM tab2 AS cor0
----
19
27
6

query I rowsort
SELECT DISTINCT + - 53 AS col2 FROM tab0 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT DISTINCT + 64 + - COUNT( * ) FROM tab2 WHERE NOT + + ( col1 ) <> NULL
----
64

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + 64 + - COUNT ( * ) FROM tab2 WHERE NOT + + ( col1 ) <> NULL
----
64

query I rowsort
SELECT 65 - - - 95 * - 94 FROM tab2
----
8995
8995
8995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col2 FROM tab2
----
13
13
13

query I rowsort
SELECT DISTINCT - col0 + + - col2 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MIN( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3157
SELECT MIN ( - - col1 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + ( - 65 ) * + 34 + - col0 + + ( + col2 ) * col1 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT 6 DIV col1 + + col1 AS col1 FROM tab0
----
21
7
81

skipif mysql # not compatible
query I rowsort label-3159
SELECT 6 / col1 + + col1 AS col1 FROM tab0
----
21
7
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL COUNT( * ) + - 62 AS col2 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL COUNT ( * ) + - 62 AS col2 FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL 63 + + COUNT( * ) * - 80 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL 63 + + COUNT ( * ) * - 80 FROM tab0
----
-177

query I rowsort
SELECT ALL - ( + 53 ) * - col1 - + - col1 FROM tab1 AS cor0
----
2538
270
756

query I rowsort
SELECT ALL ( + col0 ) + - + ( - col1 ) AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT ALL SUM( ALL col0 ) col2 FROM tab0 cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3164
SELECT ALL SUM ( ALL col0 ) col2 FROM tab0 cor0
----
199

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 15 < col1
----
-59
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT 50 * MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-3750

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT 50 * MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-3750

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT - col0 DIV 91 * + - col0 * - - col1 AS col0 FROM tab1 AS cor0
----
0
0
4277

skipif mysql # not compatible
query I rowsort label-3169
SELECT - col0 / 91 * + - col0 * - - col1 AS col0 FROM tab1 AS cor0
----
0
0
4277

query II rowsort
SELECT DISTINCT + 9 AS col2, col2 FROM tab2 AS cor0
----
9
23
9
40
9
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3171
SELECT DISTINCT + + SUM( ALL - CAST( - col1 AS SIGNED ) ) * 9 FROM tab0 AS cor0
----
927

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT + + SUM ( ALL - CAST ( - col1 AS INTEGER ) ) * 9 FROM tab0 AS cor0
----
927

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 * + - 19 / + - col1 / col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - 18 AS col2 FROM tab0 AS cor0 WHERE - 37 IS NOT NULL
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT COUNT( * ) * + 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT COUNT ( * ) * + 32 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL + col1 * + ( - + col1 ) AS col0 FROM tab0 cor0
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT - - col2 * - 43 FROM tab2 AS cor0
----
-1720
-2494
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3177
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3177
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-3178
SELECT DISTINCT COUNT( * ) * + COUNT( * ) col0, - COUNT( * ), - - 28 AS col0 FROM tab2
----
9
-3
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3178
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) col0, - COUNT ( * ), - - 28 AS col0 FROM tab2
----
9
-3
28

query I rowsort
SELECT - col2 + col2 FROM tab0 WHERE NOT col2 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL - 17 + + COUNT( * ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3180
SELECT ALL - 17 + + COUNT ( * ) FROM tab0
----
-14

query I rowsort
SELECT - ( + - 43 ) AS col2 FROM tab2
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3182
SELECT COUNT( * ) * + MAX( - col1 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3182
SELECT COUNT ( * ) * + MAX ( - col1 ) FROM tab1
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3183
SELECT ( + - col0 ), 80 DIV - 28 AS col2 FROM tab0
----
-15
-2
-87
-2
-97
-2

skipif mysql # not compatible
query II rowsort label-3183
SELECT ( + - col0 ), 80 / - 28 AS col2 FROM tab0
----
-15
-2
-87
-2
-97
-2

query II rowsort
SELECT DISTINCT - 76 * + + col0 AS col1, col2 * col0 AS col0 FROM tab0 AS cor0
----
-1140
705
-6612
870
-7372
9603

query II rowsort
SELECT ALL + - col2 + - col2 AS col2, col2 FROM tab0 AS cor0
----
-198
99
-20
10
-94
47

onlyif mysql # DIV for integer division: 
query II rowsort label-3186
SELECT DISTINCT ( 23 ) DIV col0 AS col1, - col1 AS col1 FROM tab0
----
0
-1
0
-21
1
-81

skipif mysql # not compatible
query II rowsort label-3186
SELECT DISTINCT ( 23 ) / col0 AS col1, - col1 AS col1 FROM tab0
----
0
-1
0
-21
1
-81

query III rowsort
SELECT * FROM tab2 WHERE + 16 / col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT + 49 + 49 * ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-392

skipif mysql # not compatible
query I rowsort label-3188
SELECT + 49 + 49 * ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-392

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT ALL COUNT( col0 ) - + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL COUNT ( col0 ) - + + COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3191
SELECT ALL + COUNT( * ) + + ( + MIN( ALL - + 68 ) ) AS col1 FROM tab2 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3191
SELECT ALL + COUNT ( * ) + + ( + MIN ( ALL - + 68 ) ) AS col1 FROM tab2 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - ( + MAX( - + col2 ) ) + - + COUNT( * ) + - 39 FROM tab2 cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3192
SELECT - ( + MAX ( - + col2 ) ) + - + COUNT ( * ) + - 39 FROM tab2 cor0
----
-19

query I rowsort
SELECT - 21 / 11 - - col0 + - col1 * col0 + - - col2 AS col2 FROM tab1 AS cor0 WHERE - col0 * - col1 > NULL
----

query I rowsort
SELECT ALL + - col0 - + col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3195
SELECT 10, COUNT( * ) - 74 AS col2 FROM tab2 AS cor0
----
10
-71

skipif mysql # not compatible
query II rowsort label-3195
SELECT 10, COUNT ( * ) - 74 AS col2 FROM tab2 AS cor0
----
10
-71

query I rowsort
SELECT - 99 * + col1 * + + 21 FROM tab1
----
-10395
-29106
-97713

query I rowsort
SELECT + 66 * col0 FROM tab2 WHERE NULL IS NULL
----
3036
4224
4950

query I rowsort
SELECT - 26 * col1 AS col0 FROM tab2
----
-1326
-1742
-2002

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col1 FROM tab2 WHERE NOT NULL NOT IN ( - - col2, - 70 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT MIN( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT MIN ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL + - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL + - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3202
SELECT DISTINCT - - COUNT( * ) * 75 AS col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3202
SELECT DISTINCT - - COUNT ( * ) * 75 AS col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT + 67 * 69 AS col2 FROM tab1
----
4623
4623
4623

query I rowsort
SELECT - 65 * + - col0 + col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL - ( COUNT( * ) ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3205
SELECT ALL - ( COUNT ( * ) ) col1 FROM tab1
----
-3

query I rowsort
SELECT + - ( - 84 ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query II rowsort
SELECT ALL - + col1 AS col0, 82 FROM tab0 AS cor0
----
-1
82
-21
82
-81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT ALL - + 95 * + + MAX( ALL + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
-13395

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL - + 95 * + + MAX ( ALL + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
-13395

onlyif mysql # DIV for integer division: 
query I rowsort label-3209
SELECT - 45 * 30 DIV 37 FROM tab0 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-3209
SELECT - 45 * 30 / 37 FROM tab0 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT + MAX( + 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3210
SELECT + MAX ( + 27 ) FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3211
SELECT + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3211
SELECT + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3212
SELECT - MAX( ALL - col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3212
SELECT - MAX ( ALL - col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3213
SELECT DISTINCT COUNT( * ), - SUM( DISTINCT col1 ) AS col1 FROM tab2
----
3
-195

skipif mysql # not compatible
query II rowsort label-3213
SELECT DISTINCT COUNT ( * ), - SUM ( DISTINCT col1 ) AS col1 FROM tab2
----
3
-195

query I rowsort
SELECT ALL + col0 + - - col2 * + col1 FROM tab2
----
1219
3144
3961

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3215
SELECT ALL SUM( ALL - - CAST( NULL AS SIGNED ) ) + AVG ( + col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL SUM ( ALL - - CAST ( NULL AS INTEGER ) ) + AVG ( + col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT DISTINCT - ( + COUNT( * ) ) + + - 70 FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - ( + COUNT ( * ) ) + + - 70 FROM tab0
----
-73

query I rowsort
SELECT DISTINCT - col1 * + + col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT + ( - - 52 ) - 98 AS col1 FROM tab1 WHERE NOT + col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT 8 / CAST( NULL AS SIGNED ) + + col1 * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT 8 / CAST ( NULL AS INTEGER ) + + col1 * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col1 + - col1 * col1 * + col0 AS col2 FROM tab0 AS cor0
----
-38388
-98
-98496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT ALL + + CAST( NULL AS SIGNED ) - - col2 + + col1 / - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT ALL + + CAST ( NULL AS INTEGER ) - - col2 + + col1 / - ( - col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 - + - col1, 75 AS col1 FROM tab0 AS cor0
----
0
75
0
75
0
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 33 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - + col0 + col1 * + - col0 * - - 56 col2 FROM tab1 AS cor0
----
-23656
-239353
-39837

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT - 7 - COUNT( - 62 ) AS col1 FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3225
SELECT - 7 - COUNT ( - 62 ) AS col1 FROM tab2 cor0
----
-10

query I rowsort
SELECT + col2 - + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 = + col1 ) OR NOT + col1 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 71 IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT - + col1 <> col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 96 < + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3231
SELECT - col0 DIV 6 FROM tab2
----
-10
-12
-7

skipif mysql # not compatible
query I rowsort label-3231
SELECT - col0 / 6 FROM tab2
----
-10
-12
-7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3232
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - CAST ( NULL AS REAL ) * + + col0 FROM tab2
----
NULL

query I rowsort
SELECT + 67 AS col1 FROM tab2 cor0
----
67
67
67

query II rowsort
SELECT DISTINCT col1, 1 AS col2 FROM tab0 AS cor0
----
1
1
21
1
81
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / - - col0 IS NOT NULL
----

query I rowsort
SELECT - 74 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT - 78 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 <= + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT + - col2 AS col0 FROM tab1 AS cor0 WHERE ( + - col2 ) + - col1 BETWEEN NULL AND + 19
----

query I rowsort
SELECT - - ( + - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL + - 29 AS col1 FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 + + + col2 <> ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + 67 ) + - 47 + - ( - 84 ) FROM tab0
----
104
104
104

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 9 / - 21 IS NULL
----

query I rowsort
SELECT DISTINCT - 22 + 26 FROM tab2
----
4

query III rowsort
SELECT * FROM tab1 WHERE ( NULL BETWEEN NULL AND - col2 )
----

query I rowsort
SELECT ALL col0 * - 2 AS col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3249
SELECT DISTINCT - 95 + + - COUNT( * ) FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - 95 + + - COUNT ( * ) FROM tab1
----
-98

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3251
SELECT ALL + 43 DIV - - col0 + + - 32 * - col2 AS col1 FROM tab2
----
1280
1856
736

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + 43 / - - col0 + + - 32 * - col2 AS col1 FROM tab2
----
1280
1856
736

query I rowsort
SELECT DISTINCT + - 95 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 - + col1 col0 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 + + col0 - - ( col0 ) + - col0 + + 16 col0 FROM tab2
----
149
167
178

query I rowsort
SELECT DISTINCT 33 - - col2 FROM tab0
----
132
43
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 + + col2 col0 FROM tab1 AS cor0
----
116
125
153

onlyif mysql # aggregate syntax: 
query II rowsort label-3257
SELECT DISTINCT - + 66 - COUNT( * ) col0, ( + - 1 ) FROM tab0 AS cor0
----
-69
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3257
SELECT DISTINCT - + 66 - COUNT ( * ) col0, ( + - 1 ) FROM tab0 AS cor0
----
-69
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col0 )
----

query I rowsort
SELECT ALL - 18 - - - col0 * + 46 FROM tab0 AS cor0
----
-4020
-4480
-708

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT COUNT( ALL - 75 ) - - + ( - MIN( col2 ) ) FROM tab2 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT COUNT ( ALL - 75 ) - - + ( - MIN ( col2 ) ) FROM tab2 cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - - SUM( + - 93 ) FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-3261
SELECT - - SUM ( + - 93 ) FROM tab0 AS cor0
----
-279

query II rowsort
SELECT DISTINCT + - col0 AS col0, 13 AS col0 FROM tab0 AS cor0
----
-15
13
-87
13
-97
13

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - ( col0 ) FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3265
SELECT DISTINCT - ( + COUNT( * ) ) * - ( - CAST( + - MAX( - + 72 ) AS SIGNED ) ) + COUNT( * ) FROM tab1
----
-213

skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - ( + COUNT ( * ) ) * - ( - CAST ( + - MAX ( - + 72 ) AS INTEGER ) ) + COUNT ( * ) FROM tab1
----
-213

query III rowsort
SELECT * FROM tab0 WHERE NOT - 71 > - col0 * + col1 * col2 * 33
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3267
SELECT 9 DIV + COUNT( * ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3267
SELECT 9 / + COUNT ( * ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 20 * + 72 FROM tab1
----
1440

onlyif mysql # DIV for integer division: 
query I rowsort label-3269
SELECT ALL 38 DIV + + ( + col2 ) AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL 38 / + + ( + col2 ) AS col2 FROM tab0
----
0
0
3

query II rowsort
SELECT DISTINCT - col1 AS col2, - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-51
-23
-67
-58
-77
-40

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 99 * col0 + - col1 * + ( - col1 ) < + - col1 - + col2 * col2
----

query I rowsort
SELECT 88 * - - 16 AS col1 FROM tab0 AS cor0
----
1408
1408
1408

query I rowsort
SELECT - 27 * + ( + 24 ) AS col1 FROM tab0 AS cor0
----
-648
-648
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-3274
SELECT DISTINCT MAX( DISTINCT ( - - 73 ) ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-3274
SELECT DISTINCT MAX ( DISTINCT ( - - 73 ) ) FROM tab1 AS cor0
----
73

query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 + + col1 + + col2 * - 56 * + col2 + - col0 + + - ( + col0 ) + - 9 + + 12 * + 92 * col2 * col0 * - 52 FROM tab2 cor0 WHERE 99 >= + col1
----
-147060029
-249917707
-60769916

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 80 col0, col2 FROM tab1
----
80
59
80
68
80
96

query I rowsort
SELECT + 87 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL - ( 75 ) AS col0 FROM tab0 AS cor0
----
-75
-75
-75

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL col0 * - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 61 * col2 / - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3283
SELECT DISTINCT + 56 AS col0, + SUM( + 57 ) FROM tab1 AS cor0
----
56
171

skipif mysql # not compatible
query II rowsort label-3283
SELECT DISTINCT + 56 AS col0, + SUM ( + 57 ) FROM tab1 AS cor0
----
56
171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3284
SELECT MIN( DISTINCT - ( + CAST( + col0 AS SIGNED ) ) ) DIV - ( - 89 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3284
SELECT MIN ( DISTINCT - ( + CAST ( + col0 AS INTEGER ) ) ) / - ( - 89 ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT + - 61 AS col2, + col0 FROM tab1 cor0
----
-61
51
-61
85
-61
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + 90 + 29 / col2 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT - COUNT( * ) + - 82 col2 FROM tab1
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3287
SELECT - COUNT ( * ) + - 82 col2 FROM tab1
----
-85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT - COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 + col1 col0 FROM tab0
----
-2
-22
58

query I rowsort
SELECT 87 + + col0 + - + col2 AS col2 FROM tab2
----
104
110
111

query I rowsort
SELECT ALL col1 * - 33 + + + 32 AS col2 FROM tab2
----
-1651
-2179
-2509

query I rowsort
SELECT ( + col1 ) + + - col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT + + col1 * - - col2 DIV - col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3293
SELECT + + col1 * - - col2 / - col2 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3294
SELECT - + col1 * - 0 DIV + + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3294
SELECT - + col1 * - 0 / + + col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3296
SELECT * FROM tab1 WHERE NULL BETWEEN ( + ( + col2 ) * CAST( col1 AS SIGNED ) ) AND 78
----

skipif mysql # not compatible
query III rowsort label-3296
SELECT * FROM tab1 WHERE NULL BETWEEN ( + ( + col2 ) * CAST ( col1 AS INTEGER ) ) AND 78
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query II rowsort
SELECT 95 AS col0, 97 - + 55 * 54 FROM tab2 cor0
----
95
-2873
95
-2873
95
-2873

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN - 1 AND NULL
----

query I rowsort
SELECT + - col1 * 21 - col2 FROM tab2 AS cor0
----
-1094
-1465
-1657

query I rowsort
SELECT ALL + 18 * + - 82 FROM tab1 AS cor0
----
-1476
-1476
-1476

query II rowsort
SELECT col2, - col1 AS col0 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3304
SELECT DISTINCT COUNT( * ) * - + MIN( DISTINCT - + col0 ) col0 FROM tab1
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3304
SELECT DISTINCT COUNT ( * ) * - + MIN ( DISTINCT - + col0 ) col0 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT DISTINCT + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3305
SELECT DISTINCT + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0, tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3306
SELECT ALL COUNT( * ) DIV + + 6 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL COUNT ( * ) / + + 6 AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL + 44 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query II rowsort label-3308
SELECT DISTINCT COUNT( * ) col0, COUNT( * ) AS col0 FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3308
SELECT DISTINCT COUNT ( * ) col0, COUNT ( * ) AS col0 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE - 97 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE - 97 IS NOT NULL
----
3

query I rowsort
SELECT col1 * 81 FROM tab0
----
1701
6561
81

query I rowsort
SELECT + ( - 66 ) AS col2 FROM tab1
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3312
SELECT - CAST( NULL AS SIGNED ), col2 * col1 + + col1 + 6 AS col1 FROM tab2 AS cor0
----
NULL
1230
NULL
3163
NULL
3959

skipif mysql # not compatible
query II rowsort label-3312
SELECT - CAST ( NULL AS INTEGER ), col2 * col1 + + col1 + 6 AS col1 FROM tab2 AS cor0
----
NULL
1230
NULL
3163
NULL
3959

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT DISTINCT + - 58 DIV - - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + - 58 / - - col2 AS col2 FROM tab0 AS cor0
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT 48 DIV + col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT 48 / + col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 55 + col1 AS col2, col1 col0 FROM tab1 AS cor0
----
-41
14
-50
5
-8
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 * + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3317
SELECT + + col2 + - + col0 * ( 95 ) DIV - - col0 FROM tab0 AS cor0
----
-48
-85
4

skipif mysql # not compatible
query I rowsort label-3317
SELECT + + col2 + - + col0 * ( 95 ) / - - col0 FROM tab0 AS cor0
----
-48
-85
4

onlyif mysql # DIV for integer division: 
query I rowsort label-3318
SELECT + col1 DIV - - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3318
SELECT + col1 / - - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT ALL col1 * col1 + - ( - 8 ) AS col1 FROM tab0
----
449
6569
9

query I rowsort
SELECT DISTINCT + - 24 * 29 AS col2 FROM tab2 AS cor0
----
-696

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT ( - 23 ) - - COUNT( * ) * + 82 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-3321
SELECT ( - 23 ) - - COUNT ( * ) * + 82 FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT - col0 * + 67 AS col0 FROM tab2 AS cor0
----
-3082
-4288
-5025

query II rowsort
SELECT - col1, + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( + col1 ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( - 70 )
----

query I rowsort
SELECT DISTINCT + + col2 * 33 AS col2 FROM tab0 AS cor0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - SUM( DISTINCT + + 14 ) AS col2 FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3329
SELECT - SUM ( DISTINCT + + 14 ) AS col2 FROM tab2 cor0
----
-14

query I rowsort
SELECT DISTINCT - 0 * + 71 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3331
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) * - - 19 + col0 + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3331
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) * - - 19 + col0 + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3332
SELECT - CAST( - + COUNT( ALL 71 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3332
SELECT - CAST ( - + COUNT ( ALL 71 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * + - col0 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3334
SELECT + col0 AS col2, CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3334
SELECT + col0 AS col2, CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3335
SELECT DISTINCT 15 DIV + ( + ( + COUNT( * ) ) ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-3335
SELECT DISTINCT 15 / + ( + ( + COUNT ( * ) ) ) FROM tab2
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col1 AND + - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + COUNT( ALL - 49 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3337
SELECT + COUNT ( ALL - 49 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 / + 32 + - 61 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col0 * + - 52 AS col2 FROM tab0 cor0
----
-11700
-393588
-489268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3340
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE ( NULL <= ( - 57 * CAST( - 79 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-3340
SELECT DISTINCT - col0 AS col2 FROM tab2 cor0 WHERE ( NULL <= ( - 57 * CAST ( - 79 AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT + COUNT( * ) + + ( + + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE - col1 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + COUNT ( * ) + + ( + + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE - col1 + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT - 63 + - 6 * 36 * + + COUNT( * ) FROM tab1 AS cor0
----
-711

skipif mysql # not compatible
query I rowsort label-3342
SELECT - 63 + - 6 * 36 * + + COUNT ( * ) FROM tab1 AS cor0
----
-711

query I rowsort
SELECT ALL + 83 + - - col2 FROM tab2
----
106
123
141

query I rowsort
SELECT ALL col0 + - col2 + ( ( col2 ) ) + col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col0 + - 3, - 18 + 98 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3346
SELECT DISTINCT ( - CAST( NULL AS DECIMAL ) ) + - col1 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT ( - CAST ( NULL AS REAL ) ) + - col1 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + 4 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3348
SELECT ALL - MAX( DISTINCT + col1 ) * - CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL - MAX ( DISTINCT + col1 ) * - CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 34 + - 58 FROM tab1 AS cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3350
SELECT 49 DIV MAX( + col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3350
SELECT 49 / MAX ( + col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 cor0
----
-54

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + + col1 > + 8
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT ALL 31 + col2 * - - col1 / - 44 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL 31 + col2 * - - col1 / - 44 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT DISTINCT + + 33 + 87 + MAX( - col0 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3354
SELECT DISTINCT + + 33 + 87 + MAX ( - col0 ) FROM tab0 AS cor0
----
105

query I rowsort
SELECT ALL + col0 * - col1 * + col2 * + col0 * col1 + - + col1 FROM tab0 AS cor0
----
-33379311
-69382656
-931492

onlyif mysql # aggregate syntax: 
query II rowsort label-3356
SELECT DISTINCT COUNT( ALL - col2 ), + ( COUNT( * ) ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3356
SELECT DISTINCT COUNT ( ALL - col2 ), + ( COUNT ( * ) ) FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL 41 + + col2 AS col2 FROM tab0 AS cor0 WHERE + col1 * - + col2 / - + 6 NOT IN ( + 90 / + 87 + 29, 98 / + - 41 )
----
140
51
88

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col0 * - - 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT - + MAX( - - col0 ) * + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3359
SELECT - + MAX ( - - col0 ) * + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, - col0, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT MIN( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-3361
SELECT MIN ( DISTINCT + col1 ) AS col0 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT DISTINCT + - CAST( - ( + 70 ) AS SIGNED ) AS col2, col0 FROM tab0 AS cor0
----
70
15
70
87
70
97

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT + - CAST ( - ( + 70 ) AS INTEGER ) AS col2, col0 FROM tab0 AS cor0
----
70
15
70
87
70
97

query I rowsort
SELECT + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - - 87 * MAX( ALL + + 18 ) + - - COUNT( * ) col2 FROM tab0 AS cor0
----
1569

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3364
SELECT - - 87 * MAX ( ALL + + 18 ) + - - COUNT ( * ) col2 FROM tab0 AS cor0
----
1569

query I rowsort
SELECT ALL + - 6 AS col0 FROM tab0 AS cor0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, 73 FROM tab0 AS cor0
----
1
73
21
73
81
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3367
SELECT + 57 DIV - 17 col0, + MIN( + col0 ) + + CAST( - 98 AS SIGNED ) AS col2 FROM tab2
----
-3
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3367
SELECT + 57 / - 17 col0, + MIN ( + col0 ) + + CAST ( - 98 AS INTEGER ) AS col2 FROM tab2
----
-3
-52

query II rowsort
SELECT + col0 * - 8, + ( + - col0 ) AS col0 FROM tab0
----
-120
-15
-696
-87
-776
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-3369
SELECT 85 DIV - col2, - col1 AS col0 FROM tab1
----
-1
-47
-1
-5
0
-14

skipif mysql # not compatible
query II rowsort label-3369
SELECT 85 / - col2, - col1 AS col0 FROM tab1
----
-1
-47
-1
-5
0
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT + - COUNT( * ) * - 25 FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3370
SELECT + - COUNT ( * ) * - 25 FROM tab0 cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 82 col1 FROM tab1 cor0 WHERE NOT col1 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT - ( + COUNT( * ) ) * 48 col2 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3372
SELECT - ( + COUNT ( * ) ) * 48 col2 FROM tab1 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL + COUNT( 92 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL + COUNT ( 92 ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3374
SELECT + CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3374
SELECT + CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL 6 * - col0 * - col1 + + col0 + - - ( - + 66 ) FROM tab2
----
14056
29566
30159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT ALL 16 + + - CAST( + - col1 AS SIGNED ) + 38 FROM tab0 AS cor0
----
135
55
75

skipif mysql # not compatible
query I rowsort label-3376
SELECT ALL 16 + + - CAST ( + - col1 AS INTEGER ) + 38 FROM tab0 AS cor0
----
135
55
75

query I rowsort
SELECT ALL 24 * col0 FROM tab2 AS cor0
----
1104
1536
1800

query I rowsort
SELECT 54 + + 96 + - - col0 AS col1 FROM tab0 AS cor0
----
165
237
247

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col2 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - ( - COUNT( * ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - ( - COUNT ( * ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - 0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - 0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3383
SELECT ALL col1 AS col1, col0 DIV - ( 2 ) FROM tab2
----
51
-23
67
-37
77
-32

skipif mysql # not compatible
query II rowsort label-3383
SELECT ALL col1 AS col1, col0 / - ( 2 ) FROM tab2
----
51
-23
67
-37
77
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-3384
SELECT col0 AS col1, + 14 DIV + col0 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-3384
SELECT col0 AS col1, + 14 / + col0 FROM tab0
----
15
0
87
0
97
0

query I rowsort
SELECT - col1 - - col0 + - col1 FROM tab0
----
-147
45
95

query I rowsort
SELECT DISTINCT 16 * - col2 + + col0 AS col2 FROM tab2
----
-322
-576
-853

onlyif mysql # DIV for integer division: 
query I rowsort label-3387
SELECT - 28 - 76 DIV col0 FROM tab0
----
-28
-28
-33

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 28 - 76 / col0 FROM tab0
----
-28
-28
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT ALL col2 + - + 33 * - CAST( 37 AS SIGNED ) * 7 AS col0 FROM tab2
----
8570
8587
8605

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL col2 + - + 33 * - CAST ( 37 AS INTEGER ) * 7 AS col0 FROM tab2
----
8570
8587
8605

query I rowsort
SELECT DISTINCT col0 + + 29 AS col2 FROM tab1 cor0
----
114
120
80

query II rowsort
SELECT ALL + col1, - col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3391
SELECT + COUNT( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( - 36 AS SIGNED ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3391
SELECT + COUNT ( ALL + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( - 36 AS INTEGER ) IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT ALL CAST( - 0 AS SIGNED ) AS col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL CAST ( - 0 AS INTEGER ) AS col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 55 AS col1, 95 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 5359b17a0d3ffb89fb9db6f121c67c5b

query I rowsort
SELECT col1 * + col2 * + col0 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT + MIN( + 44 ) * 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3256

skipif mysql # not compatible
query I rowsort label-3397
SELECT + MIN ( + 44 ) * 74 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3256

query I rowsort
SELECT ( - col0 ) * + 80 AS col0 FROM tab0
----
-1200
-6960
-7760

query I rowsort
SELECT ALL - - 22 FROM tab2 AS cor0
----
22
22
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + 58 * col0 * + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 + - 96 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - 22 * + 65 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT - - MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3403
SELECT - - MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 59 * col0 / + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT + MAX( - - 73 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-3405
SELECT + MAX ( - - 73 ) AS col2 FROM tab0
----
73

query II rowsort
SELECT DISTINCT col1 AS col0, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 44 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - col2 * col1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT DISTINCT - col2 * - + 20 + - col2 * + 96 AS col0 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL - MIN( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT ( col0 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL - MIN ( DISTINCT + col1 ) AS col2 FROM tab2 WHERE NOT ( col0 ) < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3411
SELECT + 74 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT + 74 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 BETWEEN 15 * 8 AND 49 / + col2
----

query I rowsort
SELECT DISTINCT col0 + + 16 AS col2 FROM tab2
----
62
80
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT col0 * + ( 68 * + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1
----
28900
290836
48552

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT col0 * + ( 68 * + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1
----
28900
290836
48552

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT DISTINCT 79 * - COUNT( + 57 ) + SUM( ALL col0 ) FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT 79 * - COUNT ( + 57 ) + SUM ( ALL col0 ) FROM tab1
----
-10

query I rowsort
SELECT col2 FROM tab0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT 83 FROM tab1 WHERE NOT + col2 * + 2 = col2
----
83
83
83

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col2 * col0 NOT BETWEEN + col0 / col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - MIN( ALL + col0 ) FROM tab2 WHERE NOT + col2 + + col0 < col0
----
-46

skipif mysql # not compatible
query I rowsort label-3419
SELECT - MIN ( ALL + col0 ) FROM tab2 WHERE NOT + col2 + + col0 < col0
----
-46

query I rowsort
SELECT ALL + 59 * - col1 FROM tab0
----
-1239
-4779
-59

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL MAX( DISTINCT col1 ) * + ( MAX( DISTINCT 3 ) ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL MAX ( DISTINCT col1 ) * + ( MAX ( DISTINCT 3 ) ) AS col0 FROM tab1
----
141

query I rowsort
SELECT DISTINCT 44 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + 50 IS NOT NULL
----

query I rowsort
SELECT - 83 + + col0 FROM tab0
----
-68
14
4

query I rowsort
SELECT DISTINCT + col0 - + 92 AS col1 FROM tab0
----
-5
-77
5

query I rowsort
SELECT - 13 * + 75 + col2 AS col0 FROM tab1
----
-879
-907
-916

query I rowsort
SELECT - col2 * 79 + + 28 AS col1 FROM tab0
----
-3685
-762
-7793

query I rowsort
SELECT + col1 * + 74 AS col1 FROM tab2
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT COUNT( ALL + col0 ) * 2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3431
SELECT COUNT ( ALL + col0 ) * 2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT ALL + SUM( DISTINCT + col0 ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3432
SELECT ALL + SUM ( DISTINCT + col0 ) col1 FROM tab1
----
227

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3434
SELECT DISTINCT ( + CAST( - MAX( ALL - col0 ) AS SIGNED ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT ( + CAST ( - MAX ( ALL - col0 ) AS INTEGER ) ) FROM tab0
----
15

query I rowsort
SELECT 26 * - col0 - 51 FROM tab0 AS cor0 WHERE NOT NULL > 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT DISTINCT + SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3436
SELECT DISTINCT + SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL - col2 * - 9 AS col2 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT col2 * col0 + col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3439
SELECT * FROM tab0 WHERE NOT - 17 * 66 NOT BETWEEN ( CAST( + col1 AS DECIMAL ) ) AND + 33
----

skipif mysql # not compatible
query III rowsort label-3439
SELECT * FROM tab0 WHERE NOT - 17 * 66 NOT BETWEEN ( CAST ( + col1 AS REAL ) ) AND + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3440
SELECT SUM( DISTINCT + 53 ) * + 76 FROM tab2
----
4028

skipif mysql # not compatible
query I rowsort label-3440
SELECT SUM ( DISTINCT + 53 ) * + 76 FROM tab2
----
4028

query I rowsort
SELECT DISTINCT + 35 FROM tab0 AS cor0 CROSS JOIN tab0
----
35

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 43 NOT BETWEEN col0 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT DISTINCT + SUM( DISTINCT 28 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-3443
SELECT DISTINCT + SUM ( DISTINCT 28 ) FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL - - MAX( col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL - - MAX ( col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3445
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - COUNT( DISTINCT - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3446
SELECT - COUNT ( DISTINCT - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND 83
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3448
SELECT + ( - 80 ) * CAST( - 5 AS SIGNED ) col2 FROM tab0 AS cor0
----
400
400
400

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3448
SELECT + ( - 80 ) * CAST ( - 5 AS INTEGER ) col2 FROM tab0 AS cor0
----
400
400
400

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE NOT col2 / 51 IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 * + 29 ) < col2
----

query I rowsort
SELECT DISTINCT 78 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 50 * col2 FROM tab1 AS cor0
----
2950
3400
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3453
SELECT ALL COUNT( * ) DIV - CAST( 8 AS SIGNED ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL COUNT ( * ) / - CAST ( 8 AS INTEGER ) AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 38 - - ( + col2 ) ) > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 * + 28 FROM tab2 WHERE NULL < ( NULL )
----

query I rowsort
SELECT DISTINCT 90 * col0 + + 36 FROM tab2
----
4176
5796
6786

query III rowsort
SELECT * FROM tab1 WHERE col0 + - col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL COUNT( * ) + SUM( - 37 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-108

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL COUNT ( * ) + SUM ( - 37 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-108

query I rowsort
SELECT + ( col1 ) - - col2 FROM tab0 WHERE col2 IS NOT NULL
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3460
SELECT DISTINCT - col1 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - col1 + + + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + col2 * col0 < NULL
----

query I rowsort
SELECT - ( + + col2 ) AS col2 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 * 93 AS col1 FROM tab0 WHERE NULL BETWEEN 56 AND - col1 * + col2 + + 43
----

query I rowsort
SELECT - ( + ( - 77 ) ) FROM tab2
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT COUNT( * ) * - - 88 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3466
SELECT COUNT ( * ) * - - 88 FROM tab1 AS cor0
----
264

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + col0 * - col1 AND - 44
----

query I rowsort
SELECT col1 + - 20 AS col2 FROM tab2 WHERE + - col0 IS NULL
----

query I rowsort
SELECT + 21 + + 22 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT MAX( + col2 ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT MAX ( + col2 ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT DISTINCT - SUM( ALL + + col1 ) - + + 10 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT - SUM ( ALL + + col1 ) - + + 10 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE - ( ( - col1 ) ) <> - col0 + col2 * + 17
----
-3

skipif mysql # not compatible
query I rowsort label-3472
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE - ( ( - col1 ) ) <> - col0 + col2 * + 17
----
-3

query II rowsort
SELECT ALL - 51 AS col2, col1 FROM tab2 AS cor0
----
-51
51
-51
67
-51
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3474
SELECT DISTINCT CAST( - 26 AS SIGNED ) * + - col1 FROM tab2 AS cor0
----
1326
1742
2002

skipif mysql # not compatible
query I rowsort label-3474
SELECT DISTINCT CAST ( - 26 AS INTEGER ) * + - col1 FROM tab2 AS cor0
----
1326
1742
2002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 14 BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT - COUNT( * ) * - - 31 AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-3477
SELECT - COUNT ( * ) * - - 31 AS col2 FROM tab1
----
-93

query I rowsort
SELECT col2 * + 76 * - 20 FROM tab2
----
-34960
-60800
-88160

query I rowsort
SELECT DISTINCT col1 * + + col1 * - col1 FROM tab1
----
-103823
-125
-2744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( + 81 ) col1 FROM tab1
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3481
SELECT ALL - + CAST( NULL AS SIGNED ) * COUNT( col2 ) + - 87 AS col0 FROM tab2 WHERE 11 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT ALL - + CAST ( NULL AS INTEGER ) * COUNT ( col2 ) + - 87 AS col0 FROM tab2 WHERE 11 <> NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3482
SELECT + ( + ( - CAST( COUNT( * ) AS SIGNED ) ) ) * + 84 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-3482
SELECT + ( + ( - CAST ( COUNT ( * ) AS INTEGER ) ) ) * + 84 FROM tab1
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL - CAST( - 82 AS SIGNED ) AS col2 FROM tab1 WHERE ( + - col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL - CAST ( - 82 AS INTEGER ) AS col2 FROM tab1 WHERE ( + - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT ALL MIN( ALL + + ( + col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3484
SELECT ALL MIN ( ALL + + ( + col1 ) ) FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 72 BETWEEN - + col0 + 91 AND - col2 * - 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col1 + + 16
----
0

skipif mysql # not compatible
query I rowsort label-3488
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + col1 + + 16
----
0

query I rowsort
SELECT 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL MAX( ALL + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL MAX ( ALL + 56 ) FROM tab2
----
56

query I rowsort
SELECT ALL + col1 * - - 58 FROM tab0
----
1218
4698
58

query I rowsort
SELECT ALL - 12 AS col1 FROM tab2 WHERE NOT + + 27 IS NULL
----
-12
-12
-12

query I rowsort
SELECT - col2 * - - col2 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - 46 * col2 FROM tab0 AS cor0
----
-2162
-4554
-460

query I rowsort
SELECT ( + + 24 ) * - 86 FROM tab1 cor0
----
-2064
-2064
-2064

query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 AS col0 FROM tab2 AS cor0
----
2139
4136
5683

query I rowsort
SELECT DISTINCT + col1 * + col1 * - col2 + 12 FROM tab2 AS cor0
----
-237148
-260350
-59811

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE - col2 * - col0 NOT BETWEEN 38 + + col2 AND + col2 * + col2
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - 53 * + - 38 - MIN( col2 ) FROM tab2 AS cor0
----
1991

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 53 * + - 38 - MIN ( col2 ) FROM tab2 AS cor0
----
1991

query III rowsort
SELECT * FROM tab1 WHERE 74 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT ALL col0 DIV col2 + - col2 col2 FROM tab2
----
-21
-39
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT ALL col0 / col2 + - col2 col2 FROM tab2
----
-21
-39
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3502
SELECT DISTINCT col1 + col2 DIV + + col1 col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3502
SELECT DISTINCT col1 + col2 / + + col1 col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + - col2 + - col1 FROM tab2 WHERE NULL <= col1
----

query II rowsort
SELECT col0 AS col0, col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT - col1 + 72 AS col1 FROM tab1
----
25
58
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 57 = + col1 * + col2 * + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT 27 + + COUNT( * ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3507
SELECT 27 + + COUNT ( * ) FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3508
SELECT * FROM tab2 WHERE CAST( ( + col1 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3508
SELECT * FROM tab2 WHERE CAST ( ( + col1 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col0 - - + col1 AS col2 FROM tab2 AS cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 50 - 40 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( ( - col0 ) ) * 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3512
SELECT ALL - + COUNT( ALL 24 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL - + COUNT ( ALL 24 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col0 * - 3 + 43 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
14
47
5

query I rowsort
SELECT ALL + - 23 * + - col1 * - 72 + - col0 + 28 AS col0 FROM tab0 AS cor0 WHERE NOT ( 81 / 46 ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT 41 FROM tab1 cor0 WHERE NOT - col2 IN ( - col2 )
----

query I rowsort
SELECT + 18 * - + 1 AS col2 FROM tab2 AS cor0
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT MAX( ALL + col1 ) * 98 FROM tab0 cor0
----
7938

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT MAX ( ALL + col1 ) * 98 FROM tab0 cor0
----
7938

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3519
SELECT ALL CAST( NULL AS DECIMAL ), 87 col0 FROM tab0
----
NULL
87
NULL
87
NULL
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3519
SELECT ALL CAST ( NULL AS REAL ), 87 col0 FROM tab0
----
NULL
87
NULL
87
NULL
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3520
SELECT DISTINCT col1 AS col1, col2 + + - col1 + - + ( CAST( + col2 AS SIGNED ) ) * col2 - + col0 * - col2 col1 FROM tab1
----
14
-4238
47
1585
5
1588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3520
SELECT DISTINCT col1 AS col1, col2 + + - col1 + - + ( CAST ( + col2 AS INTEGER ) ) * col2 - + col0 * - col2 col1 FROM tab1
----
14
-4238
47
1585
5
1588

query II rowsort
SELECT ALL + 43, col2 + col0 AS col0 FROM tab0
----
43
196
43
62
43
97

query I rowsort
SELECT ALL + ( + 98 ) AS col1 FROM tab2
----
98
98
98

query I rowsort
SELECT + ( + col0 ) * + col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT ALL + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND - + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT ALL SUM( DISTINCT 12 ) * + - 20 AS col1 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-3525
SELECT ALL SUM ( DISTINCT 12 ) * + - 20 AS col1 FROM tab0 AS cor0
----
-240

query I rowsort
SELECT ALL col0 * - col1 + - 78 FROM tab0 AS cor0
----
-1293
-175
-1905

query II rowsort
SELECT 91 AS col0, + 42 * - 75 FROM tab0 AS cor0
----
91
-3150
91
-3150
91
-3150

query I rowsort
SELECT ALL 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL 39 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - col2 * + - col0 + + col2 AS col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT - - 78 + + 37 FROM tab0 AS cor0
----
115
115
115

query I rowsort
SELECT ALL - + col1 * + 78 AS col0 FROM tab2 AS cor0
----
-3978
-5226
-6006

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 39 AND 7 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-3534
SELECT ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 39 AND 7 + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * + ( + 5 ) + - + ( col1 ) col0 FROM tab1 cor0
----
-200
-209
-242

query I rowsort
SELECT - + col0 * + 70 + + - 95 + + 93 * - - 68 + + col0 * + 96 AS col1 FROM tab2 AS cor0
----
7425
7893
8179

query I rowsort
SELECT ALL - 8 * - + 55 + 56 FROM tab2 AS cor0
----
496
496
496

query I rowsort
SELECT 4 FROM tab0 AS cor0 WHERE - col2 BETWEEN + - ( + + 0 ) AND col2 * - col1 * col1
----

query I rowsort
SELECT 48 FROM tab1 WHERE col0 IS NOT NULL
----
48
48
48

query II rowsort
SELECT + col2 AS col0, 18 AS col1 FROM tab0
----
10
18
47
18
99
18

query I rowsort
SELECT ALL + + 38 + - 14 * 13 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3542
SELECT DISTINCT - COUNT( * ) + + 10 - - + COUNT( + col1 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-3542
SELECT DISTINCT - COUNT ( * ) + + 10 - - + COUNT ( + col1 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT + MAX( DISTINCT + col1 ) * - 98 AS col1 FROM tab2
----
-7546

skipif mysql # not compatible
query I rowsort label-3543
SELECT + MAX ( DISTINCT + col1 ) * - 98 AS col1 FROM tab2
----
-7546

query I rowsort
SELECT ALL col1 + + 23 FROM tab2
----
100
74
90

query II rowsort
SELECT DISTINCT + ( - 24 ) - - col1 AS col0, + 0 + - - 86 AS col1 FROM tab1
----
-10
86
-19
86
23
86

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 = 37
----

query I rowsort
SELECT DISTINCT + + 76 AS col2 FROM tab2 AS cor0
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-3548
SELECT - ( - col1 ) + col0 + + - 80 DIV - + col1 AS col1 FROM tab1
----
106
139
70

skipif mysql # not compatible
query I rowsort label-3548
SELECT - ( - col1 ) + col0 + + - 80 / - + col1 AS col1 FROM tab1
----
106
139
70

query I rowsort
SELECT col2 + - 46 AS col1 FROM tab0
----
-36
1
53

query II rowsort
SELECT ALL 95 AS col2, 41 AS col1 FROM tab1
----
95
41
95
41
95
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3551
SELECT COUNT( + col0 ) DIV - COUNT( * ) + - - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3551
SELECT COUNT ( + col0 ) / - COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3552
SELECT + 16 DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3552
SELECT + 16 / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT DISTINCT 24, + col2 AS col0 FROM tab1 cor0
----
24
59
24
68
24
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3554
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT col2 * + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3554
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT col2 * + col2 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - ( - 3 ) AS col0, 18 * + 51 AS col2 FROM tab1
----
3
918
3
918
3
918

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT + ( + MAX( DISTINCT + col2 ) ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3556
SELECT + ( + MAX ( DISTINCT + col2 ) ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + 99 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 17 = ( 61 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT DISTINCT - COUNT( DISTINCT - 74 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT - COUNT ( DISTINCT - 74 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col1 * + col1 * col2 / - 63 + - + 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 38 FROM tab2 AS cor0
----
38

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 > + col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 55 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 94 * col2 AS col0 FROM tab1 AS cor0
----
5546
6392
9024

query II rowsort
SELECT + + col2 AS col2, 45 FROM tab0 AS cor0
----
10
45
47
45
99
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT + + 2 * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3566
SELECT + + 2 * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL - - MAX( ALL - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL - - MAX ( ALL - col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 84 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3569
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ( - - COUNT( * ) ) + + ( + 39 ) + + - 88 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3570
SELECT ( - - COUNT ( * ) ) + + ( + 39 ) + + - 88 FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col1 + + - col1 + col0 AS col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab1 WHERE + col1 NOT BETWEEN - col0 AND + 73 - col0 + col0
----

query I rowsort
SELECT DISTINCT col1 * col2 + - col2 AS col0 FROM tab0
----
0
200
3760

query II rowsort
SELECT ALL + 58 + - col0 AS col0, col2 * - 39 FROM tab0
----
-29
-390
-39
-3861
43
-1833

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT ALL - + COUNT( * ) FROM tab2 WHERE - col2 BETWEEN + col1 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE - col2 BETWEEN + col1 AND col1
----
0

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab1 WHERE + col0 * col1 IN ( col1 )
----

query I rowsort
SELECT + col0 * 68 + - 68 FROM tab2
----
3060
4284
5032

query II rowsort
SELECT + col2 * - col1, col2 AS col1 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE + 50 NOT IN ( - 62 + - 32, + col1 )
----
-14
-47
-5

query I rowsort
SELECT - 24 * + col1 FROM tab2 AS cor0
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT + + MAX( DISTINCT + - 97 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3582
SELECT + + MAX ( DISTINCT + - 97 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT * FROM tab1 WHERE NOT + 70 = + + 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 + + 12 AS col1 FROM tab1 AS cor0 WHERE NOT ( - 54 ) NOT BETWEEN NULL AND + 74 + 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT - SUM( DISTINCT + - 36 ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3585
SELECT - SUM ( DISTINCT + - 36 ) FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT - + SUM( ALL + + 42 ) AS col2 FROM tab1 cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3586
SELECT - + SUM ( ALL + + 42 ) AS col2 FROM tab1 cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL SUM( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( col0, col1 + - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL SUM ( ALL - - col0 ) FROM tab1 AS cor0 WHERE NULL IN ( col0, col1 + - + col1 )
----
NULL

query I rowsort
SELECT DISTINCT - 67 AS col0 FROM tab0 AS cor0 WHERE col1 + + - 79 + + col1 / + col1 = - 95 + - - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT - COUNT( - 72 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3589
SELECT - COUNT ( - 72 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col2 * - + col1 + - + col1 + col2 + col1 + - + col2 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 52 + col0 <> 30
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3593
SELECT DISTINCT COUNT( - CAST( NULL AS DECIMAL ) ) AS col0, COUNT( * ) AS col2 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-3593
SELECT DISTINCT COUNT ( - CAST ( NULL AS REAL ) ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3594
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 2 + - col1, + CAST( + col2 AS SIGNED ), - 77 )
----

skipif mysql # not compatible
query III rowsort label-3594
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( 2 + - col1, + CAST ( + col2 AS INTEGER ), - 77 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + 2 + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab2
----
60
60
60

query II rowsort
SELECT DISTINCT - col1 AS col1, + 66 AS col0 FROM tab2
----
-51
66
-67
66
-77
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT ALL MIN( - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL MIN ( - col2 ) FROM tab2
----
-58

query I rowsort
SELECT DISTINCT - + 62 FROM tab2 WHERE NOT - 66 * + col2 + 20 BETWEEN NULL AND 88
----

query I rowsort
SELECT DISTINCT - col2 * - + 18 AS col0 FROM tab2
----
1044
414
720

query I rowsort
SELECT ALL - 94 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3602
SELECT - - SUM( - 36 ) FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-3602
SELECT - - SUM ( - 36 ) FROM tab2 AS cor0
----
-108

query II rowsort
SELECT ALL - col1, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + MIN( DISTINCT - + 45 ) AS col2 FROM tab0 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3604
SELECT + MIN ( DISTINCT - + 45 ) AS col2 FROM tab0 cor0
----
-45

query I rowsort
SELECT ALL 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3606
SELECT DISTINCT col0 + CAST( NULL AS DECIMAL ) * - - 33 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3606
SELECT DISTINCT col0 + CAST ( NULL AS REAL ) * - - 33 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 86 AS col1 FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL + 24 + + 64 * 68 * 7 AS col1 FROM tab2 AS cor0
----
30488
30488
30488

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col2 > + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 < - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3611
SELECT - 30 DIV col1 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3611
SELECT - 30 / col1 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT ALL 31 + + - COUNT( ALL - 15 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3612
SELECT ALL 31 + + - COUNT ( ALL - 15 ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT + SUM( DISTINCT - 15 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT + SUM ( DISTINCT - 15 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT ALL + 85 + col2 FROM tab2
----
108
125
143

query I rowsort
SELECT - 28 - col2 FROM tab0 WHERE + col0 * 0 BETWEEN ( - + col2 ) AND 22
----
-127
-38
-75

query I rowsort
SELECT ALL 97 * - + col2 AS col2 FROM tab0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT + 36 + + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3617
SELECT DISTINCT + 36 + + COUNT ( * ) FROM tab1
----
39

query I rowsort
SELECT ALL col0 + col1 + - ( + col1 ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 92 + - col2 col0 FROM tab1
----
-4
24
33

query I rowsort
SELECT - col0 - - 20 * - col0 + - + ( + col0 ) FROM tab1
----
-1122
-1870
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-3621
SELECT ALL + 59 DIV 71 - - - 55 FROM tab0, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + 59 / 71 - - - 55 FROM tab0, tab0 AS cor0
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3622
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3622
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - 18
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( - ( + ( + col2 ) ) + - + ( + 61 ) ) NOT BETWEEN - col0 AND + ( + ( + 57 ) ) OR NOT + + col1 <> + col1
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3625
SELECT - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3625
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query I rowsort
SELECT ALL + 33 AS col0 FROM tab0 AS cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= + 77 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3627
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= + 77 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) >= + 77
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3629
SELECT + - SUM( - 42 ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-3629
SELECT + - SUM ( - 42 ) FROM tab0 AS cor0
----
126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3630
SELECT ALL - COUNT( * ) * 3 * - 27 / + - SUM( - 33 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - COUNT ( * ) * 3 * - 27 / + - SUM ( - 33 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + SUM( + 94 ) AS col2 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-3631
SELECT + SUM ( + 94 ) AS col2 FROM tab1 AS cor0
----
282

query I rowsort
SELECT DISTINCT + - col0 * - - ( col0 ) * + col1 * + - col2 + + - col2 FROM tab0 AS cor0
----
1589480
856528
931392

onlyif mysql # DIV for integer division: 
query I rowsort label-3633
SELECT ALL col0 DIV - 91 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL col0 / - 91 FROM tab0
----
-1
0
0

query I rowsort
SELECT DISTINCT - 91 * ( col1 ) * - col0 * 77 AS col1 FROM tab0
----
12801789
679679
8513505

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3635
SELECT SUM( ALL - ( + col1 ) ), - COUNT( * ) DIV SUM( + 54 ) AS col2 FROM tab0
----
-103
0

skipif mysql # not compatible
query II rowsort label-3635
SELECT SUM ( ALL - ( + col1 ) ), - COUNT ( * ) / SUM ( + 54 ) AS col2 FROM tab0
----
-103
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 89 <> NULL
----

query I rowsort
SELECT DISTINCT + + 75 * - + col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3638
SELECT ALL + CAST( NULL AS SIGNED ) * - + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + CAST ( NULL AS INTEGER ) * - + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 + - - 78 FROM tab2 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 + + col0 * + col2 + col1 col1 FROM tab0 AS cor0
----
820
902
9506

onlyif mysql # aggregate syntax: 
query II rowsort label-3642
SELECT ALL MIN( ALL col1 ), + MAX( - + col1 ) AS col1 FROM tab2 AS cor0
----
51
-51

skipif mysql # not compatible
query II rowsort label-3642
SELECT ALL MIN ( ALL col1 ), + MAX ( - + col1 ) AS col1 FROM tab2 AS cor0
----
51
-51

query I rowsort
SELECT + 38 - col0 * col2 FROM tab0 AS cor0
----
-667
-832
-9565

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 97 + 68 + col0 / - col2 BETWEEN + + col1 AND + col1 + + col2 + + + col2
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3645
SELECT - 77 * + + AVG ( + + col1 ) - - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3645
SELECT - 77 * + + AVG ( + + col1 ) - - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + col1 - + 88 AS col2 FROM tab0 AS cor0
----
-67
-7
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3647
SELECT ALL CAST( NULL AS SIGNED ), col1 + col2 col0 FROM tab0 AS cor0
----
NULL
100
NULL
128
NULL
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3647
SELECT ALL CAST ( NULL AS INTEGER ), col1 + col2 col0 FROM tab0 AS cor0
----
NULL
100
NULL
128
NULL
31

query I rowsort
SELECT ( col0 ) + col2 AS col0 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab1 WHERE ( 64 * col0 + col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 + 23 * + 64 AS col0 FROM tab2
----
1495
1512
1530

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT ALL - COUNT( * ) col2 FROM tab0 AS cor0 WHERE - col2 + - col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3651
SELECT ALL - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE - col2 + - col0 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3652
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + CAST( col0 AS DECIMAL ) + - + 46 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - CAST ( NULL AS REAL ) * + CAST ( col0 AS REAL ) + - + 46 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 89 * + + col2 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT - COUNT( ALL - col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3654
SELECT - COUNT ( ALL - col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3655
SELECT - col2 DIV + - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3655
SELECT - col2 / + - col2 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3656
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + CAST( + 78 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 AND + CAST ( + 78 AS INTEGER )
----

query II rowsort
SELECT - col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT - 89 * col1 FROM tab1 AS cor0
----
-1246
-4183
-445

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT + - COUNT( * ) * - 76 AS col1 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-3659
SELECT + - COUNT ( * ) * - 76 AS col1 FROM tab0 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT DISTINCT + MIN( ALL - + col0 ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-291

skipif mysql # not compatible
query I rowsort label-3660
SELECT DISTINCT + MIN ( ALL - + col0 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT DISTINCT + ( - + col0 ) DIV - + col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT + ( - + col0 ) / - + col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 80 * - 14 FROM tab2 AS cor0
----
1120

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT DISTINCT + 29 + - - MIN( + - col2 ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + 29 + - - MIN ( + - col2 ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT 44 + - col1 FROM tab1
----
-3
30
39

query I rowsort
SELECT ALL col0 * - 24 * - + ( + col0 ) * + col2 FROM tab0
----
1816560
22355784
253800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3666
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 * - - 83 * - CAST( NULL AS SIGNED ) NOT BETWEEN + + col2 + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-3666
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 * - - 83 * - CAST ( NULL AS INTEGER ) NOT BETWEEN + + col2 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT + MIN( ALL + + 67 ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + MIN ( ALL + + 67 ) FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - COUNT( * ) + - COUNT( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - COUNT ( * ) + - COUNT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 63 BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 46 + 46 * - + col0 * col0 FROM tab2
----
-188370
-258704
-97290

query I rowsort
SELECT + 23 * - col0 + - col0 * + + 1 * + col1 + - col0 + - col1 AS col1 FROM tab0
----
-1656
-2426
-3936

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT 29 + 58 + - col1 DIV col2 + + 60 + - col2 AS col1 FROM tab2
----
106
122
88

skipif mysql # not compatible
query I rowsort label-3672
SELECT 29 + 58 + - col1 / col2 + + 60 + - col2 AS col1 FROM tab2
----
106
122
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 19 + + 84 * - col0 * ( col1 ) col0, + col2 AS col2 FROM tab0
----
-102079
47
-153487
10
-8167
99

query I rowsort
SELECT DISTINCT col0 + col2 * col2 AS col0 FROM tab0
----
187
2224
9898

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL - COUNT( * ) + - 30 AS col1 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL - COUNT ( * ) + - 30 AS col1 FROM tab2
----
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-3676
SELECT DISTINCT - 85 + col1 DIV 85 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-3676
SELECT DISTINCT - 85 + col1 / 85 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT + 55 + + - col2 FROM tab2 AS cor0
----
-3
15
32

query I rowsort
SELECT ALL - - 88 - col2 AS col0 FROM tab0 AS cor0
----
-11
41
78

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 77 >= ( + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3680
SELECT DISTINCT + 76 - - 25 - + MAX( DISTINCT - col1 ) DIV + COUNT( - + col0 ) col0 FROM tab2 cor0
----
118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT DISTINCT + 76 - - 25 - + MAX ( DISTINCT - col1 ) / + COUNT ( - + col0 ) col0 FROM tab2 cor0
----
118

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3681
SELECT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - + col2 * + 51 * - - 15 ) AND - col1 * + - 40
----
0

skipif mysql # not compatible
query I rowsort label-3681
SELECT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - + col2 * + 51 * - - 15 ) AND - col1 * + - 40
----
0

query I rowsort
SELECT + + col2 AS col2 FROM tab2 AS cor0 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT ALL + 48 * - + 88 AS col1 FROM tab1
----
-4224
-4224
-4224

query II rowsort
SELECT ALL + 8, + col1 FROM tab0
----
8
1
8
21
8
81

query I rowsort
SELECT + col1 - + + 64 + + 10 FROM tab2
----
-3
13
23

query II rowsort
SELECT DISTINCT - col1 AS col2, col2 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-3687
SELECT ALL + 46, + COUNT( * ) AS col2 FROM tab2
----
46
3

skipif mysql # not compatible
query II rowsort label-3687
SELECT ALL + 46, + COUNT ( * ) AS col2 FROM tab2
----
46
3

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, - col2 )
----

query II rowsort
SELECT DISTINCT + + 62, - col0 AS col2 FROM tab2 AS cor0
----
62
-46
62
-64
62
-75

query I rowsort
SELECT ALL - 47 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

query I rowsort
SELECT DISTINCT - + 27 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3692
SELECT DISTINCT - COUNT( * ) * 25 AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3692
SELECT DISTINCT - COUNT ( * ) * 25 AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - col0 * - 72 * + - col1 FROM tab2 AS cor0
----
-168912
-354816
-361800

onlyif mysql # DIV for integer division: 
query I rowsort label-3694
SELECT + - 36 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3694
SELECT + - 36 / col2 AS col0 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3695
SELECT DISTINCT - - 54 * col2 DIV + col0 FROM tab2 AS cor0
----
27
33
41

skipif mysql # not compatible
query I rowsort label-3695
SELECT DISTINCT - - 54 * col2 / + col0 FROM tab2 AS cor0
----
27
33
41

query I rowsort
SELECT ALL - - col1 * - + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 col1 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT - + SUM( - + 44 ) * - MAX( - + col2 ) + - 42 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7746

skipif mysql # not compatible
query I rowsort label-3698
SELECT - + SUM ( - + 44 ) * - MAX ( - + col2 ) + - 42 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
7746

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3699
SELECT DISTINCT MAX( DISTINCT 21 ) DIV - 4 AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT MAX ( DISTINCT 21 ) / - 4 AS col0 FROM tab0 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + 41 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - col1 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT - MIN( DISTINCT + 40 ) AS col0 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-3702
SELECT - MIN ( DISTINCT + 40 ) AS col0 FROM tab2
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT - SUM( + - col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3703
SELECT - SUM ( + - col2 ) AS col1 FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT + 81 DIV + col1 AS col1 FROM tab1
----
1
16
5

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + 81 / + col1 AS col1 FROM tab1
----
1
16
5

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL - ( 44 ) DIV col0 col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3705
SELECT ALL - ( 44 ) / col0 col0 FROM tab0 AS cor0
----
-2
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * col0 < - 82 / - - 60 - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT - col1 * + col1 / + + CAST( ( - col1 ) AS SIGNED ) FROM tab1 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3707
SELECT - col1 * + col1 / + + CAST ( ( - col1 ) AS INTEGER ) FROM tab1 WHERE + + col1 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col0 + col2, + col0 FROM tab1
----
144
85
147
51
159
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3709
SELECT ALL + col0 DIV col1 + + + 7 + + 5 col2, + ( + + 24 ) FROM tab0
----
109
24
12
24
16
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3709
SELECT ALL + col0 / col1 + + + 7 + + 5 col2, + ( + + 24 ) FROM tab0
----
109
24
12
24
16
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - - col2 col2 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL 94 - - col0 AS col0 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT - MAX( - - col1 ) - - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3712
SELECT - MAX ( - - col1 ) - - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - col0 - + col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3714
SELECT DISTINCT - - CAST( NULL AS SIGNED ) - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3714
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - col0 - + col2 AS col1 FROM tab0 cor0
----
-2
-32
77

query I rowsort
SELECT ALL + + col0 - - - col2 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT ALL + - 4 AS col1 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT + + 62 * - CAST( NULL AS SIGNED ) + + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT + + 62 * - CAST ( NULL AS INTEGER ) + + 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 89 - - col0 AS col1 FROM tab2 AS cor0
----
-14
-25
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT - + col2 * CAST( NULL AS SIGNED ) + 71 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3720
SELECT - + col2 * CAST ( NULL AS INTEGER ) + 71 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT + MAX( ALL - ( col2 ) ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3722
SELECT + MAX ( ALL - ( col2 ) ) col0 FROM tab2 AS cor0
----
-23

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT + 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 78 FROM tab2 WHERE NOT 85 IS NULL
----
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + col0 * + 64 * + 43 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3726
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND - CAST( 35 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3726
SELECT * FROM tab0 WHERE NOT + col0 NOT BETWEEN NULL AND - CAST ( 35 AS INTEGER )
----

query I rowsort
SELECT + - col0 * - 21 AS col1 FROM tab0 AS cor0
----
1827
2037
315

query II rowsort
SELECT DISTINCT col1, - col0 AS col1 FROM tab0 WHERE ( ( - col2 ) * - + col1 + - col2 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3729
SELECT - CAST( NULL AS SIGNED ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3729
SELECT - CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3730
SELECT - + 39 DIV + col0 * + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3730
SELECT - + 39 / + col0 * + col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 11 AS col1, col0 + + 78 AS col0 FROM tab0 AS cor0
----
11
165
11
175
11
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT ALL + col2 * - 96 * ( - col0 ) + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
67633
83510
921789

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL + col2 * - 96 * ( - col0 ) + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
67633
83510
921789

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3733
SELECT + + COUNT( * ) + + COUNT( * ) DIV - 5 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3733
SELECT + + COUNT ( * ) + + COUNT ( * ) / - 5 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + + ( + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 47 + 50, - 25 * + - 89 AS col0 FROM tab2
----
97
2225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3736
SELECT - + col1 col2, - 13 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - ( CAST( + col1 AS SIGNED ) ), + 4 / + + col2 + col1, - col1, - col1 + 71 + - 51 - + ( - CAST( ( + col1 ) AS SIGNED ) ) ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3736
SELECT - + col1 col2, - 13 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - ( CAST ( + col1 AS INTEGER ) ), + 4 / + + col2 + col1, - col1, - col1 + 71 + - 51 - + ( - CAST ( ( + col1 ) AS INTEGER ) ) ) OR NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3737
SELECT ALL - MIN( DISTINCT + ( 82 ) ) col0, 90 + COUNT( * ) + 56 * - + 83 AS col1 FROM tab1 WHERE + ( + + col0 ) * col1 IS NOT NULL
----
-82
-4555

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3737
SELECT ALL - MIN ( DISTINCT + ( 82 ) ) col0, 90 + COUNT ( * ) + 56 * - + 83 AS col1 FROM tab1 WHERE + ( + + col0 ) * col1 IS NOT NULL
----
-82
-4555

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT DISTINCT - 20 + - 92 - - 43 * - 74 * - COUNT( * ) AS col0 FROM tab0
----
9434

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT - 20 + - 92 - - 43 * - 74 * - COUNT ( * ) AS col0 FROM tab0
----
9434

query I rowsort
SELECT 42 * - col0 FROM tab2
----
-1932
-2688
-3150

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT + 14 * - COUNT( * ) + + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-135

skipif mysql # not compatible
query I rowsort label-3740
SELECT + 14 * - COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-135

query I rowsort
SELECT + 41 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NOT - 89 * - col1 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3743
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( col0 AS SIGNED ) > - - col1
----
15
81
47

skipif mysql # not compatible
query III rowsort label-3743
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( col0 AS INTEGER ) > - - col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT + 32 * - - COUNT( - 51 ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3744
SELECT + 32 * - - COUNT ( - 51 ) FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3746
SELECT - 13 AS col1, MAX( - 76 ) AS col2 FROM tab0 AS cor0
----
-13
-76

skipif mysql # not compatible
query II rowsort label-3746
SELECT - 13 AS col1, MAX ( - 76 ) AS col2 FROM tab0 AS cor0
----
-13
-76

query II rowsort
SELECT ALL - - 68, 71 * + - col2 AS col1 FROM tab1 AS cor0
----
68
-4189
68
-4828
68
-6816

query II rowsort
SELECT DISTINCT + + 77 AS col1, col1 AS col1 FROM tab0 AS cor0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3749
SELECT ALL + CAST( - 8 AS SIGNED ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL + CAST ( - 8 AS INTEGER ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----
0

query I rowsort
SELECT + - 45 AS col1 FROM tab0 cor0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT ALL + 14 DIV ( + - 34 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + 14 / ( + - 34 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 <= - - col0 + + + 95 + - 21 / - - col0
----

query II rowsort
SELECT DISTINCT col0 * - + col0, 35 AS col0 FROM tab2
----
-2116
35
-4096
35
-5625
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3754
SELECT + 4 DIV - 41 + + 23 * - 84 AS col2 FROM tab1
----
-1932
-1932
-1932

skipif mysql # not compatible
query I rowsort label-3754
SELECT + 4 / - 41 + + 23 * - 84 AS col2 FROM tab1
----
-1932
-1932
-1932

query I rowsort
SELECT - 21 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

query I rowsort
SELECT col0 - - 10 AS col2 FROM tab1 WHERE NOT - + 61 * ( col0 ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3757
SELECT - CAST( NULL AS SIGNED ) * - COUNT( col0 ) * + + 43 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3757
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( col0 ) * + + 43 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT + 55 / - - CAST( NULL AS SIGNED ) + + - CAST( NULL AS SIGNED ) * - + col1 * 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT + 55 / - - CAST ( NULL AS INTEGER ) + + - CAST ( NULL AS INTEGER ) * - + col1 * 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3759
SELECT col1 DIV + - 65 col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3759
SELECT col1 / + - 65 col0 FROM tab2 AS cor0
----
-1
-1
0

query II rowsort
SELECT + + col1, col0 * col1 * col2 FROM tab2 cor0
----
51
53958
67
291450
77
197120

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NULL > 41
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 col0 FROM tab0 AS cor0
----
-35
-35
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3763
SELECT - 54 DIV - - col2 * + col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3763
SELECT - 54 / - - col2 * + col1 col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT col0 + - 81 FROM tab2
----
-17
-35
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT - COUNT( * ) + + MIN( col2 ) col0 FROM tab0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3766
SELECT - COUNT ( * ) + + MIN ( col2 ) col0 FROM tab0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT DISTINCT 30 + - + COUNT( * ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT 30 + - + COUNT ( * ) FROM tab0
----
27

query II rowsort
SELECT ALL - col2, - 88 AS col1 FROM tab1 AS cor0
----
-59
-88
-68
-88
-96
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) * + col1 * + + 6 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + 29 FROM tab0
----
110
30
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT + MIN( ALL - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3771
SELECT + MIN ( ALL - + col1 ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - 57 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-57
-57
-57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3773
SELECT ALL + CAST( + - col2 AS DECIMAL ) + + 66 * + + 99 col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3773
SELECT ALL + CAST ( + - col2 AS REAL ) + + 66 * + + 99 col0 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col2 / col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 67
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT - SUM( + 36 ), 11 * + COUNT( - - 43 ) AS col2 FROM tab1 cor0
----
-108
33

skipif mysql # not compatible
query II rowsort label-3776
SELECT - SUM ( + 36 ), 11 * + COUNT ( - - 43 ) AS col2 FROM tab1 cor0
----
-108
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL + - 24 * + - COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3777
SELECT ALL + - 24 * + - COUNT ( * ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT ALL - 80 * - col0 AS col1, - ( - - col2 ) FROM tab2 AS cor0
----
3680
-23
5120
-40
6000
-58

query I rowsort
SELECT DISTINCT + 53 * - - col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT ALL - col1 * + 57 AS col1 FROM tab0 WHERE - - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND 29
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3782
SELECT - col1 * + col1 / col2 / - ( + CAST( NULL AS DECIMAL ) ) / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT - col1 * + col1 / col2 / - ( + CAST ( NULL AS REAL ) ) / col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT COUNT( - col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3783
SELECT DISTINCT COUNT ( - col0 ) col1 FROM tab0
----
3

query I rowsort
SELECT - 7 * + 3 AS col2 FROM tab2
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-3785
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3785
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ( 15 ) * MAX( ALL - col0 ) + - SUM( col2 ) * 1 * + ( + SUM( DISTINCT - 30 ) ) AS col1 FROM tab2
----
2940

skipif mysql # not compatible
query I rowsort label-3786
SELECT ( 15 ) * MAX ( ALL - col0 ) + - SUM ( col2 ) * 1 * + ( + SUM ( DISTINCT - 30 ) ) AS col1 FROM tab2
----
2940

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3787
SELECT - CAST( NULL AS DECIMAL ) * 68 + MAX( col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3787
SELECT - CAST ( NULL AS REAL ) * 68 + MAX ( col1 ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - 85 + col1 AS col0, - 79 FROM tab1 AS cor0
----
-38
-79
-71
-79
-80
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-3789
SELECT col0 + + col2 AS col2, col2 * - ( - col1 ) DIV col1 col0 FROM tab1 AS cor0
----
144
59
147
96
159
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3789
SELECT col0 + + col2 AS col2, col2 * - ( - col1 ) / col1 col0 FROM tab1 AS cor0
----
144
59
147
96
159
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT COUNT( ALL + + 62 ) * + 14 * 81 + + MAX( 68 ) + 67 AS col0 FROM tab2 AS cor0
----
3537

skipif mysql # not compatible
query I rowsort label-3790
SELECT COUNT ( ALL + + 62 ) * + 14 * 81 + + MAX ( 68 ) + 67 AS col0 FROM tab2 AS cor0
----
3537

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3791
SELECT - COUNT( * ) + + + 44 / + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3791
SELECT - COUNT ( * ) + + + 44 / + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT + CAST( col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-3792
SELECT + CAST ( col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 7 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) BETWEEN 26 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 97 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 49 / + - col2 + 67 FROM tab2 WHERE NOT + 95 <> - col2
----

query I rowsort
SELECT DISTINCT - 70 + - + col1 * col2 FROM tab1
----
-1414
-3266
-365

query I rowsort
SELECT DISTINCT + 41 AS col0 FROM tab2 WHERE NOT 43 + - + ( ( + + col0 ) ) >= - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT - SUM( DISTINCT - + col0 ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3799
SELECT - SUM ( DISTINCT - + col0 ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL + 51 + + col0 AS col2 FROM tab1
----
102
136
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3801
SELECT - col2 AS col0, CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3801
SELECT - col2 AS col0, CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + 11 - - ( 2 ) * + col2 FROM tab0
----
105
209
31

query I rowsort
SELECT ALL - - ( - col2 ) * + col0 AS col1 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3804
SELECT + col2 AS col0, CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-3804
SELECT + col2 AS col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ( - col0 ) * - - 40 * + ( + col2 ) AS col1 FROM tab0
----
-28200
-34800
-384120

query I rowsort
SELECT + 26 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query II rowsort
SELECT ALL col0 AS col1, col1 * + col2 AS col0 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT + 22 * MIN( + ( - col1 ) ) FROM tab2 AS cor0
----
-1694

skipif mysql # not compatible
query I rowsort label-3808
SELECT + 22 * MIN ( + ( - col1 ) ) FROM tab2 AS cor0
----
-1694

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT DISTINCT + 18 AS col2, + SUM( + col0 ) FROM tab0 AS cor0
----
18
199

skipif mysql # not compatible
query II rowsort label-3809
SELECT DISTINCT + 18 AS col2, + SUM ( + col0 ) FROM tab0 AS cor0
----
18
199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3810
SELECT ALL + - MIN( + + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-3810
SELECT ALL + - MIN ( + + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT 54 * + ( ( + col2 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ALL 5 * + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL 5 * + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT DISTINCT - 23 * - COUNT( * ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3813
SELECT DISTINCT - 23 * - COUNT ( * ) FROM tab0 AS cor0
----
69

query II rowsort
SELECT 46, col0 AS col1 FROM tab0 AS cor0
----
46
15
46
87
46
97

query I rowsort
SELECT DISTINCT 22 FROM tab1 WHERE NULL IS NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT - COUNT( ALL col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3816
SELECT - COUNT ( ALL col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3817
SELECT + col0 DIV ( + 64 ) AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3817
SELECT + col0 / ( + 64 ) AS col0 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 ) col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3819
SELECT + SUM( DISTINCT - col0 ), COUNT( * ) col0 FROM tab1
----
-227
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3819
SELECT + SUM ( DISTINCT - col0 ), COUNT ( * ) col0 FROM tab1
----
-227
3

query I rowsort
SELECT DISTINCT + col1 + - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 14
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3821
SELECT ALL - col1 DIV - 9 AS col1 FROM tab2 AS cor0
----
5
7
8

skipif mysql # not compatible
query I rowsort label-3821
SELECT ALL - col1 / - 9 AS col1 FROM tab2 AS cor0
----
5
7
8

query I rowsort
SELECT ALL + 36 FROM tab1 AS cor0 WHERE NULL IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT DISTINCT - + COUNT( * ) * - 79 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-3823
SELECT DISTINCT - + COUNT ( * ) * - 79 FROM tab1 AS cor0
----
237

query I rowsort
SELECT - 35 + - - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-12
23
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT ALL - COUNT( * ) + MIN( - + col1 ) * + - 14 AS col2 FROM tab1
----
655

skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL - COUNT ( * ) + MIN ( - + col1 ) * + - 14 AS col2 FROM tab1
----
655

query I rowsort
SELECT + 40 - - + col1 AS col2 FROM tab2 WHERE - + col0 IS NOT NULL
----
107
117
91

query I rowsort
SELECT DISTINCT - + col0 - + 95 AS col0 FROM tab1 AS cor0
----
-146
-180
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT ALL + - COUNT( * ) * - - 25 * + 84 AS col0 FROM tab0 AS cor0
----
-6300

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL + - COUNT ( * ) * - - 25 * + 84 AS col0 FROM tab0 AS cor0
----
-6300

query I rowsort
SELECT ALL + col0 - + - col0 AS col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT + - col1 - - - col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - ( + - col0 ) - + ( + col2 ) * 27 FROM tab2 AS cor0
----
-1016
-1491
-575

query I rowsort
SELECT - + 1 * col0 + + ( + col1 ) FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + - col2 + + 74 AS col0 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT - 55 + - 68 * - 82 FROM tab2
----
5521
5521
5521

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE + 41 + 47 + col0 > - ( col0 )
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > + 87 * + 22 / + col2 / - col2 * col0 + + - col2 * - col0 + + + col2 - - - 52 - - - col0 * - col1
----

query I rowsort
SELECT ALL ( + 92 ) + - col1 AS col0 FROM tab0
----
11
71
91

query I rowsort
SELECT ALL col2 - + 73 FROM tab2 AS cor0
----
-15
-33
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT MAX( - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3839
SELECT MAX ( - - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3840
SELECT DISTINCT COUNT( * ) DIV + - 10 FROM tab1, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT COUNT ( * ) / + - 10 FROM tab1, tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT - COUNT( * ) * + + 84 AS col2 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-3841
SELECT - COUNT ( * ) * + + 84 AS col2 FROM tab2
----
-252

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= + col1 )
----

query I rowsort
SELECT - ( + - 62 ) FROM tab0 cor0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT CAST( col1 AS SIGNED ) col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3844
SELECT CAST ( col1 AS INTEGER ) col0 FROM tab2 cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 24 col2 FROM tab0 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3846
SELECT - SUM( + 89 ) DIV - - MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3846
SELECT - SUM ( + 89 ) / - - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3848
SELECT ALL + CAST( NULL AS DECIMAL ) * + 29 * - MIN( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT ALL + CAST ( NULL AS REAL ) * + 29 * - MIN ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 39 ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3850
SELECT - CAST( NULL AS DECIMAL ) * - - SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3850
SELECT - CAST ( NULL AS REAL ) * - - SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col1 FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 20 * - 49 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( + - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3855
SELECT + COUNT( * ), + ( + + 51 ) AS col0 FROM tab2
----
3
51

skipif mysql # not compatible
query II rowsort label-3855
SELECT + COUNT ( * ), + ( + + 51 ) AS col0 FROM tab2
----
3
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3856
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3856
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + + col1 - 51 col1 FROM tab0
----
-111
-131
-51

query I rowsort
SELECT DISTINCT col0 * + 99 + + + col1 FROM tab2 AS cor0
----
4605
6413
7492

query I rowsort
SELECT + 70 * + 13 FROM tab2 AS cor0
----
910
910
910

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT ALL - MIN( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3860
SELECT ALL - MIN ( ALL 51 ) AS col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3861
SELECT ALL + + CAST( + ( COUNT( * ) ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + + CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + 62 + + + col0 FROM tab0 AS cor0
----
149
159
77

query I rowsort
SELECT DISTINCT - 89 AS col0 FROM tab1
----
-89

query III rowsort
SELECT * FROM tab0 WHERE + - 3 IS NULL
----

query II rowsort
SELECT ALL 21 + - col0 AS col2, 19 AS col2 FROM tab2
----
-25
19
-43
19
-54
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - MIN( col1 ) * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - col1 - - col0 * + col0 AND + col1 * - 49
----
-150

skipif mysql # not compatible
query I rowsort label-3866
SELECT - MIN ( col1 ) * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN - col1 - - col0 * + col0 AND + col1 * - 49
----
-150

onlyif mysql # DIV for integer division: 
query I rowsort label-3867
SELECT DISTINCT + 22 DIV + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + 22 / + col2 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL SUM( ALL col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL SUM ( ALL col2 ) FROM tab1
----
223

query I rowsort
SELECT DISTINCT + 75 + - 66 AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT col1 * - 73 * + col2 FROM tab0
----
-15330
-277911
-7227

query I rowsort
SELECT 24 - + - col2 AS col2 FROM tab2
----
47
64
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT - COUNT( * ) - + COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-3872
SELECT - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT ALL col2 DIV + + col2 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL col2 / + + col2 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3874
SELECT - CAST( NULL AS SIGNED ), 44 DIV + + COUNT( * ) AS col0 FROM tab0 cor0
----
NULL
14

skipif mysql # not compatible
query II rowsort label-3874
SELECT - CAST ( NULL AS INTEGER ), 44 / + + COUNT ( * ) AS col0 FROM tab0 cor0
----
NULL
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * ( + col0 ) / col2 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + ( + - col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + - col0 <> - col1
----

query I rowsort
SELECT + 90 FROM tab0 WHERE NOT - 89 IN ( + col1 )
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL 6 * COUNT( * ) FROM tab0 WHERE NOT + col0 NOT IN ( 10 + - col1 * - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL 6 * COUNT ( * ) FROM tab0 WHERE NOT + col0 NOT IN ( 10 + - col1 * - col1 )
----
0

query I rowsort
SELECT - col0 + 25 AS col2 FROM tab1
----
-26
-60
-66

query I rowsort
SELECT + col1 + + 96 AS col0 FROM tab2
----
147
163
173

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT MAX( col0 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3882
SELECT MAX ( col0 ) FROM tab0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT CAST( NULL AS SIGNED ) * + col1 + - col0 FROM tab0 WHERE col2 * 97 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT CAST ( NULL AS INTEGER ) * + col1 + - col0 FROM tab0 WHERE col2 * 97 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT 46 - ( 75 + + COUNT( * ) ) col2 FROM tab0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3884
SELECT DISTINCT 46 - ( 75 + + COUNT ( * ) ) col2 FROM tab0
----
-32

query I rowsort
SELECT - 97 * - col0 + 52 FROM tab2
----
4514
6260
7327

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT - MAX( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT - MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ( ( 74 ) ) AS col2 FROM tab1 WHERE NOT col0 BETWEEN 83 * col1 AND + col0
----
74
74
74

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT ( 73 ) <= col0 * ( + 51 * 88 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 * 82 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 8 + - 17 * + col0 FROM tab2
----
-1096
-1283
-790

query I rowsort
SELECT + 60 + - 82 FROM tab0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT DISTINCT CAST( + 37 AS SIGNED ) * 97 FROM tab0
----
3589

skipif mysql # not compatible
query I rowsort label-3892
SELECT DISTINCT CAST ( + 37 AS INTEGER ) * 97 FROM tab0
----
3589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT + CAST( col1 AS SIGNED ) * 59 - col2 * CAST( 49 AS SIGNED ) FROM tab2
----
1111
1882
2583

skipif mysql # not compatible
query I rowsort label-3893
SELECT + CAST ( col1 AS INTEGER ) * 59 - col2 * CAST ( 49 AS INTEGER ) FROM tab2
----
1111
1882
2583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + col0 col0 FROM tab0
----
720
957
9700

query I rowsort
SELECT ALL - col2 * - 94 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT ALL + col0 * - 95 FROM tab2
----
-4370
-6080
-7125

query I rowsort
SELECT 66 + - col1 AS col1 FROM tab2
----
-1
-11
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) >= - col1
----
0

skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) >= - col1
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 52 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3900
SELECT col1 AS col1 FROM tab1 WHERE NOT col0 * - 80 + + 39 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3900
SELECT col1 AS col1 FROM tab1 WHERE NOT col0 * - 80 + + 39 * + CAST ( NULL AS REAL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL COUNT( - 10 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL COUNT ( - 10 ) + COUNT ( * ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - col2 * - CAST( ( - 83 ) * col0 AS SIGNED ) FROM tab0
----
-58515
-72210
-797049

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - col2 * - CAST ( ( - 83 ) * col0 AS INTEGER ) FROM tab0
----
-58515
-72210
-797049

query I rowsort
SELECT DISTINCT + col0 - - 47 AS col2 FROM tab2
----
111
122
93

query I rowsort
SELECT - col2 * + col2 + 56 AS col2 FROM tab1 cor0 WHERE + col1 IS NOT NULL
----
-3425
-4568
-9160

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3905
SELECT COUNT( * ) DIV + COUNT( * ) + + 99 AS col0 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3905
SELECT COUNT ( * ) / + COUNT ( * ) + + 99 AS col0 FROM tab2 AS cor0
----
100

query I rowsort
SELECT ( - col2 ) * + col0 + - 84 FROM tab2 AS cor0
----
-1142
-2644
-4434

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT 20 * - 23 + COUNT( * ) FROM tab1
----
-457

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT 20 * - 23 + COUNT ( * ) FROM tab1
----
-457

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( + 58 ) = + 25
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / + 93 >= 59 + - col0
----
85
5
59
91
47
68

query I rowsort
SELECT ALL 45 + + col1 FROM tab2
----
112
122
96

query I rowsort
SELECT DISTINCT - ( - col2 ) + 88 FROM tab1
----
147
156
184

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) NOT IN ( 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT ALL + - COUNT( * ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3913
SELECT ALL + - COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT - col0 - - 33 DIV 71 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3914
SELECT - col0 - - 33 / 71 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT ALL col2 + 18 FROM tab0 AS cor0
----
117
28
65

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL IN ( 55 )
----

query I rowsort
SELECT DISTINCT - col2 - ( - col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT - col0 * + col2 - + col2 * - 80 AS col1 FROM tab1 AS cor0
----
-295
-748
2784

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3920
SELECT ALL - AVG ( ALL - 62 ) - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - AVG ( ALL - 62 ) - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3921
SELECT DISTINCT + + col2 DIV 59 - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-3921
SELECT DISTINCT + + col2 / 59 - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT DISTINCT + 91 * col0 AS col1 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3923
SELECT DISTINCT col0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT col0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 42 col0 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT + COUNT( * ) FROM tab1 WHERE NOT col0 * 13 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3925
SELECT + COUNT ( * ) FROM tab1 WHERE NOT col0 * 13 < ( NULL )
----
0

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 AND ( - 3 )
----

query I rowsort
SELECT ALL col0 * - 44 AS col2 FROM tab1
----
-2244
-3740
-4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3928
SELECT ALL - col2 * col0 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) BETWEEN - col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3928
SELECT ALL - col2 * col0 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * - + col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT ALL - 9 * - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL - 9 * - COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3932
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL = - 25
----

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL = - 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT AVG ( - 24 ) FROM tab1 AS cor0 WHERE 22 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT AVG ( - 24 ) FROM tab1 AS cor0 WHERE 22 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * + + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( 73 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( 73 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT + 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3937
SELECT CAST( - + 51 AS SIGNED ) FROM tab1
----
-51
-51
-51

skipif mysql # not compatible
query I rowsort label-3937
SELECT CAST ( - + 51 AS INTEGER ) FROM tab1
----
-51
-51
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3938
SELECT DISTINCT + 91 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( + ( col0 ) + col2 * col1 ) AND - CAST( NULL AS DECIMAL ) * - col1
----

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT + 91 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( + ( col0 ) + col2 * col1 ) AND - CAST ( NULL AS REAL ) * - col1
----

query I rowsort
SELECT ALL ( 92 ) FROM tab0 AS cor0
----
92
92
92

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col2
----

query I rowsort
SELECT DISTINCT - 96 AS col0 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3942
SELECT + + CAST( NULL AS SIGNED ) * + - 49 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3942
SELECT + + CAST ( NULL AS INTEGER ) * + - 49 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 66 AS col1, col0 col1 FROM tab1 AS cor0
----
66
51
66
85
66
91

query I rowsort
SELECT + 50 * + col2 + - col2 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT 12 + - + col0 - + col0 FROM tab1 cor0
----
-158
-170
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + - col2 )
----

query I rowsort
SELECT - col1 + - 34 + - + ( + 57 ) + ( + col0 - col2 ) AS col0 FROM tab1 AS cor0
----
-115
-150
-70

query II rowsort
SELECT DISTINCT + 51, - col2 * - col2 AS col1 FROM tab2 AS cor0
----
51
1600
51
3364
51
529

query I rowsort
SELECT ALL col0 + + col1 - + ( - col2 ) * col1 AS col0 FROM tab1
----
1409
3334
385

query I rowsort
SELECT ALL 74 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3952
SELECT col0 FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND CAST( - 88 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3952
SELECT col0 FROM tab0 WHERE - col1 NOT BETWEEN ( NULL ) AND CAST ( - 88 AS INTEGER )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 56 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + 1 ) / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - ( 90 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 96 * - - col2 + - col1 NOT BETWEEN - col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3957
SELECT DISTINCT - SUM( + col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3957
SELECT DISTINCT - SUM ( + col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 88 NOT IN ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + col1 AS col0 FROM tab2 WHERE - col0 / col0 IS NULL
----

query I rowsort
SELECT + 90 * 33 + ( - 86 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT COUNT( * ) + + 67 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3961
SELECT COUNT ( * ) + + 67 FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL SUM( DISTINCT - col0 ) AS col1 FROM tab0 WHERE NOT + col1 + + + col0 / + col0 / + col0 - 62 NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL SUM ( DISTINCT - col0 ) AS col1 FROM tab0 WHERE NOT + col1 + + + col0 / + col0 / + col0 - 62 NOT IN ( col2 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col1 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 43 * 32 FROM tab2 cor0
----
1376
1376
1376

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - - 97 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - - 97 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + 73 * + MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
-1679

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + 73 * + MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1679

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( 4 )
----

query I rowsort
SELECT ALL col0 * - ( - + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT SUM( DISTINCT - col2 ) * - COUNT( * ) FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-3969
SELECT SUM ( DISTINCT - col2 ) * - COUNT ( * ) FROM tab2
----
363

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT col1 * + - col1 * + col0 FROM tab2
----
-119646
-336675
-379456

onlyif mysql # DIV for integer division: 
query I rowsort label-3972
SELECT DISTINCT + col1 DIV - 94 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT + col1 / - 94 AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT col2 DIV - 66 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT col2 / - 66 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT - 46 + - COUNT( * ) FROM tab1 WHERE NOT ( NOT - col1 + - + CAST( NULL AS SIGNED ) / - col2 * col1 + - 80 <> - ( col0 ) )
----
-46

skipif mysql # not compatible
query I rowsort label-3974
SELECT - 46 + - COUNT ( * ) FROM tab1 WHERE NOT ( NOT - col1 + - + CAST ( NULL AS INTEGER ) / - col2 * col1 + - 80 <> - ( col0 ) )
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT COUNT( DISTINCT - - 24 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3975
SELECT COUNT ( DISTINCT - - 24 ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ALL + col0 * - col2 * - 95 FROM tab0
----
66975
82650
912285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80, + 23 col2 FROM tab1
----
80
23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3979
SELECT ALL COUNT( * ), 55 AS col1 FROM tab1
----
3
55

skipif mysql # not compatible
query II rowsort label-3979
SELECT ALL COUNT ( * ), 55 AS col1 FROM tab1
----
3
55

query I rowsort
SELECT DISTINCT 40 * - 18 + col0 AS col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN ( col2 * col0 * + - col0 - - 21 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 22 * - ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + ( + 44 ) * col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 28 AS col0 FROM tab1 AS cor0
----
-1316
-140
-392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 0, col0 col0 FROM tab0 AS cor0
----
0
15
0
87
0
97

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + col2 NOT IN ( - col2 + col2 * + col2 / 13 )
----

query I rowsort
SELECT + - 87 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col1 ) > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 6 NOT BETWEEN 58 + 31 AND + 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - - COUNT( DISTINCT 9 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - - COUNT ( DISTINCT 9 ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3989
SELECT ALL + 0 + + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL + 0 + + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3990
SELECT DISTINCT + + MIN( + col2 ) col1, - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
10
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3990
SELECT DISTINCT + + MIN ( + col2 ) col1, - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
10
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3991
SELECT + CAST( NULL AS DECIMAL ) * + + col1 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3991
SELECT + CAST ( NULL AS REAL ) * + + col1 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + ( + col2 + - ( col0 + 6 ) ) * col2 FROM tab0 WHERE + + 44 NOT BETWEEN col2 + - 68 + - - col1 - - + 24 AND + col1
----
-297
-820
1269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3993
SELECT ALL col0 / + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3993
SELECT ALL col0 / + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 22 col0 FROM tab1
----
27
36
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3995
SELECT - COUNT( * ) FROM tab0 WHERE + 16 < ( + 51 * col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-3995
SELECT - COUNT ( * ) FROM tab0 WHERE + 16 < ( + 51 * col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT - COUNT( * ) + + MIN( + 64 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-3996
SELECT - COUNT ( * ) + + MIN ( + 64 ) FROM tab2 AS cor0
----
61

query I rowsort
SELECT - col2 * + + 98 AS col1 FROM tab0 cor0
----
-4606
-9702
-980

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

query I rowsort
SELECT - col0 * 64 * - col1 FROM tab1
----
27200
273728
45696

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT ALL SUM( - 29 ) AS col0 FROM tab1 WHERE NOT ( NOT + col2 <> ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL SUM ( - 29 ) AS col0 FROM tab1 WHERE NOT ( NOT + col2 <> ( NULL ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4001
SELECT COUNT( * ) DIV - - 54 FROM tab1 WHERE + 47 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4001
SELECT COUNT ( * ) / - - 54 FROM tab1 WHERE + 47 IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT COUNT( * ) - - 15 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT COUNT ( * ) - - 15 FROM tab0
----
18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 58 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col0 * + 5
----

query I rowsort
SELECT DISTINCT + 64 + + + 77 AS col0 FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL ( + 99 ) AS col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT DISTINCT 5 * + ( 98 ) AS col0 FROM tab1 AS cor0
----
490

query I rowsort
SELECT - 56 AS col0 FROM tab0 cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 19 + + col1 <= + - ( - 68 )
----

query I rowsort
SELECT DISTINCT - + col1 * + - 91 + - col2 FROM tab0 AS cor0
----
-8
1901
7324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT col2 - - + 82 + - + CAST( NULL AS SIGNED ) / + 25 * - + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4012
SELECT col2 - - + 82 + - + CAST ( NULL AS INTEGER ) / + 25 * - + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 63, 49 AS col2 FROM tab0
----
63
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 86 - 15 * + + col0 * - col0 + col1 <= - 47 * 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 76 * 92 FROM tab1
----
6992
6992
6992

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 NOT IN ( + col2 * - 88 * col1 )
----

query I rowsort
SELECT + 43 * - - 98 * col2 AS col2 FROM tab1
----
248626
286552
404544

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4018
SELECT DISTINCT * FROM tab1 WHERE CAST( + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4018
SELECT DISTINCT * FROM tab1 WHERE CAST ( + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT + ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4019
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( + col2 ) * - 70 AS col2 FROM tab1
----
4130
4760
6720

onlyif mysql # DIV for integer division: 
query I rowsort label-4021
SELECT DISTINCT - col0 DIV col1 + 14 FROM tab1
----
-3
11
13

skipif mysql # not compatible
query I rowsort label-4021
SELECT DISTINCT - col0 / col1 + 14 FROM tab1
----
-3
11
13

query II rowsort
SELECT DISTINCT - 72 AS col1, col1 AS col1 FROM tab1
----
-72
14
-72
47
-72
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4023
SELECT 44 + 48 + + 45 DIV col0 AS col2 FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-4023
SELECT 44 + 48 + + 45 / col0 AS col2 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + 21 * + 49 * ( - col2 ) AS col1 FROM tab2 AS cor0
----
-23667
-41160
-59682

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4025
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( 11 AS SIGNED ) + - col0 - + 78 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4025
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( 11 AS INTEGER ) + - col0 - + 78 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 91 * + col0 + + col1 FROM tab1 AS cor0
----
4655
7740
8328

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - 26 + + 54 + + 20 - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 26 + + 54 + + 20 - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col0 + 44 + - col1 * - col1 FROM tab1 cor0
----
154
2344
291

query I rowsort
SELECT + 88 * - 48 - 62 + - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-4337
-4353
-4363

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4030
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4030
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL col0 + - col2 + col0 AS col2 FROM tab0
----
-17
164
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT - MIN( 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-4032
SELECT - MIN ( 73 ) FROM tab0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4033
SELECT ALL + SUM( - ( - - 74 ) ) * + - CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + SUM ( - ( - - 74 ) ) * + - CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT COUNT( ALL + - 22 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT COUNT ( ALL + - 22 ) FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - 49, col0 AS col1 FROM tab0 cor0
----
-49
15
-49
87
-49
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 / + ( - col1 ) )
----

query I rowsort
SELECT + + 61 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT SUM( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4040
SELECT SUM ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT - 6 * col0 * + - 53 + - + 89 AS col2 FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) IS NULL
----
27577
30757
4681

query I rowsort
SELECT DISTINCT - ( 16 ) AS col2 FROM tab0
----
-16

query II rowsort
SELECT + ( - + col0 ), ( 79 ) AS col1 FROM tab1
----
-51
79
-85
79
-91
79

query I rowsort
SELECT ALL + ( + 35 ) AS col1 FROM tab2
----
35
35
35

query I rowsort
SELECT - col1 * + 60 FROM tab0
----
-1260
-4860
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * - 81 col2 FROM tab1
----
-396576
-406215
-501228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * + col0 col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4048
SELECT DISTINCT COUNT( * ) DIV + 84 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT COUNT ( * ) / + 84 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT col0 + + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4050
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 80 IN ( + col2 - + - 98, - 84 + - col0 )
----

query I rowsort
SELECT - col2 * - + 68 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT DISTINCT 56 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT DISTINCT - + COUNT( * ) * COUNT( * ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT - + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 WHERE col1 IS NOT NULL
----
-9

query II rowsort
SELECT DISTINCT col0 + + col0, col2 FROM tab2
----
128
40
150
58
92
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE - col1 - col1 - + 38 * col2 NOT BETWEEN ( - col2 ) AND NULL
----
46
64
75

query I rowsort
SELECT ALL - 83 + + + 25 FROM tab0
----
-58
-58
-58

query II rowsort
SELECT 42 AS col2, ( - col1 ) * 95 FROM tab1 AS cor0
----
42
-1330
42
-4465
42
-475

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4060
SELECT ALL - - col2 DIV + CAST( + col1 AS SIGNED ) + col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL - - col2 / + CAST ( + col1 AS INTEGER ) + col2 - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 5 + + col1 - + 50 * - 50 FROM tab1 AS cor0 WHERE col0 * col1 * + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + - col0 NOT IN ( + col1, + 45 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - + col2, - col0 + 77, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4064
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <= - - 44 + - ( + + 66 )
----
0

skipif mysql # not compatible
query I rowsort label-4064
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <= - - 44 + - ( + + 66 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT + + COUNT( * ) * 97 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-4065
SELECT + + COUNT ( * ) * 97 FROM tab1 AS cor0
----
291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4066
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4067
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4067
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= + CAST ( - col2 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 47 + - 79 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4069
SELECT ALL + + col1 / - - CAST( NULL AS SIGNED ) + - col1 * + ( + col0 ) FROM tab2 AS cor0 WHERE + CAST( + - col1 AS DECIMAL ) / + col2 + - + col0 * + 92 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL + + col1 / - - CAST ( NULL AS INTEGER ) + - col1 * + ( + col0 ) FROM tab2 AS cor0 WHERE + CAST ( + - col1 AS REAL ) / + col2 + - + col0 * + 92 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + - 45 ) * - col1 FROM tab0
----
3645
45
945

query II rowsort
SELECT 60, - ( - 96 ) AS col0 FROM tab1
----
60
96
60
96
60
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL > - ( 32 ) + - col0 + + col2 ) )
----

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 68, - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-68
-141
-68
-142
-68
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4076
SELECT ALL + CAST( - - ( - 49 ) AS SIGNED ) FROM tab2 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-4076
SELECT ALL + CAST ( - - ( - 49 ) AS INTEGER ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 35 + COUNT( * ) AS col2 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-4077
SELECT - 35 + COUNT ( * ) AS col2 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT COUNT( ALL + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT COUNT ( ALL + - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4079
SELECT DISTINCT + CAST( NULL AS SIGNED ) + COUNT( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + COUNT ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col2 + col2 AS col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT ALL - AVG ( + ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL - AVG ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 68 FROM tab2 cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL - 34 * 75 + - ( - + ( - - MAX( - + col1 ) ) ) FROM tab0 AS cor0
----
-2551

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL - 34 * 75 + - ( - + ( - - MAX ( - + col1 ) ) ) FROM tab0 AS cor0
----
-2551

query I rowsort
SELECT ALL col2 * - 48 FROM tab0
----
-2256
-4752
-480

query I rowsort
SELECT DISTINCT 7 * - 58 FROM tab2
----
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT 56 - COUNT( * ) AS col1 FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4087
SELECT 56 - COUNT ( * ) AS col1 FROM tab0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT - COUNT( * ) - - MAX( + col1 ) + + ( + + 2 ) * + 31 FROM tab1 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-4088
SELECT - COUNT ( * ) - - MAX ( + col1 ) + + ( + + 2 ) * + 31 FROM tab1 AS cor0
----
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * col0 col0 FROM tab1 AS cor0
----
4368
510
765

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT 8 DIV col1 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT 8 / col1 AS col1 FROM tab2
----
0

query I rowsort
SELECT 61 + - col1 AS col1 FROM tab2 cor0 WHERE NOT - 86 * - 33 * 93 * + col2 IS NULL
----
-16
-6
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - + col2 AS col2, col1 col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

query I rowsort
SELECT + 77 FROM tab0 cor0 WHERE NOT 92 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN + + col2 AND - 26
----

query II rowsort
SELECT 88 * + col1 * + 73 * col2 * + + col1, 73 AS col0 FROM tab2
----
1523515840
73
1672565488
73
384302952
73

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 > - + col0 + - + ( - ( - + col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT 29 FROM tab0 WHERE NOT CAST( + 70 AS SIGNED ) IS NULL
----
29
29
29

skipif mysql # not compatible
query I rowsort label-4099
SELECT 29 FROM tab0 WHERE NOT CAST ( + 70 AS INTEGER ) IS NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT 29 * COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4100
SELECT 29 * COUNT ( * ) FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT + - 17 * CAST( NULL AS SIGNED ) + - 67 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT + - 17 * CAST ( NULL AS INTEGER ) + - 67 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col1 + + 42 * - - col0 + col0 ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT ( + MIN( + - 30 ) ) FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT ( + MIN ( + - 30 ) ) FROM tab0 cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4105
SELECT ALL - COUNT( * ) DIV - 77 + + + COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL - COUNT ( * ) / - 77 + + + COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + + 56 - - 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 750c11171f0669c2fa0d412d84db5fa1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + + + col0 col1 FROM tab2
----
21
3
32

query I rowsort
SELECT DISTINCT 18 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT COUNT( * ) * 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
594

skipif mysql # not compatible
query I rowsort label-4109
SELECT COUNT ( * ) * 66 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
594

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 36 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col1, 84 * col1 * - + col2 FROM tab1 AS cor0
----
14
-112896
47
-268464
5
-24780

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT - 26 - + COUNT( - - col0 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4112
SELECT - 26 - + COUNT ( - - col0 ) FROM tab2 AS cor0
----
-29

query I rowsort
SELECT DISTINCT - col1 - 6 FROM tab1 AS cor0
----
-11
-20
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + SUM( ALL + 9 ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + SUM ( ALL + 9 ) AS col0 FROM tab0 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT + + SUM( - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT + + SUM ( - col1 ) FROM tab0 AS cor0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE ( NULL IS NULL )
----
46
64
75

query I rowsort
SELECT 2 + - 99 + col0 FROM tab1
----
-12
-46
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col1 BETWEEN + - 14 + - ( + 88 ) AND NULL
----

query I rowsort
SELECT DISTINCT - 87 * 52 FROM tab2
----
-4524

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT + - CAST( - ( + col2 ) AS SIGNED ) * + + 56 col2 FROM tab0 AS cor0
----
2632
5544
560

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4120
SELECT + - CAST ( - ( + col2 ) AS INTEGER ) * + + 56 col2 FROM tab0 AS cor0
----
2632
5544
560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4121
SELECT ALL + - COUNT( ALL + ( - - CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL + - COUNT ( ALL + ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 FROM tab1 WHERE NOT - + col2 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT 14 DIV + 98 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4123
SELECT 14 / + 98 AS col0 FROM tab0
----
0
0
0

query II rowsort
SELECT - - col0 AS col0, + 63 AS col2 FROM tab0 AS cor0
----
15
63
87
63
97
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4125
SELECT + + CAST( - 62 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-4125
SELECT + + CAST ( - 62 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - - ( - - col0 ) ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= - 78
----

query I rowsort
SELECT DISTINCT 35 * - col1 FROM tab2 AS cor0
----
-1785
-2345
-2695

query I rowsort
SELECT DISTINCT - 12 * 15 + col0 FROM tab0 AS cor0
----
-165
-83
-93

query I rowsort
SELECT - col1 + - + col2 - - col0 AS col0 FROM tab1 AS cor0
----
-24
-59
21

query II rowsort
SELECT - col2, col1 FROM tab2 cor0 WHERE NOT col0 + + 31 + 22 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 * 99 col1 FROM tab2 AS cor0
----
-4998
-6566
-7546

query II rowsort
SELECT - 8, ( + - 2 ) + - col2 AS col1 FROM tab2
----
-8
-25
-8
-42
-8
-60

query I rowsort
SELECT DISTINCT + 81 + 53 FROM tab0
----
134

query I rowsort
SELECT - 91 * + + col0 AS col2 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT + 57 * + - 49 FROM tab0
----
-2793
-2793
-2793

query I rowsort
SELECT DISTINCT col0 * - col1 * 44 AS col0 FROM tab0
----
-4268
-53460
-80388

query I rowsort
SELECT 60 * - + ( - + col1 ) FROM tab2
----
3060
4020
4620

query II rowsort
SELECT - 22 AS col0, + 43 + - - 83 FROM tab0
----
-22
126
-22
126
-22
126

query I rowsort
SELECT - col0 * + 25 AS col2 FROM tab1
----
-1275
-2125
-2275

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT + 72 * + COUNT( + 10 ) col0 FROM tab2 AS cor0
----
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4141
SELECT + 72 * + COUNT ( + 10 ) col0 FROM tab2 AS cor0
----
216

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT + col1 DIV 63 + - ( col1 ) * - col2 + col1 FROM tab1
----
1358
300
3243

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT + col1 / 63 + - ( col1 ) * - col2 + col1 FROM tab1
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT - col0 + - - CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT - col0 + - - CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 - 6 FROM tab0 cor0
----
4
41
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ( + MAX( ALL + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( + MAX ( ALL + col0 ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - col1 * - + col2 - - 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 + + 89 * + + 73 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + 67 ) - + + col0 col2 FROM tab1 AS cor0
----
-18
-24
16

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <> + col1 * ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ( + ( - MIN( 84 ) ) ) FROM tab0 cor0 WHERE - 68 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT ( + ( - MIN ( 84 ) ) ) FROM tab0 cor0 WHERE - 68 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + ( - + 15 ) AS col2 FROM tab1
----
-15

query I rowsort
SELECT ALL + - col1 FROM tab1 WHERE NOT - 43 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, col0 * ( col0 ) AS col0 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL - COUNT( * ) * - - MIN( ALL - col1 ) AS col2 FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL - COUNT ( * ) * - - MIN ( ALL - col1 ) AS col2 FROM tab1 cor0
----
141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT ALL + col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL + col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT COUNT( 95 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4156
SELECT COUNT ( 95 ) col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col1 + + col0 + - col1 * col1 + - col1 / - col2
----

query I rowsort
SELECT - 13 AS col0 FROM tab1 cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 * ( - 33 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT + col1 * 35 DIV - col0 AS col1 FROM tab2 AS cor0
----
-31
-38
-42

skipif mysql # not compatible
query I rowsort label-4160
SELECT + col1 * 35 / - col0 AS col1 FROM tab2 AS cor0
----
-31
-38
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 - + + col2 * - - col1 >= - 10
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4162
SELECT 40 DIV - + col2, 65 col0 FROM tab2 AS cor0
----
-1
65
-1
65
0
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4162
SELECT 40 / - + col2, 65 col0 FROM tab2 AS cor0
----
-1
65
-1
65
0
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT - - col2 * - col0 * + - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4164
SELECT - - col2 * - col0 * + - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4166
SELECT + 38 AS col1, SUM( ALL - - col1 ) * - - COUNT( * ) AS col2 FROM tab0
----
38
309

skipif mysql # not compatible
query II rowsort label-4166
SELECT + 38 AS col1, SUM ( ALL - - col1 ) * - - COUNT ( * ) AS col2 FROM tab0
----
38
309

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + MAX( DISTINCT - 12 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4167
SELECT + MAX ( DISTINCT - 12 ) FROM tab2
----
-12

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - col1 ) + - 82 AS col2 FROM tab2
----
-15
-31
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL COUNT( * ) + + ( - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL COUNT ( * ) + + ( - COUNT ( * ) ) FROM tab0
----
0

query I rowsort
SELECT + + ( + 21 ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4172
SELECT DISTINCT + 6 DIV 24 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4172
SELECT DISTINCT + 6 / 24 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4173
SELECT + - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0 WHERE - 52 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4173
SELECT + - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0 WHERE - 52 IS NULL
----

query I rowsort
SELECT ALL - + col2 * - 98 AS col1 FROM tab2 AS cor0
----
2254
3920
5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4175
SELECT col1 * - - CAST( col2 AS SIGNED ) + - + col0 FROM tab0 AS cor0
----
123
2
3792

skipif mysql # not compatible
query I rowsort label-4175
SELECT col1 * - - CAST ( col2 AS INTEGER ) + - + col0 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT col1 DIV + + col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4176
SELECT col1 / + + col2 FROM tab2 cor0
----
1
1
2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 75 BETWEEN - col1 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 93 ) * - 65 + col0 - 88 AS col0 FROM tab0 AS cor0
----
-6036
-6046
-6118

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT - ( + SUM( + col0 ) ) - - MAX( DISTINCT - - col1 ) * + 83 AS col0 FROM tab1 AS cor0
----
3674

skipif mysql # not compatible
query I rowsort label-4179
SELECT - ( + SUM ( + col0 ) ) - - MAX ( DISTINCT - - col1 ) * + 83 AS col0 FROM tab1 AS cor0
----
3674

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * col1 * + ( - col1 ) BETWEEN 27 * + col0 * + + 82 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT - - MAX( ALL - + 86 ) + + + 22 * - 86 FROM tab1 AS cor0
----
-1978

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - - MAX ( ALL - + 86 ) + + + 22 * - 86 FROM tab1 AS cor0
----
-1978

query I rowsort
SELECT ALL col0 + - 3 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
12
84
94

query I rowsort
SELECT - col2 + ( - col1 ) + - 63 FROM tab0 AS cor0
----
-163
-191
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT + 81 * - + SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT + 81 * - + SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT DISTINCT col1 DIV + 57 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT col1 / + 57 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4186
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4186
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4187
SELECT + + COUNT( * ) AS col1, 0 FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4187
SELECT + + COUNT ( * ) AS col1, 0 FROM tab1 AS cor0
----
3
0

query I rowsort
SELECT ALL + ( + + col1 ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT CAST( NULL AS SIGNED ) + - - col1 FROM tab1 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-4189
SELECT CAST ( NULL AS INTEGER ) + - - col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT ALL COUNT( DISTINCT + + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL COUNT ( DISTINCT + + col0 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT + 77 DIV - col2 * col1 DIV + + col1 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT + 77 / - col2 * col1 / + + col1 FROM tab0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4192
SELECT + + col0 DIV + - 84 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4192
SELECT + + col0 / + - 84 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT ALL - 98 * + 44 FROM tab0 AS cor0
----
-4312
-4312
-4312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4195
SELECT 48 col2, CAST( NULL AS SIGNED ) FROM tab1
----
48
NULL
48
NULL
48
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4195
SELECT 48 col2, CAST ( NULL AS INTEGER ) FROM tab1
----
48
NULL
48
NULL
48
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT COUNT( * ) * + 28 AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT COUNT ( * ) * + 28 AS col1 FROM tab1
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4197
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / - 28 - - - CAST( + + col2 AS SIGNED ) IS NULL OR NOT - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4197
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 / - 28 - - - CAST ( + + col2 AS INTEGER ) IS NULL OR NOT - 72 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4198
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col2 > NULL
----

skipif mysql # not compatible
query III rowsort label-4198
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 > NULL
----

query I rowsort
SELECT - 90 + - + col0 AS col2 FROM tab1 AS cor0
----
-141
-175
-181

query I rowsort
SELECT + col0 + - - col0 FROM tab0 cor0
----
174
194
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( + col1 * - - ( + 64 ) * col0, 29 + - col1, - - ( + col2 ) * - - 39, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 80 <> NULL
----

query I rowsort
SELECT ( + 56 ) FROM tab0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4205
SELECT DISTINCT COUNT( * ) + - + COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4205
SELECT DISTINCT COUNT ( * ) + - + COUNT ( * ) col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT - MAX( - - 67 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-4207
SELECT - MAX ( - - 67 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT ( 34 ) DIV + col1 + + col1 AS col1 FROM tab1
----
11
16
47

skipif mysql # not compatible
query I rowsort label-4208
SELECT ( 34 ) / + col1 + + col1 AS col1 FROM tab1
----
11
16
47

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4210
SELECT ALL 67 DIV + col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL 67 / + col1 FROM tab2 AS cor0
----
0
1
1

query II rowsort
SELECT ALL - 39, col0 FROM tab1 AS cor0
----
-39
51
-39
85
-39
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > + col2 * - + col0
----

query I rowsort
SELECT ALL ( + col1 ) * - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT + COUNT( * ) FROM tab0, tab0 AS cor0 WHERE + 75 + 54 * + 63 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4214
SELECT + COUNT ( * ) FROM tab0, tab0 AS cor0 WHERE + 75 + 54 * + 63 IS NULL
----
0

query I rowsort
SELECT 81 * - - col1 FROM tab2
----
4131
5427
6237

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4216
SELECT + 68 DIV COUNT( * ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4216
SELECT + 68 / COUNT ( * ) AS col0 FROM tab1
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4217
SELECT DISTINCT + - 55 AS col1 FROM tab1 WHERE - - col2 <= + + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT + - 55 AS col1 FROM tab1 WHERE - - col2 <= + + col2 + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT + ( ( + + 46 ) ) + 69 IS NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL - 76 DIV - + col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL - 76 / - + col1 FROM tab1
----
1
15
5

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / - col1 + - col2 * - - col0 / + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT ALL - - COUNT( * ) AS col2 FROM tab0 WHERE NOT - col1 + + + 99 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - - COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col1 + + + 99 + - col2 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4223
SELECT DISTINCT MAX( - col0 ), 6 AS col1 FROM tab2 AS cor0
----
-46
6

skipif mysql # not compatible
query II rowsort label-4223
SELECT DISTINCT MAX ( - col0 ), 6 AS col1 FROM tab2 AS cor0
----
-46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT - - ( - - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4224
SELECT - - ( - - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - - 47 + - + col0, + ( col0 ) FROM tab0 cor0
----
-40
87
-50
97
32
15

query I rowsort
SELECT col2 + - + col0 AS col1 FROM tab1
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4227
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * ( 26 ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * ( 26 ) * + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 92 NOT BETWEEN col2 AND NULL
----
97
1
99

query I rowsort
SELECT - col0 + 8 FROM tab1
----
-43
-77
-83

query I rowsort
SELECT ALL - col1 + - + 5 FROM tab1
----
-10
-19
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( * ) + 11 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( * ) + 11 FROM tab2
----
14

query I rowsort
SELECT ALL ( + 86 ) + + - col0 FROM tab1
----
-5
1
35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * + - 73 / col1 + col2 BETWEEN - - col2 / 6 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT DISTINCT + col1 + - col0 + - col1 + 21 * col1 + col2 + 12 + + - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1740
35
376

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + col1 + - col0 + - col1 + 21 * col1 + col2 + 12 + + - col1 / col0 AS col1 FROM tab0 AS cor0
----
1740
35
376

query I rowsort
SELECT - col1 + - - col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( 0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4236
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( 0 ) IS NULL
----
3

query I rowsort
SELECT ALL + + col1 * + - col0 + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-1920
-2697
-9700

query I rowsort
SELECT + col2 * - - col0 * + - col1 + - - 56 AS col1 FROM tab2 cor0
----
-197064
-291394
-53902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT + - CAST( + ( + - col0 ) AS SIGNED ) * - + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-4239
SELECT + - CAST ( + ( + - col0 ) AS INTEGER ) * - + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 70 AS col2, col2 col0 FROM tab0 AS cor0
----
70
10
70
47
70
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4241
SELECT ALL col1 AS col0, CAST( NULL AS SIGNED ) * - col0 col1 FROM tab2 cor0 WHERE NOT NULL >= ( - col0 + - 24 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4241
SELECT ALL col1 AS col0, CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2 cor0 WHERE NOT NULL >= ( - col0 + - 24 )
----

query I rowsort
SELECT + - ( + - col0 ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - 28 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / + col0 - - col1 + + col1 IS NOT NULL
----

query I rowsort
SELECT + 53 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL + MIN( col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + MIN ( col1 ) AS col2 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT + MIN( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + MIN ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT - + 31 * - col2 FROM tab1 AS cor0
----
1829
2108
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT DISTINCT + col1 * + - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT DISTINCT + col1 * + - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 28 NOT BETWEEN + 25 + - 83 + + col1 - col2 AND - + 65
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4252
SELECT DISTINCT + 43 * col0 + col1 + + col1 DIV + col2 FROM tab0 AS cor0
----
3764
4172
727

skipif mysql # not compatible
query I rowsort label-4252
SELECT DISTINCT + 43 * col0 + col1 + + col1 / + col2 FROM tab0 AS cor0
----
3764
4172
727

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT COUNT( + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT COUNT ( + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT + 43 * - COUNT( * ) FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + 43 * - COUNT ( * ) FROM tab2
----
-129

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT COUNT( * ) DIV + - MIN( + 76 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4255
SELECT DISTINCT COUNT ( * ) / + - MIN ( + 76 ) col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT DISTINCT MIN( + 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT MIN ( + 98 ) FROM tab0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT - 16 DIV - COUNT( col0 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT - 16 / - COUNT ( col0 ) AS col1 FROM tab1
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4258
SELECT 50 DIV + col2 AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4258
SELECT 50 / + col2 AS col0 FROM tab2
----
0
1
2

query I rowsort
SELECT + + 7 * col0 FROM tab2 AS cor0
----
322
448
525

query I rowsort
SELECT 75 * - - 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 70d715e1707342011dec5ac949751558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4261
SELECT CAST( NULL AS SIGNED ) + + + col1 * 85 * - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4261
SELECT CAST ( NULL AS INTEGER ) + + + col1 * 85 * - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 38 + - 34 AS col2 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4263
SELECT DISTINCT SUM( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT SUM ( DISTINCT + - col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4265
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4265
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
NULL

query II rowsort
SELECT ALL + - col0, - col1 AS col2 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL + 9 + - MAX( DISTINCT - + col0 ) * + + 95 AS col1 FROM tab1
----
4854

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + 9 + - MAX ( DISTINCT - + col0 ) * + + 95 AS col1 FROM tab1
----
4854

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT + COUNT( ALL - + col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4268
SELECT + COUNT ( ALL - + col2 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4269
SELECT col0 DIV - col2 - 26 + col2 col1 FROM tab1
----
32
41
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4269
SELECT col0 / - col2 - 26 + col2 col1 FROM tab1
----
32
41
70

onlyif mysql # DIV for integer division: 
query I rowsort label-4270
SELECT - col1 - - col2 DIV - col0 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4270
SELECT - col1 - - col2 / - col0 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT col1 DIV - + 93 - - 22 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4271
SELECT col1 / - + 93 - - 22 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 51 AND - col1 * - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT MAX( DISTINCT - - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4275
SELECT MAX ( DISTINCT - - col1 ) FROM tab2 AS cor0 WHERE NOT + col0 >= col2
----
NULL

query I rowsort
SELECT - - ( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4277
SELECT DISTINCT + CAST( - - col0 AS DECIMAL ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + CAST ( - - col0 AS REAL ) AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - + 5 AS col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4279
SELECT ALL - + COUNT( * ) DIV 65 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - + COUNT ( * ) / 65 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 81 * - + col2 col2 FROM tab1 AS cor0
----
-4779
-5508
-7776

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 91 - + ( col0 ) / - 10 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - 74 * col1 * + 0 AS col0 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col0 * + col1 * ( + 39 ), - col0 AS col2 FROM tab0
----
3783
-97
47385
-15
71253
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col0 >= + 5
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL + MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 50 NOT BETWEEN - 89 * col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT 50 NOT BETWEEN - 89 * col2 AND NULL
----
NULL

query II rowsort
SELECT ALL - col0 * + + col1, + 40 AS col2 FROM tab2 AS cor0
----
-2346
40
-4928
40
-5025
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4287
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4287
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 69 + + + col0 AS col2 FROM tab1 AS cor0
----
120
154
160

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 + + 73 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT - + 76 + + - 50 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4290
SELECT - + 76 + + - 50 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + 65 + + COUNT( * ) + COUNT( ALL + - col0 ) FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-4291
SELECT + 65 + + COUNT ( * ) + COUNT ( ALL + - col0 ) FROM tab2 cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-4292
SELECT ALL 26 + + - 30 + - - col2 DIV 6 * + col2 FROM tab1
----
1532
527
744

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 26 + + - 30 + - - col2 / 6 * + col2 FROM tab1
----
1532
527
744

query I rowsort
SELECT ALL - col2 * + + 43 + + col0 FROM tab0
----
-2006
-343
-4160

query I rowsort
SELECT DISTINCT + 71 + 32 FROM tab2
----
103

query I rowsort
SELECT ALL + 84 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT ALL + 8 DIV + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + 8 / + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
0

query I rowsort
SELECT DISTINCT + 21 * - + 66 * - - 43 AS col0 FROM tab1
----
-59598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4299
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 38 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 38 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT DISTINCT + - 72 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT + - 72 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 87 + + 21 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4302
SELECT MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4304
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 89 + + 72 - - col1 * + 54 + + + col1 - col0 FROM tab0 AS cor0
----
119
1229
4601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT CAST( NULL AS SIGNED ) + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4306
SELECT CAST ( NULL AS INTEGER ) + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, - 81 col2 FROM tab2 cor0
----
51
-81
67
-81
77
-81

query I rowsort
SELECT ALL - ( 64 ) FROM tab1 AS cor0
----
-64
-64
-64

query II rowsort
SELECT - 24 AS col2, 25 AS col1 FROM tab0 AS cor0
----
-24
25
-24
25
-24
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4310
SELECT DISTINCT col0, + CAST( - CAST( - 5 AS SIGNED ) AS SIGNED ) * - - 45 AS col2 FROM tab0 AS cor0
----
15
225
87
225
97
225

skipif mysql # not compatible
query II rowsort label-4310
SELECT DISTINCT col0, + CAST ( - CAST ( - 5 AS INTEGER ) AS INTEGER ) * - - 45 AS col2 FROM tab0 AS cor0
----
15
225
87
225
97
225

query I rowsort
SELECT ALL - + ( - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT - col0 DIV - + 5 FROM tab2
----
12
15
9

skipif mysql # not compatible
query I rowsort label-4313
SELECT - col0 / - + 5 FROM tab2
----
12
15
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 25 IS NULL
----

query I rowsort
SELECT - col1 * - + col2 * + 8 AS col2 FROM tab0 AS cor0
----
1680
30456
792

query I rowsort
SELECT ( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col1 * 47 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col1 * 47 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 58 * - col0 AS col2 FROM tab2 AS cor0
----
-2668
-3712
-4350

query I rowsort
SELECT - - col2 * col1 * - - col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4320
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 83 AS col2 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT + - 78 AS col2 FROM tab1 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4323
SELECT DISTINCT MAX( + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4323
SELECT DISTINCT MAX ( + ( + col0 ) ) AS col2 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col1 FROM tab2 WHERE - - 62 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col1 FROM tab2 WHERE - - 62 IS NULL
----

query I rowsort
SELECT ALL + - col0 - - col2 FROM tab1 WHERE col2 + col2 BETWEEN col2 AND - 49 - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL > + 68 )
----

query I rowsort
SELECT ALL - 71 + col0 FROM tab2
----
-25
-7
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT DISTINCT + ( - COUNT( DISTINCT - - ( col0 ) ) ) col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4328
SELECT DISTINCT + ( - COUNT ( DISTINCT - - ( col0 ) ) ) col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 19 + + col2 AS col0 FROM tab0
----
118
29
66

query I rowsort
SELECT ALL 29 AS col0 FROM tab2 WHERE 85 * - col0 - - 99 >= - 52
----

query I rowsort
SELECT + 10 AS col2 FROM tab1 WHERE NOT - col0 + 44 = NULL
----

query I rowsort
SELECT ALL + col0 * col0 FROM tab0 WHERE 54 + - ( + col0 ) * col0 IS NULL
----

query I rowsort
SELECT - col1 * + 92 AS col2 FROM tab0
----
-1932
-7452
-92

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <> - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT ALL 9 * + COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL 9 * + COUNT ( * ) AS col0 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4336
SELECT DISTINCT * FROM tab2 WHERE 78 * + CAST( col0 AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4336
SELECT DISTINCT * FROM tab2 WHERE 78 * + CAST ( col0 AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 61 + - col1 ) NOT BETWEEN 90 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 / + 96 BETWEEN ( + col0 ) AND - 77 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - 37 + col0 BETWEEN NULL AND - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT COUNT( * ) * - 19 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-4340
SELECT COUNT ( * ) * - 19 FROM tab2
----
-57

query I rowsort
SELECT col0 + 12 AS col1 FROM tab1
----
103
63
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + col2 col2 FROM tab2
----
2624
4547
5969

query I rowsort
SELECT 68 + + 97 AS col2 FROM tab2
----
165
165
165

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4345
SELECT COUNT( * ) + - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT COUNT ( * ) + - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT - SUM( + 23 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4346
SELECT - SUM ( + 23 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col2 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4348
SELECT - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col2 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + COUNT( - 41 ) FROM tab1 WHERE NOT + 4 BETWEEN NULL AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + COUNT ( - 41 ) FROM tab1 WHERE NOT + 4 BETWEEN NULL AND ( col2 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + 24 * + col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( col2 ) FROM tab1 WHERE NOT col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
14
47
5

query I rowsort
SELECT - col0 + ( - ( + col0 ) + ( + 16 ) ) AS col0 FROM tab0
----
-14
-158
-178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 86 ) col1 FROM tab1
----
-86
-86
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 >= NULL
----

query I rowsort
SELECT 90 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 5 + col0 * col2 FROM tab0
----
700
865
9598

onlyif mysql # DIV for integer division: 
query I rowsort label-4358
SELECT ALL - col0 + col2 DIV - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4358
SELECT ALL - col0 + col2 / - col0 AS col1 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT - ( + MAX( ALL + 52 ) ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT - ( + MAX ( ALL + 52 ) ) FROM tab2
----
-52

query I rowsort
SELECT col0 * 93 + + 21 FROM tab1 WHERE NOT col2 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4361
SELECT * FROM tab2 WHERE + ( ( CAST( NULL AS DECIMAL ) ) ) <> ( + col1 / 84 - - 87 )
----

skipif mysql # not compatible
query III rowsort label-4361
SELECT * FROM tab2 WHERE + ( ( CAST ( NULL AS REAL ) ) ) <> ( + col1 / 84 - - 87 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT + 76 DIV + 37 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-4362
SELECT + 76 / + 37 AS col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 IN ( + col0 * - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 98 ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4366
SELECT ALL + CAST( 30 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL + CAST ( 30 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT - COUNT( DISTINCT 62 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4367
SELECT - COUNT ( DISTINCT 62 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 + - 34 FROM tab2 AS cor0 WHERE NOT + col1 - 61 = ( - col1 / 44 )
----
12
30
41

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4370
SELECT + MIN( ALL - 28 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-4370
SELECT + MIN ( ALL - 28 ) FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4371
SELECT MAX( DISTINCT col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4371
SELECT MAX ( DISTINCT col1 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT - col2 + 34 * col1 AS col2 FROM tab0 WHERE NOT ( 33 ) >= + 97 + col0
----
-65
2707
704

query I rowsort
SELECT 22 * col2 * - col2 FROM tab1
----
-101728
-202752
-76582

query I rowsort
SELECT ALL + 64 * + - 78 + + 54 * + col0 AS col2 FROM tab1
----
-2238
-402
-78

query I rowsort
SELECT - ( - col2 ) + 61 FROM tab1
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL 34 + - COUNT( * ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL 34 + - COUNT ( * ) AS col2 FROM tab2
----
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT + 82 + - ( 31 ) FROM tab0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4379
SELECT - ( + 63 ) + COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4379
SELECT - ( + 63 ) + COUNT ( * ) FROM tab1
----
-60

query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( + col2 + - 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( col1 + - col2 * - col0 ) NOT BETWEEN - col1 + col0 * + col2 AND ( NULL )
----

query I rowsort
SELECT ALL 62 FROM tab1 AS cor0 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL ( - - SUM( ALL col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL ( - - SUM ( ALL col1 ) ) FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 79 * col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 79 * col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col1 + + ( - col0 ) IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 85 + + col1 * 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NULL IN ( + col0 + 42 / col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NULL IN ( + col0 + 42 / col2 )
----
0

query I rowsort
SELECT + col2 - - col2 * - col2 FROM tab0 cor0
----
-2162
-90
-9702

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 / col2 * - col2 + + ( + col2 - col0 ) * - 31 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4390
SELECT + col2 DIV 86 + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4390
SELECT + col2 / 86 + col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4391
SELECT DISTINCT + - CAST( - - 99 AS SIGNED ) FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4391
SELECT DISTINCT + - CAST ( - - 99 AS INTEGER ) FROM tab1 AS cor0
----
-99

query I rowsort
SELECT DISTINCT - col0 * 4 FROM tab1 cor0 WHERE NOT ( + col1 + col2 * + 18 ) > NULL
----

query II rowsort
SELECT ALL - + col0 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 > - + col0 * col1
----
3

skipif mysql # not compatible
query I rowsort label-4394
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 > - + col0 * col1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT ( + col0 ) * - col0 * - - col1 + CAST( + col1 AS SIGNED ) col2 FROM tab0
----
-158928
-18144
-9408

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4395
SELECT ( + col0 ) * - col0 * - - col1 + CAST ( + col1 AS INTEGER ) col2 FROM tab0
----
-158928
-18144
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4396
SELECT ALL 27 * COUNT( - 54 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL 27 * COUNT ( - 54 ) FROM tab2
----
81

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL - 65 * - - COUNT( * ) FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL - 65 * - - COUNT ( * ) FROM tab0
----
-195

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 88 NOT IN ( 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4401
SELECT ALL - col0 * ( - 46 ) DIV + 83 col1 FROM tab0
----
48
53
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4401
SELECT ALL - col0 * ( - 46 ) / + 83 col1 FROM tab0
----
48
53
8

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + 6 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT ALL ( + COUNT( col0 ) ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4403
SELECT ALL ( + COUNT ( col0 ) ) * COUNT ( * ) AS col1 FROM tab0
----
9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - - 55 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT + 52 * + MIN( + col0 ) FROM tab0 AS cor0
----
780

skipif mysql # not compatible
query I rowsort label-4405
SELECT + 52 * + MIN ( + col0 ) FROM tab0 AS cor0
----
780

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT + COUNT( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4406
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT DISTINCT + SUM( - 44 ) AS col2 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4407
SELECT DISTINCT + SUM ( - 44 ) AS col2 FROM tab0 AS cor0
----
-132

onlyif mysql # aggregate syntax: 
query I rowsort label-4408
SELECT COUNT( * ) * + MAX( ALL - 56 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 / - col1 > ( - - 14 * + + col1 )
----
-168

skipif mysql # not compatible
query I rowsort label-4408
SELECT COUNT ( * ) * + MAX ( ALL - 56 ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 / - col1 > ( - - 14 * + + col1 )
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 = ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4409
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 = ( col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4410
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 = CAST( - col1 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4410
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 = CAST ( - col1 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 71 * + 91 FROM tab1
----
-6461

query I rowsort
SELECT col0 * 1 AS col2 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * col0 + - col2 * col1 col2 FROM tab0 WHERE NOT ( - col2 + - 72 * + 21 ) IS NULL
----
-5127
-7866
-8635

query I rowsort
SELECT - col2 * + 79 AS col1 FROM tab1 cor0
----
-4661
-5372
-7584

query I rowsort
SELECT col2 * - - col0 * - + col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query II rowsort label-4416
SELECT ALL - + 63 AS col2, - COUNT( DISTINCT - + 97 ) FROM tab1 AS cor0
----
-63
-1

skipif mysql # not compatible
query II rowsort label-4416
SELECT ALL - + 63 AS col2, - COUNT ( DISTINCT - + 97 ) FROM tab1 AS cor0
----
-63
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) NOT IN ( 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + 35 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + - col0 col1 FROM tab1 AS cor0
----
-129
-135
-95

query I rowsort
SELECT ALL 29 - + col0 AS col0 FROM tab1 cor0
----
-22
-56
-62

query I rowsort
SELECT ALL col1 * - 40 FROM tab2 AS cor0
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT ALL SUM( ALL 16 ) AS col1 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4422
SELECT ALL SUM ( ALL 16 ) AS col1 FROM tab2 AS cor0
----
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col0 IN ( + col2 + - - 70 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4424
SELECT DISTINCT - ( + + COUNT( * ) ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT - ( + + COUNT ( * ) ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 49 AS col2, col1 FROM tab0
----
49
1
49
21
49
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4426
SELECT * FROM tab2 WHERE NOT + col0 * - + CAST( NULL AS DECIMAL ) + + + 14 = NULL
----

skipif mysql # not compatible
query III rowsort label-4426
SELECT * FROM tab2 WHERE NOT + col0 * - + CAST ( NULL AS REAL ) + + + 14 = NULL
----

query I rowsort
SELECT col1 * + + col2 * 48 FROM tab1
----
14160
153408
64512

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT + 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) / + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + 55 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT - 56, - COUNT( * ) AS col2 FROM tab0
----
-56
-3

skipif mysql # not compatible
query II rowsort label-4431
SELECT - 56, - COUNT ( * ) AS col2 FROM tab0
----
-56
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4432
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( * ) FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4433
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab1 cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT DISTINCT + 1 + + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

skipif mysql # not compatible
query I rowsort label-4434
SELECT DISTINCT + 1 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-8

query II rowsort
SELECT ALL 7 * ( + col0 ) - + - col0, + 42 FROM tab1 WHERE ( col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4436
SELECT + 2 * + COUNT( * ) * - 7 FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4436
SELECT + 2 * + COUNT ( * ) * - 7 FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT ALL - SUM( - + 39 ) AS col0, COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
351
9

skipif mysql # not compatible
query II rowsort label-4437
SELECT ALL - SUM ( - + 39 ) AS col0, COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
351
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + COUNT( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE col2 NOT IN ( - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-4438
SELECT + COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE col2 NOT IN ( - col2 )
----
3

query I rowsort
SELECT DISTINCT + col1 * 2 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT ( - + 29 ) + + col1 AS col1 FROM tab2
----
22
38
48

query I rowsort
SELECT col1 + col2 * + col0 AS col1 FROM tab1
----
4910
5020
6235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 61 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 61 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4443
SELECT ALL 29 DIV 92 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL 29 / 92 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( 55 ) + + + col2 + - col0 AS col2 FROM tab2
----
31
32
38

query I rowsort
SELECT ALL 56 + col2 FROM tab1
----
115
124
152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4446
SELECT ( + col1 ) FROM tab1 WHERE ( col0 / - CAST( NULL AS SIGNED ) + + col0 ) NOT IN ( col1, + col1, - + col0 )
----

skipif mysql # not compatible
query I rowsort label-4446
SELECT ( + col1 ) FROM tab1 WHERE ( col0 / - CAST ( NULL AS INTEGER ) + + col0 ) NOT IN ( col1, + col1, - + col0 )
----

query I rowsort
SELECT col0 + - 81 FROM tab0
----
-66
16
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT DISTINCT COUNT( * ) + + 82 AS col1 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-4448
SELECT DISTINCT COUNT ( * ) + + 82 AS col1 FROM tab0
----
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4449
SELECT ALL COUNT( * ) DIV COUNT( * ) + - 15 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-4449
SELECT ALL COUNT ( * ) / COUNT ( * ) + - 15 FROM tab0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4450
SELECT * FROM tab2 AS cor0 WHERE - col0 <= + CAST( NULL AS SIGNED ) + + col1
----

skipif mysql # not compatible
query III rowsort label-4450
SELECT * FROM tab2 AS cor0 WHERE - col0 <= + CAST ( NULL AS INTEGER ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT DISTINCT - MAX( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4451
SELECT DISTINCT - MAX ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4452
SELECT DISTINCT + COUNT( * ) DIV 8 + + 61 AS col2 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4452
SELECT DISTINCT + COUNT ( * ) / 8 + + 61 AS col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - col1 * + 73 AS col1 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT + col0 - ( col1 ) FROM tab1
----
37
44
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4455
SELECT ALL col1 DIV - col0 + 74 AS col2 FROM tab2
----
73
73
74

skipif mysql # not compatible
query I rowsort label-4455
SELECT ALL col1 / - col0 + 74 AS col2 FROM tab2
----
73
73
74

query I rowsort
SELECT ALL col0 + - 33 * - 60 FROM tab2
----
2026
2044
2055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 68 col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4459
SELECT DISTINCT col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT col0 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + MIN( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4460
SELECT + MIN ( ALL - col0 ) FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 48 AS col1, 57 col0 FROM tab1 AS cor0
----
48
57
48
57
48
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4462
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <= + 81 * - col1 / - - col2
----

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <= + 81 * - col1 / - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT DISTINCT + MIN( - + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4463
SELECT DISTINCT + MIN ( - + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4464
SELECT col2 * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4464
SELECT col2 * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col0 * + col2, col2 AS col0 FROM tab2
----
-1058
23
-2560
40
-4350
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT ( - CAST( NULL AS SIGNED ) ) * col0 * - - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4466
SELECT ( - CAST ( NULL AS INTEGER ) ) * col0 * - - col0 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT SUM( DISTINCT - col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4467
SELECT DISTINCT SUM ( DISTINCT - col1 ) col2 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-4468
SELECT col2 * 64 DIV + col0 AS col0 FROM tab2
----
32
40
49

skipif mysql # not compatible
query I rowsort label-4468
SELECT col2 * 64 / + col0 AS col0 FROM tab2
----
32
40
49

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT ALL COUNT( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4471
SELECT ALL COUNT ( DISTINCT col1 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 19 FROM tab2 cor0 WHERE - col2 + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4473
SELECT CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2 / - + col2 - 33 + - ( - col2 ) * + 57 OR NOT ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4473
SELECT CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND - col2 / - + col2 - 33 + - ( - col2 ) * + 57 OR NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4474
SELECT ALL + ( + MIN( + 77 ) ) * - CAST( - 19 AS SIGNED ) FROM tab1 cor0
----
1463

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL + ( + MIN ( + 77 ) ) * - CAST ( - 19 AS INTEGER ) FROM tab1 cor0
----
1463

onlyif mysql # DIV for integer division: 
query II rowsort label-4475
SELECT ALL - - col2 DIV + 2 + col1 + + col1 + - + 28 * - 42 * - + 82 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-96247
47
-96381
99
-96385
10

skipif mysql # not compatible
query II rowsort label-4475
SELECT ALL - - col2 / + 2 + col1 + + col1 + - + 28 * - 42 * - + 82 AS col1, col2 AS col1 FROM tab0 AS cor0
----
-96247
47
-96381
99
-96385
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT DISTINCT + COUNT( * ) * + - COUNT( * ) col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4476
SELECT DISTINCT + COUNT ( * ) * + - COUNT ( * ) col1 FROM tab2
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 7 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - ( - + col2 ) + 98 + 42 * col2 * + - col1 + col2 AS col0 FROM tab2 AS cor0
----
-129182
-162998
-49122

query I rowsort
SELECT ALL + 21 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( - 37, - 25, - + 85 ) )
----

query I rowsort
SELECT DISTINCT + + ( + - 87 ) * - - col2 AS col1 FROM tab2 AS cor0
----
-2001
-3480
-5046

query I rowsort
SELECT DISTINCT + - col1 * - + 9 FROM tab0 AS cor0
----
189
729
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT COUNT( * ) + + 53 AS col1 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT COUNT ( * ) + + 53 AS col1 FROM tab2
----
56

query I rowsort
SELECT DISTINCT - 1 + - col0 FROM tab1
----
-52
-86
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4485
SELECT * FROM tab0 WHERE ( + - col2 - CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4485
SELECT * FROM tab0 WHERE ( + - col2 - CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL col0 * + - col2 + - + col0 FROM tab1
----
-4947
-5100
-6279

query II rowsort
SELECT - col0 - col2 AS col2, - col2 FROM tab2 AS cor0
----
-104
-40
-133
-58
-69
-23

query I rowsort
SELECT DISTINCT ( 58 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + 79 - + 96 FROM tab2
----
-17
-17
-17

query I rowsort
SELECT ALL 64 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL col0 + - + col1 FROM tab1
----
37
44
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 36 + - ( + col0 ) * + 77, - 21 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - - col1 + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT ALL MIN( col2 ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL MIN ( col2 ) AS col0 FROM tab0 cor0
----
10

query I rowsort
SELECT 5 * - 96 FROM tab0
----
-480
-480
-480

query I rowsort
SELECT ALL - ( - ( + col0 ) ) AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT - col0 * - col0 * col0 AS col1 FROM tab1
----
132651
614125
753571

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab0 WHERE NOT NULL < - + col1 * - col1 + 88 + - 69 + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT DISTINCT + SUM( DISTINCT + - 63 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + SUM ( DISTINCT + - 63 ) FROM tab1
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-4501
SELECT DISTINCT - COUNT( * ), + COUNT( * ) + + 95 AS col1 FROM tab2
----
-3
98

skipif mysql # not compatible
query II rowsort label-4501
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) + + 95 AS col1 FROM tab2
----
-3
98

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab0
----
-1
1
-21
21
-81
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 64 IN ( + col0, 38 + 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1, ( - col1 ) FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT ALL + + 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL - + 2 + + col1 AS col1 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT - 70 - + 57 AS col1 FROM tab0 AS cor0
----
-127
-127
-127

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT ALL - - ( + + 25 ) * - SUM( ALL - col0 ) + SUM( ALL + 68 ) FROM tab1 AS cor0
----
5879

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL - - ( + + 25 ) * - SUM ( ALL - col0 ) + SUM ( ALL + 68 ) FROM tab1 AS cor0
----
5879

query I rowsort
SELECT - col0 * ( col0 ) + col2 + - + 39 FROM tab2
----
-2132
-4095
-5606

query I rowsort
SELECT col1 + + 87 + ( - 84 ) + - 16 AS col2 FROM tab0
----
-12
68
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4511
SELECT COUNT( * ) DIV + - COUNT( * ) + + - 72 * + + COUNT( * ) FROM tab2
----
-217

skipif mysql # not compatible
query I rowsort label-4511
SELECT COUNT ( * ) / + - COUNT ( * ) + + - 72 * + + COUNT ( * ) FROM tab2
----
-217

query I rowsort
SELECT DISTINCT 48 + - + col2 AS col0 FROM tab0
----
-51
1
38

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + + col0 IS NOT NULL
----
46
64
75

query I rowsort
SELECT 54 AS col1 FROM tab0 WHERE - - col1 * - - col2 * + col0 <= NULL
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT - + COUNT( * ) * - - 72 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-4516
SELECT - + COUNT ( * ) * - - 72 FROM tab1 AS cor0
----
-216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 83 * - 67 + + col1 NOT BETWEEN NULL AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 - col0 + + col2 col1, col1 AS col0 FROM tab2 AS cor0
----
-101
77
-74
51
-84
67

query II rowsort
SELECT + col1 AS col0, 88 AS col1 FROM tab0 AS cor0
----
1
88
21
88
81
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4520
SELECT ALL - + 74 - CAST( NULL AS SIGNED ) - - + 10 AS col1, col2 + - 25 + + 24 AS col2 FROM tab2 AS cor0
----
NULL
22
NULL
39
NULL
57

skipif mysql # not compatible
query II rowsort label-4520
SELECT ALL - + 74 - CAST ( NULL AS INTEGER ) - - + 10 AS col1, col2 + - 25 + + 24 AS col2 FROM tab2 AS cor0
----
NULL
22
NULL
39
NULL
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4521
SELECT - col1 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4521
SELECT - col1 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 1 * - + 96 AS col0 FROM tab2 cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, + 0 col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT ALL col2, + col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT col2 * + 12 * col1 AS col0 FROM tab2
----
14076
36960
46632

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4526
SELECT ALL - MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4526
SELECT ALL - MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - 52 * - 4 * - + col2 FROM tab0 AS cor0
----
-20592
-2080
-9776

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4528
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + CAST( col1 AS SIGNED ) * - col1 IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-4528
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + CAST ( col1 AS INTEGER ) * - col1 IS NOT NULL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4529
SELECT + 57 / - + CAST( NULL AS SIGNED ) col0, + 71 * + MIN( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
NULL
3266

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4529
SELECT + 57 / - + CAST ( NULL AS INTEGER ) col0, + 71 * + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2 AS cor0
----
NULL
3266

onlyif mysql # aggregate syntax: 
query II rowsort label-4530
SELECT - MIN( + + 75 ), 39 AS col0 FROM tab1 AS cor0
----
-75
39

skipif mysql # not compatible
query II rowsort label-4530
SELECT - MIN ( + + 75 ), 39 AS col0 FROM tab1 AS cor0
----
-75
39

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT - MIN( 62 ) AS col2 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4532
SELECT - MIN ( 62 ) AS col2 FROM tab2 AS cor0
----
-62

query II rowsort
SELECT ALL col1, - 51 AS col1 FROM tab0
----
1
-51
21
-51
81
-51

query I rowsort
SELECT DISTINCT ( + - 56 ) FROM tab1
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 6 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + 88 FROM tab2 AS cor0
----
4048
5632
6600

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 IN ( ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 * + 63 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT DISTINCT col0 + + + ( + 59 ) DIV col1 AS col0 FROM tab1
----
55
92
96

skipif mysql # not compatible
query I rowsort label-4539
SELECT DISTINCT col0 + + + ( + 59 ) / col1 AS col0 FROM tab1
----
55
92
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT MAX( ALL col1 ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT MAX ( ALL col1 ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 63 col2 FROM tab2 AS cor0
----
-63

query II rowsort
SELECT ALL + col0, col2 + - 83 AS col1 FROM tab1 AS cor0
----
51
13
85
-24
91
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT - + 55 FROM tab2 WHERE col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4546
SELECT - col0 DIV col0 AS col2, - col1 FROM tab2
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-4546
SELECT - col0 / col0 AS col2, - col1 FROM tab2
----
-1
-51
-1
-67
-1
-77

query I rowsort
SELECT DISTINCT - col0 + - 47 * + col1 AS col1 FROM tab1
----
-2300
-320
-709

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT ALL SUM( col0 ) * + ( + - COUNT( * ) ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-4548
SELECT ALL SUM ( col0 ) * + ( + - COUNT ( * ) ) FROM tab1
----
-681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4549
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) - COUNT( * ) + + MAX( DISTINCT - col1 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4549
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - COUNT ( * ) + + MAX ( DISTINCT - col1 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 6 + 84 FROM tab0
----
78
78
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4551
SELECT + MAX( ALL + - col1 ) - 72, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-123
NULL

skipif mysql # not compatible
query II rowsort label-4551
SELECT + MAX ( ALL + - col1 ) - 72, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-123
NULL

query I rowsort
SELECT col2 - ( col2 ) FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - + 88 AS col1 FROM tab0 AS cor0
----
-88

query I rowsort
SELECT - 84 * + + 37 FROM tab0
----
-3108
-3108
-3108

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - ( - col1 ) BETWEEN + col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT ALL 31 * - col0 AS col0 FROM tab1
----
-1581
-2635
-2821

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4558
SELECT * FROM tab1 WHERE NOT - CAST( - + col1 AS SIGNED ) BETWEEN NULL AND - 87 + + - ( - - 18 ) + - col0 + + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4558
SELECT * FROM tab1 WHERE NOT - CAST ( - + col1 AS INTEGER ) BETWEEN NULL AND - 87 + + - ( - - 18 ) + - col0 + + 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4559
SELECT ALL + 26, - 86 * - - CAST( NULL AS SIGNED ) - - - col2 AS col2 FROM tab1 AS cor0
----
26
NULL
26
NULL
26
NULL

skipif mysql # not compatible
query II rowsort label-4559
SELECT ALL + 26, - 86 * - - CAST ( NULL AS INTEGER ) - - - col2 AS col2 FROM tab1 AS cor0
----
26
NULL
26
NULL
26
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT ( - COUNT( 22 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4560
SELECT ( - COUNT ( 22 ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col1 * - - ( + col0 ) + 24 AS col0 FROM tab0 AS cor0
----
-1191
-1803
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4562
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 5 * + 80 * - - col0 FROM tab2
----
-18400
-25600
-30000

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 96 NOT IN ( - 86 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4565
SELECT + col0 DIV col1 * + ( + + 56 ) + 23 DIV + col0 - - col2 FROM tab0 AS cor0
----
234
48
5531

skipif mysql # not compatible
query I rowsort label-4565
SELECT + col0 / col1 * + ( + + 56 ) + 23 / + col0 - - col2 FROM tab0 AS cor0
----
234
48
5531

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col1 + - 50 <> NULL
----

query I rowsort
SELECT ALL + 78 + - col1 FROM tab1 AS cor0
----
31
64
73

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL > - 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4569
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST( col1 AS DECIMAL ) AND + - 34 * - col1
----

skipif mysql # not compatible
query III rowsort label-4569
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN CAST ( col1 AS REAL ) AND + - 34 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT - CAST( - 97 AS SIGNED ) AS col0 FROM tab0 cor0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-4570
SELECT - CAST ( - 97 AS INTEGER ) AS col0 FROM tab0 cor0
----
97
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 + 13 * 86 * + - 56 FROM tab2
----
-62533
-62544
-62562

onlyif mysql # DIV for integer division: 
query I rowsort label-4573
SELECT DISTINCT + 78 DIV - col1 + + col0 + + - col0 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT + 78 / - col1 + + col0 + + - col0 FROM tab1
----
-1
-15
-5

query II rowsort
SELECT ALL col0 - - + 37 + + col2 AS col1, col1 * + - col0 * col0 + 83 AS col2 FROM tab2 AS cor0
----
106
-107833
141
-315309
170
-376792

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( 92 < col2 ) )
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT - col1 - + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - col1 - + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 7 + - col0 + - + 22 AS col2 FROM tab2 AS cor0
----
-61
-79
-90

query II rowsort
SELECT ALL + col1, - col2 + - - col2 * 68 / - col2 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----

query I rowsort
SELECT - - 29 + + + col0 AS col1 FROM tab2 AS cor0
----
104
75
93

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4581
SELECT ALL + col1 - CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL + col1 - CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + ( - + col0 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > col1 - - - ( col2 ) + 79 * col0 + col2
----

query I rowsort
SELECT - 22 + col0 AS col2 FROM tab1
----
29
63
69

query I rowsort
SELECT DISTINCT - col1 * - ( + col1 ) AS col1 FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL 70 * 49 * ( - + COUNT( * ) ) FROM tab0
----
-10290

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL 70 * 49 * ( - + COUNT ( * ) ) FROM tab0
----
-10290

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT - col1 DIV - 42 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4587
SELECT - col1 / - 42 AS col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4588
SELECT DISTINCT - - COUNT( * ), 3 AS col2 FROM tab1 WHERE ( - - 33 ) NOT BETWEEN - col1 AND + 64
----
0
3

skipif mysql # not compatible
query II rowsort label-4588
SELECT DISTINCT - - COUNT ( * ), 3 AS col2 FROM tab1 WHERE ( - - 33 ) NOT BETWEEN - col1 AND + 64
----
0
3

query II rowsort
SELECT DISTINCT + 21, col2 AS col1 FROM tab2 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT ALL - col2, col0 + col1 AS col1 FROM tab0
----
-10
108
-47
96
-99
98

query II rowsort
SELECT col1 AS col1, col2 FROM tab0 WHERE NOT col2 NOT BETWEEN col1 AND ( NULL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= 69 + 15
----

query I rowsort
SELECT - + 94 AS col0 FROM tab0 cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4595
SELECT DISTINCT - MAX( - 75 ) AS col2, 8 AS col2 FROM tab0 AS cor0
----
75
8

skipif mysql # not compatible
query II rowsort label-4595
SELECT DISTINCT - MAX ( - 75 ) AS col2, 8 AS col2 FROM tab0 AS cor0
----
75
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 + + - col0 col2 FROM tab0 AS cor0
----
1
11
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 BETWEEN + + col1 AND 81 / ( col2 ) * - ( - - col1 ) * + ( - 86 ) / - col2 + + 65 + col0 * - col1 + + - col0 + - + col1 * + col1 + + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4598
SELECT + + COUNT( * ) + - COUNT( * ) AS col2, 23 FROM tab2 AS cor0
----
0
23

skipif mysql # not compatible
query II rowsort label-4598
SELECT + + COUNT ( * ) + - COUNT ( * ) AS col2, 23 FROM tab2 AS cor0
----
0
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - col1 * + col1, + 36, + - col2, + col0, col0 * - col2 * + col1 + + - ( - - 40 ) * + col0 * - + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4601
SELECT DISTINCT - col0 DIV + col1 + + 64 FROM tab0
----
-33
60
64

skipif mysql # not compatible
query I rowsort label-4601
SELECT DISTINCT - col0 / + col1 + + 64 FROM tab0
----
-33
60
64

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL - MAX( + 15 ) col0 FROM tab2 WHERE col2 > - 5
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4602
SELECT ALL - MAX ( + 15 ) col0 FROM tab2 WHERE col2 > - 5
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-4603
SELECT DISTINCT col2 * + col2 + - col1 + - 53 + - col0 DIV - col0 AS col0 FROM tab2
----
1471
3245
426

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT col2 * + col2 + - col1 + - 53 + - col0 / - col0 AS col0 FROM tab2
----
1471
3245
426

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - COUNT( - + 44 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - COUNT ( - + 44 ) FROM tab1
----
-3

query II rowsort
SELECT - col1, 76 AS col1 FROM tab0
----
-1
76
-21
76
-81
76

query I rowsort
SELECT DISTINCT col0 + + col1 + - + col0 + + - col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL 41 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
41
41
41

query I rowsort
SELECT ALL + - col0 * - + col1 - - + col2 + + col1 * + 70 FROM tab1 AS cor0
----
1790
7635
834

query II rowsort
SELECT ALL col2 AS col1, col0 * + col0 + - + col1 AS col1 FROM tab2 cor0
----
23
2065
40
4019
58
5558

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - MIN( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 - - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4610
SELECT - MIN ( + + col0 ) AS col0 FROM tab1 AS cor0 WHERE col0 - - col0 < NULL
----
NULL

query I rowsort
SELECT ALL - ( + + 93 ) - + col2 * - ( + - 45 ) FROM tab2 AS cor0
----
-1128
-1893
-2703

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - - 59 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT ALL + col0 * - 95 AS col1 FROM tab2
----
-4370
-6080
-7125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4615
SELECT - 6 * - CAST( + + col2 AS SIGNED ) col0, - col2 * col1 AS col2 FROM tab1
----
354
-295
408
-3196
576
-1344

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4615
SELECT - 6 * - CAST ( + + col2 AS INTEGER ) col0, - col2 * col1 AS col2 FROM tab1
----
354
-295
408
-3196
576
-1344

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4616
SELECT ALL + ( MIN( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + ( MIN ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT SUM( ALL + + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT SUM ( ALL + + col2 ) AS col1 FROM tab0
----
156

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4618
SELECT DISTINCT col0 col1, + col1 * CAST( NULL AS DECIMAL ) + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4618
SELECT DISTINCT col0 col1, + col1 * CAST ( NULL AS REAL ) + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT ALL 37 * - + SUM( DISTINCT + 37 ) FROM tab0
----
-1369

skipif mysql # not compatible
query I rowsort label-4619
SELECT ALL 37 * - + SUM ( DISTINCT + 37 ) FROM tab0
----
-1369

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT + 46 * - COUNT( * ) - + + COUNT( * ) FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + 46 * - COUNT ( * ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-4621
SELECT DISTINCT + col0 DIV + - col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4621
SELECT DISTINCT + col0 / + - col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col1 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4624
SELECT + SUM( + 63 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-4624
SELECT + SUM ( + 63 ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT ALL + col1 * + 58 * + + col2 FROM tab2 AS cor0
----
178640
225388
68034

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT col2 DIV + col2 + col0 * - 44 AS col0 FROM tab0
----
-3827
-4267
-659

skipif mysql # not compatible
query I rowsort label-4626
SELECT col2 / + col2 + col0 * - 44 AS col0 FROM tab0
----
-3827
-4267
-659

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT CAST( NULL AS SIGNED ) + - col2 - + CAST( NULL AS SIGNED ) + + 44 + + col1, 42 col2 FROM tab1
----
NULL
42
NULL
42
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4627
SELECT CAST ( NULL AS INTEGER ) + - col2 - + CAST ( NULL AS INTEGER ) + + 44 + + col1, 42 col2 FROM tab1
----
NULL
42
NULL
42
NULL
42

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 - 64 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT DISTINCT 44 * COUNT( * ) AS col1 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT 44 * COUNT ( * ) AS col1 FROM tab0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4630
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( CAST( col1 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-4630
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> ( CAST ( col1 AS INTEGER ) * col0 )
----

query I rowsort
SELECT 67 * + ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
3953
4556
6432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 84 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
84

query I rowsort
SELECT ALL + + 55 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT DISTINCT - + 49 - + + col0 DIV col2 * + 50 FROM tab0 AS cor0
----
-449
-49

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT - + 49 - + + col0 / col2 * + 50 FROM tab0 AS cor0
----
-449
-49

query I rowsort
SELECT + + 78 + + col2 FROM tab0 AS cor0
----
125
177
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT - SUM( + 81 ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-4636
SELECT - SUM ( + 81 ) AS col1 FROM tab0 AS cor0
----
-243

query I rowsort
SELECT - 38 * - col2 AS col0 FROM tab1 AS cor0
----
2242
2584
3648

query I rowsort
SELECT 71 + - ( - col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 52 * + col1 AS col0 FROM tab1 cor0
----
2444
260
728

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + 80 IS NULL OR NULL IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT + col1 < - 8 - - col0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( - 23 ) * + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT DISTINCT ( - - SUM( + 46 ) ) AS col1 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT ( - - SUM ( + 46 ) ) AS col1 FROM tab1
----
138

onlyif mysql # DIV for integer division: 
query II rowsort label-4644
SELECT 75 DIV - col1 AS col2, col1 AS col0 FROM tab1
----
-1
47
-15
5
-5
14

skipif mysql # not compatible
query II rowsort label-4644
SELECT 75 / - col1 AS col2, col1 AS col0 FROM tab1
----
-1
47
-15
5
-5
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT + - ( + CAST( + 81 AS SIGNED ) ) FROM tab1 cor0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-4645
SELECT + - ( + CAST ( + 81 AS INTEGER ) ) FROM tab1 cor0
----
-81
-81
-81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <> - col1 + col2
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT + 16 / + col0 NOT IN ( + 59 - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4648
SELECT DISTINCT COUNT( * ) * - 84 AS col0 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-4648
SELECT DISTINCT COUNT ( * ) * - 84 AS col0 FROM tab1
----
-252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col2 + + col1 + - + col0 FROM tab1 AS cor0
----
-21
24
59

query I rowsort
SELECT col2 + + 12 AS col0 FROM tab2 AS cor0 WHERE 65 IS NOT NULL
----
35
52
70

query II rowsort
SELECT ALL - - col2 * 39 + + col1 AS col1, col0 AS col2 FROM tab2 AS cor0
----
1637
64
2329
75
948
46

query II rowsort
SELECT ALL + - 34, 67 AS col0 FROM tab1 AS cor0
----
-34
67
-34
67
-34
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, ( col1 ) - + col2 col2 FROM tab1 AS cor0
----
59
-54
68
-21
96
-82

query I rowsort
SELECT ALL + 96 * - col2 * col2 FROM tab1 cor0
----
-334176
-443904
-884736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - col0 col2, - col2 FROM tab1
----
-138
-68
-65
-96
-90
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4657
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT - MAX ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1, tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT ALL + + col2 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT ALL + + col2 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( + 27 ) + - 72 = NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 33 IS NULL
----

query I rowsort
SELECT ALL - - 22 FROM tab1 WHERE NOT - ( - col0 ) IS NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT ( - + MIN( ALL - - col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4662
SELECT ( - + MIN ( ALL - - col2 ) ) AS col1 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + - COUNT( * ) FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4663
SELECT + - COUNT ( * ) FROM tab2 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT DISTINCT + COUNT( - 7 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + COUNT ( - 7 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + col1 - - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE ( NOT ( - 98 IS NULL ) )
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-4668
SELECT DISTINCT - - 30 DIV + 96, col1 AS col0 FROM tab1 AS cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-4668
SELECT DISTINCT - - 30 / + 96, col1 AS col0 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab0 cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4670
SELECT COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + col2 * - 93 AS col0 FROM tab0
----
-4371
-9207
-930

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - + col2 )
----

query I rowsort
SELECT DISTINCT - 28 * + - 26 AS col1 FROM tab0
----
728

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT ALL - 79 DIV + COUNT( * ) AS col1 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4674
SELECT ALL - 79 / + COUNT ( * ) AS col1 FROM tab2
----
-26

query I rowsort
SELECT DISTINCT col0 * + 61 * - col0 AS col2 FROM tab2
----
-129076
-249856
-343125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4676
SELECT COUNT( - CAST( - + col0 AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4676
SELECT COUNT ( - CAST ( - + col0 AS INTEGER ) ) FROM tab2
----
3

query I rowsort
SELECT ( - 6 ) FROM tab1 WHERE NOT + col0 IS NULL
----
-6
-6
-6

query I rowsort
SELECT 25 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
25
25
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 / + ( + col0 ) + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT MAX( 89 ) AS col2 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4680
SELECT MAX ( 89 ) AS col2 FROM tab0 AS cor0
----
89

query I rowsort
SELECT - 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4682
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) = + col1 / ( + - ( - + col1 ) ) )
----

skipif mysql # not compatible
query III rowsort label-4682
SELECT DISTINCT * FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) = + col1 / ( + - ( - + col1 ) ) )
----

query I rowsort
SELECT DISTINCT - 99 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4684
SELECT DISTINCT - 89 * + CAST( NULL AS SIGNED ) + - ( - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - 89 * + CAST ( NULL AS INTEGER ) + - ( - col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ALL ( - ( MAX( DISTINCT + col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4685
SELECT ALL ( - ( MAX ( DISTINCT + col2 ) ) ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4686
SELECT DISTINCT - COUNT( - CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4686
SELECT DISTINCT - COUNT ( - CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - + COUNT( DISTINCT + + col2 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4688
SELECT ALL - + COUNT ( DISTINCT + + col2 ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4689
SELECT DISTINCT MAX( col1 ), 95 col1 FROM tab2 AS cor0
----
77
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4689
SELECT DISTINCT MAX ( col1 ), 95 col1 FROM tab2 AS cor0
----
77
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4690
SELECT - ( MAX( ALL 84 ) ) / + AVG ( + - CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4690
SELECT - ( MAX ( ALL 84 ) ) / + AVG ( + - CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT - MIN( DISTINCT + col0 ) + - COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4691
SELECT - MIN ( DISTINCT + col0 ) + - COUNT ( * ) FROM tab2 AS cor0
----
-49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN - + ( 77 ) * + - 4 AND + + col0 * - col1 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + 97 + ( MAX( ALL - + 0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4693
SELECT + 97 + ( MAX ( ALL - + 0 ) ) FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4694
SELECT col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4694
SELECT col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - - 47 + col2 AS col0 FROM tab2
----
1104
1920
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT col1 + + 87 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT col1 + + 87 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT ALL + MIN( DISTINCT + ( - 80 ) ) - + COUNT( * ) AS col0 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-4697
SELECT ALL + MIN ( DISTINCT + ( - 80 ) ) - + COUNT ( * ) AS col0 FROM tab0
----
-83

query I rowsort
SELECT + 71 * - - col1 AS col0 FROM tab0
----
1491
5751
71

query II rowsort
SELECT col2, + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT + col0 DIV + 53 - + 39 + + + col2 FROM tab1 AS cor0
----
21
30
57

skipif mysql # not compatible
query I rowsort label-4700
SELECT + col0 / + 53 - + 39 + + + col2 FROM tab1 AS cor0
----
21
30
57

query II rowsort
SELECT col2 - - col0, + 73 AS col1 FROM tab1
----
144
73
147
73
159
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 89 col0 FROM tab1
----
-4539
-7565
-8099

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT DISTINCT + 40, COUNT( * ) AS col2 FROM tab1
----
40
3

skipif mysql # not compatible
query II rowsort label-4703
SELECT DISTINCT + 40, COUNT ( * ) AS col2 FROM tab1
----
40
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT ALL + MIN( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4704
SELECT ALL + MIN ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT + 64, col2 FROM tab2 AS cor0
----
64
23
64
40
64
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 68, + 93 col1 FROM tab1 AS cor0
----
68
93
68
93
68
93

onlyif mysql # DIV for integer division: 
query I rowsort label-4707
SELECT + col2 DIV col0 + ( - 84 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-4707
SELECT + col2 / col0 + ( - 84 ) AS col2 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT 32 AS col1 FROM tab2 cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT + col1 * ( - CAST( NULL AS SIGNED ) ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4709
SELECT + col1 * ( - CAST ( NULL AS INTEGER ) ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 41, col2 * col2 AS col1 FROM tab0 AS cor0
----
41
100
41
2209
41
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > 39 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 1 * + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( 81 + 66 - + col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4714
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), + col0 + 96, col1 )
----

skipif mysql # not compatible
query III rowsort label-4714
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), + col0 + 96, col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( - col2 + - + col2, + col1 + col2 + + col0 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT ALL + COUNT( * ) * + - 40 AS col1 FROM tab2 WHERE NOT NULL BETWEEN 96 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + COUNT ( * ) * + - 40 AS col1 FROM tab2 WHERE NOT NULL BETWEEN 96 AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NOT col0 * + col0 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4718
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) * - AVG ( DISTINCT + col0 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4718
SELECT AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) * - AVG ( DISTINCT + col0 ) col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 26 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL <> + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT - 51 + - SUM( - 73 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( 85 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - 51 + - SUM ( - 73 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < ( 85 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4722
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) + 0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) + 0 FROM tab1
----
9

query I rowsort
SELECT + col1 + 89 AS col0 FROM tab0
----
110
170
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, col2 col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col2, col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
1215
87
1827
97
97

query I rowsort
SELECT 82 + ( - + col2 ) FROM tab0 AS cor0
----
-17
35
72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + + col0 >= col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + + MAX( - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + + MAX ( - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4729
SELECT - + 46 DIV - 8 AS col2 FROM tab2 cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-4729
SELECT - + 46 / - 8 AS col2 FROM tab2 cor0
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - col1 * + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 87 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( - col1 ) col2 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + + col1 - - 63 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4735
SELECT COUNT( DISTINCT + col2 ), + MAX( + 82 ) AS col1 FROM tab0
----
3
82

skipif mysql # not compatible
query II rowsort label-4735
SELECT COUNT ( DISTINCT + col2 ), + MAX ( + 82 ) AS col1 FROM tab0
----
3
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4736
SELECT ALL * FROM tab0 WHERE + 72 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4736
SELECT ALL * FROM tab0 WHERE + 72 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT + MAX( ALL - + col2 ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4737
SELECT + MAX ( ALL - + col2 ) AS col1 FROM tab0
----
-10

query II rowsort
SELECT - col0 - + + col1, col0 + + + 1 + + + col0 AS col0 FROM tab1
----
-138
183
-65
103
-90
171

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + SUM( ALL - col1 ) + + COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + SUM ( ALL - col1 ) + + COUNT ( * ) FROM tab2
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT ALL COUNT( * ) * - 86 + - - COUNT( * ) AS col2 FROM tab2
----
-255

skipif mysql # not compatible
query I rowsort label-4740
SELECT ALL COUNT ( * ) * - 86 + - - COUNT ( * ) AS col2 FROM tab2
----
-255

query I rowsort
SELECT + col2 + ( + 26 ) AS col2 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT ALL - col2 * - + col0 AS col1 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - 47 * + col0 AS col1 FROM tab0
----
-4089
-4559
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT MIN( ALL ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4744
SELECT MIN ( ALL ( - ( + col2 ) ) ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT - 95 / col0 - - - col1 + + 12 FROM tab2 cor0 WHERE NOT + col2 <> + - col1
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 cor0 WHERE 56 IS NULL
----

query I rowsort
SELECT DISTINCT - 7 * - + 99 AS col0 FROM tab0 AS cor0
----
693

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT DISTINCT + - 84 * - COUNT( * ) AS col1 FROM tab0 cor0
----
252

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT + - 84 * - COUNT ( * ) AS col1 FROM tab0 cor0
----
252

query I rowsort
SELECT ALL + col2 + col0 FROM tab2 cor0 WHERE 87 IS NULL
----

query I rowsort
SELECT ALL 89 * - 88 FROM tab1 AS cor0
----
-7832
-7832
-7832

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < + - col1 + - 35 OR NOT ( + col1 + + + col1 <> NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4751
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < + - col1 + - 35 OR NOT ( + col1 + + + col1 <> NULL )
----
0

query I rowsort
SELECT ALL + 79 FROM tab1 WHERE - - col1 + - col1 > NULL
----

query II rowsort
SELECT + col2 AS col2, 94 * - 83 FROM tab2
----
23
-7802
40
-7802
58
-7802

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT ( + - 90 ) * - COUNT( * ) - 18 AS col2 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-4754
SELECT ( + - 90 ) * - COUNT ( * ) - 18 AS col2 FROM tab2
----
252

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col0 FROM tab2 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT DISTINCT SUM( DISTINCT - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT SUM ( DISTINCT - - col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL - col0 * + - col1 + - col2 + + col1 AS col0 FROM tab2
----
2374
4965
5034

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND + 11
----

query II rowsort
SELECT col0, + col2 AS col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - - 40 FROM tab1 WHERE NOT + col1 IS NULL
----
40
40
40

query I rowsort
SELECT DISTINCT + 33 + - col1 + + - col1 AS col1 FROM tab1 AS cor0
----
-61
23
5

query I rowsort
SELECT DISTINCT col0 - - - 20 FROM tab0 AS cor0
----
-5
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + ( + col0 ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + ( + col0 ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col1 * - 60 * col2 - - col2 FROM tab2 AS cor0
----
-184760
-233102
-70357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - + 45 col1, 66 * + col2 * + col2 * 36 FROM tab2 AS cor0
----
-109
3801600
-120
7992864
-91
1256904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4766
SELECT ALL - CAST( + - 45 AS SIGNED ) * - 37 + col0 FROM tab2
----
-1590
-1601
-1619

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL - CAST ( + - 45 AS INTEGER ) * - 37 + col0 FROM tab2
----
-1590
-1601
-1619

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4767
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT 2 + COUNT( * ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4768
SELECT 2 + COUNT ( * ) AS col2 FROM tab0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT ALL + COUNT( * ) + + COUNT( * ) col0 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4769
SELECT ALL + COUNT ( * ) + + COUNT ( * ) col0 FROM tab1
----
6

query III rowsort
SELECT * FROM tab2 WHERE - 16 - - + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 + + + col1 >= + 57
----

query II rowsort
SELECT + col2, 38 AS col0 FROM tab2 AS cor0
----
23
38
40
38
58
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT - + COUNT( * ) * 26 AS col2 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - + COUNT ( * ) * 26 AS col2 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL NOT IN ( + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT ALL COUNT( * ) + 91 AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL COUNT ( * ) + 91 AS col0 FROM tab0
----
94

query I rowsort
SELECT col0 * col1 - col0 * + col0 AS col0 FROM tab2 WHERE NOT 74 + 14 IS NULL
----
-600
230
832

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE ( NULL ) NOT IN ( + 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * 90 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 25 * - col0
----

query I rowsort
SELECT ALL 99 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 34 + - col2 AS col2 FROM tab1
----
-102
-130
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT ALL COUNT( ALL - ( + col1 ) ) + + 39 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - col0 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL COUNT ( ALL - ( + col1 ) ) + + 39 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - col0 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * col0 col0 FROM tab2
----
2065
4019
5558

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - 29 NOT IN ( - col2 + 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT - 70 - - SUM( DISTINCT + 23 + col0 ) col1 FROM tab1 WHERE NOT + 93 IN ( - col0 )
----
226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4785
SELECT - 70 - - SUM ( DISTINCT + 23 + col0 ) col1 FROM tab1 WHERE NOT + 93 IN ( - col0 )
----
226

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT 72 * 52 + 46 BETWEEN NULL AND - col2 / + col0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT COUNT( 94 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4787
SELECT COUNT ( 94 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( 15 * col2 ) NOT IN ( col1 + - ( - col2 - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( 15 * col2 ) NOT IN ( col1 + - ( - col2 - col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT DISTINCT + col1 + + ( + col1 - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4789
SELECT DISTINCT + col1 + + ( + col1 - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL COUNT( * ) * 82 AS col1 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL COUNT ( * ) * 82 AS col1 FROM tab0 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4792
SELECT ALL 61 DIV - MAX( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL 61 / - MAX ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - 14 AS col2 FROM tab0 AS cor0
----
-1218
-1358
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT 47 * - COUNT( DISTINCT + col0 * col0 ) FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4794
SELECT 47 * - COUNT ( DISTINCT + col0 * col0 ) FROM tab0 AS cor0
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4795
SELECT DISTINCT COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT ALL COUNT( * ) * - COUNT( * ) + 19 AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL COUNT ( * ) * - COUNT ( * ) + 19 AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT 3 + 70 AS col2 FROM tab1
----
73
73
73

query I rowsort
SELECT col1 FROM tab2 WHERE + col2 * - col0 > ( - col2 / col2 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT MIN( 19 ) * 97 AS col1 FROM tab2
----
1843

skipif mysql # not compatible
query I rowsort label-4800
SELECT MIN ( 19 ) * 97 AS col1 FROM tab2
----
1843

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4801
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + 95 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + 95 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT DISTINCT 59 DIV col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT 59 / col2 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT 17 * + col0 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT + 13 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - col0 - - 57 AS col1 FROM tab0 AS cor0
----
282
7626
9466

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - ( 65 ) - - col1 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4806
SELECT ALL COUNT( * ) DIV 8 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4806
SELECT ALL COUNT ( * ) / 8 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT ALL 29 * col0 - + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
2523
2812
432

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL 29 * col0 - + col2 / col0 AS col2 FROM tab0 AS cor0
----
2523
2812
432

query I rowsort
SELECT DISTINCT col0 + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4809
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / col0 BETWEEN ( NULL ) AND ( col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT DISTINCT + 89 + + ( COUNT( * ) ) + - 15 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT + 89 + + ( COUNT ( * ) ) + - 15 FROM tab2
----
77

query I rowsort
SELECT - col0 * col1 * - 63 - col2 * ( col2 ) AS col0 FROM tab1
----
23294
264827
35766

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT 71 * + + COUNT( * ) col1 FROM tab0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4813
SELECT 71 * + + COUNT ( * ) col1 FROM tab0
----
213

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT SUM( - + 31 ) AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-4814
SELECT SUM ( - + 31 ) AS col1 FROM tab2
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT MIN( + 36 ) * COUNT( * ) AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-4815
SELECT MIN ( + 36 ) * COUNT ( * ) AS col2 FROM tab1
----
108

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4816
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 57 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT - SUM( - 39 ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - SUM ( - 39 ) FROM tab1
----
117

query I rowsort
SELECT ALL + + 97 * - 13 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 57a996c5c4b6c7012024b8662b93ba28

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 NOT BETWEEN ( col1 + - 27 ) AND + col0
----

query I rowsort
SELECT - col1 * + 80 AS col1 FROM tab0
----
-1680
-6480
-80

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IN ( + col2 ) )
----

query I rowsort
SELECT - col0 * + + col0 * col2 FROM tab0
----
-10575
-75690
-931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT + CAST( 40 AS SIGNED ) * - ( - CAST( NULL AS SIGNED ) ) * + 26 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT + CAST ( 40 AS INTEGER ) * - ( - CAST ( NULL AS INTEGER ) ) * + 26 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - col2 * - col2 ) BETWEEN - 63 AND - col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4827
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4827
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT AVG ( + col0 ) * - 28 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 90 )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 26 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 39 IN ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT ALL ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4831
SELECT ALL ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4832
SELECT DISTINCT + - CAST( + 22 AS SIGNED ) * - + col0 + + col2 FROM tab1 AS cor0
----
1218
1929
2070

skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT + - CAST ( + 22 AS INTEGER ) * - + col0 + + col2 FROM tab1 AS cor0
----
1218
1929
2070

query II rowsort
SELECT ALL - 85, 65 AS col1 FROM tab1 AS cor0
----
-85
65
-85
65
-85
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + + COUNT( - col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4834
SELECT + + COUNT ( - col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * + 74 + + 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 26 + + 39 FROM tab2
----
65
65
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4837
SELECT + 7 * CAST( COUNT( * ) AS SIGNED ) * 74 * 31 + + COUNT( * ) + + COUNT( DISTINCT 68 + col2 * 3 ) AS col1 FROM tab0
----
48180

skipif mysql # not compatible
query I rowsort label-4837
SELECT + 7 * CAST ( COUNT ( * ) AS INTEGER ) * 74 * 31 + + COUNT ( * ) + + COUNT ( DISTINCT 68 + col2 * 3 ) AS col1 FROM tab0
----
48180

query I rowsort
SELECT ALL + ( + col1 ) * - col1 + + - col0 - 59 * - col0 FROM tab1
----
2762
3069
4905

query I rowsort
SELECT DISTINCT 80 * - col2 * col1 FROM tab0
----
-16800
-304560
-7920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL - col0 FROM tab1 WHERE ( + 63 ) BETWEEN ( 91 * 51 ) AND - col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - col0 FROM tab1 WHERE ( + 63 ) BETWEEN ( 91 * 51 ) AND - col2 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT DISTINCT + col2 * + 39 * ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT + col2 * + 39 * ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT COUNT( * ) * - 5 + - 21 + - + ( + COUNT( * ) ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT COUNT ( * ) * - 5 + - 21 + - + ( + COUNT ( * ) ) FROM tab0
----
-39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4843
SELECT + COUNT( + col1 ) * - - CAST( NULL AS SIGNED ) + - - 29 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT + COUNT ( + col1 ) * - - CAST ( NULL AS INTEGER ) + - - 29 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * + 33 * - - col1 - col0 * - 33 FROM tab0 AS cor0
----
40590
63162
6402

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT col1 = + 72 * - 70 + - 23
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4846
SELECT DISTINCT COUNT( * ) AS col1, + ( - SUM( + 71 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-639

skipif mysql # not compatible
query II rowsort label-4846
SELECT DISTINCT COUNT ( * ) AS col1, + ( - SUM ( + 71 ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-639

query I rowsort
SELECT + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT 44 + - col0 AS col2 FROM tab1
----
-41
-47
-7

query I rowsort
SELECT DISTINCT - col2 - 67 + - + col2 * col1 * + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-12615787
-21858875
-2482158

query I rowsort
SELECT + col2 + - + 81 FROM tab1 AS cor0
----
-13
-22
15

query I rowsort
SELECT ALL + col1 - - - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL - 85 - + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL - 85 - + COUNT ( * ) FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col1 + - - ( - col0 ) * + - col1 * col2 AS col0 FROM tab1 AS cor0
----
25070
290789
68530

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( col0 ) IS NOT NULL
----

query I rowsort
SELECT 61 * - col2 AS col1 FROM tab1
----
-3599
-4148
-5856

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT ( - - col2 ) / + col0 >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col1 ) + - - 11 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT ALL COUNT( * ) * + 27 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL COUNT ( * ) * + 27 FROM tab1
----
81

query II rowsort
SELECT ALL - col1 * 37, - col1 AS col1 FROM tab0
----
-2997
-81
-37
-1
-777
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL + ( - 73 ) DIV + 99 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4860
SELECT ALL + ( - 73 ) / + 99 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT MAX( + col0 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + - 71 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4861
SELECT MAX ( + col0 ) FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( + - 71 )
----
NULL

query II rowsort
SELECT 7 AS col2, + 37 + col0 FROM tab0
----
7
124
7
134
7
52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4863
SELECT DISTINCT COUNT( * ) DIV + 34 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4863
SELECT DISTINCT COUNT ( * ) / + 34 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL - MIN( ALL - - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL - MIN ( ALL - - col1 ) FROM tab2 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + col2 col0, 25 FROM tab0
----
210
25
3807
25
99
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4866
SELECT ALL col0 DIV + col1 AS col1, CAST( - 75 AS SIGNED ) FROM tab0
----
0
-75
4
-75
97
-75

skipif mysql # not compatible
query II rowsort label-4866
SELECT ALL col0 / + col1 AS col1, CAST ( - 75 AS INTEGER ) FROM tab0
----
0
-75
4
-75
97
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT + CAST( - 6 AS SIGNED ) + - - ( 16 ) FROM tab2 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( - 6 AS INTEGER ) + - - ( 16 ) FROM tab2 AS cor0
----
10
10
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4869
SELECT CAST( - + col2 AS SIGNED ) + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-4869
SELECT CAST ( - + col2 AS INTEGER ) + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 * + 97 + + col2 - + - col1 + - col2 col0 FROM tab1 AS cor0
----
4758
4767
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 7 - + + col1 col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE col0 <= 16
----

query I rowsort
SELECT DISTINCT + + 85 + - + col0 FROM tab2 cor0 WHERE NOT - col1 IN ( col1, col0 )
----
10
21
39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 24 > ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL > ( - col2 - - + 34 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4876
SELECT ALL COUNT( ALL + + col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4876
SELECT ALL COUNT ( ALL + + col2 ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND 39
----

query II rowsort
SELECT 50 AS col2, ( - + col1 ) FROM tab1
----
50
-14
50
-47
50
-5

query I rowsort
SELECT + col2 - + 56 AS col2 FROM tab0 WHERE + - 33 IS NOT NULL
----
-46
-9
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4880
SELECT MIN( DISTINCT + - 52 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-4880
SELECT MIN ( DISTINCT + - 52 ) FROM tab0
----
-52

query I rowsort
SELECT - + col1 + + col1 + - col1 AS col2 FROM tab1 WHERE - - col0 NOT IN ( + ( - - col0 ), col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL + CAST( - 77 AS SIGNED ) + - 79 AS col2 FROM tab1
----
-156
-156
-156

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL + CAST ( - 77 AS INTEGER ) + - 79 AS col2 FROM tab1
----
-156
-156
-156

query I rowsort
SELECT ALL ( + 86 ) AS col2 FROM tab0
----
86
86
86

query I rowsort
SELECT DISTINCT - col2 * - col1 + + col2 AS col1 FROM tab0
----
198
220
3854

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 / - - 12 NOT BETWEEN + col0 AND + col2 * col1 * - + 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT COUNT( * ) + + 48 AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4887
SELECT COUNT ( * ) + + 48 AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4888
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4888
SELECT DISTINCT - CAST ( NULL AS REAL ) + + + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4889
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 62 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4889
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 62 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT ALL + 87 - + - COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL + 87 - + - COUNT ( * ) FROM tab2 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 78 > + + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL + MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL + MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col0 FROM tab0 AS cor0 WHERE NOT ( + col2 ) + - 51 IS NULL
----
86
86
86

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4894
SELECT DISTINCT - col1 * + 32 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4894
SELECT DISTINCT - col1 * + 32 * - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4895
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) * 38 AS col0, ( + 44 ) FROM tab0
----
NULL
44
NULL
44
NULL
44

skipif mysql # not compatible
query II rowsort label-4895
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) * 38 AS col0, ( + 44 ) FROM tab0
----
NULL
44
NULL
44
NULL
44

query I rowsort
SELECT 30 * + 84 FROM tab2
----
2520
2520
2520

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL col1 * - + ( - 90 ) * - - 68 + - 33 FROM tab2
----
312087
410007
471207

onlyif mysql # DIV for integer division: 
query I rowsort label-4899
SELECT + 7 DIV 87 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4899
SELECT + 7 / 87 / - col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT MIN( DISTINCT 13 ) AS col0 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-4901
SELECT MIN ( DISTINCT 13 ) AS col0 FROM tab2
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, col2 + - col0 AS col1 FROM tab1
----
14
45
47
-23
5
-26

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 = - ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 + + col1 < ( col0 * col2 * - 37 + + - 57 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + COUNT( DISTINCT - col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4906
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
0

query II rowsort
SELECT DISTINCT - col2, 24 * + + col2 AS col2 FROM tab2 AS cor0
----
-23
552
-40
960
-58
1392

query I rowsort
SELECT - - 82 FROM tab1 AS cor0 WHERE 37 + - col0 NOT BETWEEN NULL AND - 12
----

query I rowsort
SELECT ALL + 20 + 64 * + + col0 FROM tab2 cor0
----
2964
4116
4820

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT SUM( DISTINCT + - 19 ) + 12 col0 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4910
SELECT SUM ( DISTINCT + - 19 ) + 12 col0 FROM tab1
----
-7

query I rowsort
SELECT DISTINCT col1 + ( - 81 ) AS col1 FROM tab2
----
-14
-30
-4

query I rowsort
SELECT + 14 * col2 + + + col1 AS col0 FROM tab2
----
373
637
879

query I rowsort
SELECT + 31 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT ALL col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT ALL col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 72 * 63 + 16 AS col2 FROM tab2
----
-4520
-4520
-4520

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT ALL SUM( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4916
SELECT ALL SUM ( DISTINCT + - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col2 FROM tab2 AS cor0
----
-64
-64
-64

query II rowsort
SELECT + col1 * - col1 AS col1, - col1 AS col0 FROM tab1 AS cor0
----
-196
-14
-2209
-47
-25
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-4919
SELECT + + col0 DIV ( - col2 ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4919
SELECT + + col0 / ( - col2 ) FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4920
SELECT - - 36 * + COUNT( * ) FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4920
SELECT - - 36 * + COUNT ( * ) FROM tab2 AS cor0
----
108

query I rowsort
SELECT ALL + col1 * - + col0 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 WHERE - + 55 + - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1, ( 25 ) * + 35 * - col1 * + 32 + + + col1 AS col0 FROM tab0
----
-1
-27999
-21
-587979
-81
-2267919

query II rowsort
SELECT + - 7 AS col2, col1 FROM tab1 AS cor0
----
-7
14
-7
47
-7
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 19 - ( col1 ) + - + col1 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT DISTINCT - ( - - COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4926
SELECT DISTINCT - ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT ALL + ( - - SUM( ALL + - ( + + 24 ) ) ) * + COUNT( * ) * + COUNT( * ) AS col2, - 4 AS col1 FROM tab1 AS cor0
----
-648
-4

skipif mysql # not compatible
query II rowsort label-4928
SELECT ALL + ( - - SUM ( ALL + - ( + + 24 ) ) ) * + COUNT ( * ) * + COUNT ( * ) AS col2, - 4 AS col1 FROM tab1 AS cor0
----
-648
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4929
SELECT - + 87, 6 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87
18

skipif mysql # not compatible
query II rowsort label-4929
SELECT - + 87, 6 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4930
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - - col1 + + col1 + 42 <> - col0
----

skipif mysql # not compatible
query III rowsort label-4930
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - - col1 + + col1 + 42 <> - col0
----

query II rowsort
SELECT DISTINCT - + col0 AS col2, - 7 FROM tab1 AS cor0
----
-51
-7
-85
-7
-91
-7

query II rowsort
SELECT ALL + 69 AS col2, + col0 * - col1 * - 24 - - 50 + - - col0 + + ( + + col0 ) * col1 FROM tab2 AS cor0
----
69
123314
69
125750
69
58746

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 60 col1 FROM tab2 AS cor0
----
2760
3840
4500

onlyif mysql # aggregate syntax: 
query II rowsort label-4934
SELECT - - COUNT( * ) AS col1, 21 AS col1 FROM tab2 cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-4934
SELECT - - COUNT ( * ) AS col1, 21 AS col1 FROM tab2 cor0
----
3
21

query I rowsort
SELECT ALL - col1 * + - ( - + col0 ) AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT ALL - SUM( DISTINCT + 74 ) AS col0 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL - SUM ( DISTINCT + 74 ) AS col0 FROM tab2
----
-74

query II rowsort
SELECT DISTINCT - 36 * + col0 AS col0, 60 FROM tab2 AS cor0
----
-1656
60
-2304
60
-2700
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 BETWEEN + col2 * + 21 AND col1 * + 96
----

query I rowsort
SELECT col0 * 35 * - + col2 FROM tab2 AS cor0
----
-152250
-37030
-89600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT DISTINCT col2 * - + CAST( + 20 AS SIGNED ) FROM tab2 AS cor0
----
-1160
-460
-800

skipif mysql # not compatible
query I rowsort label-4940
SELECT DISTINCT col2 * - + CAST ( + 20 AS INTEGER ) FROM tab2 AS cor0
----
-1160
-460
-800

query I rowsort
SELECT col1 + col2 FROM tab0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT 47 * - COUNT( * ) + 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-400

skipif mysql # not compatible
query I rowsort label-4942
SELECT 47 * - COUNT ( * ) + 23 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-400

query I rowsort
SELECT DISTINCT - 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-27

query I rowsort
SELECT DISTINCT 96 + - 13 AS col1 FROM tab0
----
83

query I rowsort
SELECT DISTINCT 23 + - col2 FROM tab2
----
-17
-35
0

query I rowsort
SELECT col0 + - col1 * - - col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT - 30 - + 99 * AVG ( DISTINCT + 45 ) AS col2 FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
NULL

query I rowsort
SELECT + col2 + + - 65 AS col2 FROM tab2 cor0
----
-25
-42
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT DISTINCT + - 5 DIV - col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT DISTINCT + - 5 / - col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT MIN( ALL + col0 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-4950
SELECT MIN ( ALL + col0 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-4951
SELECT DISTINCT col0 DIV 93 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4951
SELECT DISTINCT col0 / 93 col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4952
SELECT DISTINCT CAST( + - col1 AS SIGNED ) + + col0 DIV - - col2 AS col2 FROM tab0 AS cor0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT CAST ( + - col1 AS INTEGER ) + + col0 / - - col2 AS col2 FROM tab0 AS cor0
----
-1
-13
-81

query I rowsort
SELECT ALL + ( + ( + 53 ) ) FROM tab1 cor0
----
53
53
53

query I rowsort
SELECT ALL - ( + + 32 ) AS col0 FROM tab0 WHERE NOT 71 * - + col1 / - col1 + - - 83 IS NULL
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL 96 + COUNT( * ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL 96 + COUNT ( * ) FROM tab0
----
99

query I rowsort
SELECT ( - ( ( + col1 ) ) ) AS col2 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - + col0 col0, col1 + + 95 * - col0 * 98 FROM tab2
----
0
-428209
0
-595763
0
-698183

query I rowsort
SELECT ALL - ( + 22 ) + - col1 FROM tab2
----
-73
-89
-99

query II rowsort
SELECT - col0 AS col2, col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4960
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) ) + - - 79 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) ) + - - 79 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT + COUNT( * ) - - MIN( ALL + - 15 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-4961
SELECT + COUNT ( * ) - - MIN ( ALL + - 15 ) FROM tab2
----
-12

query I rowsort
SELECT DISTINCT 99 * - + 60 - + 87 FROM tab2
----
-6027

query I rowsort
SELECT + ( col1 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col1 AS col1, + col2 col1, + col2 * + col2 AS col2 FROM tab0 AS cor0
----
9 values hashing to 278b80043e3ee7231bfe19e950193056

onlyif mysql # DIV for integer division: 
query I rowsort label-4965
SELECT ALL - 29 DIV 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL - 29 / 60 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT COUNT( * ) * - 39 * + 95 AS col1 FROM tab2
----
-11115

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( * ) * - 39 * + 95 AS col1 FROM tab2
----
-11115

query I rowsort
SELECT ALL + + 1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 >= ( 26 )
----
15
81
47

query I rowsort
SELECT ALL col2 * + + col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT 65 * + col2 + - col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT 3 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query II rowsort
SELECT + 76 AS col1, col0 + col0 AS col1 FROM tab0
----
76
174
76
194
76
30

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT + SUM( ALL + col1 ) col0 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4973
SELECT + SUM ( ALL + col1 ) col0 FROM tab1
----
66

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 9 IS NULL
----

query I rowsort
SELECT + 68 * col1 AS col1 FROM tab0
----
1428
5508
68

query II rowsort
SELECT - 83, - 89 AS col2 FROM tab2
----
-83
-89
-83
-89
-83
-89

query I rowsort
SELECT ALL col1 * + 49 AS col0 FROM tab1
----
2303
245
686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 col0 FROM tab2
----
68
68
68

query II rowsort
SELECT ALL 2 + + - col0 AS col0, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4980
SELECT - ( CAST( + + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4980
SELECT - ( CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 25 AS col1, 32 col0 FROM tab2 WHERE + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 WHERE + 48 * col2 <= - 86
----

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 48 * col2 <= - 86
----

query I rowsort
SELECT - col1 * - + col1 * - 96 AS col1 FROM tab2
----
-249696
-430944
-569184

onlyif mysql # DIV for integer division: 
query I rowsort label-4984
SELECT DISTINCT col0 DIV + - 82 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT col0 / + - 82 FROM tab0
----
-1
0

query I rowsort
SELECT - + col1 + - 56 FROM tab0 AS cor0
----
-137
-57
-77

query II rowsort
SELECT ALL + 85 * - col2, col0 AS col0 FROM tab1 cor0
----
-5015
85
-5780
91
-8160
51

query I rowsort
SELECT 51 * - 94 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-4794
-4794
-4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4988
SELECT + col2 FROM tab0 AS cor0 WHERE + col2 - 98 - - col0 IN ( 64, + col0 * - 20 * - col0, + col0, - col0 / + + col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4988
SELECT + col2 FROM tab0 AS cor0 WHERE + col2 - 98 - - col0 IN ( 64, + col0 * - 20 * - col0, + col0, - col0 / + + col1 + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT + - 76 + - col2 * - CAST( 14 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
246
484
736

skipif mysql # not compatible
query I rowsort label-4990
SELECT + - 76 + - col2 * - CAST ( 14 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
246
484
736

onlyif mysql # aggregate syntax: 
query I rowsort label-4991
SELECT DISTINCT + - MIN( + + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + - MIN ( + + col0 ) FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-4992
SELECT + 62 DIV + 59 + + col0 + - - col2 * col0 - + 13 FROM tab2
----
1092
2612
4413

skipif mysql # not compatible
query I rowsort label-4992
SELECT + 62 / + 59 + + col0 + - - col2 * col0 - + 13 FROM tab2
----
1092
2612
4413

query I rowsort
SELECT DISTINCT - col0 + + 84 FROM tab0
----
-13
-3
69

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4994
SELECT ALL + ( - 96 ) + 85 + - CAST( NULL AS DECIMAL ) + + CAST( + - col2 AS SIGNED ) + - col1 * - + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + ( - 96 ) + 85 + - CAST ( NULL AS REAL ) + + CAST ( + - col2 AS INTEGER ) + - col1 * - + ( - col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT ALL COUNT( * ) + + 82 AS col1 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4995
SELECT ALL COUNT ( * ) + + 82 AS col1 FROM tab2
----
85

query I rowsort
SELECT ALL - 98 + col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col1 * - 95 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4845
-6365
-7315

query I rowsort
SELECT - col0 * + ( - col1 ) * - - ( - - 48 ) AS col2 FROM tab2 AS cor0
----
112608
236544
241200

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT SUM( DISTINCT col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-5000
SELECT 33 AS col1, SUM( col2 ) FROM tab2
----
33
121

skipif mysql # not compatible
query II rowsort label-5000
SELECT 33 AS col1, SUM ( col2 ) FROM tab2
----
33
121

onlyif mysql # aggregate syntax: 
query II rowsort label-5001
SELECT ALL COUNT( * ), 24 - - + 35 col2 FROM tab2 cor0
----
3
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5001
SELECT ALL COUNT ( * ), 24 - - + 35 col2 FROM tab2 cor0
----
3
59

query I rowsort
SELECT ( 69 ) AS col2 FROM tab1 AS cor0
----
69
69
69

query I rowsort
SELECT - + 67 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-67
-67
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5004
SELECT - col2, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5004
SELECT - col2, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT - + col0 AS col2, + col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT + col1 * - - ( col0 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL + + 0 * - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + + 0 * - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - - 15 AS col0 FROM tab1 AS cor0
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT ALL ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT + CAST( - 0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5010
SELECT + CAST ( - 0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 NOT BETWEEN - col0 AND - col1
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5012
SELECT DISTINCT + 97 + - + col0 + col0 - - - col1 * - CAST( NULL AS SIGNED ) * - 12 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT + 97 + - + col0 + col0 - - - col1 * - CAST ( NULL AS INTEGER ) * - 12 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col0 col1, 32 * + col2 AS col1 FROM tab1
----
425
1888
4277
2176
714
3072

query I rowsort
SELECT col1 + + col2 FROM tab0 WHERE NOT NULL IN ( - - col2 * - + col0 + col1 )
----

query II rowsort
SELECT col0 * + 70 AS col0, col2 AS col2 FROM tab0
----
1050
47
6090
10
6790
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + - col1 col0 FROM tab0
----
-1215
-15
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5017
SELECT SUM( ALL + - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5017
SELECT SUM ( ALL + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * - ( + - col1 ) AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5019
SELECT DISTINCT + 11 + + col0 + - ( + - 62 ) DIV - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
108
25
92

skipif mysql # not compatible
query I rowsort label-5019
SELECT DISTINCT + 11 + + col0 + - ( + - 62 ) / - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
108
25
92

query III rowsort
SELECT * FROM tab2 WHERE - + col0 = - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5021
SELECT ALL + COUNT( ALL - ( col2 ) ) col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5021
SELECT ALL + COUNT ( ALL - ( col2 ) ) col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
3
NULL

query I rowsort
SELECT DISTINCT + + ( 51 ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + + MIN( DISTINCT - - col2 ) * - SUM( DISTINCT + + 99 ) col1 FROM tab2 AS cor0
----
-2277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT + + MIN ( DISTINCT - - col2 ) * - SUM ( DISTINCT + + 99 ) col1 FROM tab2 AS cor0
----
-2277

query I rowsort
SELECT DISTINCT - col0 - - 58 FROM tab2 AS cor0
----
-17
-6
12

onlyif mysql # aggregate syntax: 
query II rowsort label-5025
SELECT DISTINCT - COUNT( * ), COUNT( * ) col0 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5025
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) col0 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5026
SELECT DISTINCT 22 + COUNT( * ) DIV - 54 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT 22 + COUNT ( * ) / - 54 FROM tab2
----
22

query II rowsort
SELECT ALL - ( + col0 ) AS col1, 91 FROM tab2
----
-46
91
-64
91
-75
91

query I rowsort
SELECT ALL col1 + - - col0 FROM tab0
----
108
96
98

query II rowsort
SELECT 5 - col1 AS col1, + col1 AS col2 FROM tab0
----
-16
21
-76
81
4
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> + + 36
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5032
SELECT - - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5032
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5033
SELECT 0 DIV col2 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5033
SELECT 0 / col2 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5034
SELECT DISTINCT + ( + + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5034
SELECT DISTINCT + ( + + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 76 * + col0 FROM tab2 AS cor0
----
3496
4864
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT SUM( DISTINCT col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-5036
SELECT SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
227

query II rowsort
SELECT 0, col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT - col2 * 25 * + col2 + 7 * + ( col1 ) AS col2 FROM tab0
----
-2353
-245018
-54658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) * + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) * + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 23 + + + 0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5042
SELECT ALL + + COUNT( * ) AS col0, + COUNT( + 21 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5042
SELECT ALL + + COUNT ( * ) AS col0, + COUNT ( + 21 ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 IN ( col2 - ( + - col2 ) * + ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - - col2 ), 82 * - - col0 + - + col1 + + 28 * + - col0 col2 FROM tab1
----
59
4585
68
4867
96
2740

query I rowsort
SELECT ALL + - 80 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query I rowsort
SELECT DISTINCT + + 92 FROM tab0 cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5047
SELECT DISTINCT + MAX( - 0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + MAX ( - 0 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT SUM( ALL 72 ) + - COUNT( ALL + 3 ) * - COUNT( * ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5048
SELECT SUM ( ALL 72 ) + - COUNT ( ALL + 3 ) * - COUNT ( * ) FROM tab1 AS cor0
----
225

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT ALL 78 - - SUM( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL 78 - - SUM ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
234

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < - 31
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5051
SELECT 65 + - 1 AS col1, - COUNT( ALL ( 45 ) ) FROM tab1 AS cor0
----
64
-3

skipif mysql # not compatible
query II rowsort label-5051
SELECT 65 + - 1 AS col1, - COUNT ( ALL ( 45 ) ) FROM tab1 AS cor0
----
64
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) * + col1 + col1 > - col1 + 15 + + col0 * + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT ALL + MAX( - - col1 ) * - COUNT( * ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-5053
SELECT ALL + MAX ( - - col1 ) * - COUNT ( * ) FROM tab2
----
-231

query III rowsort
SELECT * FROM tab2 WHERE NOT + 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - MAX( + + 53 ) AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-5055
SELECT - MAX ( + + 53 ) AS col0 FROM tab2 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5056
SELECT DISTINCT - - 42 * col0 DIV 69 FROM tab2 AS cor0
----
28
38
45

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT - - 42 * col0 / 69 FROM tab2 AS cor0
----
28
38
45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > + col2 * + + ( col0 ) * + col1
----

query I rowsort
SELECT + - 4 AS col2 FROM tab1 cor0
----
-4
-4
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 36 <> + col1
----

query II rowsort
SELECT + col0 + 22 AS col2, col2 FROM tab1 AS cor0
----
107
59
113
68
73
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - + MAX( + - col0 ) + + 35 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5061
SELECT - + MAX ( + - col0 ) + + 35 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL - COUNT( * ) * - 85 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
255

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL - COUNT ( * ) * - 85 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT SUM( - + 69 ) + - + 13 AS col2 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-5063
SELECT SUM ( - + 69 ) + - + 13 AS col2 FROM tab1 AS cor0
----
-220

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT DISTINCT + MAX( + - 88 ) col1 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT DISTINCT + MAX ( + - 88 ) col1 FROM tab2 AS cor0
----
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 30 + col0 AND NULL
----

query I rowsort
SELECT col1 * 24 * - + col0 FROM tab2 AS cor0
----
-118272
-120600
-56304

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <> + - col1
----

query I rowsort
SELECT DISTINCT ( 52 ) * - col1 + col1 FROM tab0
----
-1071
-4131
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - SUM( DISTINCT - ( - col1 ) ) * + COUNT( * ) * - COUNT( * ) FROM tab0 WHERE + - 95 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5069
SELECT - SUM ( DISTINCT - ( - col1 ) ) * + COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE + - 95 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND col0 )
----

query I rowsort
SELECT ALL 5 * + - col1 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT col1 * - + 37 AS col0 FROM tab0
----
-2997
-37
-777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5073
SELECT CAST( 13 AS SIGNED ) * + MIN( - col1 ) FROM tab1
----
-611

skipif mysql # not compatible
query I rowsort label-5073
SELECT CAST ( 13 AS INTEGER ) * + MIN ( - col1 ) FROM tab1
----
-611

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75

query I rowsort
SELECT + - 73 + - col2 FROM tab0 cor0
----
-120
-172
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT ALL - + ( + ( - col1 ) ) DIV + 94 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL - + ( + ( - col1 ) ) / + 94 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = + 87
----

query II rowsort
SELECT + col2 AS col0, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT ALL + + col1 - - ( + - 6 ) AS col2 FROM tab2 AS cor0
----
45
61
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5080
SELECT DISTINCT + + col1 - 88 DIV col0 FROM tab1 AS cor0
----
13
4
47

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT + + col1 - 88 / col0 FROM tab1 AS cor0
----
13
4
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, 2 col1 FROM tab0 AS cor0
----
-10
2
-47
2
-99
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col1 col0, + col2 AS col1, + 16 FROM tab2 AS cor0
----
9 values hashing to 769f41f1a25777c5b3388359efba355d

query III rowsort
SELECT * FROM tab0 WHERE NOT - 17 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5084
SELECT DISTINCT col0 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5084
SELECT DISTINCT col0 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE NOT col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col2 FROM tab2 WHERE NOT + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT + col0 * + + CAST( col0 AS SIGNED ) FROM tab2
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-5087
SELECT + col0 * + + CAST ( col0 AS INTEGER ) FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 <= + ( col1 ) + - - col2 * col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 90 - - col1 <= - + 29
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT DISTINCT - - SUM( ALL + col1 ) * - 14 FROM tab2 AS cor0
----
-2730

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - - SUM ( ALL + col1 ) * - 14 FROM tab2 AS cor0
----
-2730

query I rowsort
SELECT DISTINCT + col2 * - 18 AS col2 FROM tab2 cor0
----
-1044
-414
-720

query I rowsort
SELECT - + ( col0 ) - - + col2 + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
16
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col2 FROM tab0
----
4
4
4

query II rowsort
SELECT - col2 AS col2, col2 FROM tab1
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL - + 92 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

query I rowsort
SELECT DISTINCT col1 * - 41 FROM tab2
----
-2091
-2747
-3157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5097
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - - col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - - col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5098
SELECT COUNT( * ) DIV - 24 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5098
SELECT COUNT ( * ) / - 24 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT DISTINCT - - ( + + MAX( col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5099
SELECT DISTINCT - - ( + + MAX ( col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5100
SELECT ALL COUNT( * ) * COUNT( * ) * - + 72 AS col0, - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-648
-9

skipif mysql # not compatible
query II rowsort label-5100
SELECT ALL COUNT ( * ) * COUNT ( * ) * - + 72 AS col0, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-648
-9

query I rowsort
SELECT ALL col2 + + 35 AS col1 FROM tab1 AS cor0
----
103
131
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT + CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - col2 ) + + COUNT( * ) + COUNT( * ) + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT + CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - col2 ) + + COUNT ( * ) + COUNT ( * ) + COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + 72, - 87 FROM tab2 WHERE ( - - col0 ) / + + col0 + 59 <= NULL
----

query I rowsort
SELECT - col1 + - ( + + col0 ) AS col0 FROM tab0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT ALL CAST( NULL AS SIGNED ) + col1 * + + col1 * + col2 * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5105
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * + + col1 * + col2 * + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 + col1 * - - col1 FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT DISTINCT - + 49 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 99 + - col1 + + - 34 * + - ( - 19 ) * + col1 * 60 IN ( - 10 * - - 44 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * + col1 * - - 94 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5111
SELECT DISTINCT - SUM( - col0 ) + - COUNT( * ) - - - CAST( 73 AS SIGNED ) FROM tab1 cor0
----
151

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - SUM ( - col0 ) + - COUNT ( * ) - - - CAST ( 73 AS INTEGER ) FROM tab1 cor0
----
151

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 9 * + + col0 / - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 AS col2, 58 FROM tab2 AS cor0
----
-46
58
-64
58
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE col0 / 81 - + 44 - + col0 * + col1 + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE col0 / 81 - + 44 - + col0 * + col1 + col1 IS NULL
----
0

query I rowsort
SELECT col2 * - 25 FROM tab2 cor0
----
-1000
-1450
-575

query I rowsort
SELECT 64 * + col2 + - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3691
4261
6093

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5118
SELECT DISTINCT - col0 * + col0 + CAST( NULL AS SIGNED ) + col2 * - col1 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5118
SELECT DISTINCT - col0 * + col0 + CAST ( NULL AS INTEGER ) + col2 * - col1 AS col1, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT ALL - - MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5119
SELECT ALL - - MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / 38 BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 + 52 FROM tab0
----
-10
42
-47
5
-99
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT ALL - ( + - ( + - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5122
SELECT ALL - ( + - ( + - COUNT ( * ) ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5123
SELECT DISTINCT COUNT( * ) col1, + ( + MIN( - col1 ) ) FROM tab0
----
3
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5123
SELECT DISTINCT COUNT ( * ) col1, + ( + MIN ( - col1 ) ) FROM tab0
----
3
-81

query II rowsort
SELECT DISTINCT - 39, + 88 AS col0 FROM tab2 AS cor0
----
-39
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 11 NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT ALL - 32 * + 39 * 20 * + CAST( NULL AS SIGNED ) * - col2 * + + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL - 32 * + 39 * 20 * + CAST ( NULL AS INTEGER ) * - col2 * + + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + + col1 AS col0, + 89 FROM tab2 AS cor0
----
51
89
67
89
77
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT ALL + - 99, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-5128
SELECT ALL + - 99, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-99
3

query I rowsort
SELECT + + ( 88 ) AS col0 FROM tab1 AS cor0
----
88
88
88

query I rowsort
SELECT col1 + + 10 FROM tab1
----
15
24
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 + - 19 col0 FROM tab1
----
9
9
9

query I rowsort
SELECT - 55 + + ( + col0 ) FROM tab1 cor0
----
-4
30
36

query I rowsort
SELECT ALL - 17 * + col1 AS col1 FROM tab0 AS cor0
----
-1377
-17
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5134
SELECT col0 + CAST( - col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5134
SELECT col0 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL + COUNT( * ) * 86 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-774

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL + COUNT ( * ) * 86 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-774

onlyif mysql # DIV for integer division: 
query I rowsort label-5136
SELECT - 15 DIV - ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5136
SELECT - 15 / - ( - col0 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + 9 + - 72 + + + col0 FROM tab2 AS cor0
----
-17
1
12

query I rowsort
SELECT DISTINCT col1 + + - 67 + - col0 FROM tab2
----
-54
-62
-75

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE - + col1 IS NULL
----

query I rowsort
SELECT ALL + 19 + - + 11 FROM tab1
----
8
8
8

query III rowsort
SELECT * FROM tab1 WHERE col2 * + + col2 - + - col2 > NULL
----

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NULL < - col2 - - - col1 / + 58
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT DISTINCT - 54 DIV + COUNT( * ) + + COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT - 54 / + COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL col0 * - + 9 + - col0 * - col0 + - col1 FROM tab2
----
1651
3443
4883

query I rowsort
SELECT ALL col0 + - + 63 FROM tab1 AS cor0
----
-12
22
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 = + col0 / 61 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5147
SELECT DISTINCT - col2 - + - 5 - - 75 + col2 DIV + 75 AS col2 FROM tab1 AS cor0
----
-15
12
21

skipif mysql # not compatible
query I rowsort label-5147
SELECT DISTINCT - col2 - + - 5 - - 75 + col2 / + 75 AS col2 FROM tab1 AS cor0
----
-15
12
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5148
SELECT + 42 * + + MIN( 96 ) + + 58 col2 FROM tab1 AS cor0
----
4090

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT + 42 * + + MIN ( 96 ) + + 58 col2 FROM tab1 AS cor0
----
4090

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT ALL SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 9 IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 44 + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - - 53 + - col1 + - col1 AS col2 FROM tab0
----
1071
4131
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5153
SELECT + 97 * col2 DIV + + col2 FROM tab0
----
97
97
97

skipif mysql # not compatible
query I rowsort label-5153
SELECT + 97 * col2 / + + col2 FROM tab0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5154
SELECT ALL - col2 / - col0 * - col0 / + + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-5154
SELECT ALL - col2 / - col0 * - col0 / + + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - - MIN( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - - MIN ( DISTINCT + col1 ) AS col2 FROM tab1 AS cor0
----
5

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT col0 * - col1 * col0 - - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT col0, ( col1 ) FROM tab1 AS cor0 WHERE NOT NULL <> - col1 / col0
----

query I rowsort
SELECT DISTINCT - 78 AS col0 FROM tab2 cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT + MIN( DISTINCT col1 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5160
SELECT + MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT COUNT( ALL - + 45 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT COUNT ( ALL - + 45 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT 10 AS col1, COUNT( * ) - 88 + - 96 FROM tab0
----
10
-181

skipif mysql # not compatible
query II rowsort label-5162
SELECT 10 AS col1, COUNT ( * ) - 88 + - 96 FROM tab0
----
10
-181

query I rowsort
SELECT col2 * + 27 FROM tab2
----
1080
1566
621

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 95 IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 > + col0 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - col0 * 43 * - ( + 34 ) * 54 + - + col0 AS col2 FROM tab0
----
1184252
6868399
7657958

onlyif mysql # aggregate syntax: 
query II rowsort label-5169
SELECT ALL COUNT( * ) + SUM( ALL + col2 ) * + COUNT( * ), + COUNT( * ) + 69 AS col2 FROM tab2
----
366
72

skipif mysql # not compatible
query II rowsort label-5169
SELECT ALL COUNT ( * ) + SUM ( ALL + col2 ) * + COUNT ( * ), + COUNT ( * ) + 69 AS col2 FROM tab2
----
366
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 46 col0 FROM tab1 AS cor0 WHERE - 35 IN ( col1, col2, 72 )
----

query II rowsort
SELECT ALL + col1 AS col1, + col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5173
SELECT ALL + MIN( + - col2 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5173
SELECT ALL + MIN ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT - 92 + - COUNT( * ) AS col1, 47 FROM tab0 cor0
----
-95
47

skipif mysql # not compatible
query II rowsort label-5174
SELECT - 92 + - COUNT ( * ) AS col1, 47 FROM tab0 cor0
----
-95
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT ALL + SUM( DISTINCT + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL + SUM ( DISTINCT + col0 ) AS col0 FROM tab2
----
185

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 + - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + col2 * - col1 - - col1 AND + 92 / + 45
----

query I rowsort
SELECT DISTINCT + col0 / col1 + col0 FROM tab0 WHERE 79 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5180
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5180
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col1 AND CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE col0 + + col2 + + 48 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT DISTINCT + + COUNT( * ) * - + SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-5182
SELECT DISTINCT + + COUNT ( * ) * - + SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-585

query I rowsort
SELECT 94 - + col0 + + - 17 * - + 32 * - - col2 FROM tab0 AS cor0
----
25647
53853
5447

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5184
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IS NULL OR ( CAST( NULL AS SIGNED ) ) + col2 + + col1 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5184
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 IS NULL OR ( CAST ( NULL AS INTEGER ) ) + col2 + + col1 + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - - ( - - 74 ) ) AS col1 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query II rowsort label-5186
SELECT - COUNT( * ), - MAX( + col1 ) AS col0 FROM tab0 WHERE NOT + + col1 IS NULL
----
-3
-81

skipif mysql # not compatible
query II rowsort label-5186
SELECT - COUNT ( * ), - MAX ( + col1 ) AS col0 FROM tab0 WHERE NOT + + col1 IS NULL
----
-3
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-5187
SELECT + 88, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
88
-3

skipif mysql # not compatible
query II rowsort label-5187
SELECT + 88, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
88
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - col1 ), col2, - - col2 / + - 7 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5189
SELECT - + COUNT( ALL CAST( - col0 AS DECIMAL ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5189
SELECT - + COUNT ( ALL CAST ( - col0 AS REAL ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 8, - col0 col2 FROM tab1 AS cor0
----
-8
-51
-8
-85
-8
-91

query II rowsort
SELECT + + 82, + col1 AS col1 FROM tab0 AS cor0
----
82
1
82
21
82
81

query I rowsort
SELECT - ( + 40 ) AS col1 FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT + - COUNT( * ) FROM tab0 cor0 WHERE NOT NULL < - col2
----
0

skipif mysql # not compatible
query I rowsort label-5193
SELECT + - COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL < - col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT ALL 12 DIV col1 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL 12 / col1 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT ALL - MAX( ALL + col1 ) FROM tab1 WHERE NULL > - col2 / + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT ALL - MAX ( ALL + col1 ) FROM tab1 WHERE NULL > - col2 / + + col1
----
NULL

query I rowsort
SELECT ALL + 30 * + col1 AS col0 FROM tab0
----
2430
30
630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT ALL CAST( 21 AS SIGNED ) FROM tab2
----
21
21
21

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL CAST ( 21 AS INTEGER ) FROM tab2
----
21
21
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - ( + col2 ) / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-5199
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col2 DIV + + 4 > + + ( 72 )
----

skipif mysql # not compatible
query III rowsort label-5199
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + col2 / + + 4 > + + ( 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5200
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5201
SELECT DISTINCT * FROM tab2 WHERE ( NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + col2 + - - col2 )
----

skipif mysql # not compatible
query III rowsort label-5201
SELECT DISTINCT * FROM tab2 WHERE ( NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + col2 + - - col2 )
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT + + col0 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT ALL + + COUNT( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL + + COUNT ( + 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col0 + - 16 FROM tab0
----
-1
71
81

query I rowsort
SELECT 20 + - - 9 FROM tab0
----
29
29
29

query II rowsort
SELECT - col2, + col1 AS col0 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

query I rowsort
SELECT + ( - col1 ) * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 94 AS col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - ( col0 )
----

query II rowsort
SELECT col1, col1 * col0 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT 65 - - col1 AS col0 FROM tab2
----
116
132
142

query I rowsort
SELECT 55 - + - 33 AS col2 FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT col0 * 86 FROM tab0
----
1290
7482
8342

query II rowsort
SELECT ALL col0 - - col2 AS col2, - 36 * - + col1 * col1 AS col1 FROM tab1
----
144
900
147
7056
159
79524

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT 96 - COUNT( * ) AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-5215
SELECT 96 - COUNT ( * ) AS col2 FROM tab2
----
93

query I rowsort
SELECT 20 * - col2 + - 57 * + col1 FROM tab2
----
-3367
-4979
-5189

query II rowsort
SELECT DISTINCT 4 - + col1, 60 AS col2 FROM tab0
----
-17
60
-77
60
3
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5218
SELECT ALL + SUM( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 28 + + ( + CAST( - col1 AS SIGNED ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + SUM ( col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 28 + + ( + CAST ( - col1 AS INTEGER ) ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - 85 FROM tab1 AS cor0
----
-1190
-3995
-425

query I rowsort
SELECT DISTINCT - col0 * + 76 AS col1 FROM tab0
----
-1140
-6612
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT ALL - MIN( DISTINCT - col0 ) * COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL - MIN ( DISTINCT - col0 ) * COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5222
SELECT 51 * + - CAST( - + col2 AS SIGNED ) + col2 * - - 2 * col0 FROM tab1 AS cor0
----
13039
14688
15844

skipif mysql # not compatible
query I rowsort label-5222
SELECT 51 * + - CAST ( - + col2 AS INTEGER ) + col2 * - - 2 * col0 FROM tab1 AS cor0
----
13039
14688
15844

query I rowsort
SELECT DISTINCT - - 77 AS col0 FROM tab2 AS cor0
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 14
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5225
SELECT DISTINCT + COUNT( * ) * 91 * - CAST( NULL AS SIGNED ) / + COUNT( * ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + COUNT ( * ) * 91 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5226
SELECT + ( + - 25 ), - COUNT( * ) + - - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 WHERE NOT + 43 * 46 * - - col0 - col1 - - 2 IS NOT NULL
----
-25
0

skipif mysql # not compatible
query II rowsort label-5226
SELECT + ( + - 25 ), - COUNT ( * ) + - - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 43 * 46 * - - col0 - col1 - - 2 IS NOT NULL
----
-25
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5227
SELECT ALL 43 + + + CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5227
SELECT ALL 43 + + + CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col1, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5229
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5230
SELECT DISTINCT * FROM tab0 WHERE NULL = - + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5230
SELECT DISTINCT * FROM tab0 WHERE NULL = - + CAST ( - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 96 ) col1 FROM tab2
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT ALL - CAST( - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL OR + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * + + col0 col0 FROM tab2 AS cor0
----
-4232
-5888
-6900

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE - col0 <> - col2
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + col0 - col2 ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + col0 + ( - ( - col2 ) + 40 )
----

query III rowsort
SELECT * FROM tab2 WHERE 33 + - 22 NOT BETWEEN NULL AND ( col2 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT CAST( NULL AS SIGNED ) + - 82 FROM tab1 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-5240
SELECT CAST ( NULL AS INTEGER ) + - 82 FROM tab1 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + col2 col0 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT - 28 + col2 FROM tab1
----
31
40
68

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT DISTINCT - col2 DIV + col0 AS col2 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT - col2 / + col0 AS col2 FROM tab0
----
-1
-3
0

query I rowsort
SELECT 72 + col0 * - 59 FROM tab0
----
-5061
-5651
-813

query I rowsort
SELECT + col1 + + 64 FROM tab0
----
145
65
85

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) <= - col1 * ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT ALL + MIN( DISTINCT 33 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
33

skipif mysql # not compatible
query I rowsort label-5249
SELECT ALL + MIN ( DISTINCT 33 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT DISTINCT SUM( DISTINCT ( col2 ) ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5250
SELECT DISTINCT SUM ( DISTINCT ( col2 ) ) FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 - 56 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 WHERE col2 * + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 79 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 22 * - 35 + + col2 FROM tab2
----
-712
-730
-747

query I rowsort
SELECT ALL - 76 * col2 FROM tab1
----
-4484
-5168
-7296

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) <> ( - 63 )
----

query I rowsort
SELECT ( 58 ) AS col0 FROM tab1
----
58
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 54 NOT BETWEEN NULL AND - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5259
SELECT CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) * - 99 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5259
SELECT CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) * - 99 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT MIN( ALL - 89 ) FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-5260
SELECT MIN ( ALL - 89 ) FROM tab2
----
-89

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( 71 * 61 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 46 * 9 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8ea6870453b7d3d8c68c2eea65774d2d

onlyif mysql # aggregate syntax: 
query I rowsort label-5264
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-5264
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 WHERE NULL NOT IN ( - 92 )
----

query I rowsort
SELECT col0 * 76 AS col0 FROM tab1 AS cor0
----
3876
6460
6916

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND ( col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 35 BETWEEN ( col0 ) AND 1 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT + MIN( - 21 ) col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5269
SELECT + MIN ( - 21 ) col1 FROM tab0 AS cor0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - 96 / col1 + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - 60 FROM tab1 AS cor0
----
-3060
-5100
-5460

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 25 - - col1 BETWEEN NULL AND + col0 * - 66
----

query I rowsort
SELECT ALL + + col0 * 52 AS col2 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-5274
SELECT ALL COUNT( DISTINCT + col1 ) + 23 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
23

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL COUNT ( DISTINCT + col1 ) + 23 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
23

query I rowsort
SELECT DISTINCT 48 * - col2 AS col0 FROM tab0 AS cor0
----
-2256
-4752
-480

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT ALL - MAX( DISTINCT 40 ) * 23 AS col2 FROM tab0 AS cor0
----
-920

skipif mysql # not compatible
query I rowsort label-5276
SELECT ALL - MAX ( DISTINCT 40 ) * 23 AS col2 FROM tab0 AS cor0
----
-920

query I rowsort
SELECT 31 - col1 FROM tab2 AS cor0 WHERE NOT 39 IS NULL
----
-20
-36
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5278
SELECT DISTINCT + + COUNT( * ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + + COUNT ( * ) / - COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT - MIN( + 22 ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5279
SELECT - MIN ( + 22 ) FROM tab1 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( - col0 * col2 ) NOT IN ( col1 / 81 )
----
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( - col0 * col2 ) NOT IN ( col1 / 81 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT + col0 DIV - col2 col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5281
SELECT + col0 / - col2 col1 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT DISTINCT + MAX( ALL + 68 ) + - 66 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + MAX ( ALL + 68 ) + - 66 FROM tab0
----
2

query I rowsort
SELECT col0 * 74 AS col0 FROM tab1
----
3774
6290
6734

query I rowsort
SELECT DISTINCT + 49 * + col1 + 77 * + col2 FROM tab1
----
4788
7539
8078

query I rowsort
SELECT col0 FROM tab2 WHERE NULL > + 61
----

query I rowsort
SELECT DISTINCT + col1 * - col0 - col0 AS col0 FROM tab1 WHERE 71 * col2 <> ( + 82 + col2 )
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-5287
SELECT + + col0 DIV - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5287
SELECT + + col0 / - col0 col2 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col0 * col2 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
4800
4956
6120

query I rowsort
SELECT ALL ( - 81 ) * col0 AS col1 FROM tab1 AS cor0
----
-4131
-6885
-7371

query III rowsort
SELECT * FROM tab1 WHERE ( NOT 81 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT SUM( - col1 ) + - - SUM( 27 ) + COUNT( * ) * 98 FROM tab0
----
272

skipif mysql # not compatible
query I rowsort label-5292
SELECT SUM ( - col1 ) + - - SUM ( 27 ) + COUNT ( * ) * 98 FROM tab0
----
272

query I rowsort
SELECT DISTINCT - - 93 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT DISTINCT - + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT - + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL + ( - col2 ) * 86 + + col0 AS col1 FROM tab2 AS cor0
----
-1932
-3376
-4913

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5296
SELECT ALL + col1 - + CAST( - 49 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
-2222
-469
-4850

skipif mysql # not compatible
query I rowsort label-5296
SELECT ALL + col1 - + CAST ( - 49 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
-2222
-469
-4850

query I rowsort
SELECT col2 AS col0 FROM tab0 cor0 WHERE ( 86 ) NOT BETWEEN ( - ( 24 ) * - col0 - - ( col1 ) ) AND NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE ( + CAST( + + col2 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5298
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE ( + CAST ( + + col2 AS INTEGER ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5299
SELECT + + col1, col1 DIV + + ( - col1 ) FROM tab0 AS cor0
----
1
-1
21
-1
81
-1

skipif mysql # not compatible
query II rowsort label-5299
SELECT + + col1, col1 / + + ( - col1 ) FROM tab0 AS cor0
----
1
-1
21
-1
81
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5300
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5301
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5301
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 * 26 + + 40 * + col1 AS col2 FROM tab0 AS cor0 WHERE col2 IN ( + col0 )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT col0 * - 78 NOT BETWEEN col1 AND + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT ALL + COUNT( DISTINCT - 2 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5304
SELECT ALL + COUNT ( DISTINCT - 2 ) col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5305
SELECT + - MIN( col1 ) + COUNT( 68 ) * + 47 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
140

skipif mysql # not compatible
query I rowsort label-5305
SELECT + - MIN ( col1 ) + COUNT ( 68 ) * + 47 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
140

query I rowsort
SELECT ALL ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5307
SELECT - MAX( DISTINCT - 81 ) - + COUNT( * ) col0 FROM tab1 cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5307
SELECT - MAX ( DISTINCT - 81 ) - + COUNT ( * ) col0 FROM tab1 cor0
----
78

query I rowsort
SELECT + 65 * - col0 - + + col0 AS col1 FROM tab0
----
-5742
-6402
-990

query II rowsort
SELECT - col0 * 47 AS col0, ( col1 ) + col1 * - col2 AS col2 FROM tab2
----
-2162
-1122
-3008
-3003
-3525
-3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 89 ) col0 FROM tab0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + col1 col2 FROM tab0 WHERE - 50 IS NULL AND NULL IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5312
SELECT MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5312
SELECT MAX ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) = ( ( col2 ) * + 63 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT ALL + - COUNT( * ) + - 48 FROM tab1 WHERE NOT col2 > NULL
----
-48

skipif mysql # not compatible
query I rowsort label-5314
SELECT ALL + - COUNT ( * ) + - 48 FROM tab1 WHERE NOT col2 > NULL
----
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( ( + - col2 ) NOT BETWEEN + col1 * + 3 AND NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 6 + + + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
27
7
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT + ( - 77 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT col0 + + + 81 * - 62 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - ( + + col2 ) / + + col1 / col0 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col2 + - 65 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT DISTINCT + + COUNT( DISTINCT - + 8 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT + + COUNT ( DISTINCT - + 8 ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col0 FROM tab2 cor0 WHERE NOT ( col0 - col0 + - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + SUM( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5324
SELECT + SUM ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - + col0 + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 47 + + col0 AS col1 FROM tab0 AS cor0
----
134
144
62

query I rowsort
SELECT DISTINCT + + 18 + - 84 AS col2 FROM tab2 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-5328
SELECT 81 * 92 + - MIN( ALL - col0 ) AS col1, 37 - + 93 + - ( COUNT( * ) + 58 ) AS col1 FROM tab0
----
7549
-117

skipif mysql # not compatible
query II rowsort label-5328
SELECT 81 * 92 + - MIN ( ALL - col0 ) AS col1, 37 - + 93 + - ( COUNT ( * ) + 58 ) AS col1 FROM tab0
----
7549
-117

query II rowsort
SELECT col0 + - - 4, - 58 AS col1 FROM tab1
----
55
-58
89
-58
95
-58

query III rowsort
SELECT * FROM tab0 WHERE 44 BETWEEN col0 AND ( - + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 99 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5332
SELECT DISTINCT - CAST( SUM( ALL + col0 ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-5332
SELECT DISTINCT - CAST ( SUM ( ALL + col0 ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0
----
-597

query I rowsort
SELECT col2 + - + col2 * col2 FROM tab1
----
-3422
-4556
-9120

query III rowsort
SELECT * FROM tab2 WHERE - + col1 BETWEEN ( - col0 - - 25 ) AND col0
----

query I rowsort
SELECT DISTINCT - 27 + + 97 AS col1 FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT + MIN( - col1 ) + - + COUNT( * ) FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-5336
SELECT + MIN ( - col1 ) + - + COUNT ( * ) FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT 59 + + - COUNT( * ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-5337
SELECT 59 + + - COUNT ( * ) FROM tab2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5338
SELECT + col2 * + CAST( - + 56 AS SIGNED ) AS col0 FROM tab1 cor0
----
-3304
-3808
-5376

skipif mysql # not compatible
query I rowsort label-5338
SELECT + col2 * + CAST ( - + 56 AS INTEGER ) AS col0 FROM tab1 cor0
----
-3304
-3808
-5376

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 85 * col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5341
SELECT - + col2 AS col0, CAST( NULL AS SIGNED ) / + - ( + - 57 ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5341
SELECT - + col2 AS col0, CAST ( NULL AS INTEGER ) / + - ( + - 57 ) FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT + col2 DIV + col0 - - col0 AS col1 FROM tab0
----
18
87
98

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + col2 / + col0 - - col0 AS col1 FROM tab0
----
18
87
98

query I rowsort
SELECT ALL - col1 * - + col0 - 51 + + col0 + - col1 + + 74 - + - col2 * - col0 AS col2 FROM tab2 AS cor0
----
1306
2378
706

query I rowsort
SELECT - - 47 + col2 AS col0 FROM tab1 cor0
----
106
115
143

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT DISTINCT - - 12 - + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT - - 12 - + COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT + + col0 * + - col0 + + col1 FROM tab1 AS cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT ALL - - MAX( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-5347
SELECT ALL - - MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT DISTINCT CAST( - + col0 AS SIGNED ) * + col0 + - + 77 * + + col1 * + 73 - col2 FROM tab0 AS cor0
----
-125620
-15129
-455573

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) * + col0 + - + 77 * + + col1 * + 73 - col2 FROM tab0 AS cor0
----
-125620
-15129
-455573

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT + MIN( 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT + MIN ( 49 ) FROM tab2 AS cor0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5350
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) * - 86 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5350
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - 86 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5351
SELECT ALL 33 col1, COUNT( * ) * - 89 AS col1 FROM tab1
----
33
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5351
SELECT ALL 33 col1, COUNT ( * ) * - 89 AS col1 FROM tab1
----
33
-267

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 + - col2 NOT BETWEEN - + col0 + - - 54 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - + 89 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL COUNT( * ) * 97 AS col0 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-5354
SELECT ALL COUNT ( * ) * 97 AS col0 FROM tab1
----
291

query I rowsort
SELECT + col0 + - + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
37
44
80

query II rowsort
SELECT - - col2 AS col1, + 42 FROM tab1 AS cor0
----
59
42
68
42
96
42

query I rowsort
SELECT DISTINCT - + 91 * + col0 / + ( - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT - COUNT( ALL - + 74 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5358
SELECT - COUNT ( ALL - + 74 ) FROM tab2
----
-3

query I rowsort
SELECT ALL ( 83 ) AS col2 FROM tab0
----
83
83
83

query I rowsort
SELECT - - 3 + - - col0 + col1 - - + col0 + + + 69 * - - col0 * - ( + - 4 ) * col1 + col1 AS col2 FROM tab0 AS cor0
----
26971
335535
504471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT - - ( + CAST( NULL AS SIGNED ) ) + - - col0 / ( 9 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT - - ( + CAST ( NULL AS INTEGER ) ) + - - col0 / ( 9 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL ( + COUNT( * ) ) + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL ( + COUNT ( * ) ) + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT col1 * - col1 * + 67 * - + col1 + - - col2 + - + col1 * + col1 FROM tab1
----
183748
6954000
8409

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5365
SELECT CAST( NULL AS DECIMAL ) * ( - COUNT( * ) ) FROM tab0 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT CAST ( NULL AS REAL ) * ( - COUNT ( * ) ) FROM tab0 WHERE + col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5366
SELECT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5366
SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 - - col1 * - col1 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT + 67 - + + col1 AS col2 FROM tab1
----
20
53
62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + col2 < - - col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT DISTINCT + SUM( + ( + - ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5370
SELECT DISTINCT + SUM ( + ( + - ( + col0 ) ) ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * - + col0 AS col2 FROM tab0
----
-1311
-7266
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + + COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5372
SELECT + + COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT DISTINCT 45 - - 19 FROM tab1
----
64

query I rowsort
SELECT ALL col0 - - col0 * - col2 AS col2 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 1 FROM tab2 AS cor0 WHERE + 68 * + col0 / - ( - + col2 ) IS NOT NULL
----
1

query I rowsort
SELECT ALL + 80 * + col0 FROM tab2 AS cor0
----
3680
5120
6000

query II rowsort
SELECT - 44, + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-44
2601
-44
4489
-44
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT DISTINCT ( + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - 25 ) col2 FROM tab0 AS cor0 WHERE NOT col2 + + col2 / - 71 * + - col0 IS NOT NULL
----

query I rowsort
SELECT 64 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # DIV for integer division: 
query II rowsort label-5382
SELECT - col0 DIV - col1 AS col1, - col0 col1 FROM tab2
----
0
-46
0
-64
1
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5382
SELECT - col0 / - col1 AS col1, - col0 col1 FROM tab2
----
0
-46
0
-64
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT + MAX( DISTINCT - 59 ) AS col0 FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-5383
SELECT + MAX ( DISTINCT - 59 ) AS col0 FROM tab0
----
-59

query I rowsort
SELECT + 3 * - - 32 AS col1 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-5385
SELECT COUNT( * ) AS col2, COUNT( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5385
SELECT COUNT ( * ) AS col2, COUNT ( * ) col2 FROM tab0 WHERE NOT NULL IS NULL
----
0
0

query I rowsort
SELECT - col0 * col1 * col1 AS col1 FROM tab0 cor0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5387
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-5387
SELECT DISTINCT + ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT + 22 AS col1, + 34 AS col1 FROM tab0 AS cor0 WHERE NULL <= + 37
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5389
SELECT - CAST( + col2 AS SIGNED ) * + + col1 + col0 DIV + + col1 FROM tab1 AS cor0
----
-1341
-278
-3195

skipif mysql # not compatible
query I rowsort label-5389
SELECT - CAST ( + col2 AS INTEGER ) * + + col1 + col0 / + + col1 FROM tab1 AS cor0
----
-1341
-278
-3195

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= ( - - col2 ) - - 77 * col1
----

query II rowsort
SELECT col1 + 0 * - 5 AS col2, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query I rowsort
SELECT DISTINCT + - col0 + ( 64 ) AS col2 FROM tab1 WHERE NULL NOT IN ( + + ( + col2 ) + - 94, col0 * col2, + + 92 )
----

query I rowsort
SELECT col0 + - 89 * - - col0 AS col0 FROM tab2
----
-4048
-5632
-6600

query II rowsort
SELECT + col2 * + 71 * - col1 * - col0 + - 53, col1 FROM tab0
----
1297117
21
4054402
81
681760
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL 24 + + - SUM( DISTINCT - col1 ) + - + 40 AS col2 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL 24 + + - SUM ( DISTINCT - col1 ) + - + 40 AS col2 FROM tab1
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5396
SELECT DISTINCT - col2 * - col1 FROM tab1 WHERE - + col2 = CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT - col2 * - col1 FROM tab1 WHERE - + col2 = CAST ( + col1 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5397
SELECT - col0 * + ( - - CAST( NULL AS SIGNED ) ) - + col0 col1 FROM tab1 WHERE + - 73 + - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT - col0 * + ( - - CAST ( NULL AS INTEGER ) ) - + col0 col1 FROM tab1 WHERE + - 73 + - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 + + col0 FROM tab0
----
142
152
70

query I rowsort
SELECT - col0 * - - 64 + + col1 AS col0 FROM tab0
----
-5547
-6207
-879

query I rowsort
SELECT col2 + col2 * 51 * + col0 AS col2 FROM tab0
----
36002
44380
489852

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT DISTINCT + 82 + - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5401
SELECT DISTINCT + 82 + - COUNT ( * ) FROM tab1
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0, - 25 + + + 43 + + - col2, - - col1 * CAST( NULL AS DECIMAL ) * + ( col0 ) * - 59 )
----

skipif mysql # not compatible
query III rowsort label-5402
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col0, - 25 + + + 43 + + - col2, - - col1 * CAST ( NULL AS REAL ) * + ( col0 ) * - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT DISTINCT + + ( - MAX( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT + + ( - MAX ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT col2 AS col1, + col2 * 29 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5405
SELECT + - COUNT( * ) - - - CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5405
SELECT + - COUNT ( * ) - - - CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query II rowsort
SELECT ALL + 25 + - 25, - col2 * col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 67 * col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5407
SELECT - - COUNT( ALL CAST( NULL AS DECIMAL ) ) col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5407
SELECT - - COUNT ( ALL CAST ( NULL AS REAL ) ) col0 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5408
SELECT DISTINCT - - COUNT( * ) * - - COUNT( * ) - MIN( - col0 ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - - COUNT ( * ) * - - COUNT ( * ) - MIN ( - col0 ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5409
SELECT ALL - COUNT( * ) * + MIN( - col0 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-5409
SELECT ALL - COUNT ( * ) * + MIN ( - col0 ) FROM tab2 AS cor0
----
225

query II rowsort
SELECT DISTINCT 40, + col1 AS col1 FROM tab0 cor0
----
40
1
40
21
40
81

query I rowsort
SELECT DISTINCT - ( col2 ) * + + col1 * 5 FROM tab1
----
-1475
-15980
-6720

query I rowsort
SELECT col2 * + 94 FROM tab2
----
2162
3760
5452

onlyif mysql # DIV for integer division: 
query I rowsort label-5413
SELECT DISTINCT 15 DIV + col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5413
SELECT DISTINCT 15 / + col0 FROM tab0
----
0
1

query I rowsort
SELECT ALL ( + 68 ) AS col1 FROM tab0
----
68
68
68

query I rowsort
SELECT col2 * col1 * + - ( + col0 ) FROM tab0
----
-18270
-57105
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5416
SELECT - col0 DIV - + 97 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5416
SELECT - col0 / - + 97 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT ALL + 59 DIV col0 FROM tab1 cor0 WHERE NOT - 81 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5417
SELECT ALL + 59 / col0 FROM tab1 cor0 WHERE NOT - 81 IS NULL
----
0
0
1

query I rowsort
SELECT + ( - - col2 ) FROM tab1 AS cor0 WHERE NOT col1 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
0

query II rowsort
SELECT + 64 AS col2, - col1 AS col0 FROM tab0 AS cor0
----
64
-1
64
-21
64
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col0 * 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - CAST( + + col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - CAST ( + + col0 AS INTEGER ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + + 44 col0 FROM tab1
----
47
47
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5424
SELECT - + 39 + col0 + - - CAST( 49 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
56
74
85

skipif mysql # not compatible
query I rowsort label-5424
SELECT - + 39 + col0 + - - CAST ( 49 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT + + col0 + - col2 * + - col0 FROM tab2 cor0
----
1104
2624
4425

onlyif mysql # DIV for integer division: 
query I rowsort label-5426
SELECT - 76 DIV - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5426
SELECT - 76 / - col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT col1 DIV + - 27 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT col1 / + - 27 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL - 73 * - col2 + col2 + + - col2 AS col2 FROM tab1
----
4307
4964
7008

query I rowsort
SELECT + 87 - - col0 AS col1 FROM tab1
----
138
172
178

query I rowsort
SELECT + col2 - - 91 FROM tab2
----
114
131
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL - 16 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 16 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + ( + - 33 ) ) + 60 AS col0 FROM tab0
----
27

query I rowsort
SELECT DISTINCT - col2 - + ( + col2 ) AS col0 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL 6 + col0 FROM tab2
----
52
70
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT - + 32 DIV - + COUNT( * ) AS col0 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - + 32 / - + COUNT ( * ) AS col0 FROM tab0 cor0
----
10

query I rowsort
SELECT ALL + + 68 AS col0 FROM tab2 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT ALL - ( COUNT( DISTINCT - 7 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5437
SELECT ALL - ( COUNT ( DISTINCT - 7 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( col0 ) AND 6 + - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT + 60 DIV + COUNT( * ) + - + SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5439
SELECT + 60 / + COUNT ( * ) + - + SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT + col0 >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT - COUNT( * ) * - 68 AS col2 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT - COUNT ( * ) * - 68 AS col2 FROM tab1 AS cor0
----
204

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5442
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 AND - CAST( col1 AS DECIMAL ) - col0 + + col2
----

skipif mysql # not compatible
query III rowsort label-5442
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN - col2 AND - CAST ( col1 AS REAL ) - col0 + + col2
----

query I rowsort
SELECT + col2 * + - col1 AS col2 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT col2 AS col0, 61 * + 48 AS col0 FROM tab1 WHERE NOT + 45 * - 28 = NULL
----

query I rowsort
SELECT ALL + ( - 82 ) FROM tab1
----
-82
-82
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 + - 92 col2 FROM tab0
----
-180
-180
-180

query I rowsort
SELECT ALL + 56 AS col1 FROM tab2 WHERE NOT - ( - col1 ) + + 25 IS NULL
----
56
56
56

query I rowsort
SELECT DISTINCT + col0 * 96 AS col0 FROM tab1
----
4896
8160
8736

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT DISTINCT + - COUNT( * ) + - COUNT( * ) + 71 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT + - COUNT ( * ) + - COUNT ( * ) + 71 FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT DISTINCT CAST( + - CAST( - + col2 AS SIGNED ) AS SIGNED ) * + 17 FROM tab1 AS cor0
----
1003
1156
1632

skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT CAST ( + - CAST ( - + col2 AS INTEGER ) AS INTEGER ) * + 17 FROM tab1 AS cor0
----
1003
1156
1632

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT ALL + - 94 DIV ( + ( - - col1 ) ) * + col0 col0 FROM tab0 AS cor0
----
-15
-348
-9118

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5451
SELECT ALL + - 94 / ( + ( - - col1 ) ) * + col0 col0 FROM tab0 AS cor0
----
-15
-348
-9118

query II rowsort
SELECT + + ( - + 98 ), - col2 * - + col0 AS col1 FROM tab1 cor0 WHERE col0 IS NOT NULL
----
-98
4896
-98
5015
-98
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT ALL - col1 DIV col2 * - col0 col2 FROM tab0 AS cor0
----
0
15
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT ALL - col1 / col2 * - col0 col2 FROM tab0 AS cor0
----
0
15
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5454
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, 5 AS col1 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

skipif mysql # not compatible
query II rowsort label-5454
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, 5 AS col1 FROM tab0 AS cor0
----
NULL
5
NULL
5
NULL
5

query I rowsort
SELECT - - 39 + + col1 FROM tab1 AS cor0
----
44
53
86

query III rowsort
SELECT * FROM tab0 WHERE - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT + ( + + COUNT( * ) ) * - 90 + - 75 col1 FROM tab2
----
-345

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT + ( + + COUNT ( * ) ) * - 90 + - 75 col1 FROM tab2
----
-345

query I rowsort
SELECT ALL - col1 + + col0 - - col2 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT COUNT( DISTINCT - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5459
SELECT COUNT ( DISTINCT - - col0 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT - 55 + col0, + col0 AS col1 FROM tab2
----
-9
46
20
75
9
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT DISTINCT - ( - 70 ) + + MIN( DISTINCT - - col1 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-5461
SELECT DISTINCT - ( - 70 ) + + MIN ( DISTINCT - - col1 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IN ( col0 + - col1 )
----

query I rowsort
SELECT ALL + + col2 * col1 + col0 - - 9 FROM tab2 AS cor0
----
1228
3153
3970

onlyif mysql # aggregate syntax: 
query I rowsort label-5464
SELECT + COUNT( * ) + 20 FROM tab0 AS cor0 WHERE col0 IS NULL
----
20

skipif mysql # not compatible
query I rowsort label-5464
SELECT + COUNT ( * ) + 20 FROM tab0 AS cor0 WHERE col0 IS NULL
----
20

query II rowsort
SELECT + ( + col1 ), - col2 * - - 39 + + + col0 FROM tab1 cor0
----
14
-3693
47
-2561
5
-2216

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT COUNT( - - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5466
SELECT COUNT ( - - col2 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL - - col1 AS col1, - 23 * + col2 * 97 * - - 31 FROM tab1 AS cor0
----
14
-6639456
47
-4702948
5
-4080499

query II rowsort
SELECT + 33 * + + 22 + + col1 AS col1, - col2 - - - col0 FROM tab1 cor0
----
731
-144
740
-147
773
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT col2 DIV - 93 * + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5469
SELECT col2 / - 93 * + - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - col0 + - col2 + - col0 AS col0, col1 * + col1 col1 FROM tab0 AS cor0
----
-99
1
1153
6561
1730
441

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 50 <= - - ( + + 43 ) * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT + MAX( ALL + + col1 ) AS col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-5472
SELECT + MAX ( ALL + + col1 ) AS col2 FROM tab2 cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5474
SELECT + MAX( + col1 ) * 15 FROM tab0
----
1215

skipif mysql # not compatible
query I rowsort label-5474
SELECT + MAX ( + col1 ) * 15 FROM tab0
----
1215

query I rowsort
SELECT - col0 * + + col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT 99 + + col1 + - - col1 FROM tab0 AS cor0
----
101
141
261

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT ALL + + col1 + - col0 DIV + + col0 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-5477
SELECT ALL + + col1 + - col0 / + + col0 FROM tab0 AS cor0
----
0
20
80

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 BETWEEN ( - ( - 8 ) / + 40 ) AND col1
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT - col1 + - ( - col1 ) + - 93 * col1 * + + col1 AS col1 FROM tab0 AS cor0
----
-41013
-610173
-93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 76 ) NOT IN ( col2 / col2, col1 * + 77 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT 85 * + COUNT( * ) FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-5481
SELECT 85 * + COUNT ( * ) FROM tab0 AS cor0
----
255

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + - col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, - col1 * ( - col2 ) * col1 + - + col1 col2 FROM tab1 AS cor0
----
-59
1470
-68
150165
-96
18802

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT - SUM( col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT - SUM ( col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 20 * - 47 + - + 4 FROM tab1 cor0
----
-944
-944
-944

onlyif mysql # aggregate syntax: 
query I rowsort label-5486
SELECT - - MAX( DISTINCT - col2 ) col1 FROM tab1 AS cor0 WHERE ( - - col1 * col2 IS NULL )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5486
SELECT - - MAX ( DISTINCT - col2 ) col1 FROM tab1 AS cor0 WHERE ( - - col1 * col2 IS NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5487
SELECT + + CAST( col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5487
SELECT + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 82 AS col2, - col2 AS col1 FROM tab0 cor0
----
82
-10
82
-47
82
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT + 47 - - COUNT( * ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-5490
SELECT + 47 - - COUNT ( * ) FROM tab2
----
50

query I rowsort
SELECT ALL - 95 * - + col1 AS col1 FROM tab1
----
1330
4465
475

query II rowsort
SELECT DISTINCT - 45 + + + col1, 91 AS col1 FROM tab0
----
-24
91
-44
91
36
91

query I rowsort
SELECT + 80 + ( + 40 ) FROM tab0
----
120
120
120

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 50 + - + col0 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5495
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5495
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT - COUNT( * ) * - + ( + 19 ) AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5496
SELECT - COUNT ( * ) * - + ( + 19 ) AS col0 FROM tab1
----
57

query I rowsort
SELECT 12 FROM tab0 WHERE NOT - col2 * + col2 IS NULL
----
12
12
12

query II rowsort
SELECT - + 7 AS col2, col0 FROM tab2 cor0
----
-7
46
-7
64
-7
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( + + col0 ) col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5500
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5500
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5501
SELECT - + MIN( + 65 ) DIV + 3 + + COUNT( * ) + - 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5501
SELECT - + MIN ( + 65 ) / + 3 + + COUNT ( * ) + - 6 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

onlyif mysql # DIV for integer division: 
query I rowsort label-5502
SELECT - - 71 DIV - 64 + - col1 AS col1 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-5502
SELECT - - 71 / - 64 + - col1 AS col1 FROM tab1 AS cor0
----
-15
-48
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5503
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= + - 50
----

skipif mysql # not compatible
query III rowsort label-5503
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= + - 50
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = + 64
----

query I rowsort
SELECT ALL + + 78 AS col2 FROM tab0 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT MAX( - + 79 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-5506
SELECT MAX ( - + 79 ) FROM tab2
----
-79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - col2 ) + - - 13 + 38 + + 52 * - col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5508
SELECT DISTINCT - COUNT( * ) + - ( CAST( NULL AS SIGNED ) ) * - 56 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5508
SELECT DISTINCT - COUNT ( * ) + - ( CAST ( NULL AS INTEGER ) ) * - 56 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 73 FROM tab2
----
3723
4891
5621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5510
SELECT ALL + + CAST( NULL AS SIGNED ) * COUNT( DISTINCT CAST( col0 AS SIGNED ) ) AS col0 FROM tab2 WHERE - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5510
SELECT ALL + + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT CAST ( col0 AS INTEGER ) ) AS col0 FROM tab2 WHERE - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5511
SELECT 52 + - MAX( - col0 ), + 80 AS col2 FROM tab2
----
98
80

skipif mysql # not compatible
query II rowsort label-5511
SELECT 52 + - MAX ( - col0 ), + 80 AS col2 FROM tab2
----
98
80

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT + col0 AS col1, - 14 FROM tab0 WHERE - + col1 IS NOT NULL
----
15
-14
87
-14
97
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5514
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 / - CAST( - + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5514
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col1 / - CAST ( - + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5515
SELECT ALL ( + ( - COUNT( ALL - - col1 ) ) ) AS col2, COUNT( ALL + 59 ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5515
SELECT ALL ( + ( - COUNT ( ALL - - col1 ) ) ) AS col2, COUNT ( ALL + 59 ) AS col1 FROM tab0
----
-3
3

query II rowsort
SELECT ALL + 31 AS col1, + col2 FROM tab2 cor0
----
31
23
31
40
31
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5517
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 76 * col0 * - - col2 NOT BETWEEN + col2 - - CAST( + col2 AS SIGNED ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5517
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 76 * col0 * - - col2 NOT BETWEEN + col2 - - CAST ( + col2 AS INTEGER ) * + col0 AND NULL
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL NOT IN ( col1, - col1 * col2, + col0, + ( + ( + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - SUM( col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT - - MAX( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT - - MAX ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL col2 * + 49 + col2 AS col0 FROM tab0
----
2350
4950
500

query I rowsort
SELECT col1 - - col2 + - col0 FROM tab2
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT DISTINCT - 56 + + COUNT( * ) AS col1 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-5523
SELECT DISTINCT - 56 + + COUNT ( * ) AS col1 FROM tab2
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-5524
SELECT ALL + col2 + + col2 DIV + - col1 AS col0 FROM tab1 AS cor0
----
48
67
90

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + col2 + + col2 / + - col1 AS col0 FROM tab1 AS cor0
----
48
67
90

query I rowsort
SELECT DISTINCT + 68 - - 43 * + 5 + - 58 + - + 41 * + 99 FROM tab0 AS cor0
----
-3834

query I rowsort
SELECT + + col1 * - + col2 - col0 * - - 82 + + + col0 - + 82 AS col1 FROM tab2 AS cor0
----
-10043
-4981
-8346

query I rowsort
SELECT ALL - col0 * - 13 * + 80 - - 14 FROM tab2 AS cor0
----
47854
66574
78014

query I rowsort
SELECT + + 99 + + col2 FROM tab2 AS cor0
----
122
139
157

query I rowsort
SELECT + 72 FROM tab0 cor0 WHERE NULL BETWEEN ( NULL ) AND - 49
----

query I rowsort
SELECT + col2 + - 16 * col2 - + col2 * + + col2 FROM tab0 AS cor0
----
-11286
-250
-2914

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT DISTINCT - MIN( DISTINCT + col0 ) - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT - MIN ( DISTINCT + col0 ) - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - col1 col2 FROM tab2
----
-117
-125
-74

query I rowsort
SELECT ALL 38 * col0 FROM tab0
----
3306
3686
570

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT - COUNT( * ) * + 24 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT - COUNT ( * ) * + 24 FROM tab2
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * + col1 + + + col2 col2, col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2624
51
4547
67
5969
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 7 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5537
SELECT + - col2, 87 + - + col0 - + 15 * CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-5537
SELECT + - col2, 87 + - + col0 - + 15 * CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL - - 67 * COUNT( * ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL - - 67 * COUNT ( * ) FROM tab1 AS cor0
----
201

onlyif mysql # DIV for integer division: 
query I rowsort label-5539
SELECT ALL + 50 DIV 82 * col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5539
SELECT ALL + 50 / 82 * col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5540
SELECT ALL col0 DIV - - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5540
SELECT ALL col0 / - - col0 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - - 30 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
30

query I rowsort
SELECT - col1 * 80 + + col2 * + col1 AS col2 FROM tab0 cor0
----
-1470
-2673
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT - SUM( - 31 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5543
SELECT - SUM ( - 31 ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT + - 16 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 78 * - col1 FROM tab1 AS cor0
----
-1092
-3666
-390

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 WHERE NULL IS NULL
----
63
63
63

query I rowsort
SELECT + col0 + + + col0 AS col2 FROM tab2 cor0 WHERE col2 < NULL
----

query I rowsort
SELECT DISTINCT 29 + 0 FROM tab2
----
29

query III rowsort
SELECT * FROM tab1 WHERE + 97 > - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE ( col2 + 19 ) IS NOT NULL
----
14
47
5

query II rowsort
SELECT ALL 27 + + 36, col0 AS col0 FROM tab1
----
63
51
63
85
63
91

query I rowsort
SELECT ALL 30 + + 91 FROM tab2
----
121
121
121

query I rowsort
SELECT DISTINCT - + 58 + - - col0 FROM tab1 AS cor0
----
-7
27
33

onlyif mysql # DIV for integer division: 
query I rowsort label-5554
SELECT + + col2 DIV + col0 + 2 * + 76 + - + col2 * col0 col2 FROM tab2 AS cor0
----
-2408
-4198
-906

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT + + col2 / + col0 + 2 * + 76 + - + col2 * col0 col2 FROM tab2 AS cor0
----
-2408
-4198
-906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 11 ) col1 FROM tab2 AS cor0
----
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5557
SELECT DISTINCT + CAST( - - col0 AS SIGNED ), + 73 AS col0 FROM tab1 cor0
----
51
73
85
73
91
73

skipif mysql # not compatible
query II rowsort label-5557
SELECT DISTINCT + CAST ( - - col0 AS INTEGER ), + 73 AS col0 FROM tab1 cor0
----
51
73
85
73
91
73

query II rowsort
SELECT ALL + 3 AS col0, col1 + col2 AS col2 FROM tab0
----
3
100
3
128
3
31

query II rowsort
SELECT ALL 47 + ( col2 ) AS col0, - col1 FROM tab1
----
106
-5
115
-47
143
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT + - ( CAST( - 34 AS SIGNED ) ) FROM tab0 WHERE + 68 IS NOT NULL
----
34

skipif mysql # not compatible
query I rowsort label-5560
SELECT DISTINCT + - ( CAST ( - 34 AS INTEGER ) ) FROM tab0 WHERE + 68 IS NOT NULL
----
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5561
SELECT DISTINCT - 53 DIV - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - 53 / - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5562
SELECT + ( - - COUNT( ALL + CAST( - 80 AS SIGNED ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5562
SELECT + ( - - COUNT ( ALL + CAST ( - 80 AS INTEGER ) ) ) FROM tab2
----
3

query I rowsort
SELECT ALL + 55 + - ( ( - - 12 ) ) AS col2 FROM tab0
----
43
43
43

query II rowsort
SELECT + col0 AS col2, col1 * - - 9 FROM tab1 AS cor0
----
51
126
85
45
91
423

query I rowsort
SELECT DISTINCT - col0 - ( - col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 * + 68 AS col0 FROM tab0 cor0
----
3196
6732
680

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + 41 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 23 * - 30 FROM tab2 cor0
----
-690
-690
-690

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col0 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 23 * col2 AS col2 FROM tab1 AS cor0
----
-1357
-1564
-2208

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5571
SELECT DISTINCT 22 * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT DISTINCT 22 * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 WHERE NOT col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT + ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5572
SELECT + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + 99 * + COUNT( * ) FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-5573
SELECT + 99 * + COUNT ( * ) FROM tab2
----
297

query II rowsort
SELECT - 98 * 19, - 16 FROM tab0 AS cor0 WHERE NOT NULL <> col1
----

query I rowsort
SELECT DISTINCT + + 96 * + + col1 - + col2 FROM tab0 AS cor0
----
-3
2006
7729

query I rowsort
SELECT + 94 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # DIV for integer division: 
query I rowsort label-5577
SELECT ALL + ( col1 ) DIV + 53 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + ( col1 ) / + 53 AS col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col0, 18 AS col0 FROM tab0 AS cor0
----
83
18
83
18
83
18

query I rowsort
SELECT ALL col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT DISTINCT - 58 * - + COUNT( * ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5580
SELECT DISTINCT - 58 * - + COUNT ( * ) FROM tab0 AS cor0
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-5581
SELECT col1 DIV + col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5581
SELECT col1 / + col1 + + - col1 AS col2 FROM tab0 AS cor0
----
-20
-80
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT ALL - col0 DIV + ( - - col1 ) col0 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5582
SELECT ALL - col0 / + ( - - col1 ) col0 FROM tab2 AS cor0
----
-1
0
0

query II rowsort
SELECT ALL 60 AS col2, - col0 FROM tab2 AS cor0
----
60
-46
60
-64
60
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT - COUNT( * ) + + + 21 DIV + COUNT( * ) col0 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5584
SELECT - COUNT ( * ) + + + 21 / + COUNT ( * ) col0 FROM tab1
----
4

query I rowsort
SELECT 5 * + col0 + + - col1 FROM tab1
----
241
408
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT COUNT( * ) + + 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT COUNT ( * ) + + 52 FROM tab2
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT DISTINCT - 17 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT - 17 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT 52 + + - col0 FROM tab1
----
-33
-39
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 * + col0 * + - col1 AND + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5590
SELECT + + 33, + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
33
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5590
SELECT + + 33, + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
33
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5591
SELECT - 33 * + 62 - col0 * col1 DIV - + col0 AS col0 FROM tab0
----
-1965
-2025
-2045

skipif mysql # not compatible
query I rowsort label-5591
SELECT - 33 * + 62 - col0 * col1 / - + col0 AS col0 FROM tab0
----
-1965
-2025
-2045

query I rowsort
SELECT + - 90 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT + col0 + + - 1 FROM tab1
----
50
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5594
SELECT DISTINCT + col2 DIV + 85 + - col0 * + col2 + - + 10 FROM tab1
----
-4905
-5025
-6198

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT + col2 / + 85 + - col0 * + col2 + - + 10 FROM tab1
----
-4905
-5025
-6198

query I rowsort
SELECT - - 97 AS col1 FROM tab2 cor0
----
97
97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 * col1 col2 FROM tab0 AS cor0
----
1239
4779
59

query I rowsort
SELECT ALL 74 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT col2 * 16 AS col2 FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT MAX( DISTINCT + col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT MAX ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT - 24 * + + COUNT( * ) + 5 AS col0 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5600
SELECT - 24 * + + COUNT ( * ) + 5 AS col0 FROM tab2 AS cor0
----
-67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + - col2 * + 92 * + col0 BETWEEN + + col0 AND - ( 50 ) + - 83 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + + col0, ( - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL - col1, col1 AS col2 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT DISTINCT + col1 AS col1, + 25 AS col0 FROM tab1
----
14
25
47
25
5
25

query III rowsort
SELECT * FROM tab2 WHERE NOT - 65 >= + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT ALL + CAST( + 93 AS SIGNED ) AS col0 FROM tab0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL + CAST ( + 93 AS INTEGER ) AS col0 FROM tab0
----
93
93
93

query I rowsort
SELECT + 80 * 14 * col2 FROM tab2 cor0
----
25760
44800
64960

query II rowsort
SELECT + + 54 AS col2, + 32 + + col0 AS col1 FROM tab2 AS cor0
----
54
107
54
78
54
96

query I rowsort
SELECT DISTINCT + + col0 * + + 11 * 88 FROM tab0 cor0 WHERE NOT - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5610
SELECT ALL + ( - + col0 ) FROM tab1 AS cor0 WHERE + col1 * - CAST( NULL AS SIGNED ) * - col0 NOT BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL + ( - + col0 ) FROM tab1 AS cor0 WHERE + col1 * - CAST ( NULL AS INTEGER ) * - col0 NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 10 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE 94 BETWEEN + col1 AND col0
----
97
1
99

query I rowsort
SELECT - 25 + + ( + 44 ) FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT ALL - 40 + + ( - + col0 ) + + col0 - 94 AS col0 FROM tab2 AS cor0
----
-134
-134
-134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5615
SELECT ALL - 1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - 1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5616
SELECT - 15 DIV + 99 * + col2 AS col1 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5616
SELECT - 15 / + 99 * + col2 AS col1 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 / - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + 75 + col1 AS col1 FROM tab1 cor0
----
-28
-61
-70

query I rowsort
SELECT DISTINCT - col2 + - 84 AS col1 FROM tab0
----
-131
-183
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5620
SELECT + MIN( ( + col1 ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5620
SELECT + MIN ( ( + col1 ) ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5621
SELECT DISTINCT - COUNT( * ) + + - CAST( NULL AS SIGNED ) * 40 * + 93 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5621
SELECT DISTINCT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) * 40 * + 93 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT 35 DIV + col0 - + ( 81 ) FROM tab0
----
-79
-81
-81

skipif mysql # not compatible
query I rowsort label-5622
SELECT 35 / + col0 - + ( 81 ) FROM tab0
----
-79
-81
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5623
SELECT - MAX( - CAST( - col0 AS SIGNED ) ) + + - 71 * + 75 FROM tab1
----
-5416

skipif mysql # not compatible
query I rowsort label-5623
SELECT - MAX ( - CAST ( - col0 AS INTEGER ) ) + + - 71 * + 75 FROM tab1
----
-5416

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT - ( + CAST( NULL AS SIGNED ) ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5624
SELECT - ( + CAST ( NULL AS INTEGER ) ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - 94 * col2 FROM tab0 AS cor0
----
4465
9405
950

query I rowsort
SELECT ALL col2 / + + col0 - + 25 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT 22 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + 44 - - col2
----

query I rowsort
SELECT col0 * - 34 AS col0 FROM tab0
----
-2958
-3298
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-5629
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5629
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + + 93 AS col2 FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5631
SELECT ALL + COUNT( * ) col0, - MAX( DISTINCT 99 ) FROM tab1 AS cor0
----
3
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5631
SELECT ALL + COUNT ( * ) col0, - MAX ( DISTINCT 99 ) FROM tab1 AS cor0
----
3
-99

query I rowsort
SELECT DISTINCT + - 17 FROM tab1 cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5633
SELECT ALL + MIN( ALL 29 ) AS col0 FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-5633
SELECT ALL + MIN ( ALL 29 ) AS col0 FROM tab2 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ( - - ( - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5634
SELECT ( - - ( - COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5635
SELECT DISTINCT COUNT( + ( col0 ) ) AS col2, MAX( DISTINCT ( col2 ) ) + - COUNT( * ) FROM tab1
----
3
93

skipif mysql # not compatible
query II rowsort label-5635
SELECT DISTINCT COUNT ( + ( col0 ) ) AS col2, MAX ( DISTINCT ( col2 ) ) + - COUNT ( * ) FROM tab1
----
3
93

query I rowsort
SELECT - col1 * - col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 8 AND + col2
----

query I rowsort
SELECT + col0 * + 91 AS col2 FROM tab1
----
4641
7735
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT + COUNT( * ) * + 26 AS col2 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5638
SELECT + COUNT ( * ) * + 26 AS col2 FROM tab1 AS cor0
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5640
SELECT DISTINCT * FROM tab1 WHERE + ( + 64 ) + col2 + + col0 BETWEEN + col1 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-5640
SELECT DISTINCT * FROM tab1 WHERE + ( + 64 ) + col2 + + col0 BETWEEN + col1 AND - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT DISTINCT + SUM( 17 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5641
SELECT DISTINCT + SUM ( 17 ) AS col1 FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT + CAST( 44 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

skipif mysql # not compatible
query I rowsort label-5642
SELECT + CAST ( 44 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT col2 + - 10 FROM tab2
----
13
30
48

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT MAX( ALL - ( - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5644
SELECT MAX ( ALL - ( - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5645
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + - ( + 33 ) AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-5645
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + - ( + 33 ) AS INTEGER ) * + col0 < NULL
----

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 50 + + col1 + + 43 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT + - col2 + + + col1 + - col0 FROM tab2 AS cor0
----
-18
-27
-66

query I rowsort
SELECT - 88 + + 10 FROM tab0 cor0
----
-78
-78
-78

query I rowsort
SELECT ALL - + 99 + + 75 FROM tab0 cor0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT + col1 + + 5 AS col0 FROM tab2
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT 3 + - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5652
SELECT 3 + - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT + ( + + col0 ) * - col2 - col1 * + - col1 + - + col0 FROM tab1
----
-4070
-4751
-5075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5654
SELECT DISTINCT col0 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT col0 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5655
SELECT + - 29 AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) BETWEEN + 26 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5655
SELECT + - 29 AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + 26 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab2 WHERE - ( + + col1 ) BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT COUNT( * ) FROM tab2 WHERE col2 NOT IN ( + 77 )
----
3

skipif mysql # not compatible
query I rowsort label-5657
SELECT COUNT ( * ) FROM tab2 WHERE col2 NOT IN ( + 77 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5658
SELECT ALL + col1 + - CAST( - col1 AS SIGNED ) + 6 FROM tab2
----
108
140
160

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL + col1 + - CAST ( - col1 AS INTEGER ) + 6 FROM tab2
----
108
140
160

query I rowsort
SELECT col2 - - col0 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
196
62
97

query I rowsort
SELECT ALL col2 - - col1 + + col0 * + + col0 FROM tab1 cor0
----
2711
7289
8396

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5661
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - COUNT( ALL - col1 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5661
SELECT DISTINCT + CAST ( NULL AS REAL ) - COUNT ( ALL - col1 ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 - - + 96 AS col2 FROM tab0 AS cor0
----
-3
49
86

query I rowsort
SELECT col1 + + 50 AS col1 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + 11 * + col0 AS col1 FROM tab2
----
506
704
825

query I rowsort
SELECT col2 * + + col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL + + 20 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT + + MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5667
SELECT + + MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + + 41 * + ( + col1 ) AS col1 FROM tab0 AS cor0
----
3321
41
861

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT MAX( ALL - - col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - SUM( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5670
SELECT - SUM ( DISTINCT col0 ) AS col2 FROM tab1 cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 6, 37 col2 FROM tab0
----
-6
37
-6
37
-6
37

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT 66 * col2 FROM tab1
----
3894
4488
6336

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT - col0 DIV - 9 FROM tab0
----
1
10
9

skipif mysql # not compatible
query I rowsort label-5675
SELECT - col0 / - 9 FROM tab0
----
1
10
9

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 * - col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * ( - 28 ) AS col0 FROM tab2
----
-1120
-1624
-644

query II rowsort
SELECT ALL col1 AS col2, + col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT ALL - ( + - 20 ) AS col1 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # DIV for integer division: 
query I rowsort label-5680
SELECT + - col1 DIV 12 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5680
SELECT + - col1 / 12 FROM tab1 AS cor0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / - - col0 <= NULL
----

query I rowsort
SELECT - col1 + + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 76 + + - col2 FROM tab0
----
-23
29
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5684
SELECT DISTINCT SUM( + 63 ) + - 31 AS col2 FROM tab2
----
158

skipif mysql # not compatible
query I rowsort label-5684
SELECT DISTINCT SUM ( + 63 ) + - 31 AS col2 FROM tab2
----
158

query I rowsort
SELECT DISTINCT - + col0 + - col2 + + - 82 AS col0 FROM tab2 AS cor0
----
-151
-186
-215

query I rowsort
SELECT - + 36 * + - col2 AS col1 FROM tab0 AS cor0
----
1692
3564
360

query I rowsort
SELECT DISTINCT + 92 - + col1 AS col2 FROM tab0 cor0
----
11
71
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5688
SELECT + col0 - - + CAST( col0 AS SIGNED ) col2 FROM tab0
----
174
194
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5688
SELECT + col0 - - + CAST ( col0 AS INTEGER ) col2 FROM tab0
----
174
194
30

query I rowsort
SELECT DISTINCT 10 * - 59 AS col0 FROM tab1
----
-590

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5691
SELECT ALL * FROM tab2 WHERE ( ( + CAST( NULL AS SIGNED ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5691
SELECT ALL * FROM tab2 WHERE ( ( + CAST ( NULL AS INTEGER ) IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT DISTINCT MAX( - col1 ) + 99 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-5692
SELECT DISTINCT MAX ( - col1 ) + 99 FROM tab2
----
48

query I rowsort
SELECT col1 - + 54 FROM tab1
----
-40
-49
-7

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 WHERE + ( 67 ) IS NOT NULL
----
-29

query I rowsort
SELECT + 47 + + 29 AS col1 FROM tab1
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 33 NOT BETWEEN + 12 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT + 56 * - COUNT( * ) + - 14 * + + COUNT( * ) AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-5697
SELECT + 56 * - COUNT ( * ) + - 14 * + + COUNT ( * ) AS col1 FROM tab1
----
-210

query I rowsort
SELECT col1 + + col1 / 66 * ( + - col1 ) + col2 FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

query I rowsort
SELECT ALL + col0 * 79 AS col0 FROM tab1 AS cor0
----
4029
6715
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col2, + 1 col0 FROM tab0 cor0
----
10
1
47
1
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL + SUM( + 76 ) + COUNT( * ) AS col2 FROM tab0 WHERE + col2 - - col0 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL + SUM ( + 76 ) + COUNT ( * ) AS col2 FROM tab0 WHERE + col2 - - col0 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - col1 ) - - 33 FROM tab1
----
-14
19
28

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( col0 * col2 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5704
SELECT COUNT( * ) / + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT COUNT ( * ) / + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * ( - col1 ) - + 47 * + 57 col1 FROM tab2
----
-5025
-7607
-7704

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col0 NOT IN ( + ( col1 ) )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + 60 / - 42 < + col1 * + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 37 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 64 + + 23 * col0 AS col1 FROM tab2
----
1122
1536
1789

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col0 * col1 )
----

query I rowsort
SELECT ALL 77 AS col1 FROM tab2 WHERE NOT NULL <= ( + col0 + + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT SUM( - 43 ) FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-5713
SELECT SUM ( - 43 ) FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-5714
SELECT + SUM( - 8 ) FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-5714
SELECT + SUM ( - 8 ) FROM tab0
----
-24

query I rowsort
SELECT - col1 + - 96 * col2 FROM tab0
----
-4593
-9505
-981

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT ALL - 45 * MAX( col1 ) AS col1 FROM tab1
----
-2115

skipif mysql # not compatible
query I rowsort label-5716
SELECT ALL - 45 * MAX ( col1 ) AS col1 FROM tab1
----
-2115

query I rowsort
SELECT DISTINCT col1 + 66 FROM tab1
----
113
71
80

query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab1 WHERE col0 * ( - col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT COUNT( * ) + - COUNT( * ) * - 28 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5719
SELECT COUNT ( * ) + - COUNT ( * ) * - 28 FROM tab0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL - 97 * ( + 23 * + COUNT( * ) ) FROM tab1 WHERE NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL - 97 * ( + 23 * + COUNT ( * ) ) FROM tab1 WHERE NULL IN ( + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 NOT IN ( 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( 25 ) * col2 - col0 FROM tab2
----
-1064
-1525
-621

query I rowsort
SELECT + col0 * + 18 AS col1 FROM tab1
----
1530
1638
918

query III rowsort
SELECT ALL * FROM tab2 WHERE + 65 = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5725
SELECT 1 * MIN( DISTINCT 5 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5725
SELECT 1 * MIN ( DISTINCT 5 ) AS col0 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT col0 + + 39 AS col0 FROM tab1 AS cor0
----
124
130
90

query I rowsort
SELECT ALL + col0 * - col0 - ( ( 53 ) ) FROM tab1
----
-2654
-7278
-8334

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL + 33 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT + 86 FROM tab1 AS cor0 WHERE col0 * + col0 = ( NULL )
----

query I rowsort
SELECT - 39 + col0 * + col1 FROM tab0 cor0
----
1176
1788
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT - 89 * 94 + COUNT( * ) FROM tab0 AS cor0
----
-8363

skipif mysql # not compatible
query I rowsort label-5732
SELECT - 89 * 94 + COUNT ( * ) FROM tab0 AS cor0
----
-8363

query I rowsort
SELECT DISTINCT - 55 * 46 FROM tab0 AS cor0
----
-2530

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT - MIN( col2 ) + 0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5734
SELECT - MIN ( col2 ) + 0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT 36 * - col2 + + col0 FROM tab1 AS cor0
----
-2039
-2357
-3405

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5736
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT IN ( CAST( + col1 AS DECIMAL ) * + col2 )
----

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT IN ( CAST ( + col1 AS REAL ) * + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 60 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT - COUNT( * ) FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5738
SELECT - COUNT ( * ) FROM tab2 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 NOT IN ( 12 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NULL NOT IN ( - col1 + 67 )
----

query I rowsort
SELECT ALL col1 * + 85 + 3 FROM tab0
----
1788
6888
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 + + col2 col2 FROM tab2
----
49
66
84

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NULL IN ( 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col0 FROM tab1 WHERE NOT ( NULL ) <= ( - col1 + col1 )
----

query I rowsort
SELECT DISTINCT + + 32 * + 50 AS col0 FROM tab0 cor0
----
1600

query I rowsort
SELECT DISTINCT + 57 FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT COUNT( ALL - 75 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5747
SELECT COUNT ( ALL - 75 ) col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 col2 FROM tab2 AS cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5749
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 + - 79 NOT BETWEEN col0 + 99 * col2 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5749
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 + - 79 NOT BETWEEN col0 + 99 * col2 AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + 36 FROM tab2 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT + 74 * col1 * col0 + - col0 * - col2 FROM tab1 AS cor0
----
322686
36465
57732

query I rowsort
SELECT ALL - 98 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT 49 + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-5754
SELECT 49 + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
58

query II rowsort
SELECT + 33, - col0 AS col2 FROM tab0 cor0
----
33
-15
33
-87
33
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5756
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5756
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 * col0 + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL col1 * + + 98 AS col2 FROM tab1 AS cor0
----
1372
4606
490

query II rowsort
SELECT 48, col0 AS col2 FROM tab1 cor0
----
48
51
48
85
48
91

query I rowsort
SELECT ALL - col0 * - - 3 AS col0 FROM tab1 AS cor0
----
-153
-255
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5760
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 11 * - - col0 + col2 FROM tab0 AS cor0
----
1166
212
967

query I rowsort
SELECT - col2 * + + ( - col0 ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5763
SELECT col0 DIV + ( + col2 ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5763
SELECT col0 / + ( + col2 ) FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5764
SELECT - + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5765
SELECT DISTINCT + ( COUNT( * ) ) AS col0 FROM tab0 WHERE - ( + + col2 ) < CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE - ( + + col2 ) < CAST ( NULL AS INTEGER )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 45 col0 FROM tab0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT 45 * - - COUNT( * ) * - 13 * 14 FROM tab1
----
-24570

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT 45 * - - COUNT ( * ) * - 13 * 14 FROM tab1
----
-24570

query III rowsort
SELECT * FROM tab1 WHERE NOT 70 + + 39 + + 13 / - 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT + COUNT( * ) + + 22 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT + COUNT ( * ) + + 22 AS col0 FROM tab2
----
25

query III rowsort
SELECT * FROM tab0 WHERE - - 26 / + + col0 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 18 < - 48
----

query I rowsort
SELECT ALL + ( 92 ) + - 55 AS col2 FROM tab2
----
37
37
37

query I rowsort
SELECT DISTINCT 84 + + ( + col1 ) FROM tab1
----
131
89
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5774
SELECT ALL + CAST( + ( - + ( + - col1 ) ) AS SIGNED ) + + col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL + CAST ( + ( - + ( + - col1 ) ) AS INTEGER ) + + col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - ( 4 ) AS col2 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT - col1 * - 46 FROM tab0
----
3726
46
966

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - - col2 * + - col0 + + - col0 * col0 FROM tab0 AS cor0
----
-10800
-83259
-940900

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT - COUNT( * ) + + MAX( - - col1 ) + + - 84 col1 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5779
SELECT - COUNT ( * ) + + MAX ( - - col1 ) + + - 84 col1 FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT ALL + col2 + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + col2 + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 80 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 41 + + - col2 FROM tab1
----
-100
-109
-137

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON - 89 + - 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT 15 + + COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT 15 + + COUNT ( * ) FROM tab2
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT ALL COUNT( * ) - + 31 AS col2 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL COUNT ( * ) - + 31 AS col2 FROM tab1
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5786
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5786
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 col1, - col2 - 51 AS col1 FROM tab1 AS cor0
----
-14
-147
-47
-119
-5
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-5788
SELECT + MAX( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5788
SELECT + MAX ( DISTINCT col0 ) AS col1 FROM tab2 cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 35 FROM tab2 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) - col1 col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5792
SELECT DISTINCT MAX( DISTINCT + col0 ) + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE ( + 88 * + 19 ) NOT IN ( col1 + ( 39 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5792
SELECT DISTINCT MAX ( DISTINCT + col0 ) + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE ( + 88 * + 19 ) NOT IN ( col1 + ( 39 ) )
----
NULL

query I rowsort
SELECT ALL col2 - - 13 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT + COUNT( - 14 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + COUNT ( - 14 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 * col0 * + 94 - - + col0 FROM tab0 cor0
----
21165
711573
884543

query I rowsort
SELECT DISTINCT - - col0 - col1 + + 41 FROM tab1 AS cor0
----
121
78
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5797
SELECT DISTINCT - col1 DIV + col0 - - - col1 AS col0 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5797
SELECT DISTINCT - col1 / + col0 - - - col1 AS col0 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT col2 * + 62 * + col1 AS col2 FROM tab2
----
190960
240932
72726

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT + 18 IS NULL
----
46
64
75

query II rowsort
SELECT col2 * col1 AS col1, + col0 AS col0 FROM tab0
----
210
87
3807
15
99
97

query II rowsort
SELECT DISTINCT - col2, col0 AS col1 FROM tab2
----
-23
46
-40
64
-58
75

query I rowsort
SELECT DISTINCT + ( - 80 ) AS col1 FROM tab1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT DISTINCT MAX( 40 ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-5803
SELECT DISTINCT MAX ( 40 ) AS col1 FROM tab0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5804
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) * 76 * + CAST( + 80 AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5804
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 76 * + CAST ( + 80 AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT + 6 AS col0, + 84 + ( - col0 ) FROM tab2 AS cor0
----
6
20
6
38
6
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5806
SELECT ALL - MAX( ALL + 3 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5806
SELECT ALL - MAX ( ALL + 3 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT COUNT( * ) FROM tab1 cor0 WHERE NOT + col2 NOT IN ( - 44, col1 + - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-5807
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NOT + col2 NOT IN ( - 44, col1 + - 5 )
----
0

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 83 IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - + col0 * - ( - - col1 ) * + 15 FROM tab2 AS cor0
----
35190
73920
75375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - 24 col0 FROM tab1 AS cor0 WHERE NOT - 43 IS NULL
----
-1128
-120
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT DISTINCT MAX( - 1 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT MAX ( - 1 ) FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - - 93 AS col0 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, 4, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5813
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, 4, - col1 )
----
0

query I rowsort
SELECT col1 / + col1 FROM tab2 cor0 WHERE NOT + col2 / col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 * + - col1 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT 94 + - 0 + 41 AS col1, - 76 * 28 AS col0 FROM tab1
----
135
-2128
135
-2128
135
-2128

query II rowsort
SELECT ALL col2, 92 FROM tab2
----
23
92
40
92
58
92

query I rowsort
SELECT 24 * - 42 * + 0 + ( - + col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5819
SELECT CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5819
SELECT CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT SUM( - + col0 ) + - COUNT( * ) AS col0 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-5820
SELECT SUM ( - + col0 ) + - COUNT ( * ) AS col0 FROM tab2
----
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT + 25 DIV 75 * + 78 + 70 + - col0 FROM tab0
----
-17
-27
55

skipif mysql # not compatible
query I rowsort label-5821
SELECT + 25 / 75 * + 78 + 70 + - col0 FROM tab0
----
-17
-27
55

query I rowsort
SELECT 42 + - col0 AS col0 FROM tab2
----
-22
-33
-4

query I rowsort
SELECT 52 + + col2 AS col0 FROM tab2 WHERE - ( + + 83 ) >= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 FROM tab1 WHERE NOT + col2 IN ( + 27 - col0 + - ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 FROM tab1 WHERE NOT + col2 IN ( + 27 - col0 + - ( - col2 ) )
----
NULL

query I rowsort
SELECT ALL - col2 + + 16 * - 19 AS col1 FROM tab1
----
-363
-372
-400

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5826
SELECT ALL * FROM tab0 WHERE NOT ( + col0 * - CAST( NULL AS SIGNED ) * - - col1 + - col2 + + - col0 - ( + 57 ) ) >= + 27 + + 29
----

skipif mysql # not compatible
query III rowsort label-5826
SELECT ALL * FROM tab0 WHERE NOT ( + col0 * - CAST ( NULL AS INTEGER ) * - - col1 + - col2 + + - col0 - ( + 57 ) ) >= + 27 + + 29
----

query I rowsort
SELECT + 33 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 65, col1 / ( + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT - AVG ( - 12 ) - COUNT( + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5828
SELECT - AVG ( - 12 ) - COUNT ( + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 6 - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col2 * - + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-15178240
-19527150
-2751858

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT 7 * + COUNT( * ) FROM tab0, tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5831
SELECT 7 * + COUNT ( * ) FROM tab0, tab2 AS cor0
----
63

query I rowsort
SELECT ALL 48 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 * col2 + - col1 / - ( + + col2 ) = col1 / col1 - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT ( NOT NULL <> NULL ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT - col2 * + + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-1640
-3422
-552

query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col0 ) - - + 74 col1 FROM tab1 AS cor0
----
125
159
165

query I rowsort
SELECT DISTINCT - col2 - + - 30 AS col1 FROM tab0 AS cor0
----
-17
-69
20

query I rowsort
SELECT col2 * - + ( + col1 ) + - 39 * + - col1 - - - col0 + + - 94 FROM tab0 AS cor0
----
-251
-757
428

query I rowsort
SELECT - ( col2 ) * - 94 FROM tab0 AS cor0
----
4418
9306
940

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT COUNT( ALL + + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT COUNT ( ALL + + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL <= ( NULL ) AND NOT 50 * + 20 / + col2 IN ( + col1 * + - ( col2 ) - - col1 )
----

query I rowsort
SELECT ALL + 73 AS col1 FROM tab2 WHERE NOT + col0 * col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 19 * - 43 AS col1 FROM tab1
----
-817
-817
-817

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE NOT ( 43 * - 95 + col0 ) >= ( col2 * + 0 + + 64 )
----
3

skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( 43 * - 95 + col0 ) >= ( col2 * + 0 + + 64 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT DISTINCT COUNT( ALL - + 36 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT COUNT ( ALL - + 36 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 - + - col2 * - col1 * + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-18291
-57186
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT + SUM( ALL + 51 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT + SUM ( ALL + 51 ) FROM tab0 AS cor0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5851
SELECT 35 DIV + - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-3

skipif mysql # not compatible
query I rowsort label-5851
SELECT 35 / + - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ALL + - MAX( + 10 ) col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5852
SELECT ALL + - MAX ( + 10 ) col1 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL - MAX( DISTINCT - col0 ) * + 57 AS col1 FROM tab1 AS cor0
----
2907

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL - MAX ( DISTINCT - col0 ) * + 57 AS col1 FROM tab1 AS cor0
----
2907

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5854
SELECT DISTINCT - 85 - - - col0 AS col2, - col1 + - col2 - - CAST( 68 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5854
SELECT DISTINCT - 85 - - - col0 AS col2, - col1 + - col2 - - CAST ( 68 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - + MAX( + + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5855
SELECT - + MAX ( + + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5856
SELECT DISTINCT COUNT( + 10 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5856
SELECT DISTINCT COUNT ( + 10 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - + col1, 23 AS col2 FROM tab2 AS cor0
----
-51
23
-67
23
-77
23

query II rowsort
SELECT - + 13 AS col0, - col2 FROM tab0 AS cor0
----
-13
-10
-13
-47
-13
-99

query II rowsort
SELECT ALL col0, col0 AS col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT - + 5 + + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
46
80
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5861
SELECT DISTINCT ( - - MAX( DISTINCT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT ( - - MAX ( DISTINCT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query II rowsort
SELECT - + 48 AS col1, 76 AS col2 FROM tab2 cor0
----
-48
76
-48
76
-48
76

query I rowsort
SELECT DISTINCT - ( + - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT ALL + CAST( - col2 AS SIGNED ) + 62 FROM tab0
----
-37
15
52

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL + CAST ( - col2 AS INTEGER ) + 62 FROM tab0
----
-37
15
52

query I rowsort
SELECT ALL + col0 * + col2 * - col2 + - + col1 AS col0 FROM tab2
----
-102477
-24385
-252367

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT SUM( - - 41 ) AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-5866
SELECT SUM ( - - 41 ) AS col1 FROM tab2
----
123

query I rowsort
SELECT ALL - col2 + 23 FROM tab1
----
-36
-45
-73

query III rowsort
SELECT * FROM tab1 WHERE ( + + col1 ) IS NULL
----

query I rowsort
SELECT + col2 * col1 - - col0 AS col2 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT 96 + + col1 + + ( + col2 ) FROM tab2
----
170
213
221

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + col1 ) OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT + - MIN( DISTINCT + 44 ) + - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5872
SELECT + - MIN ( DISTINCT + 44 ) + - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 52 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 )
----

query I rowsort
SELECT - - 33 + - col2 FROM tab0 AS cor0
----
-14
-66
23

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * col0 * - + col0 * - 82 * - col1 NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT + 11 AS col1, + ( - + col1 ) AS col2 FROM tab0 AS cor0
----
11
-1
11
-21
11
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5878
SELECT ALL + - MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL + - MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT ALL - col2 * - 20 + + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
113
1883
925

skipif mysql # not compatible
query I rowsort label-5879
SELECT ALL - col2 * - 20 + + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
113
1883
925

query II rowsort
SELECT DISTINCT - + col2 AS col1, + col2 + - col0 FROM tab1 AS cor0
----
-59
-26
-68
-23
-96
45

query I rowsort
SELECT DISTINCT - - ( - col0 ) FROM tab1 AS cor0 WHERE NOT + col0 IN ( + + col2, - col2 )
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - col2, col2 * - 66 * col2 col0 FROM tab0
----
-100
-6600
-2209
-145794
-9801
-646866

query I rowsort
SELECT ALL 56 * + 11 * + 76 FROM tab1
----
46816
46816
46816

query I rowsort
SELECT - 95 * - col0 AS col2 FROM tab2
----
4370
6080
7125

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5885
SELECT DISTINCT - CAST( col2 AS SIGNED ) * - col2 * + col2, col2 FROM tab0
----
1000
10
103823
47
970299
99

skipif mysql # not compatible
query II rowsort label-5885
SELECT DISTINCT - CAST ( col2 AS INTEGER ) * - col2 * + col2, col2 FROM tab0
----
1000
10
103823
47
970299
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5886
SELECT ALL + COUNT( * ) DIV - CAST( 12 AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL + COUNT ( * ) / - CAST ( 12 AS INTEGER ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5887
SELECT COUNT( ALL - ( - ( col1 ) ) ) * + 30 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5887
SELECT COUNT ( ALL - ( - ( col1 ) ) ) * + 30 FROM tab2
----
90

query I rowsort
SELECT - ( - col1 ) * - 79 FROM tab0
----
-1659
-6399
-79

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5889
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-5889
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 <= NULL
----

query II rowsort
SELECT ALL + - col0 * - 27 AS col1, 92 AS col2 FROM tab1 AS cor0
----
1377
92
2295
92
2457
92

query I rowsort
SELECT ALL + col1 + + 25 FROM tab0 AS cor0
----
106
26
46

query I rowsort
SELECT 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT + 26 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT col1 / 85 FROM tab0 AS cor0 WHERE col1 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5895
SELECT ALL 12 DIV - 24 + + col0 + - + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL 12 / - 24 + + col0 + - + col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + + col1 NOT BETWEEN + col1 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + + col1 col2 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT MIN( ALL + 6 ) + + 66 col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT MIN ( ALL + 6 ) + + 66 col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT DISTINCT - - col1 - 12 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
39
55
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 94 col1 FROM tab0
----
-47
-84
5

query I rowsort
SELECT + 82 + col1 AS col0 FROM tab0
----
103
163
83

query I rowsort
SELECT ALL - 42 * + + col2 + col1 FROM tab2
----
-1603
-2369
-915

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) - + col0 + - 32 * + 46 FROM tab0
----
-1406
-1538
-1568

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5905
SELECT ALL - 27 * COUNT( * ) + COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-5905
SELECT ALL - 27 * COUNT ( * ) + COUNT ( DISTINCT CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
-81

query I rowsort
SELECT DISTINCT + + col0 + + col0 * - col1 AS col2 FROM tab0 cor0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT DISTINCT - - SUM( DISTINCT - 86 ) AS col2 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - - SUM ( DISTINCT - 86 ) AS col2 FROM tab1 AS cor0
----
-86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL = NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - col1 IN ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 74 * - 66 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5911
SELECT DISTINCT 74 + + + col0 DIV + col0 - + 7, 51 AS col2 FROM tab2 AS cor0
----
68
51

skipif mysql # not compatible
query II rowsort label-5911
SELECT DISTINCT 74 + + + col0 / + col0 - + 7, 51 AS col2 FROM tab2 AS cor0
----
68
51

query I rowsort
SELECT + ( col0 ) * + col2 - col2 + 27 AS col0 FROM tab1 cor0
----
4827
4983
6147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) - - + col2 col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT 24 + + + 50 AS col2 FROM tab1
----
74
74
74

query I rowsort
SELECT ALL col2 * + col1 * 53 FROM tab2
----
163240
205958
62169

onlyif mysql # DIV for integer division: 
query I rowsort label-5916
SELECT DISTINCT 34 DIV - 18 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-5916
SELECT DISTINCT 34 / - 18 FROM tab0
----
-1

query I rowsort
SELECT ALL col1 * 72 FROM tab2 AS cor0
----
3672
4824
5544

query I rowsort
SELECT - 25 * + 20 * - col1 * + - 83 + - + col1 * + col2 AS col2 FROM tab0 cor0
----
-3365307
-41599
-871710

onlyif mysql # aggregate syntax: 
query I rowsort label-5919
SELECT DISTINCT COUNT( * ) * + MAX( + + 95 ) FROM tab2
----
285

skipif mysql # not compatible
query I rowsort label-5919
SELECT DISTINCT COUNT ( * ) * + MAX ( + + 95 ) FROM tab2
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL - CAST( NULL AS SIGNED ) * + COUNT( * ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5921
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( col0 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-5921
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( col0 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( - col1 * + col2 * 83 + + col1 + - col0 - + 8 * 79 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + MIN( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5924
SELECT + MIN ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT DISTINCT + + 43 * + COUNT( DISTINCT col0 ) - + - COUNT( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-5925
SELECT DISTINCT + + 43 * + COUNT ( DISTINCT col0 ) - + - COUNT ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT DISTINCT + - COUNT( * ) * 7 AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT + - COUNT ( * ) * 7 AS col2 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT ( - SUM( + + 22 ) ) * + COUNT( DISTINCT col2 ) * - 41 + - MAX( - col2 ) FROM tab0
----
8128

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT ( - SUM ( + + 22 ) ) * + COUNT ( DISTINCT col2 ) * - 41 + - MAX ( - col2 ) FROM tab0
----
8128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 * + col1 + + 47 + + - 25 col0, + col0 AS col2 FROM tab1 cor0
----
-1322
51
-273
85
-3174
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT + + COUNT( * ) * + 1 * - 0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5929
SELECT + + COUNT ( * ) * + 1 * - 0 AS col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 40 col1 FROM tab0 cor0
----
-40
-40
-40

query I rowsort
SELECT ( - - 73 ) FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT - col2 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5935
SELECT DISTINCT - 6 DIV + - 50 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT - 6 / + - 50 AS col1 FROM tab0
----
0

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE - col1 IN ( 14, 85 )
----

query I rowsort
SELECT + col1 - + 56 FROM tab1
----
-42
-51
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT - ( - COUNT( * ) ) * COUNT( * ) + - - 30 AS col2 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-5938
SELECT - ( - COUNT ( * ) ) * COUNT ( * ) + - - 30 AS col2 FROM tab1
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5939
SELECT + 64 + - CAST( 76 AS SIGNED ) AS col0, ( - + col1 ) AS col0 FROM tab2
----
-12
-51
-12
-67
-12
-77

skipif mysql # not compatible
query II rowsort label-5939
SELECT + 64 + - CAST ( 76 AS INTEGER ) AS col0, ( - + col1 ) AS col0 FROM tab2
----
-12
-51
-12
-67
-12
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-5940
SELECT + COUNT( * ) + - - COUNT( ALL + 71 ), + 7 AS col2 FROM tab2 cor0
----
6
7

skipif mysql # not compatible
query II rowsort label-5940
SELECT + COUNT ( * ) + - - COUNT ( ALL + 71 ), + 7 AS col2 FROM tab2 cor0
----
6
7

query II rowsort
SELECT col2 * - col2, 65 * col1 FROM tab0 AS cor0 WHERE + col0 < - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - col0 > NULL
----

query I rowsort
SELECT - - col0 - + col0 FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 14 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT ALL - ( ( MIN( col1 ) ) ) col1 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5945
SELECT ALL - ( ( MIN ( col1 ) ) ) col1 FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 80 col2 FROM tab0 AS cor0
----
80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) > NULL
----

query I rowsort
SELECT DISTINCT + 94 FROM tab1 AS cor0 WHERE NULL <> + 17
----

query I rowsort
SELECT ALL - col2 * ( + col0 ) + - 68 + - - col2 * + col0 + + + 17 FROM tab1 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT + - col0 * + - 14 AS col0 FROM tab0 AS cor0
----
1218
1358
210

query II rowsort
SELECT 89 AS col2, + col0 FROM tab0 AS cor0
----
89
15
89
87
89
97

query I rowsort
SELECT ALL - 70 * + col0 AS col2 FROM tab2 cor0
----
-3220
-4480
-5250

onlyif mysql # aggregate syntax: 
query I rowsort label-5953
SELECT ALL SUM( ALL + col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5953
SELECT ALL SUM ( ALL + col1 ) AS col0 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query II rowsort label-5954
SELECT DISTINCT col0 * col2 * + - 39 col1, col0 * - + col1 DIV col1 AS col2 FROM tab2
----
-169650
-75
-41262
-46
-99840
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5954
SELECT DISTINCT col0 * col2 * + - 39 col1, col0 * - + col1 / col1 AS col2 FROM tab2
----
-169650
-75
-41262
-46
-99840
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-5955
SELECT 69 * - ( - COUNT( DISTINCT + 6 ) ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-5955
SELECT 69 * - ( - COUNT ( DISTINCT + 6 ) ) FROM tab0
----
69

query I rowsort
SELECT DISTINCT + col1 * - + col2 AS col2 FROM tab2
----
-1173
-3080
-3886

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - col1 - - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5959
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * + col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + 99 AND NULL )
----

query I rowsort
SELECT DISTINCT - col0 + col2 + + col1 AS col1 FROM tab0 AS cor0
----
-56
113
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 col2 FROM tab0 AS cor0 WHERE + 67 IS NULL
----

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT - MIN( + - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5964
SELECT - MIN ( + - col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - + 45 + col1 col0, - col2 AS col0 FROM tab0
----
-3564
-47
-44
-99
-924
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5966
SELECT DISTINCT - COUNT( * ) DIV - 10 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5966
SELECT DISTINCT - COUNT ( * ) / - 10 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT - - ( - COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT - - ( - COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT ALL COUNT( * ) AS col2, 62 FROM tab0 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-5968
SELECT ALL COUNT ( * ) AS col2, 62 FROM tab0 AS cor0
----
3
62

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND - ( - 90 ) * - - 60 - + 97
----

query I rowsort
SELECT DISTINCT + - col2 - + ( + - 72 ) AS col0 FROM tab0 AS cor0
----
-27
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5971
SELECT ALL col0 * - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-5971
SELECT ALL col0 * - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT 60 + - + ( - col1 ) * 61 AS col1 FROM tab0 AS cor0
----
121
1341
5001

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT DISTINCT + ( + - 6 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5973
SELECT DISTINCT + ( + - 6 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT + ( - - COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5974
SELECT + ( - - COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT - 45 + + COUNT( + col0 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - 45 + + COUNT ( + col0 ) FROM tab1
----
-42

query I rowsort
SELECT - 75 - - col1 + col1 FROM tab2 AS cor0
----
27
59
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5977
SELECT - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5977
SELECT - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5978
SELECT + 65 + + MIN( DISTINCT + + 61 ) + - 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
35

skipif mysql # not compatible
query I rowsort label-5978
SELECT + 65 + + MIN ( DISTINCT + + 61 ) + - 91 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5979
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab0 WHERE NOT + col0 - + ( + col0 ) BETWEEN + col0 AND ( - col1 ) - - col2 * col2 * 51
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab0 WHERE NOT + col0 - + ( + col0 ) BETWEEN + col0 AND ( - col1 ) - - col2 * col2 * 51
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5980
SELECT CAST( NULL AS SIGNED ) / - COUNT( * ) * COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5980
SELECT CAST ( NULL AS INTEGER ) / - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT ALL - MIN( ALL col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5981
SELECT ALL - MIN ( ALL col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT - 76 * - 77 AS col0 FROM tab0 AS cor0
----
5852

query II rowsort
SELECT DISTINCT + col0, + 56 FROM tab2 AS cor0
----
46
56
64
56
75
56

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL - SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL - SUM ( + col1 ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT + - col2 - - + 71 FROM tab0 cor0 WHERE + 6 IS NOT NULL
----
-28
24
61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> col2 - - col2
----

query I rowsort
SELECT DISTINCT - + col1 * + 46 + + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-2230
-289
-740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 26 col1 FROM tab1
----
-25
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT ALL + 98 * COUNT( * ) FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-5989
SELECT ALL + 98 * COUNT ( * ) FROM tab0
----
294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT ALL - 12 + + - 93 * - + CAST( + MIN( + col2 ) AS SIGNED ) AS col0 FROM tab0
----
918

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL - 12 + + - 93 * - + CAST ( + MIN ( + col2 ) AS INTEGER ) AS col0 FROM tab0
----
918

query I rowsort
SELECT DISTINCT + 29 * + + 34 AS col2 FROM tab1
----
986

query I rowsort
SELECT DISTINCT col0 + - 4 AS col0 FROM tab2
----
42
60
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5993
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5993
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-3

query I rowsort
SELECT - - 24 + - col1 FROM tab2 AS cor0
----
-27
-43
-53

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 76 <> + - 37
----

query I rowsort
SELECT DISTINCT - col1 * + - col1 + + col1 + + 56 - + col2 + - - 60 * + col0 FROM tab1
----
3230
5127
7704

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT 94 * - COUNT( DISTINCT + + 67 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5997
SELECT 94 * - COUNT ( DISTINCT + + 67 ) FROM tab1
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 92 col0 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5999
SELECT ALL + ( - + ( MAX( + - 57 ) ) ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5999
SELECT ALL + ( - + ( MAX ( + - 57 ) ) ) FROM tab1 AS cor0
----
57

query I rowsort
SELECT col1 * col2 + + + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1196
3120
3944

query II rowsort
SELECT DISTINCT - ( - col0 ) AS col1, + 0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query I rowsort
SELECT DISTINCT - 42 * + 3 + + 55 FROM tab2 WHERE NOT ( + 32 * - col0 * col0 + - - col0 / col0 ) IS NULL AND + col1 <> - - col2
----
-71

query I rowsort
SELECT col2 - + 35 AS col2 FROM tab1
----
24
33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col0 ) col2 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + col0 * + + 57 FROM tab2
----
2622
3648
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-6006
SELECT ALL 18 DIV - 24 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6006
SELECT ALL 18 / - 24 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6007
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - + CAST( NULL AS DECIMAL ) / + col1, col2 + col2, - col2, - ( - 76 ) )
----

skipif mysql # not compatible
query III rowsort label-6007
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( - + CAST ( NULL AS REAL ) / + col1, col2 + col2, - col2, - ( - 76 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col2 IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6009
SELECT DISTINCT CAST( NULL AS SIGNED ), - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6009
SELECT DISTINCT CAST ( NULL AS INTEGER ), - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT ALL - MIN( - 48 ) FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-6010
SELECT ALL - MIN ( - 48 ) FROM tab2 cor0
----
48

query II rowsort
SELECT DISTINCT col1, 73 AS col0 FROM tab2 AS cor0
----
51
73
67
73
77
73

query II rowsort
SELECT ALL + ( + col0 ), col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + 38 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT ALL CAST( NULL AS SIGNED ) / - col0 / + 27 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL CAST ( NULL AS INTEGER ) / - col0 / + 27 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 94 AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT DISTINCT - CAST( - ( 98 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
98

skipif mysql # not compatible
query I rowsort label-6016
SELECT DISTINCT - CAST ( - ( 98 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6017
SELECT * FROM tab2 cor0 WHERE NOT - col2 * - CAST( + + CAST( + - col2 AS DECIMAL ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6017
SELECT * FROM tab2 cor0 WHERE NOT - col2 * - CAST ( + + CAST ( + - col2 AS REAL ) AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT ALL - COUNT( * ) + 17 AS col1 FROM tab2 AS cor0 WHERE NULL <= - col2
----
17

skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL - COUNT ( * ) + 17 AS col1 FROM tab2 AS cor0 WHERE NULL <= - col2
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> ( col2 ) + - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT DISTINCT - MAX( + ( - - 13 ) ) + - 63 AS col1 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT - MAX ( + ( - - 13 ) ) + - 63 AS col1 FROM tab0 AS cor0
----
-76

query I rowsort
SELECT 21 + + + col2 FROM tab0
----
120
31
68

query I rowsort
SELECT 28 + - 65 AS col2 FROM tab1
----
-37
-37
-37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6023
SELECT DISTINCT - 51 + + - ( + 65 ) + 15 * + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
-101

skipif mysql # not compatible
query I rowsort label-6023
SELECT DISTINCT - 51 + + - ( + 65 ) + 15 * + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
-101

query I rowsort
SELECT + ( 46 ) * + col1 FROM tab2 WHERE + - ( - + 9 ) * + 44 + + + col2 BETWEEN NULL AND - + 83 + + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 - + - col0 * - col0 col1 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT ( NULL < 91 - - 86 + + - 78 + + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6027
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2, tab0 AS cor0
----
9

query II rowsort
SELECT + col0, - col1 * + col2 * - col1 + - col1 FROM tab2 cor0
----
46
59772
64
237083
75
260295

onlyif mysql # DIV for integer division: 
query I rowsort label-6029
SELECT - 29 DIV - col1 FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-6029
SELECT - 29 / - col1 FROM tab0
----
0
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6030
SELECT 15 * + 2 * COUNT( * ) AS col1 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6030
SELECT 15 * + 2 * COUNT ( * ) AS col1 FROM tab2
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6031
SELECT ALL + col1 * col0 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6031
SELECT ALL + col1 * col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6032
SELECT ALL + 68 AS col2, SUM( - 72 ) AS col1 FROM tab2 AS cor0
----
68
-216

skipif mysql # not compatible
query II rowsort label-6032
SELECT ALL + 68 AS col2, SUM ( - 72 ) AS col1 FROM tab2 AS cor0
----
68
-216

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + 49 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6034
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) + + - AVG ( ALL + col2 ) + MIN( + 5 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6034
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + + - AVG ( ALL + col2 ) + MIN ( + 5 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 50 + - ( - + 15 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + - col0 ) * + - col2 - - col2 + + - 97 AS col1 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + + 80 + + + 82 + 47 * + col0 AS col0 FROM tab0 AS cor0
----
4251
4721
867

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT - col1 DIV 67 col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6038
SELECT - col1 / 67 col1 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT ALL COUNT( * ) * - 93 AS col2 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL COUNT ( * ) * - 93 AS col2 FROM tab1
----
-279

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6041
SELECT DISTINCT - CAST( 52 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - CAST ( 52 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + col2 * - 63 FROM tab0 cor0
----
-2961
-6237
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT ALL ( - + ( - MIN( - + ( - col1 ) ) ) ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT - col0 IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT ALL ( - + ( - MIN ( - + ( - col1 ) ) ) ) AS col0 FROM tab0 WHERE NOT ( NOT ( NOT - col0 IS NOT NULL ) )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, col1 FROM tab0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 22 IS NOT NULL
----

query II rowsort
SELECT ALL + col2 AS col2, ( col2 ) + - col1 + - + col1 * 61 * + col1 + ( - + ( - + 14 ) ) + - + 52 FROM tab2 AS cor0
----
23
-158727
40
-361744
58
-273876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 30 ) * + ( ( CAST( + + 78 AS SIGNED ) ) ) AND + ( - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6047
SELECT ALL - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 30 ) * + ( ( CAST ( + + 78 AS INTEGER ) ) ) AND + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 88 * - col1 - + - col2
----
0

skipif mysql # not compatible
query I rowsort label-6048
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - 88 * - col1 - + - col2
----
0

query I rowsort
SELECT DISTINCT + - col0 * - 72 AS col2 FROM tab2 AS cor0
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + + MAX( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6050
SELECT + + MAX ( - - col2 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT + + 3 * + 16 FROM tab2 cor0
----
48
48
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6052
SELECT 40, CAST( NULL AS SIGNED ) * - + COUNT( * ) col2 FROM tab1 AS cor0
----
40
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6052
SELECT 40, CAST ( NULL AS INTEGER ) * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
40
NULL

query I rowsort
SELECT + - 33 * - + 51 FROM tab2 AS cor0
----
1683
1683
1683

onlyif mysql # aggregate syntax: 
query I rowsort label-6054
SELECT SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6054
SELECT SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6055
SELECT ALL + + 96 * col2 DIV col0 AS col2 FROM tab0 AS cor0
----
11
300
97

skipif mysql # not compatible
query I rowsort label-6055
SELECT ALL + + 96 * col2 / col0 AS col2 FROM tab0 AS cor0
----
11
300
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6056
SELECT DISTINCT + col1 + - col1 * + col2 * + col1 * - - col0 * - + 11 AS col0 FROM tab2 cor0 WHERE + 21 + - col1 * CAST( NULL AS DECIMAL ) + - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT + col1 + - col1 * + col2 * + col1 * - - col0 * - + 11 AS col0 FROM tab2 cor0 WHERE + 21 + - col1 * CAST ( NULL AS REAL ) + - col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - col2, col1 + - col2 )
----

query I rowsort
SELECT ALL + col1 * + 17 * 88 FROM tab2
----
100232
115192
76296

query I rowsort
SELECT ALL - 29 + - + 46 AS col1 FROM tab1
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-6060
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT ALL + col0 + 96 FROM tab0
----
111
183
193

onlyif mysql # DIV for integer division: 
query I rowsort label-6062
SELECT ALL col0 DIV - col2 + - - col1 AS col2 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-6062
SELECT ALL col0 / - col2 + - - col1 AS col2 FROM tab2
----
49
66
76

query III rowsort
SELECT * FROM tab0 WHERE - - 12 * + col0 * - + col2 + + col1 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * - + 83 col1 FROM tab2
----
-1863
-3256
-4739

query I rowsort
SELECT DISTINCT + 43 + - col0 FROM tab0 AS cor0
----
-44
-54
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6066
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - - col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 20 * - - 55 / + 95 <> NULL
----

query I rowsort
SELECT 84 * col0 AS col2 FROM tab2
----
3864
5376
6300

query I rowsort
SELECT DISTINCT 42 FROM tab0 WHERE 10 >= - + col2
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6071
SELECT + SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6071
SELECT + SUM ( DISTINCT - col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-6072
SELECT COUNT( - col2 ) - - 35 + + - 81 AS col1 FROM tab0 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-6072
SELECT COUNT ( - col2 ) - - 35 + + - 81 AS col1 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT ALL + col1 * - - 61 - + - 55 FROM tab1 AS cor0
----
2922
360
909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL - 94 - + CAST( NULL AS SIGNED ) + col1 + CAST( NULL AS SIGNED ) * - col2 + + + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL - 94 - + CAST ( NULL AS INTEGER ) + col1 + CAST ( NULL AS INTEGER ) * - col2 + + + col2 + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT + COUNT( * ) * 18 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-6075
SELECT + COUNT ( * ) * 18 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6076
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * - 94 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6076
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col2 * - 94 + CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT ALL COUNT( * ) * + - MIN( - col1 ) AS col0 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-6077
SELECT ALL COUNT ( * ) * + - MIN ( - col1 ) AS col0 FROM tab0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT DISTINCT - ( - ( COUNT( * ) ) ) AS col2 FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6078
SELECT DISTINCT - ( - ( COUNT ( * ) ) ) AS col2 FROM tab2, tab2 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6079
SELECT ALL + CAST( 89 AS SIGNED ) FROM tab2
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6079
SELECT ALL + CAST ( 89 AS INTEGER ) FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6080
SELECT COUNT( * ) * - ( - - 44 ) AS col1 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-6080
SELECT COUNT ( * ) * - ( - - 44 ) AS col1 FROM tab0
----
-132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 76 col2, + 99, - + col0 * col2 + + + col1 AS col1 FROM tab1
----
9 values hashing to 32db1d836dd15e0e3e18ea1d97b2214c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6082
SELECT - ( - 72 ) DIV MAX( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6082
SELECT - ( - 72 ) / MAX ( + col0 ) FROM tab2
----
0

query II rowsort
SELECT DISTINCT 4, - col1 AS col2 FROM tab1
----
4
-14
4
-47
4
-5

query I rowsort
SELECT DISTINCT - col2 * + + ( + col1 ) FROM tab0 AS cor0
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6086
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT DISTINCT CAST ( NULL AS REAL ) + col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT + AVG ( ALL + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 81 - + 30 - - + 59 = - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6089
SELECT - - MIN( col1 ) DIV - 31 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6089
SELECT - - MIN ( col1 ) / - 31 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col1 = NULL )
----

query I rowsort
SELECT DISTINCT - col0 - col2 + - col2 + - + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 88 NOT BETWEEN - - col2 * 73 AND NULL
----

query I rowsort
SELECT ALL - 66 * 34 FROM tab2 AS cor0
----
-2244
-2244
-2244

query I rowsort
SELECT + - 26 + + + 57 - 25 AS col2 FROM tab2 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6094
SELECT ALL - CAST( NULL AS SIGNED ) * - 69 + - 89 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - CAST ( NULL AS INTEGER ) * - 69 + - 89 + - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 + 16 + - + 5 + + col1 AS col0 FROM tab0 AS cor0
----
109
1307
1859

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL + COUNT( + + 1 ) + - MIN( ( + + 55 ) ) + + COUNT( * ) * 21 + 76 * - COUNT( * ) FROM tab2
----
-217

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL + COUNT ( + + 1 ) + - MIN ( ( + + 55 ) ) + + COUNT ( * ) * 21 + 76 * - COUNT ( * ) FROM tab2
----
-217

query I rowsort
SELECT DISTINCT - col2 + - - col1 * - 64 FROM tab0
----
-1354
-163
-5231

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NULL IN ( - + col1, 40, + col1 / - 50 + - ( + col1 ), + - col1 + col0 * + 34 * + - col0, + col2 )
----

query I rowsort
SELECT - - col2 + - 35 AS col0 FROM tab2 AS cor0 WHERE - col1 > col2
----

query I rowsort
SELECT ALL col0 - + - 92 AS col2 FROM tab2 AS cor0
----
138
156
167

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT DISTINCT - MAX( - col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6102
SELECT DISTINCT - MAX ( - col0 ) AS col1 FROM tab0 cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 89 - - col1 FROM tab2 AS cor0
----
140
156
166

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT ALL COUNT( + + 95 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL COUNT ( + + 95 ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - 48 + + + 82 FROM tab2
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6107
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 36 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-6107
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 36 >= - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT ALL COUNT( - ( - 67 ) ) AS col2 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6108
SELECT ALL COUNT ( - ( - 67 ) ) AS col2 FROM tab0, tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 NOT BETWEEN + - 63 AND 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 91 * + 15 * + col1 FROM tab2 AS cor0
----
-105105
-69615
-91455

query I rowsort
SELECT DISTINCT + - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 23 * - + col0 * - 17 AND + - col0 + 38 * + col0
----

query II rowsort
SELECT - + col2, + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 71 - 23 <> col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 col1 FROM tab2 AS cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT DISTINCT + MIN( 5 ) AS col2, COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
5
9

skipif mysql # not compatible
query II rowsort label-6115
SELECT DISTINCT + MIN ( 5 ) AS col2, COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
5
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6116
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6117
SELECT 46 * - + COUNT( * ) AS col2, - COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-138
-3

skipif mysql # not compatible
query II rowsort label-6117
SELECT 46 * - + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-138
-3

query I rowsort
SELECT ALL + 87 * + col2 * 2 FROM tab2 AS cor0 WHERE NOT + 39 IS NOT NULL
----

query I rowsort
SELECT - + 98 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - ( 30 ) AS col1 FROM tab1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-6123
SELECT 91 DIV - col2 AS col0 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-6123
SELECT 91 / - col2 AS col0 FROM tab0
----
-1
-9
0

query I rowsort
SELECT - - col0 / - + ( col2 ) AS col2 FROM tab1 cor0 WHERE NOT ( NOT NULL < - - 61 )
----

query I rowsort
SELECT ALL - + col2 * - - col1 + - 80 + - + 12 AS col2 FROM tab2 AS cor0
----
-1265
-3172
-3978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6126
SELECT CAST( + 26 AS SIGNED ) + col1 + 36 col0 FROM tab1
----
109
67
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6126
SELECT CAST ( + 26 AS INTEGER ) + col1 + 36 col0 FROM tab1
----
109
67
76

query I rowsort
SELECT DISTINCT + ( - col0 ) * - 49 AS col0 FROM tab2 AS cor0
----
2254
3136
3675

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT - col0 DIV + + col0 col2 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT - col0 / + + col0 col2 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6129
SELECT - - 63 DIV + col2 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6129
SELECT - - 63 / + col2 AS col2 FROM tab0 AS cor0
----
0
1
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6130
SELECT DISTINCT 5 AS col1 FROM tab1 AS cor0 WHERE NOT - 51 + col1 * - - CAST( col0 AS DECIMAL ) IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-6130
SELECT DISTINCT 5 AS col1 FROM tab1 AS cor0 WHERE NOT - 51 + col1 * - - CAST ( col0 AS REAL ) IS NULL
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT + + MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6131
SELECT + + MIN ( + col2 ) FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 75 ) IS NULL
----

query I rowsort
SELECT - - ( - - col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - col0 + 72 AS col1 FROM tab1 AS cor0
----
-13
-19
21

query II rowsort
SELECT ALL 25 + col1, col0 FROM tab0
----
106
15
26
97
46
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT COUNT( - col1 ) + + ( + COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6136
SELECT COUNT ( - col1 ) + + ( + COUNT ( * ) ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT ALL COUNT( * ) DIV - 59 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL COUNT ( * ) / - 59 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + - 40 - - - 7 AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6139
SELECT ALL COUNT( * ), + COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6139
SELECT ALL COUNT ( * ), + COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6140
SELECT DISTINCT + + COUNT( * ) AS col1, 70 FROM tab1 WHERE NULL IS NULL
----
3
70

skipif mysql # not compatible
query II rowsort label-6140
SELECT DISTINCT + + COUNT ( * ) AS col1, 70 FROM tab1 WHERE NULL IS NULL
----
3
70

onlyif mysql # aggregate syntax: 
query I rowsort label-6141
SELECT ALL - + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-6142
SELECT ALL - 54 DIV - + col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - 54 / - + col0 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6143
SELECT ALL - COUNT( * ), - COUNT( * ) FROM tab0 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-6143
SELECT ALL - COUNT ( * ), - COUNT ( * ) FROM tab0 cor0
----
-3
-3

query I rowsort
SELECT + AVG ( ALL + + col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) + - + 57 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, + col1 AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 WHERE NOT + 49 IS NULL
----
23
40
58

query I rowsort
SELECT col0 * ( - 59 ) FROM tab1
----
-3009
-5015
-5369

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6149
SELECT CAST( + + ( COUNT( * ) ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6149
SELECT CAST ( + + ( COUNT ( * ) ) AS INTEGER ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + MIN( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-6151
SELECT + MIN ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT MIN( 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6152
SELECT MIN ( 1 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT DISTINCT - - COUNT( col0 ) * + - ( + COUNT( ALL - col1 ) ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6154
SELECT DISTINCT - - COUNT ( col0 ) * + - ( + COUNT ( ALL - col1 ) ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT 45 + + - col2 AS col1 FROM tab0 cor0
----
-2
-54
35

onlyif mysql # aggregate syntax: 
query II rowsort label-6156
SELECT DISTINCT + + COUNT( * ), 44 col1 FROM tab0 AS cor0
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6156
SELECT DISTINCT + + COUNT ( * ), 44 col1 FROM tab0 AS cor0
----
3
44

query II rowsort
SELECT + col0 + - - col1 + + ( - col2 ), ( + - col2 ) AS col1 FROM tab0
----
-1
-99
49
-47
98
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6158
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) * + COUNT( * ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6158
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - COUNT ( * ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 26 col0 FROM tab1
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT MAX( ALL 33 ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6160
SELECT MAX ( ALL 33 ) AS col1 FROM tab0
----
33

query I rowsort
SELECT DISTINCT - col1 * - col1 + - - 81 AS col2 FROM tab0
----
522
6642
82

query I rowsort
SELECT ALL col1 + col0 * + 57 FROM tab0
----
4980
5530
936

query III rowsort
SELECT * FROM tab1 WHERE - ( + col0 ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE 53 IS NULL
----

query II rowsort
SELECT ALL + col2, 26 FROM tab0 AS cor0
----
10
26
47
26
99
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT - - 12 - + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6166
SELECT - - 12 - + COUNT ( * ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT ALL col1 AS col0, 45 FROM tab2 AS cor0
----
51
45
67
45
77
45

query I rowsort
SELECT - + col0 FROM tab1 AS cor0 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6169
SELECT - COUNT( * ) DIV 22 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6169
SELECT - COUNT ( * ) / 22 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6170
SELECT - 2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT DISTINCT 83 AS col0, col2 AS col0 FROM tab0 WHERE + 73 IS NOT NULL OR NULL IS NULL
----
83
10
83
47
83
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6172
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6172
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL + - COUNT( * ) + + 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL + - COUNT ( * ) + + 70 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT + - col0 * - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6174
SELECT + - col0 * - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( - 53 ) * col1 AS col2 FROM tab1 AS cor0
----
2491
265
742

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6176
SELECT ALL ( + col0 ), CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6176
SELECT ALL ( + col0 ), CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ( + - 74 ) AS col1, + 80 FROM tab0 AS cor0
----
-74
80
-74
80
-74
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6178
SELECT DISTINCT + + SUM( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL > + col2 * - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6178
SELECT DISTINCT + + SUM ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NULL > + col2 * - CAST ( NULL AS REAL )
----
NULL

query I rowsort
SELECT ALL + 90 * - + col0 AS col1 FROM tab0
----
-1350
-7830
-8730

query II rowsort
SELECT col2 AS col0, 33 AS col2 FROM tab2
----
23
33
40
33
58
33

onlyif mysql # aggregate syntax: 
query II rowsort label-6181
SELECT ALL 8 + - ( - + COUNT( - + ( + col2 ) ) ), 33 AS col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
11
33

skipif mysql # not compatible
query II rowsort label-6181
SELECT ALL 8 + - ( - + COUNT ( - + ( + col2 ) ) ), 33 AS col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
11
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, - col2 col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, col2 + col2 FROM tab0 AS cor0
----
-15
94
-87
20
-97
198

query I rowsort
SELECT DISTINCT - ( 63 ) + col0 AS col0 FROM tab2 AS cor0
----
-17
1
12

query I rowsort
SELECT DISTINCT - col0 + + 65 AS col0 FROM tab2
----
-10
1
19

query I rowsort
SELECT DISTINCT + 17 * ( col2 ) + + col2 FROM tab2
----
1044
414
720

query I rowsort
SELECT 21 * + col2 FROM tab2
----
1218
483
840

query III rowsort
SELECT * FROM tab1 WHERE NOT + 86 IN ( + col0 * - col1 + 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE + 71 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 46 * - 98 FROM tab1
----
-4508
-4508
-4508

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT DISTINCT + 69 + COUNT( * ) col0 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6192
SELECT DISTINCT + 69 + COUNT ( * ) col0 FROM tab2
----
72

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - 12 IS NOT NULL
----

query I rowsort
SELECT + ( col2 ) + + 26 FROM tab2
----
49
66
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6195
SELECT ALL + COUNT( * ) DIV - CAST( 60 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + COUNT ( * ) / - CAST ( 60 AS INTEGER ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6196
SELECT + CAST( NULL AS SIGNED ) + + 33 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT + CAST ( NULL AS INTEGER ) + + 33 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col0 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT IN ( col0 * col2 )
----

query I rowsort
SELECT col1 * + col0 FROM tab2 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-6200
SELECT DISTINCT - MIN( 27 ) col1 FROM tab0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT DISTINCT - MIN ( 27 ) col1 FROM tab0
----
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 39 < - ( 68 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6202
SELECT DISTINCT - COUNT( * ) + - 10 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6202
SELECT DISTINCT - COUNT ( * ) + - 10 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT DISTINCT MAX( DISTINCT col2 ) / + ( 87 ) FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6203
SELECT DISTINCT MAX ( DISTINCT col2 ) / + ( 87 ) FROM tab0 WHERE col1 BETWEEN ( - col0 ) AND NULL
----
NULL

query I rowsort
SELECT ALL - 30 * - 49 FROM tab2
----
1470
1470
1470

query I rowsort
SELECT col2 - - 34 FROM tab0 WHERE ( NULL ) BETWEEN ( - col1 - ( + col2 ) ) AND NULL
----

query I rowsort
SELECT 29 * 42 FROM tab0
----
1218
1218
1218

query I rowsort
SELECT ALL + col0 * - col2 + - ( 40 ) FROM tab2 WHERE ( NULL ) IS NULL
----
-1098
-2600
-4390

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * + 80 col0 FROM tab1
----
5360
5360
5360

query I rowsort
SELECT ALL + 18 * col1 AS col1 FROM tab1 WHERE + 12 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT DISTINCT - 71 * SUM( ALL 82 ) AS col2 FROM tab1
----
-17466

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT - 71 * SUM ( ALL 82 ) AS col2 FROM tab1
----
-17466

query I rowsort
SELECT + 92 * - col1 FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT DISTINCT col0 + 64 * + 94 FROM tab2
----
6062
6080
6091

query I rowsort
SELECT DISTINCT ( - 19 ) * - col2 FROM tab2 AS cor0
----
1102
437
760

query I rowsort
SELECT ALL 8 FROM tab1 AS cor0 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT DISTINCT - col1 / + 51 FROM tab1 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT ALL 54 DIV + col2 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 54 / + col2 AS col2 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL col1 * 86 FROM tab1 WHERE 73 NOT BETWEEN NULL AND ( + col0 / col0 )
----
1204
4042
430

query I rowsort
SELECT 58 * - col0 AS col0 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT DISTINCT + 0 * 81 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6220
SELECT DISTINCT COUNT( * ) * COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 40 + col0 * - 97 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6223
SELECT DISTINCT + + 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-6223
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - 27 * col2 FROM tab0 cor0
----
-1269
-2673
-270

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6225
SELECT ALL col2 + + 32 / 72 AS col0 FROM tab0 AS cor0 WHERE ( - ( + col1 ) ) / col0 > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL col2 + + 32 / 72 AS col0 FROM tab0 AS cor0 WHERE ( - ( + col1 ) ) / col0 > CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT DISTINCT + COUNT( * ) * COUNT( col1 * CAST( 55 * 54 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT + COUNT ( * ) * COUNT ( col1 * CAST ( 55 * 54 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT DISTINCT + ( 92 ) * - COUNT( * ) AS col2 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-6227
SELECT DISTINCT + ( 92 ) * - COUNT ( * ) AS col2 FROM tab2
----
-276

query I rowsort
SELECT col2 + + + 41 FROM tab1
----
100
109
137

query I rowsort
SELECT DISTINCT 73 FROM tab2 WHERE 43 + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT ALL + COUNT( * ) * - COUNT( ALL col1 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6230
SELECT ALL + COUNT ( * ) * - COUNT ( ALL col1 ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT - col1 + ( + 21 ) AS col1 FROM tab2
----
-30
-46
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col0 FROM tab0
----
-52

query I rowsort
SELECT ALL + col2 + + 93 FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT + SUM( DISTINCT + col0 ) FROM tab1 WHERE NOT 72 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT + SUM ( DISTINCT + col0 ) FROM tab1 WHERE NOT 72 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6235
SELECT + 5 + - COUNT( * ) col2 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT + 5 + - COUNT ( * ) col2 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT + 64 NOT BETWEEN + col1 AND - col1 OR NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 64 NOT BETWEEN + col1 AND - col1 OR NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 - + col2 = + col2
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL - 60 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * col2 IS NULL
----
-60
-60
-60

query I rowsort
SELECT ALL 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6241
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 - + 81 AS col1 FROM tab0
----
-102
-162
-82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL COUNT( * ) - + 73 FROM tab1 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-6244
SELECT ALL COUNT ( * ) - + 73 FROM tab1 cor0
----
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6245
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 + + + col2 + col0 FROM tab2 AS cor0
----
115
168
208

query I rowsort
SELECT + + 98 * 10 * col2 * 71 FROM tab0 AS cor0
----
3270260
6888420
695800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6248
SELECT + SUM( - col0 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6248
SELECT + SUM ( - col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6250
SELECT 51 * - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6250
SELECT 51 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT + 97 * + CAST( - 74 AS SIGNED ) FROM tab1
----
-7178
-7178
-7178

skipif mysql # not compatible
query I rowsort label-6251
SELECT + 97 * + CAST ( - 74 AS INTEGER ) FROM tab1
----
-7178
-7178
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT DISTINCT + + SUM( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT + + SUM ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT ALL col2 * + 42 + + + col1 FROM tab1 AS cor0
----
2483
2903
4046

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT ALL COUNT( * ) * - 47 AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL COUNT ( * ) * - 47 AS col0 FROM tab1 AS cor0
----
-141

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL NOT IN ( col0 * col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT DISTINCT + col2 * - 64 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 WHERE NOT + 57 IN ( + + col2 )
----
-1449
-2520
-3654

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT + col2 * - 64 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 WHERE NOT + 57 IN ( + + col2 )
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT - MIN( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6257
SELECT - MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT DISTINCT + COUNT( * ) + + 41 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
44

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT + COUNT ( * ) + + 41 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT + 70 FROM tab2 AS cor0 WHERE NOT 70 + - col1 NOT BETWEEN col1 * - - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6259
SELECT + 70 FROM tab2 AS cor0 WHERE NOT 70 + - col1 NOT BETWEEN col1 * - - CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT DISTINCT COUNT( DISTINCT - 69 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6260
SELECT DISTINCT COUNT ( DISTINCT - 69 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6261
SELECT col0 * 52 * - + col1 DIV col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif mysql # not compatible
query I rowsort label-6261
SELECT col0 * 52 * - + col1 / col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT DISTINCT + + COUNT( * ) * + - 68 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-6262
SELECT DISTINCT + + COUNT ( * ) * + - 68 FROM tab1 AS cor0
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6263
SELECT ALL CAST( NULL AS SIGNED ) * - + col1 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6263
SELECT ALL CAST ( NULL AS INTEGER ) * - + col1 + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL + CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * 38 )
----

query I rowsort
SELECT DISTINCT - col2 * + 71 AS col0 FROM tab1 AS cor0
----
-4189
-4828
-6816

query I rowsort
SELECT DISTINCT + 0 + + - col1 + - 1 FROM tab0 cor0
----
-2
-22
-82

query II rowsort
SELECT + - 79 AS col1, - 63 FROM tab1 cor0
----
-79
-63
-79
-63
-79
-63

query I rowsort
SELECT ALL + + 33 * 46 AS col2 FROM tab1 AS cor0
----
1518
1518
1518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT ALL - 40 * + 78 + col0 AS col0 FROM tab2
----
-3045
-3056
-3074

query I rowsort
SELECT ALL + ( + 94 ) + 50 / + 14 AS col1 FROM tab1 WHERE - col0 <> NULL
----

query I rowsort
SELECT - 66 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col2 + + 70 AS col0 FROM tab0 AS cor0
----
117
169
80

query I rowsort
SELECT ALL + col1 FROM tab0 cor0 WHERE NOT - 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE 16 + + + 19 + - 72 IN ( + 77 )
----
0

skipif mysql # not compatible
query I rowsort label-6276
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE 16 + + + 19 + - 72 IN ( + 77 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) + + CAST( NULL AS SIGNED ) NOT BETWEEN ( + col0 * 74 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6278
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) + + CAST ( NULL AS INTEGER ) NOT BETWEEN ( + col0 * 74 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6279
SELECT DISTINCT + ( col2 ) + - CAST( - col1 AS SIGNED ) + - 67 AS col0 FROM tab1
----
-3
43
48

skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT + ( col2 ) + - CAST ( - col1 AS INTEGER ) + - 67 AS col0 FROM tab1
----
-3
43
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6280
SELECT - MAX( ALL + + 60 ) * 90 + - + 96 AS col0 FROM tab1 AS cor0
----
-5496

skipif mysql # not compatible
query I rowsort label-6280
SELECT - MAX ( ALL + + 60 ) * 90 + - + 96 AS col0 FROM tab1 AS cor0
----
-5496

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 - + col1 = ( col0 * 18 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT MAX( - col1 ) * + 76 FROM tab0 AS cor0 WHERE - col0 * + col1 + + col0 * + col2 / - 30 NOT IN ( + + ( - col1 ) )
----
-76

skipif mysql # not compatible
query I rowsort label-6282
SELECT MAX ( - col1 ) * + 76 FROM tab0 AS cor0 WHERE - col0 * + col1 + + col0 * + col2 / - 30 NOT IN ( + + ( - col1 ) )
----
-76

query I rowsort
SELECT + 3 - col0 + + col0 * + col1 FROM tab0 AS cor0
----
1203
1743
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 6, col1 )
----

query I rowsort
SELECT - + col1 - + col2 * - col2 FROM tab1 AS cor0
----
3476
4577
9202

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 BETWEEN NULL AND col1 )
----
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6287
SELECT DISTINCT - ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6287
SELECT DISTINCT - ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 32 FROM tab0 WHERE NOT + - 67 IS NULL
----
-32
-32
-32

query II rowsort
SELECT + col1, - col1 AS col0 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT DISTINCT + CAST( - 25 AS SIGNED ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-6291
SELECT DISTINCT + CAST ( - 25 AS INTEGER ) FROM tab2
----
-25

query II rowsort
SELECT ALL + col2, 96 FROM tab1
----
59
96
68
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6293
SELECT ALL + MAX( - 17 ) AS col0 FROM tab1 WHERE NOT ( col2 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6293
SELECT ALL + MAX ( - 17 ) AS col0 FROM tab1 WHERE NOT ( col2 ) = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6294
SELECT + col0, + CAST( - col0 AS SIGNED ) + - + ( + - ( - 3 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
-54
85
-88
91
-94

skipif mysql # not compatible
query II rowsort label-6294
SELECT + col0, + CAST ( - col0 AS INTEGER ) + - + ( + - ( - 3 ) ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
-54
85
-88
91
-94

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 < col2
----
46
51
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT MAX( ALL + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6296
SELECT DISTINCT MAX ( ALL + col0 ) AS col0 FROM tab0
----
97

query I rowsort
SELECT + + col0 + col0 - + col0 AS col2 FROM tab1 WHERE NOT NULL <> + 13 * - 12 * - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col1 * col1 * - 86 * 44 + - col0 AS col1 FROM tab0
----
10
-1668831
47
-24826839
99
-3881

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab2 AS cor0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 9 * + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN - 85 AND - - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6302
SELECT ALL - COUNT( + col2 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6302
SELECT ALL - COUNT ( + col2 ) col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT ALL 0 * + - COUNT( * ) AS col1, 31 + - COUNT( * ) FROM tab0
----
0
28

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL 0 * + - COUNT ( * ) AS col1, 31 + - COUNT ( * ) FROM tab0
----
0
28

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT + 15 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6306
SELECT - - 69 * COUNT( * ) * ( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 WHERE NOT ( - 84 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6306
SELECT - - 69 * COUNT ( * ) * ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 WHERE NOT ( - 84 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - 20 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6307
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + - 20 ) IS NULL
----
3

query I rowsort
SELECT ALL + 77 * + 42 FROM tab0 AS cor0 WHERE + col2 * + ( + - col0 ) + col0 IS NOT NULL
----
3234
3234
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-6309
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6310
SELECT ALL - COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL - COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6311
SELECT ALL col1 * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= ( + + col0 / col0 )
----

skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL col1 * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) >= ( + + col0 / col0 )
----

query I rowsort
SELECT ALL + ( + 52 ) + - - col0 FROM tab1 AS cor0
----
103
137
143

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6313
SELECT - CAST( NULL AS SIGNED ) + - - col0 * - 92 + - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6313
SELECT - CAST ( NULL AS INTEGER ) + - - col0 * - 92 + - + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT - 3 * + MAX( DISTINCT 18 ) + + COUNT( * ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6314
SELECT - 3 * + MAX ( DISTINCT 18 ) + + COUNT ( * ) FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT DISTINCT COUNT( * ) + - COUNT( * ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6315
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col2 FROM tab2
----
87
87
87

query I rowsort
SELECT DISTINCT col0 + + + col2 * - - 36 AS col1 FROM tab0
----
1707
3661
447

onlyif mysql # aggregate syntax: 
query I rowsort label-6318
SELECT DISTINCT + MAX( + - col2 ) * + ( - - COUNT( * ) ) AS col1 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + MAX ( + - col2 ) * + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
-177

query I rowsort
SELECT ALL col1 + - 42 AS col2 FROM tab2
----
25
35
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6320
SELECT - CAST( col0 AS SIGNED ) * + 16 AS col0 FROM tab2 AS cor0
----
-1024
-1200
-736

skipif mysql # not compatible
query I rowsort label-6320
SELECT - CAST ( col0 AS INTEGER ) * + 16 AS col0 FROM tab2 AS cor0
----
-1024
-1200
-736

query I rowsort
SELECT ALL + - col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 74 * 71 FROM tab0 cor0
----
5254
5254
5254

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 63 col0 FROM tab0 AS cor0
----
144
64
84

query I rowsort
SELECT col2 * + col1 - - + col0 * + - col2 FROM tab0
----
-660
-9504
3102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6325
SELECT ALL + - 76 * + 41, CAST( NULL AS SIGNED ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to b00d12337a83787715313490e2b08c64

skipif mysql # not compatible
query II rowsort label-6325
SELECT ALL + - 76 * + 41, CAST ( NULL AS INTEGER ) AS col0 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
18 values hashing to b00d12337a83787715313490e2b08c64

query II rowsort
SELECT ALL col0 + col1 * + - ( + col0 ) AS col2, ( + + 56 ) - + 18 FROM tab0
----
-1200
38
-1740
38
0
38

query I rowsort
SELECT - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT - - col1 AS col1 FROM tab1 AS cor0 WHERE 49 NOT BETWEEN + col2 AND NULL
----
14
47
5

query II rowsort
SELECT 49, col1 FROM tab1 cor0
----
49
14
49
47
49
5

query I rowsort
SELECT - + 28 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
11900
119756
19992

query II rowsort
SELECT ALL col1 AS col0, 67 * + 72 FROM tab0 AS cor0
----
1
4824
21
4824
81
4824

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT COUNT( * ) * - - SUM( col2 ) AS col2 FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-6332
SELECT COUNT ( * ) * - - SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT DISTINCT + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6334
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
3

query I rowsort
SELECT + col0 * + + col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6336
SELECT DISTINCT + SUM( + CAST( - - col2 AS SIGNED ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6336
SELECT DISTINCT + SUM ( + CAST ( - - col2 AS INTEGER ) ) AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT ALL col2 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL col2 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 97 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 25 * - 28, col1 AS col0 FROM tab1
----
-700
14
-700
47
-700
5

query II rowsort
SELECT ALL + col1 AS col0, col2 AS col2 FROM tab2 WHERE ( 37 ) = + col0
----

query I rowsort
SELECT ALL + + ( + + col2 ) AS col0 FROM tab0 cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT + - SUM( - + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6342
SELECT + - SUM ( - + col1 ) FROM tab0 AS cor0
----
103

query I rowsort
SELECT - + col1 FROM tab2 AS cor0 WHERE NOT - 8 * col1 < - 42
----

query II rowsort
SELECT + - col0 / - + 20, + col0 + col1 FROM tab0 AS cor0 WHERE NOT + ( col1 ) = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6345
SELECT ALL COUNT( * ) col2, 41 col1 FROM tab1
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6345
SELECT ALL COUNT ( * ) col2, 41 col1 FROM tab1
----
3
41

query I rowsort
SELECT - - col0 * 67 FROM tab1 AS cor0
----
3417
5695
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT - - COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6347
SELECT - - COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + 52 AS col2, col0 * + - col2 FROM tab2 AS cor0
----
52
-1058
52
-2560
52
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 * col2 col1 FROM tab0 cor0
----
3243
6831
690

onlyif mysql # DIV for integer division: 
query I rowsort label-6350
SELECT 42 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6350
SELECT 42 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6351
SELECT + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, 67 FROM tab1 AS cor0
----
-51
67
-85
67
-91
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 69 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT ALL - COUNT( * ) AS col0 FROM tab1 WHERE + col2 * 2 NOT BETWEEN - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6355
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 WHERE + col2 * 2 NOT BETWEEN - col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL MIN( col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6356
SELECT ALL MIN ( col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT DISTINCT - ( + + col1 ) + ( - col2 ) * col1 + 33 * - - col2 AS col2 FROM tab0
----
-2337
3167
99

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 IS NULL OR NOT 93 > NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col1 + - 93 AS col0 FROM tab1 AS cor0
----
-107
-140
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6360
SELECT DISTINCT SUM( - col0 ) col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6360
SELECT DISTINCT SUM ( - col0 ) col0 FROM tab1 cor0
----
-227

query I rowsort
SELECT + + ( 3 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT + col2 DIV + + col1 AS col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-6362
SELECT + col2 / + + col1 AS col1 FROM tab0
----
0
0
99

query I rowsort
SELECT + 61 * - 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 04081e7e107b8d075687fc9cc9584615

query I rowsort
SELECT ALL + col0 * - 18 + - - col1 + - col0 FROM tab2
----
-1139
-1358
-823

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT DISTINCT 64 DIV - + col2 - col0 FROM tab2 cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT 64 / - + col2 - col0 FROM tab2 cor0
----
-48
-65
-76

query I rowsort
SELECT ALL 48 * - + col2 FROM tab2
----
-1104
-1920
-2784

query I rowsort
SELECT 46 * - col0 FROM tab0
----
-4002
-4462
-690

query I rowsort
SELECT ALL + col2 * 14 FROM tab1
----
1344
826
952

query I rowsort
SELECT ( - + 93 ) * col1 FROM tab1
----
-1302
-4371
-465

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6371
SELECT DISTINCT + 98 DIV - COUNT( * ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + 98 / - COUNT ( * ) AS col0 FROM tab2
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, - 59 FROM tab2
----
46
-59
64
-59
75
-59

query I rowsort
SELECT + 93 FROM tab2 WHERE NOT NULL IS NOT NULL
----
93
93
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) BETWEEN 92 - - col0 * + - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 + - + ( + col0 ) + + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-111
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6377
SELECT - COUNT( * ), - 19 col2 FROM tab1 AS cor0
----
-3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6377
SELECT - COUNT ( * ), - 19 col2 FROM tab1 AS cor0
----
-3
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6378
SELECT col0 * + col0 * + col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + - 38 * + col1, CAST( - col2 AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query I rowsort label-6378
SELECT col0 * + col0 * + col1 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + - 38 * + col1, CAST ( - col2 AS INTEGER ), + col0 )
----

query I rowsort
SELECT + - col1 FROM tab1 WHERE - 57 NOT BETWEEN + + col2 * - col2 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6380
SELECT ALL ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) * + 39 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6380
SELECT ALL ( - - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) * + 39 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6382
SELECT COUNT( * ) + + 34 AS col2, 61 FROM tab1 AS cor0
----
37
61

skipif mysql # not compatible
query II rowsort label-6382
SELECT COUNT ( * ) + + 34 AS col2, 61 FROM tab1 AS cor0
----
37
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT - 25 + MAX( ALL + 28 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6383
SELECT - 25 + MAX ( ALL + 28 ) FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 NOT IN ( 93 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 92 + - col0 AS col2 FROM tab0
----
-5
5
77

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col1 * - - col2 AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT DISTINCT 93 + + - COUNT( * ) AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6387
SELECT DISTINCT 93 + + - COUNT ( * ) AS col2 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT SUM( - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6388
SELECT SUM ( - - col2 ) FROM tab0
----
156

query II rowsort
SELECT ALL col0 + col0 - - 69, + col2 + + 39 + - col1 AS col1 FROM tab2
----
161
11
197
2
219
30

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6390
SELECT ALL + col2, CAST( NULL AS DECIMAL ) + - - CAST( NULL AS SIGNED ) * + 14 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6390
SELECT ALL + col2, CAST ( NULL AS REAL ) + - - CAST ( NULL AS INTEGER ) * + 14 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6391
SELECT + COUNT( ALL col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6391
SELECT + COUNT ( ALL col1 ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT + COUNT( * ) - + - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6392
SELECT + COUNT ( * ) - + - COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6393
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6393
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2

query II rowsort
SELECT DISTINCT + col1 * - col1 AS col0, + col0 AS col1 FROM tab2
----
-2601
46
-4489
75
-5929
64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + 55 )
----

query II rowsort
SELECT - col2 * - col1 + + + col0 - 83 * col0, col2 FROM tab2 AS cor0
----
-2168
40
-2264
58
-2599
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT DISTINCT - + 57 * MAX( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-4275

skipif mysql # not compatible
query I rowsort label-6398
SELECT DISTINCT - + 57 * MAX ( DISTINCT - - col0 ) FROM tab2 AS cor0
----
-4275

query I rowsort
SELECT col1 * - 70 AS col0 FROM tab1 AS cor0
----
-3290
-350
-980

query I rowsort
SELECT DISTINCT - 20 * ( - col2 ) FROM tab0 AS cor0
----
1980
200
940

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + col1 BETWEEN NULL AND + col1
----
97
1
99

query I rowsort
SELECT DISTINCT + + 59 * - 61 * + - col0 FROM tab2 AS cor0 WHERE NOT ( NOT NULL <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 34 ) col1 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + col1 * - col2 + + + 47 FROM tab0 AS cor0
----
-163
-3760
-52

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT 84 * 4 DIV COUNT( * ) FROM tab0
----
112

skipif mysql # not compatible
query I rowsort label-6405
SELECT 84 * 4 / COUNT ( * ) FROM tab0
----
112

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6406
SELECT ALL col0 / + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL col0 / + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( 82 ) + + col1 ) NOT IN ( col2 * - + col0 * + 25, col0 )
----

query I rowsort
SELECT + col2 * + 95 AS col2 FROM tab1
----
5605
6460
9120

onlyif mysql # DIV for integer division: 
query I rowsort label-6409
SELECT ALL - col1 DIV + + 23 FROM tab2
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-6409
SELECT ALL - col1 / + + 23 FROM tab2
----
-2
-2
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 14 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 62 / - 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT ALL COUNT( ALL + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6412
SELECT ALL COUNT ( ALL + col0 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6413
SELECT col2 DIV + - col1 AS col0 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-6413
SELECT col2 / + - col1 AS col0 FROM tab1 cor0
----
-1
-11
-6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - + 70 ) NOT BETWEEN col2 AND + col1 + - CAST( NULL AS SIGNED )
----
51
14
96

skipif mysql # not compatible
query III rowsort label-6414
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - + 70 ) NOT BETWEEN col2 AND + col1 + - CAST ( NULL AS INTEGER )
----
51
14
96

query I rowsort
SELECT ALL + - col2 FROM tab1 WHERE ( ( NOT 50 + + + col0 IS NOT NULL ) )
----

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab0 WHERE + - col2 IS NULL
----

query I rowsort
SELECT - col1 * + 73 * - 26 + col1 - col1 * + + 64 FROM tab1
----
25690
86245
9175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6418
SELECT ALL + + CAST( + 50 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + + CAST ( + 50 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT ALL - col0 * - col0 + + + col1 + + col1 FROM tab1 AS cor0
----
2629
7235
8375

query I rowsort
SELECT ALL - 46 * - 39 + col0 AS col1 FROM tab1 AS cor0
----
1845
1879
1885

onlyif mysql # aggregate syntax: 
query I rowsort label-6421
SELECT ( - + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6421
SELECT ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT DISTINCT + MIN( - col1 ) col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6422
SELECT DISTINCT + MIN ( - col1 ) col2 FROM tab0 AS cor0
----
-81

query II rowsort
SELECT + col2, col1 * 17 * col2 AS col0 FROM tab0 AS cor0
----
10
3570
47
64719
99
1683

query I rowsort
SELECT ALL - col0 + col2 + col1 FROM tab2 AS cor0 WHERE NOT - col1 * + 86 IS NOT NULL
----

query I rowsort
SELECT - + col2 AS col2 FROM tab1 AS cor0 WHERE col1 = - col1
----

query I rowsort
SELECT + col0 + + - col2 FROM tab2 AS cor0
----
17
23
24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( + 48, col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6428
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6428
SELECT * FROM tab2 AS cor0 WHERE NULL = ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL + 97 * - - col0 FROM tab1 AS cor0
----
4947
8245
8827

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6431
SELECT + - 46 * + MAX( ALL + col2 ) + + COUNT( * ) FROM tab2 AS cor0
----
-2665

skipif mysql # not compatible
query I rowsort label-6431
SELECT + - 46 * + MAX ( ALL + col2 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-2665

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col1 FROM tab2 AS cor0 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT DISTINCT + 82 * 34 * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
8364

skipif mysql # not compatible
query I rowsort label-6433
SELECT DISTINCT + 82 * 34 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
8364

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 32 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6436
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE col1 + - + CAST( 79 AS SIGNED ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE col1 + - + CAST ( 79 AS INTEGER ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6437
SELECT + COUNT( DISTINCT - 38 ) AS col0, SUM( + - 45 ) + - - ( - + MIN( + col1 ) ) FROM tab2
----
1
-186

skipif mysql # not compatible
query II rowsort label-6437
SELECT + COUNT ( DISTINCT - 38 ) AS col0, SUM ( + - 45 ) + - - ( - + MIN ( + col1 ) ) FROM tab2
----
1
-186

query I rowsort
SELECT + 75 * col2 AS col0 FROM tab1
----
4425
5100
7200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 + - col1 AS col0, - col1 + + 52 + - col1 col0 FROM tab0
----
-28
-110
32
10
52
50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6440
SELECT 69 DIV - COUNT( * ) + - 32 FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-6440
SELECT 69 / - COUNT ( * ) + - 32 FROM tab2
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6441
SELECT CAST( NULL AS SIGNED ) + + + ( - - col2 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6441
SELECT CAST ( NULL AS INTEGER ) + + + ( - - col2 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT col2 DIV 7 + - col1 FROM tab2
----
-48
-59
-72

skipif mysql # not compatible
query I rowsort label-6442
SELECT col2 / 7 + - col1 FROM tab2
----
-48
-59
-72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 = + 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col1 * ( + 58 ) - - - col2 AS col1 FROM tab2 AS cor0
----
2935
3828
4426

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT - COUNT( * ) * - 54 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT - COUNT ( * ) * - 54 FROM tab2 AS cor0
----
162

query I rowsort
SELECT ( 0 ) + 31 FROM tab1 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 72 IS NULL
----

query I rowsort
SELECT + + 16 AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + 46 FROM tab2 WHERE NULL IS NULL
----
46
46
46

query I rowsort
SELECT ALL 45 + - - col0 FROM tab0
----
132
142
60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IS NULL AND - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col2 + - - col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - 47 * - col2 FROM tab0 cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT - - COUNT( DISTINCT - - col2 ) FROM tab2 cor0 WHERE NULL NOT BETWEEN + 61 - - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6455
SELECT - - COUNT ( DISTINCT - - col2 ) FROM tab2 cor0 WHERE NULL NOT BETWEEN + 61 - - col1 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6456
SELECT DISTINCT - + col2 DIV 15 + + 75 AS col2, 36 DIV + col1 * + - col0 + - 92 * 10 FROM tab2 AS cor0
----
72
-920
73
-920
74
-920

skipif mysql # not compatible
query II rowsort label-6456
SELECT DISTINCT - + col2 / 15 + + 75 AS col2, 36 / + col1 * + - col0 + - 92 * 10 FROM tab2 AS cor0
----
72
-920
73
-920
74
-920

query I rowsort
SELECT - col2 * + + 32 + + + col2 + + col2 + 47 FROM tab1 AS cor0
----
-1723
-1993
-2833

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT + col2 DIV - 47 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT + col2 / - 47 AS col0 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL - MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL - MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-6460
SELECT - COUNT( * ), - MAX( DISTINCT + 50 ) + COUNT( ALL + col0 ) AS col2 FROM tab0
----
-3
-47

skipif mysql # not compatible
query II rowsort label-6460
SELECT - COUNT ( * ), - MAX ( DISTINCT + 50 ) + COUNT ( ALL + col0 ) AS col2 FROM tab0
----
-3
-47

query I rowsort
SELECT DISTINCT 45 + 59 AS col2 FROM tab2
----
104

query I rowsort
SELECT 8 * 65 FROM tab0
----
520
520
520

onlyif mysql # DIV for integer division: 
query I rowsort label-6463
SELECT - col1 DIV 55 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6463
SELECT - col1 / 55 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6464
SELECT ALL 85 + - col2 + - - col1 + + - 12 DIV + col2 * - + col0 AS col1 FROM tab1
----
3
31
64

skipif mysql # not compatible
query I rowsort label-6464
SELECT ALL 85 + - col2 + - - col1 + + - 12 / + col2 * - + col0 AS col1 FROM tab1
----
3
31
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6465
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + ( - + 23 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + ( - + 23 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 AS col0 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, + 50 * - col2 col1 FROM tab1
----
51
-4800
85
-2950
91
-3400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col2 col1 FROM tab0
----
10
10
47
47
99
99

query II rowsort
SELECT col1 * - - 88, col1 FROM tab1 AS cor0
----
1232
14
4136
47
440
5

query I rowsort
SELECT 26 * col0 FROM tab2 AS cor0
----
1196
1664
1950

onlyif mysql # aggregate syntax: 
query II rowsort label-6471
SELECT DISTINCT 85 col1, ( + COUNT( ALL + + 58 ) ) * - COUNT( * ) + + 50 col2 FROM tab2 AS cor0
----
85
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6471
SELECT DISTINCT 85 col1, ( + COUNT ( ALL + + 58 ) ) * - COUNT ( * ) + + 50 col2 FROM tab2 AS cor0
----
85
41

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 26 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6473
SELECT + col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6473
SELECT + col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT MIN( ALL col0 ) * 7 - + 72 AS col0 FROM tab2 AS cor0
----
250

skipif mysql # not compatible
query I rowsort label-6474
SELECT MIN ( ALL col0 ) * 7 - + 72 AS col0 FROM tab2 AS cor0
----
250

query I rowsort
SELECT DISTINCT - 4 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query I rowsort
SELECT ALL + + ( + col2 ) AS col1 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 25 ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6478
SELECT + col0 DIV + 7 + + 14 AS col1 FROM tab0 AS cor0
----
16
26
27

skipif mysql # not compatible
query I rowsort label-6478
SELECT + col0 / + 7 + + 14 AS col1 FROM tab0 AS cor0
----
16
26
27

query I rowsort
SELECT ( - 24 ) AS col1 FROM tab1 AS cor0
----
-24
-24
-24

query I rowsort
SELECT + col1 * - 58 / - 2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6481
SELECT - + 65 * + - COUNT( * ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-6481
SELECT - + 65 * + - COUNT ( * ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT 36 + COUNT( * ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT 36 + COUNT ( * ) FROM tab1
----
39

query I rowsort
SELECT ALL col0 + + 63 FROM tab1
----
114
148
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6484
SELECT DISTINCT CAST( NULL AS SIGNED ) + ( col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT CAST ( NULL AS INTEGER ) + ( col2 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 + 83 FROM tab0
----
104
164
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6486
SELECT DISTINCT - col1 * - 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-6486
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT + 58 * COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-6487
SELECT + 58 * COUNT ( * ) FROM tab0
----
174

query I rowsort
SELECT ALL 36 * - col2 AS col2 FROM tab2
----
-1440
-2088
-828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE - 17 / + + col0 * + - 94 < col0 + 54
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 23 col2 FROM tab2 AS cor0
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 59 * + 60 IS NOT NULL
----

query I rowsort
SELECT 67 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + col0 * - - ( col2 ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6494
SELECT DISTINCT + 60 + + COUNT( * ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-6494
SELECT DISTINCT + 60 + + COUNT ( * ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT + 68 * + 91 * + + 1 FROM tab0 cor0
----
6188
6188
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-6496
SELECT - + 96 - - + COUNT( * ) AS col0, + COUNT( * ) FROM tab2 cor0
----
-93
3

skipif mysql # not compatible
query II rowsort label-6496
SELECT - + 96 - - + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 cor0
----
-93
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6498
SELECT - COUNT( * ) - 85 AS col2 FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-6498
SELECT - COUNT ( * ) - 85 AS col2 FROM tab2 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 99 col0, + col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-99
1
-99
21
-99
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT + COUNT( * ) + - + 35 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-6500
SELECT + COUNT ( * ) + - + 35 FROM tab2
----
-32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6501
SELECT ALL CAST( NULL AS DECIMAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6501
SELECT ALL CAST ( NULL AS REAL ) * - col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6502
SELECT DISTINCT + MAX( ALL + - col1 ) DIV 2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT + MAX ( ALL + - col1 ) / 2 FROM tab1
----
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( col2 )
----

query I rowsort
SELECT col0 * + + col1 AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6505
SELECT + col2 DIV - col2 col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6505
SELECT + col2 / - col2 col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6506
SELECT MIN( - ( 13 ) ) FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-6506
SELECT MIN ( - ( 13 ) ) FROM tab2
----
-13

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

query II rowsort
SELECT col0 * + col0, col0 FROM tab1
----
2601
51
7225
85
8281
91

query II rowsort
SELECT + col2, 93 - + col2 FROM tab2
----
23
70
40
53
58
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 59 col2 FROM tab0 AS cor0
----
-59

query II rowsort
SELECT DISTINCT + col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT COUNT( * ) + - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + + 3 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6512
SELECT COUNT ( * ) + - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( + + 3 ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 col2 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT DISTINCT COUNT( * ) + + 37 FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT COUNT ( * ) + + 37 FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT ALL COUNT( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6515
SELECT ALL COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT - + ( + MIN( ALL 39 ) ) + ( 31 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6516
SELECT - + ( + MIN ( ALL 39 ) ) + ( 31 ) FROM tab2 AS cor0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 53 + - col0 FROM tab0
----
-34
-44
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 64 / - + 78 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT - 86 + - 41 + - col0 * - ( + - CAST( NULL AS SIGNED ) ) / + 38 / + - 73 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6520
SELECT - 86 + - 41 + - col0 * - ( + - CAST ( NULL AS INTEGER ) ) / + 38 / + - 73 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT + MAX( - 36 ) + 14 AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-6522
SELECT + MAX ( - 36 ) + 14 AS col1 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT COUNT( * ) + + 47 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-6523
SELECT COUNT ( * ) + + 47 FROM tab2
----
50

query I rowsort
SELECT col0 * - 82 AS col1 FROM tab2
----
-3772
-5248
-6150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 0 + + 47 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT ALL COUNT( ALL - 67 ) * - - 57 AS col2 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6527
SELECT ALL COUNT ( ALL - 67 ) * - - 57 AS col2 FROM tab2 AS cor0
----
171

query I rowsort
SELECT + 52 - + + 59 FROM tab2
----
-7
-7
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + col1 col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT - 32 + - 72 AS col2 FROM tab1
----
-104
-104
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT + ( + 4 ) + + + COUNT( * ) AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-6531
SELECT + ( + 4 ) + + + COUNT ( * ) AS col2 FROM tab0
----
7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = 43
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - - 49 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 * + - 33 + - - col0 + 81 col0 FROM tab2 AS cor0
----
1348
1366
1377

query I rowsort
SELECT - 42 * + col2 AS col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

query II rowsort
SELECT col2 AS col0, col1 * + 27 FROM tab2 AS cor0
----
23
1377
40
2079
58
1809

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT DISTINCT + - 5 * + ( - - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT + - 5 * + ( - - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT ALL - col2 * - 59 FROM tab1
----
3481
4012
5664

query I rowsort
SELECT col2 * + - 20 AS col2 FROM tab0
----
-1980
-200
-940

query II rowsort
SELECT DISTINCT 37 * + col1, col2 FROM tab2
----
1887
23
2479
58
2849
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6541
SELECT ALL + COUNT( * ) * MIN( - + 36 ) DIV - + COUNT( * ) + + MIN( + 60 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6541
SELECT ALL + COUNT ( * ) * MIN ( - + 36 ) / - + COUNT ( * ) + + MIN ( + 60 ) col0 FROM tab1
----
96

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= - 55
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6543
SELECT 16 DIV + - ( COUNT( + 1 ) ) col0 FROM tab0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6543
SELECT 16 / + - ( COUNT ( + 1 ) ) col0 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6544
SELECT ALL COUNT( * ) * - COUNT( - 95 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL COUNT ( * ) * - COUNT ( - 95 ) FROM tab1
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-6545
SELECT DISTINCT col1 DIV col0 AS col0, + 71 DIV col0 FROM tab0
----
0
0
5
4

skipif mysql # not compatible
query II rowsort label-6545
SELECT DISTINCT col1 / col0 AS col0, + 71 / col0 FROM tab0
----
0
0
5
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6546
SELECT DISTINCT - COUNT( * ) DIV ( - 83 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6546
SELECT DISTINCT - COUNT ( * ) / ( - 83 ) col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT 80 AS col2 FROM tab0 cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-6548
SELECT + + SUM( ALL - + 46 ) col0 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6548
SELECT + + SUM ( ALL - + 46 ) col0 FROM tab1 AS cor0
----
-138

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 BETWEEN - + col2 AND col0 + - 71
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( - col1, - 16 )
----

query II rowsort
SELECT DISTINCT 63, + col2 AS col2 FROM tab2
----
63
23
63
40
63
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - COUNT( - + col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6553
SELECT - COUNT ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT MIN( - - col1 ) * - COUNT( * ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6554
SELECT MIN ( - - col1 ) * - COUNT ( * ) FROM tab0 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col1 - + 68, + col0, - - col2 * + col2 )
----

query I rowsort
SELECT ALL ( + - col2 ) * + + 73 + col0 + - - col1 AS col2 FROM tab0
----
-3335
-622
-7129

query I rowsort
SELECT DISTINCT - col2 * col2 * - - col1 + col2 AS col2 FROM tab0
----
-178882
-2090
-9702

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col0 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN + 22 + - col1 AND + col1 + + ( + + 28 )
----
0

skipif mysql # not compatible
query I rowsort label-6560
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN + 22 + - col1 AND + col1 + + ( + + 28 )
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( - + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + ( + - COUNT( * ) ) FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6562
SELECT + ( + - COUNT ( * ) ) FROM tab1, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6563
SELECT DISTINCT 29 + + + COUNT( * ) AS col2 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-6563
SELECT DISTINCT 29 + + + COUNT ( * ) AS col2 FROM tab1
----
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6564
SELECT CAST( NULL AS DECIMAL ) + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6564
SELECT CAST ( NULL AS REAL ) + + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * - col0 + + + col0 AS col1 FROM tab1 AS cor0
----
-4845
-8075
-8645

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6566
SELECT ALL - + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL - + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL 62 + - COUNT( * ) col2 FROM tab0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6567
SELECT ALL 62 + - COUNT ( * ) col2 FROM tab0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT + MIN( - 48 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-48

skipif mysql # not compatible
query I rowsort label-6568
SELECT + MIN ( - 48 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-48

query I rowsort
SELECT + col1 * ( col2 ) - - col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT col0 - - - col1 + + col0 AS col0 FROM tab2
----
41
51
83

query I rowsort
SELECT ALL col0 + + + col0 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6572
SELECT ALL MIN( ALL - - col1 ) - + 41, + COUNT( DISTINCT + + 1 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-40
3

skipif mysql # not compatible
query II rowsort label-6572
SELECT ALL MIN ( ALL - - col1 ) - + 41, + COUNT ( DISTINCT + + 1 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-40
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN NULL AND - + col0 / + 76 + col1 * col0
----

query I rowsort
SELECT + col1 - + + col0 * - 39 * + + 10 FROM tab0 AS cor0
----
33951
37831
5931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + col0 ) col1, col2 FROM tab1 cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 77 + + col1 < NULL
----

query I rowsort
SELECT ALL - 33 * - - col0 FROM tab0
----
-2871
-3201
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - COUNT( * ) * + 44 * + COUNT( * ) col1 FROM tab0
----
-396

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6578
SELECT - COUNT ( * ) * + 44 * + COUNT ( * ) col1 FROM tab0
----
-396

onlyif mysql # aggregate syntax: 
query II rowsort label-6579
SELECT 47, + COUNT( * ) AS col0 FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-6579
SELECT 47, + COUNT ( * ) AS col0 FROM tab2
----
47
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT DISTINCT COUNT( + 91 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT COUNT ( + 91 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + 1 * 26 FROM tab1
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE NOT + 0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 36, 67 AS col0 FROM tab0
----
-36
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT MIN( + 92 ) col2 FROM tab0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6584
SELECT MIN ( + 92 ) col2 FROM tab0
----
92

query II rowsort
SELECT DISTINCT + col1 + - + col2 AS col2, - col1 + - col1 FROM tab0
----
-98
-2
11
-42
34
-162

query I rowsort
SELECT + col1 * - 17 * col0 AS col1 FROM tab0
----
-1649
-20655
-31059

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 75 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6589
SELECT DISTINCT + + col2 DIV + col2 col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6589
SELECT DISTINCT + + col2 / + col2 col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 91 * + - 38 AS col1 FROM tab1 AS cor0
----
-3458
-3458
-3458

query I rowsort
SELECT 11 + 17 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT DISTINCT - COUNT( * ) + + 2 + + + COUNT( ALL - + col0 ) * - COUNT( * ) AS col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-6592
SELECT DISTINCT - COUNT ( * ) + + 2 + + + COUNT ( ALL - + col0 ) * - COUNT ( * ) AS col1 FROM tab2
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6593
SELECT + 45 * + col1 + - - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
2244
2948
3388

skipif mysql # not compatible
query I rowsort label-6593
SELECT + 45 * + col1 + - - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
2244
2948
3388

query I rowsort
SELECT DISTINCT - col1 + - ( ( + 86 ) ) FROM tab1
----
-100
-133
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6595
SELECT ALL CAST( NULL AS SIGNED ) + 3 * + COUNT( * ) + - + COUNT( * ) + MIN( - col2 ) * - + 44 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL CAST ( NULL AS INTEGER ) + 3 * + COUNT ( * ) + - + COUNT ( * ) + MIN ( - col2 ) * - + 44 AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT ALL + COUNT( * ) * - MIN( ALL + - ( + col2 ) ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL + COUNT ( * ) * - MIN ( ALL + - ( + col2 ) ) FROM tab2
----
174

query II rowsort
SELECT DISTINCT col2 + 80 + ( + + ( - 13 ) ), 70 * 65 - col1 AS col1 FROM tab0
----
114
4469
166
4549
77
4529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6598
SELECT + SUM( DISTINCT + ( col0 ) ) AS col0, CAST( NULL AS SIGNED ) FROM tab2
----
185
NULL

skipif mysql # not compatible
query II rowsort label-6598
SELECT + SUM ( DISTINCT + ( col0 ) ) AS col0, CAST ( NULL AS INTEGER ) FROM tab2
----
185
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 78 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6600
SELECT - + ( + + col1 ) - + - col0 + - + ( col2 ) DIV ( - - col1 ) FROM tab0 AS cor0
----
-3
-66
66

skipif mysql # not compatible
query I rowsort label-6600
SELECT - + ( + + col1 ) - + - col0 + - + ( col2 ) / ( - - col1 ) FROM tab0 AS cor0
----
-3
-66
66

query I rowsort
SELECT + - col0 - + - 62 AS col1 FROM tab2 AS cor0
----
-13
-2
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6602
SELECT CAST( + col0 AS SIGNED ) + + - 14 FROM tab1
----
37
71
77

skipif mysql # not compatible
query I rowsort label-6602
SELECT CAST ( + col0 AS INTEGER ) + + - 14 FROM tab1
----
37
71
77

query I rowsort
SELECT ALL - col2 * + col2 AS col0 FROM tab1 AS cor0 WHERE 39 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT + COUNT( ALL col0 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + COUNT ( ALL col0 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT MAX( + 56 ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT MAX ( + 56 ) AS col2 FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT ALL + MIN( ALL - 95 ) FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL + MIN ( ALL - 95 ) FROM tab1 AS cor0
----
-95

query II rowsort
SELECT DISTINCT - + col1, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6608
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE col1 + col0 > - CAST( NULL AS SIGNED ) + + + 53 / + 28
----

skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL col2 AS col2 FROM tab0 cor0 WHERE col1 + col0 > - CAST ( NULL AS INTEGER ) + + + 53 / + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT ALL + ( + SUM( ALL - ( + 55 ) ) ) AS col0 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL + ( + SUM ( ALL - ( + 55 ) ) ) AS col0 FROM tab2 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL MIN( ALL 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL MIN ( ALL 70 ) FROM tab0 AS cor0
----
70

onlyif mysql # aggregate syntax: 
query II rowsort label-6611
SELECT COUNT( * ) AS col1, 41 AS col2 FROM tab1 AS cor0
----
3
41

skipif mysql # not compatible
query II rowsort label-6611
SELECT COUNT ( * ) AS col1, 41 AS col2 FROM tab1 AS cor0
----
3
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6612
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT ALL ( + COUNT( DISTINCT - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6613
SELECT ALL ( + COUNT ( DISTINCT - col2 ) ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 BETWEEN + 13 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6615
SELECT col1 + + CAST( - col0 AS SIGNED ) AS col1, col0 * col1 DIV col0 FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
-37
14
-44
47
-80
5

skipif mysql # not compatible
query II rowsort label-6615
SELECT col1 + + CAST ( - col0 AS INTEGER ) AS col1, col0 * col1 / col0 FROM tab1 WHERE NOT ( NOT col2 IS NOT NULL )
----
-37
14
-44
47
-80
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6616
SELECT - - COUNT( * ) DIV - SUM( ALL + - col0 ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT - - COUNT ( * ) / - SUM ( ALL + - col0 ) col0 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6617
SELECT DISTINCT - 66 DIV 58, ( + col0 ) FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

skipif mysql # not compatible
query II rowsort label-6617
SELECT DISTINCT - 66 / 58, ( + col0 ) FROM tab1 AS cor0
----
-1
51
-1
85
-1
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6618
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT ALL col2 * - 81 FROM tab0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT - 26 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - 2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT - 26 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - 2 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT - + 60 * + MIN( DISTINCT + 29 ) * + + 75 + COUNT( * ) AS col0 FROM tab0 cor0
----
-130497

skipif mysql # not compatible
query I rowsort label-6621
SELECT - + 60 * + MIN ( DISTINCT + 29 ) * + + 75 + COUNT ( * ) AS col0 FROM tab0 cor0
----
-130497

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6622
SELECT - COUNT( * ) DIV - - 25 + + MAX( ALL - col0 ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-15
3

skipif mysql # not compatible
query II rowsort label-6622
SELECT - COUNT ( * ) / - - 25 + + MAX ( ALL - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-15
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6623
SELECT + - ( - ( CAST( NULL AS SIGNED ) ) ) * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6623
SELECT + - ( - ( CAST ( NULL AS INTEGER ) ) ) * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6624
SELECT MIN( ALL - 21 ) DIV MAX( ALL - col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6624
SELECT MIN ( ALL - 21 ) / MAX ( ALL - col2 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6625
SELECT DISTINCT + col2 DIV 93 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + col2 / 93 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6626
SELECT DISTINCT - - col0 DIV - col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6626
SELECT DISTINCT - - col0 / - col1 FROM tab2 AS cor0
----
-1
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 <= - - col2 + - col0 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT ALL 51 + COUNT( * ) col0 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT ALL 51 + COUNT ( * ) col0 FROM tab0
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6629
SELECT ALL + + col1 DIV + col2 - - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6629
SELECT ALL + + col1 / + col2 - - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + - 78 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-78

onlyif mysql # DIV for integer division: 
query II rowsort label-6631
SELECT col1, + col1 DIV col0 * - ( + + col0 ) col2 FROM tab2
----
51
-46
67
0
77
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6631
SELECT col1, + col1 / col0 * - ( + + col0 ) col2 FROM tab2
----
51
-46
67
0
77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE 49 * col0 * - + CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6632
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE 49 * col0 * - + CAST ( NULL AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6633
SELECT 75 DIV col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-6633
SELECT 75 / col2 FROM tab2
----
1
1
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6634
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - 44 - + CAST( - - 39 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6634
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - 44 - + CAST ( - - 39 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6635
SELECT DISTINCT - ( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE ( NULL ) <> 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6637
SELECT MIN( DISTINCT - + 43 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-6637
SELECT MIN ( DISTINCT - + 43 ) FROM tab1
----
-43

query II rowsort
SELECT DISTINCT + col1 + - - col2 AS col1, 21 FROM tab0 WHERE NOT col2 + + col0 IS NULL
----
100
21
128
21
31
21

query III rowsort
SELECT * FROM tab1 WHERE NOT - 56 * col2 + ( - ( - col2 ) ) BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6640
SELECT - col0 * + CAST( NULL AS SIGNED ) * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT - col0 * + CAST ( NULL AS INTEGER ) * + + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 88 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-88
-88
-88

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * - col2 * + - col0 + + col1 + - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6643
SELECT DISTINCT - - CAST( - + col0 AS SIGNED ) AS col1, + col0 FROM tab0 AS cor0 WHERE NOT - ( - CAST( + 14 AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query II rowsort label-6643
SELECT DISTINCT - - CAST ( - + col0 AS INTEGER ) AS col1, + col0 FROM tab0 AS cor0 WHERE NOT - ( - CAST ( + 14 AS REAL ) ) > NULL
----

query I rowsort
SELECT + col2 * - + col2 * + + col0 AS col0 FROM tab2 AS cor0
----
-102400
-24334
-252300

query I rowsort
SELECT DISTINCT 15 + col1 FROM tab0 AS cor0
----
16
36
96

query I rowsort
SELECT DISTINCT - ( 29 ) AS col0 FROM tab0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ( + COUNT( * ) ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6647
SELECT ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab0
----
9

query II rowsort
SELECT DISTINCT ( + 52 ), 28 AS col1 FROM tab0
----
52
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT 61 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT 61 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + ( + 21 ) + + 19 + 48 col0 FROM tab0 AS cor0
----
760
760
760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6651
SELECT - 88 * + 58 * - COUNT( * ) + + 85 + + COUNT( * ) AS col1, MAX( ALL col1 ) + + - CAST( - + 14 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15400
95

skipif mysql # not compatible
query II rowsort label-6651
SELECT - 88 * + 58 * - COUNT ( * ) + + 85 + + COUNT ( * ) AS col1, MAX ( ALL col1 ) + + - CAST ( - + 14 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
15400
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6652
SELECT ALL + SUM( + 64 ) + + CAST( NULL AS SIGNED ) + COUNT( ALL + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL + SUM ( + 64 ) + + CAST ( NULL AS INTEGER ) + COUNT ( ALL + col0 ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 * + 83 FROM tab2
----
4233
5561
6391

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 88 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6655
SELECT ALL - 13 * + - ( + col2 ) * + CAST( NULL AS SIGNED ) + ( + 30 ) * + - col2 * - 84 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6655
SELECT ALL - 13 * + - ( + col2 ) * + CAST ( NULL AS INTEGER ) + ( + 30 ) * + - col2 * - 84 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6656
SELECT DISTINCT - col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT - col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT DISTINCT COUNT( * ) - + 87 AS col1 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-6657
SELECT DISTINCT COUNT ( * ) - + 87 AS col1 FROM tab2
----
-84

query II rowsort
SELECT col1 AS col2, - 54 FROM tab2
----
51
-54
67
-54
77
-54

query I rowsort
SELECT ALL - col1 - - col0 AS col0 FROM tab1
----
37
44
80

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab1 AS cor0 WHERE NOT col1 + + + 79 IS NULL
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 77 col1 FROM tab1 AS cor0 WHERE NOT - 11 / + col2 / - col0 <= NULL
----

query I rowsort
SELECT + 80 * - col1 + + col0 * - 41 FROM tab0
----
-4057
-5247
-7095

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT COUNT( * ) * + MAX( 78 ) AS col2 FROM tab1 WHERE NOT + 51 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT COUNT ( * ) * + MAX ( 78 ) AS col2 FROM tab1 WHERE NOT + 51 IS NOT NULL
----
NULL

query I rowsort
SELECT - 54 + + col2 FROM tab0
----
-44
-7
45

query I rowsort
SELECT - col2 + + 96 AS col0 FROM tab1
----
0
28
37

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT ALL + COUNT( 89 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + COUNT ( 89 ) FROM tab0
----
3

query I rowsort
SELECT + col0 * + col0 + - col2 AS col1 FROM tab1
----
2505
7166
8213

query I rowsort
SELECT DISTINCT ( - 34 ) FROM tab1
----
-34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( - col2 * + col1 )
----

query I rowsort
SELECT DISTINCT 57 + - 38 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT 71 * ( 5 ) - COUNT( * ) FROM tab2 WHERE 81 * col0 IS NULL
----
355

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT 71 * ( 5 ) - COUNT ( * ) FROM tab2 WHERE 81 * col0 IS NULL
----
355

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - col1 * - col1
----

query I rowsort
SELECT + 47 + + ( col0 ) FROM tab0
----
134
144
62

query I rowsort
SELECT col2 + + ( - col0 + + 39 ) AS col1 FROM tab0
----
-38
41
71

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( - col2 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6678
SELECT ALL 65 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6678
SELECT ALL 65 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT COUNT( * ) + + 77 AS col2 FROM tab1 WHERE ( col0 + col1 ) BETWEEN NULL AND NULL
----
77

skipif mysql # not compatible
query I rowsort label-6679
SELECT COUNT ( * ) + + 77 AS col2 FROM tab1 WHERE ( col0 + col1 ) BETWEEN NULL AND NULL
----
77

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - 43 - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 95 * - col1 AND + col2 - + col2
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE NOT ( col1 / col2 ) NOT BETWEEN ( col2 ) AND col0 * 9
----

query I rowsort
SELECT 46 * col0 + - col0 FROM tab1
----
2295
3825
4095

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( 68 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6685
SELECT + 85 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT + 85 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6686
SELECT - col1 + col2 DIV + 11 FROM tab2 AS cor0
----
-49
-62
-74

skipif mysql # not compatible
query I rowsort label-6686
SELECT - col1 + col2 / + 11 FROM tab2 AS cor0
----
-49
-62
-74

query I rowsort
SELECT - 8 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL 44 + col2 FROM tab0 WHERE - col0 IS NOT NULL
----
143
54
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6689
SELECT * FROM tab2 WHERE col1 + - col0 NOT BETWEEN NULL AND ( + CAST( - 72 AS SIGNED ) * - ( 55 ) )
----

skipif mysql # not compatible
query III rowsort label-6689
SELECT * FROM tab2 WHERE col1 + - col0 NOT BETWEEN NULL AND ( + CAST ( - 72 AS INTEGER ) * - ( 55 ) )
----

query I rowsort
SELECT DISTINCT col1 * + 23 + 20 AS col1 FROM tab0
----
1883
43
503

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6691
SELECT - CAST( CAST( ( col0 ) AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1 WHERE ( col2 ) BETWEEN ( + ( 61 ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6691
SELECT - CAST ( CAST ( ( col0 ) AS REAL ) AS INTEGER ) AS col2 FROM tab1 WHERE ( col2 ) BETWEEN ( + ( 61 ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6692
SELECT MIN( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6692
SELECT MIN ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6693
SELECT ( - MIN( DISTINCT ( 5 ) ) ) FROM tab2 WHERE - col2 - - col2 * - col2 IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-6693
SELECT ( - MIN ( DISTINCT ( 5 ) ) ) FROM tab2 WHERE - col2 - - col2 * - col2 IS NOT NULL
----
-5

query I rowsort
SELECT ALL col1 + + 38 AS col2 FROM tab1
----
43
52
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 + col2 ) IN ( 55 / 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 - - ( 26 ) FROM tab1 AS cor0
----
32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT - 43 * COUNT( * ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-6698
SELECT - 43 * COUNT ( * ) FROM tab2 AS cor0
----
-129

query I rowsort
SELECT - col2 - + 75 FROM tab0 AS cor0
----
-122
-174
-85

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE + 39 < ( + 42 * - 45 - - col2 / + 9 )
----

query I rowsort
SELECT - 63 * 94 - - ( 58 ) AS col2 FROM tab0 AS cor0
----
-5864
-5864
-5864

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6703
SELECT + 31 + - COUNT( + col1 ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-6703
SELECT + 31 + - COUNT ( + col1 ) FROM tab0
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6704
SELECT * FROM tab1 WHERE col2 * col1 BETWEEN - ( - col1 ) + + ( CAST( NULL AS DECIMAL ) + col1 * + 35 ) AND 38 + 74
----

skipif mysql # not compatible
query III rowsort label-6704
SELECT * FROM tab1 WHERE col2 * col1 BETWEEN - ( - col1 ) + + ( CAST ( NULL AS REAL ) + col1 * + 35 ) AND 38 + 74
----

query I rowsort
SELECT ALL - 28 + col0 AS col1 FROM tab1
----
23
57
63

query I rowsort
SELECT - col1 * + 54 + - 33 FROM tab2
----
-2787
-3651
-4191

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col2 / 61 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6708
SELECT DISTINCT - col2 DIV CAST( + col1 AS SIGNED ) + + col0 FROM tab0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT - col2 / CAST ( + col1 AS INTEGER ) + + col0 FROM tab0
----
-2
15
87

query I rowsort
SELECT DISTINCT col1 / + col2 FROM tab2 WHERE 24 > col1
----

query I rowsort
SELECT ALL 49 FROM tab0 WHERE NOT ( - 3 ) < + ( col2 )
----

query I rowsort
SELECT DISTINCT 43 * - - ( col0 ) AS col2 FROM tab0
----
3741
4171
645

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( + col0 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - SUM( - - 16 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6713
SELECT - SUM ( - - 16 ) FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - MIN( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6714
SELECT - MIN ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 / 50 >= - col1 * 75 + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT + MIN( DISTINCT col1 ) * + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= + 84
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT + MIN ( DISTINCT col1 ) * + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL >= + 84
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 39 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT DISTINCT COUNT( * ) * + 25 - 24 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
201

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT COUNT ( * ) * + 25 - 24 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
201

query III rowsort
SELECT * FROM tab0 WHERE NOT 69 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT + + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6721
SELECT + + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col1 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 50 / + col1 + col2 ) > - col1 * col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL COUNT( ALL 65 ) * + + 82 AS col0 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL COUNT ( ALL 65 ) * + + 82 AS col0 FROM tab0 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6725
SELECT + 63 / 93 FROM tab2 AS cor0 WHERE NOT col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6725
SELECT + 63 / 93 FROM tab2 AS cor0 WHERE NOT col0 < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - 99 * - + col0 FROM tab2 AS cor0
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT SUM( - - col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6727
SELECT SUM ( - - col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6728
SELECT ALL + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( + col2 )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( + col1 ) NOT IN ( + col2 )
----
23
40
58

query I rowsort
SELECT 29 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6730
SELECT ALL CAST( NULL AS DECIMAL ) + + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL CAST ( NULL AS REAL ) + + 86 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 40 FROM tab1 AS cor0 WHERE ( NULL ) < ( + col2 / col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6732
SELECT ALL col0 FROM tab2 AS cor0 WHERE col0 + + - ( - ( col0 ) ) NOT BETWEEN 61 AND ( CAST( 33 AS DECIMAL ) ) * + col2 - + col2
----

skipif mysql # not compatible
query I rowsort label-6732
SELECT ALL col0 FROM tab2 AS cor0 WHERE col0 + + - ( - ( col0 ) ) NOT BETWEEN 61 AND ( CAST ( 33 AS REAL ) ) * + col2 - + col2
----

query I rowsort
SELECT DISTINCT - ( 59 ) * + col0 FROM tab2
----
-2714
-3776
-4425

query II rowsort
SELECT + col2 + + + 16, col0 AS col0 FROM tab0
----
115
97
26
87
63
15

query I rowsort
SELECT DISTINCT + col0 * + col0 FROM tab1 WHERE + 18 * + col2 * - 30 IN ( col2 * - col0 + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 91
----

query I rowsort
SELECT col2 * + col0 + - col2 FROM tab1 WHERE NOT col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - - 92 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6739
SELECT COUNT( * ) + - MAX( + 50 ) + + - ( - COUNT( * ) ) FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-6739
SELECT COUNT ( * ) + - MAX ( + 50 ) + + - ( - COUNT ( * ) ) FROM tab0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6740
SELECT DISTINCT - SUM( DISTINCT col0 ) FROM tab1 WHERE NOT ( - + col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - SUM ( DISTINCT col0 ) FROM tab1 WHERE NOT ( - + col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + + 5
----
0

skipif mysql # not compatible
query I rowsort label-6741
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + + 5
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + col0 + 4 * + 59 * - 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col1 * - + col1 ) AND + col2
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col0 < - - 5 * 17
----
59
68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 80
----

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE NOT - col1 * - 51 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 / 84 + - - 29 IN ( - col1 + col0 )
----

query I rowsort
SELECT - col2 * + col0 + - + 39 * + + col1 - col1 + + col0 FROM tab1
----
-5130
-5405
-7977

onlyif mysql # aggregate syntax: 
query II rowsort label-6749
SELECT ALL + 89 - - 43 * COUNT( * ), + COUNT( * ) AS col0 FROM tab2
----
218
3

skipif mysql # not compatible
query II rowsort label-6749
SELECT ALL + 89 - - 43 * COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2
----
218
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6750
SELECT ALL - COUNT( * ), - COUNT( * ) col2 FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6750
SELECT ALL - COUNT ( * ), - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 77 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 47 + - 89 AS col0 FROM tab1 AS cor0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) IN ( + col1 * - col0 / - ( col1 ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6755
SELECT DISTINCT - + SUM( + + col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6755
SELECT DISTINCT - + SUM ( + + col1 ) col1 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT ALL CAST( NULL AS SIGNED ) - + - col2 * 88 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL CAST ( NULL AS INTEGER ) - + - col2 * 88 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6757
SELECT - MIN( - col2 ) * + - 44 AS col0 FROM tab2 cor0
----
-2552

skipif mysql # not compatible
query I rowsort label-6757
SELECT - MIN ( - col2 ) * + - 44 AS col0 FROM tab2 cor0
----
-2552

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6758
SELECT - - ( + col0 ) DIV CAST( col1 AS SIGNED ) * - + 63 AS col0 FROM tab0 AS cor0
----
-252
-6111
0

skipif mysql # not compatible
query I rowsort label-6758
SELECT - - ( + col0 ) / CAST ( col1 AS INTEGER ) * - + 63 AS col0 FROM tab0 AS cor0
----
-252
-6111
0

query I rowsort
SELECT 1 * - col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT - col1 AS col0, - col1 FROM tab1
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT DISTINCT 87 * + col2 + col2 FROM tab2
----
2024
3520
5104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 67 * - + 63 * + col1 col2 FROM tab0
----
341901
4221
88641

query I rowsort
SELECT + col1 * 41 AS col0 FROM tab2 AS cor0
----
2091
2747
3157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 98 col0 FROM tab0 AS cor0
----
10
98
47
98
99
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6766
SELECT 88 * - + SUM( + - col1 ) * + COUNT( * ) AS col1 FROM tab2
----
51480

skipif mysql # not compatible
query I rowsort label-6766
SELECT 88 * - + SUM ( + - col1 ) * + COUNT ( * ) AS col1 FROM tab2
----
51480

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT - ( + COUNT( * ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT DISTINCT - ( + COUNT ( * ) ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT DISTINCT - + 90 * COUNT( * ) FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-6768
SELECT DISTINCT - + 90 * COUNT ( * ) FROM tab1 AS cor0
----
-270

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN ( NULL ) AND + - 43
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6770
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - col1 * - col0 + 0 - - + col0 * CAST( NULL AS SIGNED ) / + 50 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6770
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - col1 * - col0 + 0 - - + col0 * CAST ( NULL AS INTEGER ) / + 50 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6771
SELECT ALL COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col1 + - col0 - + col1 * + col0 FROM tab2
----
-2341
-4915
-5033

query I rowsort
SELECT DISTINCT - 34 + - + col1 * + + col1 AS col1 FROM tab2
----
-2635
-4523
-5963

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 3 * + 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6775
SELECT + + 50 * - 29 FROM tab0 WHERE - CAST( - + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6775
SELECT + + 50 * - 29 FROM tab0 WHERE - CAST ( - + col1 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT ALL + col1 + + + 20 * + - CAST( + - col2 AS SIGNED ) AS col0 FROM tab1
----
1185
1407
1934

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL + col1 + + + 20 * + - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab1
----
1185
1407
1934

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + - ( + col2 ) AS col2 FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + - ( + col2 ) AS col2 FROM tab2
----
17
23
24

query I rowsort
SELECT + col1 + - 46 AS col0 FROM tab0
----
-25
-45
35

query I rowsort
SELECT col2 + + 88 FROM tab1
----
147
156
184

query I rowsort
SELECT ALL + + col2 * 83 FROM tab2 AS cor0
----
1909
3320
4814

query I rowsort
SELECT + - 26 + col2 FROM tab2 cor0
----
-3
14
32

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND col0 AND - col2 + - - ( 62 ) - - 76 IN ( 58 - col2 / ( - col2 * + col0 ) )
----

query I rowsort
SELECT ALL ( 34 ) FROM tab0 AS cor0
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6784
SELECT ALL 98 + + 99 - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6784
SELECT ALL 98 + + 99 - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT DISTINCT COUNT( * ) * + COUNT( * ) + + 7 AS col2 FROM tab1, tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) + + 7 AS col2 FROM tab1, tab1 AS cor0
----
88

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6787
SELECT - ( - + MIN( DISTINCT + col2 ) ) - - + 5 AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6787
SELECT - ( - + MIN ( DISTINCT + col2 ) ) - - + 5 AS col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-6788
SELECT DISTINCT + - COUNT( * ) + - SUM( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-202

skipif mysql # not compatible
query I rowsort label-6788
SELECT DISTINCT + - COUNT ( * ) + - SUM ( DISTINCT - - col0 ) FROM tab0 AS cor0
----
-202

query I rowsort
SELECT 87 - ( + col1 ) FROM tab2 AS cor0
----
10
20
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6790
SELECT DISTINCT + COUNT( DISTINCT - - 14 ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT + COUNT ( DISTINCT - - 14 ) AS col1 FROM tab1 cor0
----
1

query I rowsort
SELECT 3 * - 22 FROM tab0 AS cor0
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL COUNT( ALL 84 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT ALL COUNT ( ALL 84 ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT + - COUNT( ALL + - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6794
SELECT + - COUNT ( ALL + - col0 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT ( - col1 ) * - ( 2 ) AS col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query II rowsort label-6796
SELECT + 2 AS col0, - COUNT( * ) FROM tab1
----
2
-3

skipif mysql # not compatible
query II rowsort label-6796
SELECT + 2 AS col0, - COUNT ( * ) FROM tab1
----
2
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT 67 / col1 + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6798
SELECT MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6798
SELECT MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + 95 * col0 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + + col0 ) col0 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - ( - 92 ) * - col0 * 59 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col0, col1 col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col1 + - col0 col0 FROM tab1 cor0
----
-60
145
2118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query I rowsort
SELECT - 32 + + 27 AS col1 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-6807
SELECT - 22 DIV - - col0 * - - 95 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6807
SELECT - 22 / - - col0 * - - 95 + + col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6808
SELECT ALL ( 2 ) + + + col1 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL ( 2 ) + + + col1 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6809
SELECT DISTINCT COUNT( + col2 ) * + - 99 + CAST( AVG ( CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT COUNT ( + col2 ) * + - 99 + CAST ( AVG ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 * - 30 AS col1 FROM tab1
----
1530
2550
2730

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col1 FROM tab0 AS cor0 WHERE - col0 <= + 1 * 44 + + - col0
----
10
47
99

query I rowsort
SELECT ALL + col0 + col1 FROM tab1 WHERE - 9 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + col0 < + 36 * + col0 - + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6814
SELECT ALL 54 AS col0 FROM tab1 cor0 WHERE 24 * + - col2 + + CAST( - 51 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6814
SELECT ALL 54 AS col0 FROM tab1 cor0 WHERE 24 * + - col2 + + CAST ( - 51 AS INTEGER ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6815
SELECT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6815
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 42 * - col1 NOT IN ( + col2 * - col1, - 94 * col2 + + - col1, - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL ( col1 ) AS col0, - col1 + + col0 + col2 FROM tab2 AS cor0
----
51
18
67
66
77
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6818
SELECT DISTINCT - - COUNT( - CAST( NULL AS SIGNED ) ) col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6818
SELECT DISTINCT - - COUNT ( - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT DISTINCT + COUNT( * ) * - AVG ( + col0 ) + + + 77 FROM tab0 AS cor0 WHERE NULL > - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6819
SELECT DISTINCT + COUNT ( * ) * - AVG ( + col0 ) + + + 77 FROM tab0 AS cor0 WHERE NULL > - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT DISTINCT COUNT( * ) col2 FROM tab2 AS cor0 WHERE 1 + + - 10 NOT IN ( + col0 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6820
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 AS cor0 WHERE 1 + + - 10 NOT IN ( + col0 )
----
3

query I rowsort
SELECT + col0 * col0 * 85 * + 86 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15467960
29941760
41118750

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6823
SELECT ( + MAX( + + col2 ) ), + COUNT( * ) col1 FROM tab0
----
99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6823
SELECT ( + MAX ( + + col2 ) ), + COUNT ( * ) col1 FROM tab0
----
99
3

query I rowsort
SELECT col1 * + 81 AS col0 FROM tab0 AS cor0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT + + 86 - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 + + col1 + + col1 * + col1 IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-6825
SELECT + + 86 - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col0 + + col1 + + col1 * + col1 IS NULL
----
86

query I rowsort
SELECT col0 * + 79 AS col1 FROM tab1 AS cor0
----
4029
6715
7189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab1 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT DISTINCT - - SUM( - col0 ) FROM tab2 WHERE - 75 <= col2
----
-185

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT - - SUM ( - col0 ) FROM tab2 WHERE - 75 <= col2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT DISTINCT col0 + + CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT col0 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
174
194
30

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN NULL AND - + 86
----

query I rowsort
SELECT ALL - col2 * - 76 + 4 - - col0 + + col2 FROM tab2
----
1821
3148
4545

onlyif mysql # aggregate syntax: 
query I rowsort label-6832
SELECT ALL + 63 + - COUNT( * ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6832
SELECT ALL + 63 + - COUNT ( * ) AS col2 FROM tab2
----
60

query I rowsort
SELECT ALL - ( + col2 ) + + 65 + + ( - 68 ) AS col0 FROM tab2
----
-26
-43
-61

query I rowsort
SELECT ALL + 57 AS col0 FROM tab2 cor0
----
57
57
57

query I rowsort
SELECT 19 + + col2 AS col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
42
59
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6836
SELECT - COUNT( * ) * - 20 AS col2, - COUNT( ALL + col2 ) DIV - 9 AS col2 FROM tab0 AS cor0
----
60
0

skipif mysql # not compatible
query II rowsort label-6836
SELECT - COUNT ( * ) * - 20 AS col2, - COUNT ( ALL + col2 ) / - 9 AS col2 FROM tab0 AS cor0
----
60
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT DISTINCT SUM( - + 86 ) AS col2 FROM tab1 cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6837
SELECT DISTINCT SUM ( - + 86 ) AS col2 FROM tab1 cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT DISTINCT col1 / col2 / + col0 * - 29 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( - col0, col1, + + ( - 76 ), + CAST( col2 AS SIGNED ) + + - col0 )
----

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT col1 / col2 / + col0 * - 29 AS col2 FROM tab2 cor0 WHERE NULL NOT IN ( - col0, col1, + + ( - 76 ), + CAST ( col2 AS INTEGER ) + + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT MIN( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6839
SELECT MIN ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT - MAX( + + 9 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6840
SELECT - MAX ( + + 9 ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 / col2 * - col2 <= + ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, 88 * 93 * - 99 AS col2 FROM tab1
----
14
-810216
47
-810216
5
-810216

query II rowsort
SELECT col2 AS col2, + col0 * - + col1 + - 27 FROM tab2
----
23
-2373
40
-4955
58
-5052

query II rowsort
SELECT DISTINCT + col2, + col2 - 7 AS col0 FROM tab2
----
23
16
40
33
58
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 / + col2 NOT BETWEEN + col1 AND - col0 * + col0 * 30
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 5 + + - 72 NOT IN ( - + col0, + 30 * + - col1 + - 86 + 72 - + col0, + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6847
SELECT - COUNT( * ), COUNT( * ) + - + 84 + + - SUM( ALL - col2 ) * + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3
282

skipif mysql # not compatible
query II rowsort label-6847
SELECT - COUNT ( * ), COUNT ( * ) + - + 84 + + - SUM ( ALL - col2 ) * + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-3
282

query II rowsort
SELECT DISTINCT - col1, 12 * col2 AS col0 FROM tab1 AS cor0
----
-14
1152
-47
816
-5
708

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 67, col0 col2 FROM tab1 AS cor0
----
67
51
67
85
67
91

query I rowsort
SELECT - 38 + + col2 * col0 - - col0 FROM tab1 AS cor0 WHERE NOT NULL < - 83 * - col1 * + 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL + 27 + - COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + 27 + - COUNT ( * ) FROM tab1
----
24

query I rowsort
SELECT DISTINCT + 33 + + + col2 FROM tab0
----
132
43
80

query I rowsort
SELECT - 50 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6854
SELECT DISTINCT - 22 * - CAST( NULL AS DECIMAL ) + + + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT DISTINCT - 22 * - CAST ( NULL AS REAL ) + + + col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + - 55 + 87 - - - col0 AS col1 FROM tab1 AS cor0
----
-19
-53
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6856
SELECT ( + col2 ) + + + 88 + + 23 + 87 DIV + - col2 FROM tab1 AS cor0
----
169
178
207

skipif mysql # not compatible
query I rowsort label-6856
SELECT ( + col2 ) + + + 88 + + 23 + 87 / + - col2 FROM tab1 AS cor0
----
169
178
207

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT - 27 + + 23 - - COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6857
SELECT - 27 + + 23 - - COUNT ( * ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab0 AS cor0 WHERE ( NOT 81 * + col2 + + col1 - + 65 - col2 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6859
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-6859
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab2
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT MIN( DISTINCT col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-6861
SELECT MIN ( DISTINCT col0 ) AS col2 FROM tab2
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-6862
SELECT col0 AS col0, - col1 DIV + col2 col2 FROM tab2
----
46
-2
64
-1
75
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6862
SELECT col0 AS col0, - col1 / + col2 col2 FROM tab2
----
46
-2
64
-1
75
-1

query I rowsort
SELECT DISTINCT 17 + + + 11 AS col0 FROM tab2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-6864
SELECT ALL + ( - - 34 ) - + col0 DIV col0 + + col0 FROM tab2
----
108
79
97

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + ( - - 34 ) - + col0 / col0 + + col0 FROM tab2
----
108
79
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT + AVG ( + col2 ) FROM tab2 WHERE + CAST( 2 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT + AVG ( + col2 ) FROM tab2 WHERE + CAST ( 2 AS INTEGER ) IS NULL
----
NULL

query II rowsort
SELECT ALL - col2 AS col0, + col2 * - - 50 * - 64 FROM tab1 cor0
----
-59
-188800
-68
-217600
-96
-307200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL - + col0 - CAST( col2 AS SIGNED ) - + 69 + - col1 FROM tab2 AS cor0
----
-189
-250
-269

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - + col0 - CAST ( col2 AS INTEGER ) - + 69 + - col1 FROM tab2 AS cor0
----
-189
-250
-269

query I rowsort
SELECT - 58 - - col0 AS col1 FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT - col2 - ( + - 34 ) * 28 FROM tab2 cor0
----
894
912
929

query I rowsort
SELECT ALL + - ( + col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6871
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, + 80 FROM tab2
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
query II rowsort label-6871
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, + 80 FROM tab2
----
NULL
80
NULL
80
NULL
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT - col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 * 10 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT - col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 * 10 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col0, ( col1 ) - + col2 AS col1 FROM tab1 AS cor0
----
51
-82
85
-54
91
-21

query II rowsort
SELECT - - ( + + col1 ), + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 92 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6876
SELECT ALL + 42 * 72 * + 55 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE + 74 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + 42 * 72 * + 55 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE + 74 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT DISTINCT - + MIN( ALL + + col0 ) * + 89 AS col0 FROM tab1 AS cor0
----
-4539

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT - + MIN ( ALL + + col0 ) * + 89 AS col0 FROM tab1 AS cor0
----
-4539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6878
SELECT DISTINCT + col2 * - CAST( col1 AS SIGNED ) + 10 FROM tab0 AS cor0
----
-200
-3797
-89

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + col2 * - CAST ( col1 AS INTEGER ) + 10 FROM tab0 AS cor0
----
-200
-3797
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT - 97 * + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6879
SELECT - 97 * + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= ( + col1 * + col1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 <> NULL
----

query I rowsort
SELECT + 54 * + ( col1 ) AS col2 FROM tab0
----
1134
4374
54

onlyif mysql # DIV for integer division: 
query I rowsort label-6883
SELECT ALL col0 DIV col0 * + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6883
SELECT ALL col0 / col0 * + col0 FROM tab2
----
46
64
75

query II rowsort
SELECT DISTINCT + 96 * + 49, col1 FROM tab2
----
4704
51
4704
67
4704
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6886
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + MIN( 19 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6886
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + MIN ( 19 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6887
SELECT ALL SUM( + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL SUM ( + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
10
47
99

query I rowsort
SELECT - 63 + - - col2 FROM tab0 AS cor0
----
-16
-53
36

query I rowsort
SELECT + - 3 + col0 FROM tab1 AS cor0
----
48
82
88

query II rowsort
SELECT ALL 7, - 16 AS col1 FROM tab2
----
7
-16
7
-16
7
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 * col2 col0 FROM tab2 AS cor0
----
-1771
-3080
-4466

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT 44 DIV + 40 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6893
SELECT 44 / + 40 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT + 27 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT + 27 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT ALL - + col0 * + + 83 FROM tab1 AS cor0
----
-4233
-7055
-7553

query II rowsort
SELECT ALL 35, col2 + + col1 + + + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT - 88 - - - COUNT( + + col2 ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-6897
SELECT - 88 - - - COUNT ( + + col2 ) FROM tab2 AS cor0
----
-91

query I rowsort
SELECT ALL col0 + + - 76 * - col0 AS col1 FROM tab1 AS cor0
----
3927
6545
7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT ( - 26 ) - + CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6899
SELECT ( - 26 ) - + CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + - 18 AS col2 FROM tab2
----
28
46
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - + ( col2 ) col1 FROM tab0
----
-104
-141
-193

query I rowsort
SELECT DISTINCT - 89 - + col1 AS col0 FROM tab2
----
-140
-156
-166

query I rowsort
SELECT ALL + 21 * - 64 - ( - col0 ) + - 13 AS col0 FROM tab1
----
-1266
-1272
-1306

query I rowsort
SELECT + ( + - col2 ) - + - col0 AS col0 FROM tab1 WHERE ( col0 IS NOT NULL )
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6905
SELECT ALL - COUNT( * ) FROM tab1 WHERE col1 - col0 BETWEEN col2 AND - - col2
----
0

skipif mysql # not compatible
query I rowsort label-6905
SELECT ALL - COUNT ( * ) FROM tab1 WHERE col1 - col0 BETWEEN col2 AND - - col2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 20 ) * + - col0 + col0 col2 FROM tab1
----
-1615
-1729
-969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + col2 + 9 + - ( - + CAST( NULL AS SIGNED ) ) * + + 2 * - col2 + - 79 FROM tab0 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6907
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + col2 + 9 + - ( - + CAST ( NULL AS INTEGER ) ) * + + 2 * - col2 + - 79 FROM tab0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT + - 91 * + - col2 + + col1 FROM tab0 AS cor0 WHERE NOT 91 / + 29 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6909
SELECT + 34 * - COUNT( * ) * 4 * + 25 AS col2, 98 AS col0 FROM tab2 AS cor0
----
-10200
98

skipif mysql # not compatible
query II rowsort label-6909
SELECT + 34 * - COUNT ( * ) * 4 * + 25 AS col2, 98 AS col0 FROM tab2 AS cor0
----
-10200
98

query I rowsort
SELECT + ( - - 7 ) FROM tab2
----
7
7
7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= 95 + col1
----

query I rowsort
SELECT DISTINCT 18 * + ( col2 ) AS col1 FROM tab2
----
1044
414
720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 70 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + 40 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 76 * + - col1 FROM tab0 cor0
----
-1596
-6156
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6916
SELECT ALL - CAST( + + 16 AS SIGNED ) * - 56 FROM tab2 AS cor0
----
896
896
896

skipif mysql # not compatible
query I rowsort label-6916
SELECT ALL - CAST ( + + 16 AS INTEGER ) * - 56 FROM tab2 AS cor0
----
896
896
896

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT DISTINCT 16 * col2 DIV + + 31 AS col0 FROM tab0
----
24
5
51

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT 16 * col2 / + + 31 AS col0 FROM tab0
----
24
5
51

query II rowsort
SELECT DISTINCT col0 AS col0, 29 + - 71 FROM tab2
----
46
-42
64
-42
75
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6919
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + + col1 <= NULL
----

skipif mysql # not compatible
query III rowsort label-6919
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + + col1 <= NULL
----

query I rowsort
SELECT - col2 * 41 * + col1 * - - ( col0 ) + - - 17 + col1 FROM tab1
----
-1028053
-11924212
-2810273

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT ALL COUNT( * ) * + 71 * + 44 FROM tab0
----
9372

skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL COUNT ( * ) * + 71 * + 44 FROM tab0
----
9372

query I rowsort
SELECT DISTINCT - 61 + + - col2 + 12 AS col0 FROM tab2
----
-107
-72
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT ALL + ( - MIN( DISTINCT + col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6923
SELECT ALL + ( - MIN ( DISTINCT + col2 ) ) FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col0 col1 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT + - 80, col1 AS col1 FROM tab2 AS cor0
----
-80
51
-80
67
-80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT 87 + - COUNT( * ) AS col0 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-6926
SELECT 87 + - COUNT ( * ) AS col0 FROM tab1
----
84

query I rowsort
SELECT 63 * - ( 68 ) + col2 AS col2 FROM tab2
----
-4226
-4244
-4261

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab2 cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT + ( - 82 ) - - 4 AS col2 FROM tab0 cor0
----
-78

query III rowsort
SELECT * FROM tab1 cor0 WHERE 11 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - - MAX( DISTINCT - 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-6931
SELECT - - MAX ( DISTINCT - 50 ) FROM tab1 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-6932
SELECT ALL - col0 + - col1 DIV 69, col1 AS col0 FROM tab2
----
-46
51
-65
77
-75
67

skipif mysql # not compatible
query II rowsort label-6932
SELECT ALL - col0 + - col1 / 69, col1 AS col0 FROM tab2
----
-46
51
-65
77
-75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT 92 DIV - col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-6933
SELECT 92 / - col0 FROM tab0
----
-1
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6934
SELECT DISTINCT * FROM tab1 WHERE - CAST( + - col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6934
SELECT DISTINCT * FROM tab1 WHERE - CAST ( + - col0 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6935
SELECT ALL + col2, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6935
SELECT ALL + col2, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 44 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 - - col0 FROM tab2
----
10
28
39

query I rowsort
SELECT 23 - + col2 AS col1 FROM tab1
----
-36
-45
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6939
SELECT + MAX( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6939
SELECT + MAX ( ALL - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-6940
SELECT DISTINCT 37 col0, - 42 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
37
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6940
SELECT DISTINCT 37 col0, - 42 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
37
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6941
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 68 BETWEEN - + CAST( + + 87 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query III rowsort label-6941
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 68 BETWEEN - + CAST ( + + 87 AS INTEGER ) AND + col1
----

query I rowsort
SELECT DISTINCT - 64 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT DISTINCT SUM( - 18 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT SUM ( - 18 ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT DISTINCT - - 21 * - col1, - col2 AS col0 FROM tab1 AS cor0
----
-105
-59
-294
-96
-987
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT + COUNT( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6945
SELECT + COUNT ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6947
SELECT - ( + 40 ), 34 * ( - - COUNT( * ) ) + + + MIN( DISTINCT - 15 ) AS col2 FROM tab2 AS cor0
----
-40
87

skipif mysql # not compatible
query II rowsort label-6947
SELECT - ( + 40 ), 34 * ( - - COUNT ( * ) ) + + + MIN ( DISTINCT - 15 ) AS col2 FROM tab2 AS cor0
----
-40
87

query I rowsort
SELECT ALL col2 * - 38 AS col2 FROM tab0 AS cor0
----
-1786
-3762
-380

query I rowsort
SELECT DISTINCT col1 + + 99 AS col1 FROM tab2 AS cor0
----
150
166
176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 68 - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6951
SELECT DISTINCT + + MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6951
SELECT DISTINCT + + MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT DISTINCT - COUNT( * ) col1 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6952
SELECT DISTINCT - COUNT ( * ) col1 FROM tab0, tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab0 WHERE - 37 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + 61 + col2 + + + col0 + col1 AS col2 FROM tab0
----
219
266
355

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + COUNT( * ) * - + 19 AS col0 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + COUNT ( * ) * - + 19 AS col0 FROM tab1
----
-57

query I rowsort
SELECT DISTINCT 9 + + - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + - col2 + + ( 49 ) + + col1 FROM tab0 AS cor0
----
-49
60
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6958
SELECT CAST( NULL AS SIGNED ) * + col2 + - col1 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6958
SELECT CAST ( NULL AS INTEGER ) * + col2 + - col1 / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 3 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT + col1 + - + 68 AS col1 FROM tab0 WHERE + - 66 * + col0 * col0 >= - - 21
----

query I rowsort
SELECT ALL + col2 - - - 58 FROM tab0
----
-11
-48
41

query I rowsort
SELECT 12 FROM tab2 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT ALL + COUNT( * ) + - + ( - 45 ) col1 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6963
SELECT ALL + COUNT ( * ) + - + ( - 45 ) col1 FROM tab0
----
48

query II rowsort
SELECT 23 AS col2, + col0 AS col2 FROM tab2
----
23
46
23
64
23
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6965
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - 46 AS col0 FROM tab2 AS cor0
----
21
31
5

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - 46 AS col0 FROM tab2 AS cor0
----
21
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6966
SELECT COUNT( * ) - + 5 AS col2 FROM tab1 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6966
SELECT COUNT ( * ) - + 5 AS col2 FROM tab1 cor0
----
-2

query I rowsort
SELECT - col2 - - + col2 * - col2 + - col1 FROM tab2 AS cor0
----
-1717
-3489
-603

query I rowsort
SELECT - col2 - + + 67 AS col2 FROM tab1 cor0
----
-126
-135
-163

query I rowsort
SELECT 68 * + 95 * + col1 - + 5 AS col1 FROM tab2 AS cor0
----
329455
432815
497415

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 20 BETWEEN - 87 AND ( - - col0 * - - col0 - - col2 )
----

query II rowsort
SELECT ALL - col2 AS col2, - col1 * + 30 FROM tab1 AS cor0
----
-59
-150
-68
-1410
-96
-420

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + 53 * 60 FROM tab2
----
3180
3180
3180

onlyif mysql # aggregate syntax: 
query II rowsort label-6974
SELECT + MIN( DISTINCT - col1 ), COUNT( * ) AS col1 FROM tab1
----
-47
3

skipif mysql # not compatible
query II rowsort label-6974
SELECT + MIN ( DISTINCT - col1 ), COUNT ( * ) AS col1 FROM tab1
----
-47
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6975
SELECT DISTINCT + AVG ( - - 15 ) FROM tab2 AS cor0 WHERE - CAST( - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6975
SELECT DISTINCT + AVG ( - - 15 ) FROM tab2 AS cor0 WHERE - CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 41 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0 col2, - col0 * - 37 FROM tab2 AS cor0
----
-46
1702
-64
2368
-75
2775

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT ALL + MAX( - 1 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6978
SELECT ALL + MAX ( - 1 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6979
SELECT 16 DIV - col2 + 67 FROM tab0 cor0
----
66
67
67

skipif mysql # not compatible
query I rowsort label-6979
SELECT 16 / - col2 + 67 FROM tab0 cor0
----
66
67
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6981
SELECT ALL - CAST( + col1 AS SIGNED ) * + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - CAST ( + col1 AS INTEGER ) * + col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6982
SELECT + CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) + 94 AS col2, 68 + - col2 + + col2 * - 62 col0 FROM tab0
----
13
-2893
73
-562
93
-6169

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6982
SELECT + CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) + 94 AS col2, 68 + - col2 + + col2 * - 62 col0 FROM tab0
----
13
-2893
73
-562
93
-6169

query I rowsort
SELECT - 26 + + - col2 FROM tab1
----
-122
-85
-94

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NULL BETWEEN + - 36 AND + col1
----

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT 85 + 88 FROM tab1
----
173
173
173

query I rowsort
SELECT DISTINCT col1 + - - 6 FROM tab1
----
11
20
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6988
SELECT DISTINCT 10 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT 10 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT ALL + MIN( + 60 ) + - + COUNT( * ) AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL + MIN ( + 60 ) + - + COUNT ( * ) AS col1 FROM tab1
----
57

query I rowsort
SELECT ALL - col2 * 25 * + col0 AS col1 FROM tab2
----
-108750
-26450
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - COUNT( * ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6991
SELECT - COUNT ( * ) FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6992
SELECT DISTINCT + - CAST( + 35 AS SIGNED ) * 56 FROM tab1 AS cor0
----
-1960

skipif mysql # not compatible
query I rowsort label-6992
SELECT DISTINCT + - CAST ( + 35 AS INTEGER ) * 56 FROM tab1 AS cor0
----
-1960

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT DISTINCT - MIN( - 58 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6993
SELECT DISTINCT - MIN ( - 58 ) FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6994
SELECT - 10 / CAST( NULL AS SIGNED ) * COUNT( + col2 ) + - 35 + + - 19 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT - 10 / CAST ( NULL AS INTEGER ) * COUNT ( + col2 ) + - 35 + + - 19 AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 43 AS col1, ( - col0 ) FROM tab0 AS cor0
----
-43
-15
-43
-87
-43
-97

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE - col0 * + 6 <= ( - - 35 )
----
59
68
96

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT - 44 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6999
SELECT - 44 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7000
SELECT + col1 DIV - + ( + col1 ) FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7000
SELECT + col1 / - + ( + col1 ) FROM tab0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 < NULL )
----

query I rowsort
SELECT + 17 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
17
17
17

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - col2 + - + 64 + - - ( - 38 ) / + 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 * 77 col0 FROM tab2
----
2310
2310
2310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * - col2 * + col0 col0 FROM tab1
----
-235008
-240720
-297024

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( + col2, 52 * + col2 - + 43, + col0 )
----

query II rowsort
SELECT + - ( 91 ), 61 AS col0 FROM tab0 AS cor0
----
-91
61
-91
61
-91
61

query II rowsort
SELECT 98 AS col2, + ( + - 85 ) FROM tab2 AS cor0
----
98
-85
98
-85
98
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 NOT BETWEEN + 19 + + - 39 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7010
SELECT + + col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-7010
SELECT + + col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7011
SELECT + ( + CAST( + + 13 AS SIGNED ) ) FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7011
SELECT + ( + CAST ( + + 13 AS INTEGER ) ) FROM tab0 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT - MAX( - 28 ) / - 5 col2 FROM tab0 AS cor0 WHERE NOT col0 + + 27 + col1 * + + 57 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7012
SELECT - MAX ( - 28 ) / - 5 col2 FROM tab0 AS cor0 WHERE NOT col0 + + 27 + col1 * + + 57 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7013
SELECT ( + - col2 ) DIV - + 9 - + col2 AS col2 FROM tab0 AS cor0
----
-42
-88
-9

skipif mysql # not compatible
query I rowsort label-7013
SELECT ( + - col2 ) / - + 9 - + col2 AS col2 FROM tab0 AS cor0
----
-42
-88
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL + + MAX( - + 1 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + + MAX ( - + 1 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - + SUM( - col0 ) * 2 * ( - SUM( DISTINCT + 26 ) ) FROM tab0 AS cor0
----
-10348

skipif mysql # not compatible
query I rowsort label-7015
SELECT - + SUM ( - col0 ) * 2 * ( - SUM ( DISTINCT + 26 ) ) FROM tab0 AS cor0
----
-10348

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7016
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= CAST( - + ( + ( col2 ) ) AS SIGNED ) * + 76
----

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= CAST ( - + ( + ( col2 ) ) AS INTEGER ) * + 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7017
SELECT + + 14 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7017
SELECT + + 14 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7018
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE NULL BETWEEN + 66 AND col1 * - - 31 + + - col1 * + + 35
----

skipif mysql # not compatible
query I rowsort label-7018
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE NULL BETWEEN + 66 AND col1 * - - 31 + + - col1 * + + 35
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7019
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7019
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS REAL ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND + ( - col0 )
----

query I rowsort
SELECT 33 FROM tab1 WHERE 78 + - - 3 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab0
----
88

query III rowsort
SELECT * FROM tab0 WHERE - - 65 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7024
SELECT DISTINCT 40 DIV + - 15 + col2 AS col0, 56 FROM tab0
----
45
56
8
56
97
56

skipif mysql # not compatible
query II rowsort label-7024
SELECT DISTINCT 40 / + - 15 + col2 AS col0, 56 FROM tab0
----
45
56
8
56
97
56

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT DISTINCT + COUNT( * ) - 94 AS col0 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-7025
SELECT DISTINCT + COUNT ( * ) - 94 AS col0 FROM tab0
----
-91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - col0 + + + col2
----

query I rowsort
SELECT DISTINCT + col2 * 47 AS col2 FROM tab0 AS cor0
----
2209
4653
470

query I rowsort
SELECT - 38 AS col2 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT - + SUM( + 86 ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-765

skipif mysql # not compatible
query I rowsort label-7029
SELECT - + SUM ( + 86 ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT + - COUNT( * ) * 77 - + COUNT( - - ( col2 ) ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND - 85 * + col0
----
-234

skipif mysql # not compatible
query I rowsort label-7030
SELECT + - COUNT ( * ) * 77 - + COUNT ( - - ( col2 ) ) AS col1 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND - 85 * + col0
----
-234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7031
SELECT DISTINCT + col0 * - ( ( col0 ) ) - - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7031
SELECT DISTINCT + col0 * - ( ( col0 ) ) - - + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 41 - - - 91 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT DISTINCT - MAX( ALL col1 ) FROM tab2 AS cor0 WHERE + col0 * + col1 * col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab2 AS cor0 WHERE + col0 * + col1 * col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7034
SELECT - + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7034
SELECT - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE NOT + 58 NOT BETWEEN + col2 - - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 + + - 14 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT 58 IN ( - 60 * + col0 * + col0 - col0, 7 * + ( - 5 ), col0 * - + col0, - 99 )
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT 54 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT + col1 DIV - 85 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7040
SELECT + col1 / - 85 col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 22 * - + 53 * + - col1 FROM tab2
----
-59466
-78122
-89782

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT 53 * - COUNT( * ) col0 FROM tab0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7042
SELECT 53 * - COUNT ( * ) col0 FROM tab0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT + MAX( DISTINCT - ( - col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7043
SELECT + MAX ( DISTINCT - ( - col1 ) ) FROM tab1
----
47

query I rowsort
SELECT 87 * col0 AS col0 FROM tab1 AS cor0
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT ALL + + COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7045
SELECT ALL + + COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query II rowsort
SELECT 78 * + 63, col1 FROM tab0
----
4914
1
4914
21
4914
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7047
SELECT + MAX( + + col0 ) AS col2 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-7047
SELECT + MAX ( + + col0 ) AS col2 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 / - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7049
SELECT DISTINCT + + MIN( DISTINCT 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT + + MIN ( DISTINCT 18 ) FROM tab0 AS cor0
----
18

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= - + col0
----

query I rowsort
SELECT - 17 + ( - col1 ) FROM tab0
----
-18
-38
-98

query I rowsort
SELECT DISTINCT ( + col1 ) * - - 24 + - col0 FROM tab1
----
1037
285
35

query I rowsort
SELECT ALL + col0 + - 28 + - col2 * col0 + + + 63 FROM tab2
----
-2461
-4240
-977

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT DISTINCT COUNT( * ) - 10 col0 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7054
SELECT DISTINCT COUNT ( * ) - 10 col0 FROM tab1
----
-7

query I rowsort
SELECT ALL + - col1 + + col0 + + col2 * + 15 * + col0 * + 26 AS col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab1 cor0
----
90

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT DISTINCT - + MIN( ALL col2 ) AS col1 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7058
SELECT DISTINCT - + MIN ( ALL col2 ) AS col1 FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT DISTINCT + - ( - COUNT( * ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7059
SELECT DISTINCT + - ( - COUNT ( * ) ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT SUM( ALL - 95 ) FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7060
SELECT SUM ( ALL - 95 ) FROM tab1 AS cor0
----
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 56 col2 FROM tab0 AS cor0
----
4872
5432
840

query I rowsort
SELECT + 54 * - - col0 * + col0 AS col2 FROM tab0 AS cor0
----
12150
408726
508086

query I rowsort
SELECT ALL + col2 * + 7 FROM tab2 AS cor0
----
161
280
406

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + 55
----

query II rowsort
SELECT 73, - col2 AS col0 FROM tab0 AS cor0
----
73
-10
73
-47
73
-99

query I rowsort
SELECT ALL 89 * - col2 AS col0 FROM tab2 AS cor0 WHERE ( - - col1 <= col0 )
----
-5162

query I rowsort
SELECT ALL + - col0 * 45 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT ( + COUNT( + col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT ( + COUNT ( + col2 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT ALL - COUNT( ALL - col2 ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7070
SELECT ALL - COUNT ( ALL - col2 ) AS col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL - - COUNT( * ) FROM tab2 cor0 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL - - COUNT ( * ) FROM tab2 cor0 WHERE + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT - + COUNT( * ) AS col1, COUNT( - - 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > + - col0 * col1 + + ( 32 ) - - + ( + col2 )
----
0
0

skipif mysql # not compatible
query II rowsort label-7072
SELECT - + COUNT ( * ) AS col1, COUNT ( - - 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 > + - col0 * col1 + + ( 32 ) - - + ( + col2 )
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7073
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - ( col0 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7073
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - ( col0 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + - 44 ) * - 9 + col1 FROM tab1 AS cor0
----
401
410
443

onlyif mysql # DIV for integer division: 
query II rowsort label-7075
SELECT 21 DIV + - col0, + col0 * + col2 * - col1 * col0 col1 FROM tab0 AS cor0
----
-1
-856575
0
-1589490
0
-931491

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7075
SELECT 21 / + - col0, + col0 * + col2 * - col1 * col0 col1 FROM tab0 AS cor0
----
-1
-856575
0
-1589490
0
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT + + MIN( ALL + col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7076
SELECT + + MIN ( ALL + col0 ) col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT ALL + COUNT( * ) * + COUNT( * ) + 60 FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7077
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + 60 FROM tab0 AS cor0
----
69

query I rowsort
SELECT ( - - 4 ) + col0 FROM tab0
----
101
19
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7079
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) * + + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7079
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) * + + col1 AND NULL
----

query I rowsort
SELECT ( - + col0 ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7081
SELECT + + MIN( ALL - 62 ) * 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-744

skipif mysql # not compatible
query I rowsort label-7081
SELECT + + MIN ( ALL - 62 ) * 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-744

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > - + col1 * col1 / + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 62 * + col0 - + 79 * + col1 col1 FROM tab0 cor0
----
-6093
-7053
-7329

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT ALL - + 63 * - - MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
5733

skipif mysql # not compatible
query I rowsort label-7084
SELECT ALL - + 63 * - - MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
5733

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * col2 + + 21 + + - col0 col2 FROM tab2 AS cor0
----
205
357
526

onlyif mysql # DIV for integer division: 
query I rowsort label-7086
SELECT - col0 DIV + - col2 + col2 AS col0 FROM tab0 AS cor0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-7086
SELECT - col0 / + - col2 + col2 AS col0 FROM tab0 AS cor0
----
18
47
99

query II rowsort
SELECT ALL + col0, 64 AS col2 FROM tab1 AS cor0
----
51
64
85
64
91
64

query I rowsort
SELECT ALL + + 82 + 91 AS col0 FROM tab0 AS cor0
----
173
173
173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col2 AS col1 FROM tab2
----
51
23
67
58
77
40

query I rowsort
SELECT col1 + - + ( - col1 ) FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - - + col1 col1, col0 * + col2 + col2 + - 48 FROM tab2
----
117
2552
125
4360
74
1033

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT COUNT( ALL - col0 ) + + - 38 FROM tab1 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-7092
SELECT COUNT ( ALL - col0 ) + + - 38 FROM tab1 cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7093
SELECT - + COUNT( * ) * + 14 AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7093
SELECT - + COUNT ( * ) * + 14 AS col0 FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-7094
SELECT DISTINCT - - 5 AS col1, MAX( ALL col1 ) FROM tab2 AS cor0
----
5
77

skipif mysql # not compatible
query II rowsort label-7094
SELECT DISTINCT - - 5 AS col1, MAX ( ALL col1 ) FROM tab2 AS cor0
----
5
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT + 10 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN NULL AND + - col0 - - col2
----
10

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + 10 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN NULL AND + - col0 - - col2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7096
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / col1 * + CAST( + 34 AS SIGNED ) > + col2 + - 19
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-7096
SELECT ALL * FROM tab2 AS cor0 WHERE col1 / col1 * + CAST ( + 34 AS INTEGER ) > + col2 + - 19
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + col1 ) * + 81 col1 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT ALL - + MIN( ALL + 10 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL - + MIN ( ALL + 10 ) FROM tab0 AS cor0
----
-10

query II rowsort
SELECT DISTINCT - ( + col0 ), col2 AS col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL + 33 + + 49 + - + 88 + + col1 * 43 * - col2 AS col0 FROM tab0 WHERE NOT NULL > ( - col1 )
----

query I rowsort
SELECT + 99 * ( - col1 ) AS col1 FROM tab2
----
-5049
-6633
-7623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col2, 9 col1 FROM tab1 AS cor0
----
-51
9
-85
9
-91
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7104
SELECT ALL - ( - ( + COUNT( * ) ) ), COUNT( * ) - - + CAST( NULL AS SIGNED ) * + COUNT( * ) / 64 + + - 81 AS col2 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7104
SELECT ALL - ( - ( + COUNT ( * ) ) ), COUNT ( * ) - - + CAST ( NULL AS INTEGER ) * + COUNT ( * ) / 64 + + - 81 AS col2 FROM tab1 AS cor0
----
3
NULL

query II rowsort
SELECT DISTINCT - - col1 AS col0, col2 - 3 FROM tab0 AS cor0
----
1
96
21
7
81
44

query I rowsort
SELECT ALL + - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + 24 col0 FROM tab1
----
-35
-44
-72

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * + col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT + CAST( NULL AS SIGNED ) + - 13 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7109
SELECT + CAST ( NULL AS INTEGER ) + - 13 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 + 70 * col2 ) >= 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 WHERE - ( col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7111
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 WHERE - ( col0 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT - COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7112
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col1 + + 77 * + col1 FROM tab1 WHERE NULL NOT BETWEEN + 26 AND NULL
----

query I rowsort
SELECT col1 + col1 * - col2 AS col2 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT 61 * - 59 AS col1 FROM tab1
----
-3599
-3599
-3599

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT 67 * + SUM( col2 ) FROM tab0
----
10452

skipif mysql # not compatible
query I rowsort label-7116
SELECT 67 * + SUM ( col2 ) FROM tab0
----
10452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7117
SELECT CAST( col2 AS SIGNED ) * ( ( - 95 ) ) AS col2 FROM tab2
----
-2185
-3800
-5510

skipif mysql # not compatible
query I rowsort label-7117
SELECT CAST ( col2 AS INTEGER ) * ( ( - 95 ) ) AS col2 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT + 34 * SUM( DISTINCT - 8 ) FROM tab1
----
-272

skipif mysql # not compatible
query I rowsort label-7118
SELECT + 34 * SUM ( DISTINCT - 8 ) FROM tab1
----
-272

query I rowsort
SELECT - col1 FROM tab1 WHERE 18 IS NULL
----

query I rowsort
SELECT - 23 * + 17 AS col0 FROM tab0
----
-391
-391
-391

query I rowsort
SELECT DISTINCT + col2 * - 2 AS col1 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT ALL 53 + + 82 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
135
135
135

query I rowsort
SELECT DISTINCT - col0 * 60 FROM tab1
----
-3060
-5100
-5460

query I rowsort
SELECT + 24 + 98 * 54 AS col2 FROM tab0
----
5316
5316
5316

onlyif mysql # aggregate syntax: 
query I rowsort label-7125
SELECT - COUNT( * ) + + MAX( + 81 + - col2 ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-7125
SELECT - COUNT ( * ) + + MAX ( + 81 + - col2 ) FROM tab1
----
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7126
SELECT 91 AS col0 FROM tab2 WHERE NOT - col0 + 70 <= ( CAST( - col2 AS SIGNED ) )
----
91
91
91

skipif mysql # not compatible
query I rowsort label-7126
SELECT 91 AS col0 FROM tab2 WHERE NOT - col0 + 70 <= ( CAST ( - col2 AS INTEGER ) )
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT DISTINCT - 8 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7127
SELECT DISTINCT - 8 / col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7128
SELECT 39 + CAST( + 75 + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7128
SELECT 39 + CAST ( + 75 + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT - ( SUM( DISTINCT 6 ) ) + + 4 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT - ( SUM ( DISTINCT 6 ) ) + + 4 FROM tab1
----
-2

query I rowsort
SELECT DISTINCT + col0 * - 60 - 20 FROM tab1
----
-3080
-5120
-5480

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col0 NOT IN ( + ( + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7132
SELECT * FROM tab2 WHERE NULL NOT IN ( 37 + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7132
SELECT * FROM tab2 WHERE NULL NOT IN ( 37 + CAST ( col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * + col1 col0 FROM tab2 AS cor0
----
4692
6164
7084

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT ALL COUNT( DISTINCT - col1 ) FROM tab0 cor0 WHERE NOT ( + col1 ) = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL COUNT ( DISTINCT - col1 ) FROM tab0 cor0 WHERE NOT ( + col1 ) = ( NULL )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7137
SELECT SUM( col2 ) * + 96 AS col0 FROM tab2 cor0
----
11616

skipif mysql # not compatible
query I rowsort label-7137
SELECT SUM ( col2 ) * + 96 AS col0 FROM tab2 cor0
----
11616

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * col1 ) IN ( col2 - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT DISTINCT - 48 DIV COUNT( * ) FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7139
SELECT DISTINCT - 48 / COUNT ( * ) FROM tab0 AS cor0
----
-16

query I rowsort
SELECT DISTINCT - - col0 * - 34 AS col2 FROM tab1 AS cor0
----
-1734
-2890
-3094

query I rowsort
SELECT ALL + - ( + 57 ) FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT - 45 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT - + ( + col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT 84 + col0 = - col0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 * - col0 + - col2 * 33 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 74 + col0 BETWEEN ( NULL ) AND col2 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE 53 NOT IN ( + col1 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7148
SELECT DISTINCT - COUNT( ALL 13 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT - COUNT ( ALL 13 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7149
SELECT ALL COUNT( * ) DIV - - 36 + - COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7149
SELECT ALL COUNT ( * ) / - - 36 + - COUNT ( * ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT - SUM( ALL 37 ) FROM tab1 WHERE NOT col0 / col0 NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7150
SELECT - SUM ( ALL 37 ) FROM tab1 WHERE NOT col0 / col0 NOT IN ( col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7151
SELECT DISTINCT - ( - CAST( col2 AS SIGNED ) ) * - 53 AS col1 FROM tab1
----
-3127
-3604
-5088

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT - ( - CAST ( col2 AS INTEGER ) ) * - 53 AS col1 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT ALL 71 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL SUM( + col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL SUM ( + col2 ) AS col1 FROM tab0
----
156

query I rowsort
SELECT - 15 * + col1 AS col2 FROM tab0
----
-1215
-15
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7155
SELECT + col1 * + 16 + + col0 * col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7155
SELECT + col1 * + 16 + + col0 * col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 89 + col1 AS col0 FROM tab2 cor0
----
-12
-22
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7157
SELECT + + ( - 81 ) + COUNT( * ) FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7157
SELECT + + ( - 81 ) + COUNT ( * ) FROM tab0 AS cor0
----
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7158
SELECT DISTINCT + 26 + - CAST( NULL AS DECIMAL ) + + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT + 26 + - CAST ( NULL AS REAL ) + + col2 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT + - ( - COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7159
SELECT + - ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

query I rowsort
SELECT col1 FROM tab2 WHERE ( - col1 ) NOT BETWEEN col0 * 50 AND ( - col1 )
----
51
67
77

query I rowsort
SELECT 49 FROM tab2 WHERE + 30 IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, - col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query II rowsort
SELECT + + col1, - col1 * - col2 + col1 AS col0 FROM tab0 AS cor0
----
1
100
21
231
81
3888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7164
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) <= NULL
----

query I rowsort
SELECT - col2 - + col2 + - 52 FROM tab2 AS cor0
----
-132
-168
-98

query I rowsort
SELECT 17 - col1 FROM tab0 AS cor0
----
-4
-64
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT + COUNT( - col1 ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7168
SELECT + COUNT ( - col1 ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT ALL - - COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL - - COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + - + col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT SUM( DISTINCT + col0 ) * + COUNT( * ) AS col0 FROM tab2 WHERE - + 2 BETWEEN - 34 + 54 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7171
SELECT SUM ( DISTINCT + col0 ) * + COUNT ( * ) AS col0 FROM tab2 WHERE - + 2 BETWEEN - 34 + 54 AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 IS NOT NULL AND NOT ( NULL ) NOT BETWEEN - col2 + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7173
SELECT ALL - CAST( NULL AS DECIMAL ) * - 87 + MAX( DISTINCT - 18 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL - CAST ( NULL AS REAL ) * - 87 + MAX ( DISTINCT - 18 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT ALL + 45 - + col1 + + + 23 DIV + 91 FROM tab2
----
-22
-32
-6

skipif mysql # not compatible
query I rowsort label-7174
SELECT ALL + 45 - + col1 + + + 23 / + 91 FROM tab2
----
-22
-32
-6

query I rowsort
SELECT DISTINCT 35 + col0 AS col0 FROM tab0
----
122
132
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT + MAX( + - 88 ) FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-7176
SELECT + MAX ( + - 88 ) FROM tab2
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col0 FROM tab1 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT DISTINCT - COUNT( DISTINCT + 30 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT - COUNT ( DISTINCT + 30 ) FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT - COUNT( * ) * - 2 AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT - COUNT ( * ) * - 2 AS col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT col2 * + - 53 AS col2 FROM tab0
----
-2491
-5247
-530

query I rowsort
SELECT 23 * - ( 45 ) * + col2 FROM tab1
----
-61065
-70380
-99360

query III rowsort
SELECT ALL * FROM tab2 WHERE 46 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 17 AS col1, + col1 * - + col2 FROM tab2 AS cor0
----
-17
-1173
-17
-3080
-17
-3886

query I rowsort
SELECT - 8 FROM tab2 AS cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col0 >= ( + 1 ) + + col1 AND NOT 3 IS NOT NULL
----

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT + col1 * + + ( col0 ) + - col1 NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 + col1 * - + col0 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT DISTINCT + SUM( - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7188
SELECT DISTINCT + SUM ( - + col1 ) FROM tab1
----
-66

query I rowsort
SELECT + col0 * + ( - 35 ) + + 36 FROM tab2
----
-1574
-2204
-2589

onlyif mysql # DIV for integer division: 
query I rowsort label-7190
SELECT ALL col0 DIV + - col0 + - col1 AS col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL col0 / + - col0 + - col1 AS col1 FROM tab0
----
-2
-22
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT DISTINCT 26 + + + COUNT( * ) * 72 col0 FROM tab2
----
242

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7191
SELECT DISTINCT 26 + + + COUNT ( * ) * 72 col0 FROM tab2
----
242

query I rowsort
SELECT 84 FROM tab1 WHERE col1 - - + col0 + + - col0 BETWEEN - ( - 84 ) - - 24 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7193
SELECT CAST( NULL AS SIGNED ), 41 * + 39 + - col1 + - 25 + + col2 + col1 * 87 * + col0 * - CAST( + 73 AS SIGNED ) AS col2 FROM tab2
----
NULL
-14897900
NULL
-31296191
NULL
-31912210

skipif mysql # not compatible
query II rowsort label-7193
SELECT CAST ( NULL AS INTEGER ), 41 * + 39 + - col1 + - 25 + + col2 + col1 * 87 * + col0 * - CAST ( + 73 AS INTEGER ) AS col2 FROM tab2
----
NULL
-14897900
NULL
-31296191
NULL
-31912210

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + 8 IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT 68 * col2 AS col2 FROM tab0 AS cor0
----
3196
6732
680

query I rowsort
SELECT ALL + + col2 * - + col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + 51 - - col0 FROM tab2 AS cor0
----
115
126
97

query I rowsort
SELECT + - 32 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - + col1 * - 99 + + + col0 * col2 FROM tab1 AS cor0 WHERE + 94 IS NOT NULL
----
10841
5510
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT + 3 + + ( - COUNT( * ) ) * - - 88 AS col2 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-7202
SELECT + 3 + + ( - COUNT ( * ) ) * - - 88 AS col2 FROM tab1 AS cor0
----
-261

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 + + + col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT + - col2 * 64 AS col1 FROM tab0 AS cor0
----
-3008
-6336
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT - ( + + col1 ) DIV - + 77 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT - ( + + col1 ) / - + 77 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT DISTINCT 93 * - - 55 + - SUM( + 50 ) FROM tab1 AS cor0
----
4965

skipif mysql # not compatible
query I rowsort label-7206
SELECT DISTINCT 93 * - - 55 + - SUM ( + 50 ) FROM tab1 AS cor0
----
4965

query II rowsort
SELECT + - col2 * + 11 AS col0, - col2 FROM tab1 cor0
----
-1056
-96
-649
-59
-748
-68

query I rowsort
SELECT + col2 * - 81 AS col2 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT DISTINCT + 25 * 0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT - 98 * + + ( + COUNT( * ) ) * - 85 FROM tab0
----
24990

skipif mysql # not compatible
query I rowsort label-7210
SELECT - 98 * + + ( + COUNT ( * ) ) * - 85 FROM tab0
----
24990

query I rowsort
SELECT 20 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( 31 + ( + + col0 ), 54 * - col0 )
----

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 I rowsort
SELECT + 64 * - col2 AS col0 FROM tab0
----
-3008
-6336
-640

onlyif mysql # aggregate syntax: 
query II rowsort label-7214
SELECT DISTINCT + 1, - ( COUNT( * ) ) - + 94 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
-97

skipif mysql # not compatible
query II rowsort label-7214
SELECT DISTINCT + 1, - ( COUNT ( * ) ) - + 94 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
-97

query I rowsort
SELECT + - 26 + - col2 * 4 FROM tab0 WHERE NOT - col0 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL - + 99 * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL - + 99 * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
297

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab1 cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT 84 * COUNT( * ) FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7218
SELECT 84 * COUNT ( * ) FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT DISTINCT 13 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7219
SELECT DISTINCT 13 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
39

query I rowsort
SELECT DISTINCT - 38 FROM tab1, tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7221
SELECT ALL + MAX( + CAST( 62 AS SIGNED ) ) AS col1 FROM tab0 cor0
----
62

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + MAX ( + CAST ( 62 AS INTEGER ) ) AS col1 FROM tab0 cor0
----
62

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + + col1 + + + ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7223
SELECT DISTINCT - MIN( - - col1 ) * + COUNT( * ) * + 4 AS col0, - ( 50 ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-60
-53

skipif mysql # not compatible
query II rowsort label-7223
SELECT DISTINCT - MIN ( - - col1 ) * + COUNT ( * ) * + 4 AS col0, - ( 50 ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-60
-53

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT + ( + MIN( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7225
SELECT + ( + MIN ( DISTINCT - col0 ) ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7226
SELECT DISTINCT 54 + + SUM( ALL ( col0 ) ) AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
253
NULL

skipif mysql # not compatible
query II rowsort label-7226
SELECT DISTINCT 54 + + SUM ( ALL ( col0 ) ) AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
253
NULL

query I rowsort
SELECT - 59 AS col1 FROM tab0 cor0
----
-59
-59
-59

query I rowsort
SELECT DISTINCT col2 * col0 + - ( - + ( 13 ) ) AS col0 FROM tab1 AS cor0
----
4909
5028
6201

onlyif mysql # DIV for integer division: 
query I rowsort label-7229
SELECT ALL + col1 DIV - + 55 + + - 87 FROM tab1
----
-87
-87
-87

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + col1 / - + 55 + + - 87 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT + col2 FROM tab1 WHERE + - col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - 24 + - ( - - ( - col2 ) ) * - col0 FROM tab1
----
-4920
-5039
-6212

query I rowsort
SELECT ALL 35 * - col2 FROM tab2
----
-1400
-2030
-805

query I rowsort
SELECT col2 + + 64 - + col0 AS col0 FROM tab2
----
40
41
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7234
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7234
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 69 * col1 FROM tab0 AS cor0
----
1449
5589
69

query I rowsort
SELECT + + col1 * + 13 + + + 89 * + - 28 + + col0 FROM tab1 cor0
----
-1790
-2259
-2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7237
SELECT DISTINCT - CAST( + + col2 AS SIGNED ) * - 18 FROM tab2 AS cor0
----
1044
414
720

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) * - 18 FROM tab2 AS cor0
----
1044
414
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - + col2 col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - 65 - - 73 FROM tab1 AS cor0
----
8
8
8

query II rowsort
SELECT DISTINCT col0 - - 40 AS col0, col2 FROM tab2 AS cor0
----
104
40
115
58
86
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - - COUNT( * ) - + COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT - - COUNT ( * ) - + COUNT ( * ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 * + col2 ) IN ( - col0 )
----

query II rowsort
SELECT DISTINCT + col1 - + col0 AS col1, 0 FROM tab1 AS cor0
----
-37
0
-44
0
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7244
SELECT ALL col2 AS col0, + CAST( + 68 AS SIGNED ) FROM tab0 AS cor0
----
10
68
47
68
99
68

skipif mysql # not compatible
query II rowsort label-7244
SELECT ALL col2 AS col0, + CAST ( + 68 AS INTEGER ) FROM tab0 AS cor0
----
10
68
47
68
99
68

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 63 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 99 + CAST( NULL AS SIGNED ) + col1 * - 31 * + col0 BETWEEN - 2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 99 + CAST ( NULL AS INTEGER ) + col1 * - 31 * + col0 BETWEEN - 2 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7248
SELECT DISTINCT - COUNT( * ) * CAST( 84 AS SIGNED ) FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - COUNT ( * ) * CAST ( 84 AS INTEGER ) FROM tab2 AS cor0
----
-252

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 <= ( + - 60 + - 86 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT - COUNT( * ) * 8 * - COUNT( * ) col1 FROM tab1
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7250
SELECT - COUNT ( * ) * 8 * - COUNT ( * ) col1 FROM tab1
----
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 18 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - col2 AS col2 FROM tab2 WHERE NOT + 29 - + - col2 <> ( 92 - + ( - col1 ) )
----

query I rowsort
SELECT ALL - ( 29 ) AS col0 FROM tab1
----
-29
-29
-29

query I rowsort
SELECT ALL - 32 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT - + 66 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-7255
SELECT - + 66 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
198

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + col2
----

query I rowsort
SELECT ALL + col1 * - ( 85 ) * - col2 AS col1 FROM tab1 AS cor0
----
114240
25075
271660

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL NOT IN ( - - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7259
SELECT DISTINCT - - col2 DIV - + col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-7259
SELECT DISTINCT - - col2 / - + col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + col1 * col1 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7261
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col0 - + CAST( + - col0 AS SIGNED ) IN ( - col1, col1 )
----

skipif mysql # not compatible
query III rowsort label-7261
SELECT * FROM tab1 AS cor0 WHERE + col2 * + col0 - + CAST ( + - col0 AS INTEGER ) IN ( - col1, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( 27 + + col1 + - 95, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - + 44 * - 3 * + - COUNT( * ) col2 FROM tab2 AS cor0
----
-396

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7263
SELECT ALL - + 44 * - 3 * + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-396

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + col1 - + - ( + col0 ) * col1 - + col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT 15 AS col1 FROM tab2 cor0 WHERE ( + col0 * + - col0 / + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 2 + - col0 FROM tab0
----
-17
-89
-99

query II rowsort
SELECT DISTINCT col0 + + - col0 + + - 39 * + col0 AS col1, 50 FROM tab2
----
-1794
50
-2496
50
-2925
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT + 78 * MAX( DISTINCT - - col2 ) FROM tab2
----
4524

skipif mysql # not compatible
query I rowsort label-7268
SELECT + 78 * MAX ( DISTINCT - - col2 ) FROM tab2
----
4524

query I rowsort
SELECT DISTINCT - col2 - - 18 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
-22
-40
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT DISTINCT 14 + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT 14 + COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT col1 * - 90 FROM tab2
----
-4590
-6030
-6930

onlyif mysql # aggregate syntax: 
query I rowsort label-7272
SELECT DISTINCT + 27 * - 98 + - 72 * - - MAX( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
-8478

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7272
SELECT DISTINCT + 27 * - 98 + - 72 * - - MAX ( DISTINCT col1 ) col0 FROM tab0 AS cor0
----
-8478

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 87 >= - 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL + col0 DIV + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-47
-99

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL + col0 / + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-2
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7275
SELECT ( + + COUNT( * ) ) * - COUNT( * ) + 45 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7275
SELECT ( + + COUNT ( * ) ) * - COUNT ( * ) + 45 FROM tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT ALL ( - + COUNT( * ) ) + - + 64 + + 60 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL ( - + COUNT ( * ) ) + - + 64 + + 60 FROM tab1 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7277
SELECT ALL MIN( + 90 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-7277
SELECT ALL MIN ( + 90 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

query I rowsort
SELECT ALL + col2 + + - col1 AS col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT + col1 / - + CAST( NULL AS SIGNED ) + - - 68 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7279
SELECT + col1 / - + CAST ( NULL AS INTEGER ) + - - 68 col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 62 AS col2, col2 FROM tab1 cor0
----
62
59
62
68
62
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + - COUNT( DISTINCT + 19 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7281
SELECT + - COUNT ( DISTINCT + 19 ) FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - COUNT( DISTINCT + + 82 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-7282
SELECT - COUNT ( DISTINCT + + 82 ) FROM tab1
----
-1

query I rowsort
SELECT 49 * + + col1 FROM tab1
----
2303
245
686

query II rowsort
SELECT DISTINCT 92, - col0 AS col0 FROM tab2
----
92
-46
92
-64
92
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE - col2 + col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT - + col1 AS col1, - 56 FROM tab2 AS cor0
----
-51
-56
-67
-56
-77
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 AS col1, + 60 * + + ( + - ( col2 ) ) col1 FROM tab2 AS cor0
----
46
-1380
64
-2400
75
-3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7290
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col1 / + col2 <= - CAST( - col1 AS SIGNED ) + + col2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col1 / + col2 <= - CAST ( - col1 AS INTEGER ) + + col2
----
23
40
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7291
SELECT ALL - 79 * - + CAST( NULL AS DECIMAL ), + ( col2 ) AS col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7291
SELECT ALL - 79 * - + CAST ( NULL AS REAL ), + ( col2 ) AS col1 FROM tab2 cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - + col2 FROM tab2 cor0 WHERE NOT col2 + - 1 / - col1 BETWEEN + 67 AND - - col0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + col0 + - - 63 FROM tab2 cor0 WHERE NOT - col2 NOT IN ( - col2 + ( + - col2 ), + col1 + col0 * - col0, 18 * + col2 + - col1 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7294
SELECT - MIN( + + 59 ) FROM tab2 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7294
SELECT - MIN ( + + 59 ) FROM tab2 cor0
----
-59

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7297
SELECT + SUM( DISTINCT + col2 ), - 58 AS col2 FROM tab1 AS cor0
----
223
-58

skipif mysql # not compatible
query II rowsort label-7297
SELECT + SUM ( DISTINCT + col2 ), - 58 AS col2 FROM tab1 AS cor0
----
223
-58

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 * 26 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + col1 - col2 < - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - 41 FROM tab0
----
-20
-40
40

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * + col2 / + col1 + - + ( col2 ) / 61 <= - + col1
----

query II rowsort
SELECT + - col2 * + col1 * + col1 AS col1, col2 - - - col2 FROM tab2 AS cor0
----
-237160
0
-260362
0
-59823
0

query I rowsort
SELECT ALL + 25 * 5 AS col0 FROM tab1
----
125
125
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT DISTINCT SUM( + + col1 ) * MIN( ALL - col1 ) FROM tab0
----
-8343

skipif mysql # not compatible
query I rowsort label-7305
SELECT DISTINCT SUM ( + + col1 ) * MIN ( ALL - col1 ) FROM tab0
----
-8343

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL < 73
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + - col1 BETWEEN + + col0 * 38 + + col1 + - col2 / 97 / + + col0 - + 38 AND - ( + - col0 ) / + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7308
SELECT - CAST( - col2 AS SIGNED ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT - CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL ( - 69 ) FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0 WHERE NOT - col1 <= col1
----

query I rowsort
SELECT DISTINCT col1 * + col1 * + - 28 AS col1 FROM tab2
----
-125692
-166012
-72828

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT + ( - + col1 ) DIV + 51 + col2 DIV - 10 col1 FROM tab1
----
-5
-6
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7313
SELECT + ( - + col1 ) / + 51 + col2 / - 10 col1 FROM tab1
----
-5
-6
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7314
SELECT ALL + col0 DIV - 79 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7314
SELECT ALL + col0 / - 79 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT - 16 DIV - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7315
SELECT - 16 / - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL col0 AS col2, + col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + 79 FROM tab1, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT col2 + - ( - + 60 ) FROM tab2
----
100
118
83

query II rowsort
SELECT - col0 + - 65 - - ( + ( + 47 ) ) - - 19 AS col0, + col1 * - 22 - + col1 * - col2 + - col0 * 44 AS col2 FROM tab1
----
-50
-1208
-84
-3555
-90
-1842

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT MIN( ALL + col2 ) + - SUM( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
-172

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT MIN ( ALL + col2 ) + - SUM ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT 97 IS NULL
----
-172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, - col0 * - col2 col0 FROM tab1 AS cor0
----
59
5015
68
6188
96
4896

query II rowsort
SELECT ALL + 19 AS col1, + 26 FROM tab2 AS cor0
----
19
26
19
26
19
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 col0 FROM tab1 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7324
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( - 61 ) * + 1 + + CAST( - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7324
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = ( - 61 ) * + 1 + + CAST ( - col1 AS REAL )
----

query II rowsort
SELECT + col1, col1 AS col2 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7326
SELECT ALL MAX( DISTINCT + - col2 ), 37 col1 FROM tab0
----
-10
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7326
SELECT ALL MAX ( DISTINCT + - col2 ), 37 col1 FROM tab0
----
-10
37

query II rowsort
SELECT ALL col0 + - col1 AS col1, + col0 FROM tab2
----
-13
64
-5
46
8
75

query II rowsort
SELECT ALL + 80 + - 44 AS col1, - 54 AS col0 FROM tab0
----
36
-54
36
-54
36
-54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7330
SELECT DISTINCT COUNT( + 17 ) AS col2, ( 56 ) AS col2 FROM tab1
----
3
56

skipif mysql # not compatible
query II rowsort label-7330
SELECT DISTINCT COUNT ( + 17 ) AS col2, ( 56 ) AS col2 FROM tab1
----
3
56

query I rowsort
SELECT DISTINCT - + ( 60 ) AS col1 FROM tab0 AS cor0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 BETWEEN NULL AND - col1
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL - - 61 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 6 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-7336
SELECT ALL - SUM( ALL - + 81 ) AS col0 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - SUM ( ALL - + 81 ) AS col0 FROM tab0 AS cor0
----
243

query II rowsort
SELECT DISTINCT + - col1 AS col0, + 69 * + 5 FROM tab2 cor0
----
-51
345
-67
345
-77
345

query II rowsort
SELECT DISTINCT - + col0 AS col0, - 24 + - - col0 * - col2 FROM tab1 AS cor0
----
-51
-4920
-85
-5039
-91
-6212

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7339
SELECT - CAST( NULL AS SIGNED ), col1 + 45 AS col0 FROM tab0 AS cor0
----
NULL
126
NULL
46
NULL
66

skipif mysql # not compatible
query II rowsort label-7339
SELECT - CAST ( NULL AS INTEGER ), col1 + 45 AS col0 FROM tab0 AS cor0
----
NULL
126
NULL
46
NULL
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7340
SELECT ALL + - COUNT( + 79 ) * - COUNT( * ) col0, 0 FROM tab0 AS cor0
----
9
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7340
SELECT ALL + - COUNT ( + 79 ) * - COUNT ( * ) col0, 0 FROM tab0 AS cor0
----
9
0

query I rowsort
SELECT - col0 * + 89 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT DISTINCT col0 * - col1 * - col2 * ( + - col0 ) AS col0 FROM tab1
----
-2131375
-26466076
-3495744

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col2 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7344
SELECT ALL 98 DIV 62 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7344
SELECT ALL 98 / 62 FROM tab0
----
1
1
1

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT + + 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT ALL COUNT( * ) + + - 20 AS col2 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7346
SELECT ALL COUNT ( * ) + + - 20 AS col2 FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7347
SELECT - AVG ( ALL + CAST( NULL AS SIGNED ) ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7347
SELECT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT ( - + 35 ) * + COUNT( * ) AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-7348
SELECT ( - + 35 ) * + COUNT ( * ) AS col2 FROM tab2
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT ALL + + COUNT( * ) * + SUM( ALL col0 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
552

skipif mysql # not compatible
query I rowsort label-7349
SELECT ALL + + COUNT ( * ) * + SUM ( ALL col0 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT DISTINCT - CAST( + 66 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT - CAST ( + 66 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + MAX( - - 18 ) AS col1 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7351
SELECT + MAX ( - - 18 ) AS col1 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT - MAX( col2 ) - - + 70 AS col1 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7352
SELECT - MAX ( col2 ) - - + 70 AS col1 FROM tab2 AS cor0
----
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL IN ( - col1 * + - col0, + col1 ) )
----

query I rowsort
SELECT ALL + 12 * 68 AS col0 FROM tab1 AS cor0
----
816
816
816

query III rowsort
SELECT * FROM tab2 WHERE + + col1 * + col2 IS NULL
----

query I rowsort
SELECT + + 80 FROM tab2 WHERE - + col0 IS NOT NULL
----
80
80
80

query I rowsort
SELECT col1 * 18 + col0 FROM tab1
----
175
303
937

query I rowsort
SELECT ALL - col1 - 43 * 11 + + + col2 AS col0 FROM tab1
----
-391
-419
-452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 + - col1 * col0 col2 FROM tab2
----
-2369
-4952
-5042

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7360
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 * - + col1 AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7362
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = - - ( 35 ) + - - col2 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7362
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 = - - ( 35 ) + - - col2 * - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - 47 AS col1 FROM tab1 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7364
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 > + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-7364
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 > + CAST ( NULL AS INTEGER )
----
0

query II rowsort
SELECT ALL 82 * col1 + - col2, col0 FROM tab2 AS cor0
----
4159
46
5436
75
6274
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7366
SELECT ALL + - col2 * + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7366
SELECT ALL + - col2 * + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7367
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < - col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-7367
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < - col0 + + col0
----
0

query I rowsort
SELECT ALL col0 * - col2 * 29 FROM tab0
----
-20445
-25230
-278487

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT - 88 * - COUNT( * ) + - 29 col2 FROM tab2
----
235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7369
SELECT - 88 * - COUNT ( * ) + - 29 col2 FROM tab2
----
235

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL MIN( DISTINCT + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL MIN ( DISTINCT + col2 ) AS col0 FROM tab1
----
59

query I rowsort
SELECT + col2 * + + col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7372
SELECT + ( ( - CAST( MAX( DISTINCT - 99 ) AS SIGNED ) ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7372
SELECT + ( ( - CAST ( MAX ( DISTINCT - 99 ) AS INTEGER ) ) ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT ALL + SUM( + ( + + 72 ) ) AS col0 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-7373
SELECT ALL + SUM ( + ( + + 72 ) ) AS col0 FROM tab0
----
216

query II rowsort
SELECT - col0 AS col0, ( - ( - col1 ) ) AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + - 28 + col2 FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-5
12
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7376
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + - 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + - 68 IS NULL
----
0

query I rowsort
SELECT 64 + + + col2 FROM tab0
----
111
163
74

query I rowsort
SELECT col1 + - col0 + col2 AS col2 FROM tab0
----
-56
113
3

query III rowsort
SELECT * FROM tab0 WHERE + + col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT BETWEEN + 15 AND 87
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col0 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT + CAST( + + 6 AS SIGNED ) FROM tab2 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-7382
SELECT + CAST ( + + 6 AS INTEGER ) FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT ALL - - 52 FROM tab0 cor0
----
52
52
52

query I rowsort
SELECT ( 32 ) AS col2 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7385
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT + col1 + + CAST( + - col1 AS DECIMAL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT + col1 + + CAST ( + - col1 AS REAL ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT DISTINCT + ( + col1 ) DIV col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7386
SELECT DISTINCT + ( + col1 ) / col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7387
SELECT + MAX( DISTINCT + + 30 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7387
SELECT + MAX ( DISTINCT + + 30 ) FROM tab0
----
30

query II rowsort
SELECT + 36 AS col1, 32 FROM tab1
----
36
32
36
32
36
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT + MIN( col1 ) AS col0 FROM tab2 WHERE ( ( - col0 ) > - col0 + - col2 )
----
51

skipif mysql # not compatible
query I rowsort label-7389
SELECT + MIN ( col1 ) AS col0 FROM tab2 WHERE ( ( - col0 ) > - col0 + - col2 )
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 56 NOT IN ( + col1, - col1, - col1, + col0 + + 76 - - - 68 * + - col1 * + col2 )
----

query II rowsort
SELECT DISTINCT + + 48 AS col1, + col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + 65 ) FROM tab0 AS cor0
----
-65
-65
-65

query I rowsort
SELECT - 61 AS col2 FROM tab0 cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col1 FROM tab2 AS cor0 WHERE 0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE + 64 + - 97 BETWEEN + - col0 AND col1 * - col2
----

query II rowsort
SELECT DISTINCT 4, - col1 - - col1 AS col2 FROM tab0 cor0
----
4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7398
SELECT col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7398
SELECT col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 44, + 40 AS col0 FROM tab0 WHERE NOT NULL IN ( + col0, col1 + 98 - - + ( + ( + - col2 ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 90 * + col0 > + 46
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 3 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - 66 ) > NULL
----

query I rowsort
SELECT DISTINCT 43 * + - 81 + - 94 FROM tab1 AS cor0
----
-3577

onlyif mysql # aggregate syntax: 
query I rowsort label-7403
SELECT + ( ( COUNT( * ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7403
SELECT + ( ( COUNT ( * ) ) ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL - 86 + - CAST( NULL AS SIGNED ) + + 6 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - 86 + - CAST ( NULL AS INTEGER ) + + 6 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT ( + + MAX( ALL - col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-7406
SELECT DISTINCT ( + + MAX ( ALL - col2 ) ) AS col1 FROM tab0
----
-10

query I rowsort
SELECT DISTINCT - col1 * + col0 + + - col2 AS col0 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT - col0 + + - col0 AS col1 FROM tab0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7409
SELECT ALL 38 * + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
114

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL 38 * + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
114

query I rowsort
SELECT 87 + ( + col2 ) * + - ( + - col1 ) - - col0 AS col0 FROM tab2
----
1306
3231
4048

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 82 IN ( + col0, - 66 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + COUNT( * ) * + 77 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
693

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7412
SELECT DISTINCT + COUNT ( * ) * + 77 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
693

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 39 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT - - 3 * + AVG ( ALL - col2 ) AS col0 FROM tab2 WHERE - ( - 90 ) + 84 < 96
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7416
SELECT DISTINCT + col2 * col2 - - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT + col2 * col2 - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 32 - - col1 AS col2 FROM tab0 cor0
----
-11
-31
49

query I rowsort
SELECT - 35 - 14 FROM tab1 cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - + 97 AS col0 FROM tab1 AS cor0 WHERE NULL = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT DISTINCT COUNT( * ) - + 0 AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7420
SELECT DISTINCT COUNT ( * ) - + 0 AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * + col1 + + col2 - - 0 AS col2 FROM tab0 AS cor0
----
-431
-6514
98

query II rowsort
SELECT DISTINCT col2 AS col0, + 15 AS col1 FROM tab2 AS cor0
----
23
15
40
15
58
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + 45 - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7423
SELECT + 45 - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT ALL - 12 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL - 12 / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7425
SELECT - + CAST( NULL AS SIGNED ) + ( - COUNT( * ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7425
SELECT - + CAST ( NULL AS INTEGER ) + ( - COUNT ( * ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7426
SELECT DISTINCT - CAST( - 88 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE 76 + - col1 BETWEEN + + col0 + + 42 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7426
SELECT DISTINCT - CAST ( - 88 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE 76 + - col1 BETWEEN + + col0 + + 42 AND NULL
----

query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT DISTINCT COUNT( DISTINCT 63 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7428
SELECT DISTINCT COUNT ( DISTINCT 63 ) AS col0 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT DISTINCT COUNT( * ) * 75 AS col1 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT COUNT ( * ) * 75 AS col1 FROM tab0
----
225

onlyif mysql # DIV for integer division: 
query II rowsort label-7430
SELECT - 97 DIV + 93 AS col2, 9 FROM tab0
----
-1
9
-1
9
-1
9

skipif mysql # not compatible
query II rowsort label-7430
SELECT - 97 / + 93 AS col2, 9 FROM tab0
----
-1
9
-1
9
-1
9

query I rowsort
SELECT ( col2 ) * - 91 FROM tab0
----
-4277
-9009
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL + MIN( ALL + 23 ) col0 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7432
SELECT ALL + MIN ( ALL + 23 ) col0 FROM tab1 AS cor0
----
23

query I rowsort
SELECT - + ( + 95 ) AS col0 FROM tab0 AS cor0
----
-95
-95
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + COUNT( ALL 31 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7434
SELECT + COUNT ( ALL 31 ) FROM tab1
----
3

query I rowsort
SELECT ALL - + 96 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT COUNT( - + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7436
SELECT COUNT ( - + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7437
SELECT DISTINCT + 22 * ( COUNT( * ) ) - + 98 AS col2 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + 22 * ( COUNT ( * ) ) - + 98 AS col2 FROM tab0 AS cor0
----
-32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + + 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + col0 + 34 * - + 18 * + col1 * col1 AS col0 FROM tab1 AS cor0 WHERE NULL > col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) - col1 * + - col1 col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT - COUNT( * ) + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT ALL COUNT( * ) + + 49 * - 32 FROM tab2
----
-1565

skipif mysql # not compatible
query I rowsort label-7444
SELECT ALL COUNT ( * ) + + 49 * - 32 FROM tab2
----
-1565

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col1 / + 71 * 99 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7446
SELECT + col2, col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-7446
SELECT + col2, col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 46 * + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 36 BETWEEN - + col2 * - col2 * + col1 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7449
SELECT DISTINCT 49 * + + col1 DIV - col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT 49 * + + col1 / - col1 FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT DISTINCT - - col2 + + - 81 + + col0 * col1 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - - col2 + + - 81 + + col0 * col1 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * col0 - ( 38 ) - 29 AS col2 FROM tab1 AS cor0
----
-4963
-5082
-6255

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IS NOT NULL AND + col0 <> + 41
----

query I rowsort
SELECT DISTINCT + 47 * 10 * + col2 + + 71 * - col2 - - 94 AS col2 FROM tab1
----
23635
27226
38398

onlyif mysql # aggregate syntax: 
query II rowsort label-7454
SELECT DISTINCT COUNT( + - col1 ) - + - 78, + 17 AS col1 FROM tab1 cor0
----
81
17

skipif mysql # not compatible
query II rowsort label-7454
SELECT DISTINCT COUNT ( + - col1 ) - + - 78, + 17 AS col1 FROM tab1 cor0
----
81
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT DISTINCT ( + + MAX( - col2 ) ) AS col1 FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7455
SELECT DISTINCT ( + + MAX ( - col2 ) ) AS col1 FROM tab0 cor0
----
-10

query II rowsort
SELECT - 14 * col1, col0 FROM tab1 AS cor0
----
-196
51
-658
91
-70
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT + - MIN( ALL + 63 ) FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7457
SELECT + - MIN ( ALL + 63 ) FROM tab2 cor0
----
-63

onlyif mysql # aggregate syntax: 
query II rowsort label-7458
SELECT ALL MIN( ALL + col2 ) AS col2, - ( SUM( - col0 ) ) AS col0 FROM tab2 AS cor0
----
23
185

skipif mysql # not compatible
query II rowsort label-7458
SELECT ALL MIN ( ALL + col2 ) AS col2, - ( SUM ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
23
185

query I rowsort
SELECT DISTINCT 94 * - 72 FROM tab2 AS cor0
----
-6768

query I rowsort
SELECT DISTINCT 98 / - 74 + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT col1 * col0 * + col1 * col0 FROM tab2
----
24285184
25250625
5503716

query I rowsort
SELECT - 67 * + col1 * - col1 FROM tab0
----
29547
439587
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 81 * + + 8 col0 FROM tab1
----
59
-648
68
-648
96
-648

query I rowsort
SELECT DISTINCT + + ( + - 6 ) FROM tab0 WHERE NOT + 42 * + 42 IS NULL
----
-6

query II rowsort
SELECT col1 AS col2, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT col2 AS col2, 95 + - + 74 + - col2 AS col2 FROM tab1 WHERE NOT - col0 < - - col0 * + 76
----

query I rowsort
SELECT col0 * + - 26 FROM tab0
----
-2262
-2522
-390

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7468
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN - col1 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7468
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN - col1 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7469
SELECT ALL + COUNT( * ) DIV 64 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL + COUNT ( * ) / 64 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7470
SELECT DISTINCT - 81 DIV - ( 76 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7470
SELECT DISTINCT - 81 / - ( 76 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT 12 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
12
1
12
21
12
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - 99 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-7473
SELECT - - col1, col2 DIV col0 DIV col2 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-7473
SELECT - - col1, col2 / col0 / col2 * + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT - ( - + ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7474
SELECT - ( - + ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col1 IS NOT NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( ( + 31 * 4 * 13 + - + 13 BETWEEN NULL AND NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7477
SELECT DISTINCT ( + CAST( - AVG ( ALL + 3 ) AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT ( + CAST ( - AVG ( ALL + 3 ) AS INTEGER ) ) FROM tab0
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT DISTINCT + + 80 DIV - col1 - col0 - + + col2 * + 27 + + - 75 AS col1 FROM tab2 cor0
----
-1220
-1717
-743

skipif mysql # not compatible
query I rowsort label-7479
SELECT DISTINCT + + 80 / - col1 - col0 - + + col2 * + 27 + + - 75 AS col1 FROM tab2 cor0
----
-1220
-1717
-743

query I rowsort
SELECT + 71 * 95 AS col0 FROM tab0 cor0
----
6745
6745
6745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 9 * - 33 col0, - col1 + + 76 - col0 * + - col2 FROM tab1 AS cor0
----
297
4958
297
5086
297
6217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7482
SELECT col2 * - CAST( NULL AS SIGNED ) * 61 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7482
SELECT col2 * - CAST ( NULL AS INTEGER ) * 61 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7483
SELECT - col0 DIV + 36 FROM tab0 AS cor0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-7483
SELECT - col0 / + 36 FROM tab0 AS cor0
----
-2
-2
0

query I rowsort
SELECT ALL 65 + - col2 FROM tab0 AS cor0
----
-34
18
55

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT ( - 77 ) + col1 + 70 DIV + - ( + col2 ) FROM tab0
----
-63
-76
3

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT ( - 77 ) + col1 + 70 / + - ( + col2 ) FROM tab0
----
-63
-76
3

query I rowsort
SELECT ALL col0 + col0 * + col1 * - - 86 AS col2 FROM tab0
----
104505
157209
8439

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7487
SELECT * FROM tab1 WHERE - col2 * + - col0 * col1 * col1 + - 51 - - col2 + 3 - col1 * col1 + - + CAST( NULL AS SIGNED ) + - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-7487
SELECT * FROM tab1 WHERE - col2 * + - col0 * col1 * col1 + - 51 - - col2 + 3 - col1 * col1 + - + CAST ( NULL AS INTEGER ) + - col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT DISTINCT SUM( ALL + col0 ) * - + SUM( DISTINCT + + col0 ) + + - 55 AS col2 FROM tab1
----
-51584

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT SUM ( ALL + col0 ) * - + SUM ( DISTINCT + + col0 ) + + - 55 AS col2 FROM tab1
----
-51584

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7489
SELECT * FROM tab0 WHERE + col0 * 6 * - CAST( NULL AS SIGNED ) / - + col2 + - col2 / + CAST( NULL AS SIGNED ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7489
SELECT * FROM tab0 WHERE + col0 * 6 * - CAST ( NULL AS INTEGER ) / - + col2 + - col2 / + CAST ( NULL AS INTEGER ) + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - col2 BETWEEN NULL AND + + col2
----

query II rowsort
SELECT ALL col1 AS col1, col1 - - + col2 * col0 * + + col1 + - ( - + 77 ) FROM tab2
----
51
54086
67
291594
77
197274

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT ALL COUNT( * ) + + + COUNT( * ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7492
SELECT ALL COUNT ( * ) + + + COUNT ( * ) col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7494
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( 9 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7494
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( 9 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL + COUNT( + 1 ) + + 63 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + COUNT ( + 1 ) + + 63 FROM tab0
----
66

query I rowsort
SELECT ALL col1 - - 26 FROM tab1
----
31
40
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( + 2 ) * + - col1 + + + col2 + + - 0 + + - col2 * - + col2 * ( - - col0 ) * 20 + - col2 - - col0 * + + col1 NOT BETWEEN col2 AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - 40, - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-40
-117
-40
-125
-40
-74

query II rowsort
SELECT ALL col0 AS col1, col0 + + 91 * col2 FROM tab0 AS cor0
----
15
4292
87
997
97
9106

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7500
SELECT SUM( ALL - 80 ) * 29 DIV 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-7500
SELECT SUM ( ALL - 80 ) * 29 / 90 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL + MIN( DISTINCT + col0 ) * + 49 FROM tab2
----
2254

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + MIN ( DISTINCT + col0 ) * + 49 FROM tab2
----
2254

onlyif mysql # aggregate syntax: 
query I rowsort label-7502
SELECT DISTINCT + 47 * - COUNT( col2 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT + 47 * - COUNT ( col2 ) FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7503
SELECT + CAST( - col1 AS SIGNED ) DIV - + col1 AS col2, + 66 FROM tab0
----
1
66
1
66
1
66

skipif mysql # not compatible
query II rowsort label-7503
SELECT + CAST ( - col1 AS INTEGER ) / - + col1 AS col2, + 66 FROM tab0
----
1
66
1
66
1
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7504
SELECT - CAST( NULL AS SIGNED ) / + col1 AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-7504
SELECT - CAST ( NULL AS INTEGER ) / + col1 AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT - SUM( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT - SUM ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7506
SELECT ALL col1 * col2 DIV col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7506
SELECT ALL col1 * col2 / col2 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7507
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7507
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT - 23 * + + COUNT( * ) AS col0 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-7508
SELECT - 23 * + + COUNT ( * ) AS col0 FROM tab1
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7509
SELECT ALL * FROM tab2 WHERE - - 81 * - col1 + - col2 + col1 + + + col0 * - CAST( NULL AS SIGNED ) - - - ( 7 ) NOT IN ( + col0, 81, 96 )
----

skipif mysql # not compatible
query III rowsort label-7509
SELECT ALL * FROM tab2 WHERE - - 81 * - col1 + - col2 + col1 + + + col0 * - CAST ( NULL AS INTEGER ) - - - ( 7 ) NOT IN ( + col0, 81, 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + + COUNT( * ) FROM tab2 WHERE col1 + + 46 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT + + COUNT ( * ) FROM tab2 WHERE col1 + + 46 IS NULL
----
0

query I rowsort
SELECT ALL + + 34 * - 70 + - col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT ALL ( - 55 ) AS col2 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL col1 * + 11 * - col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - col0 * - 90
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( + 23 ) ) - - + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7515
SELECT + col2 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT + col2 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 68 * + + col2 * col2 + + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
103872
223727
33626

onlyif mysql # aggregate syntax: 
query I rowsort label-7517
SELECT SUM( 68 ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-7517
SELECT SUM ( 68 ) FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT DISTINCT - ( - COUNT( * ) ) + - 92 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - ( - COUNT ( * ) ) + - 92 FROM tab2
----
-89

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE - col1 IS NOT NULL
----
196
62
97

query I rowsort
SELECT DISTINCT - - col2 + - 89 * col0 FROM tab0 AS cor0
----
-1288
-7733
-8534

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7521
SELECT - CAST( NULL AS SIGNED ) * - + SUM( - col0 ) + 35 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7521
SELECT - CAST ( NULL AS INTEGER ) * - + SUM ( - col0 ) + 35 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT - COUNT( ALL - + 90 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7522
SELECT - COUNT ( ALL - + 90 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7523
SELECT col1 * + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7523
SELECT col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT DISTINCT - MIN( ALL + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-7524
SELECT DISTINCT - MIN ( ALL + col1 ) FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7525
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT 70 = - - CAST( NULL AS SIGNED ) - - - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7525
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT 70 = - - CAST ( NULL AS INTEGER ) - - - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7527
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7527
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT MIN( - + 37 ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-7528
SELECT MIN ( - + 37 ) FROM tab1 AS cor0
----
-37

query II rowsort
SELECT + + col2 AS col0, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT + col2 * + 52 * - CAST( + ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-160160
-202072
-60996

skipif mysql # not compatible
query I rowsort label-7530
SELECT + col2 * + 52 * - CAST ( + ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-160160
-202072
-60996

query II rowsort
SELECT ALL col2 * - 13 AS col1, - col2 FROM tab1
----
-1248
-96
-767
-59
-884
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT DISTINCT + ( - + MAX( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT + ( - + MAX ( col2 ) ) FROM tab2
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7533
SELECT DISTINCT ( - 89 ) * - CAST( NULL AS SIGNED ) + - - MIN( ALL + - 55 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT ( - 89 ) * - CAST ( NULL AS INTEGER ) + - - MIN ( ALL + - 55 ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, ( - col2 ) * - + col2 * col1 FROM tab2
----
51
26979
67
225388
77
123200

query I rowsort
SELECT 97 FROM tab2 WHERE NOT NULL IS NOT NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7536
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7536
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT - MAX( ALL + 3 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7537
SELECT - MAX ( ALL + 3 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + col1 * + col1 * + col2 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT ALL 86 * - col2 AS col0 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7540
SELECT DISTINCT - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col2 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + + col0 * - 70 FROM tab0 AS cor0
----
-1050
-6090
-6790

query I rowsort
SELECT DISTINCT + 56 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-43
46
9

query I rowsort
SELECT - col0 * + - col1 AS col2 FROM tab0 cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7544
SELECT ALL + col2 DIV + 41 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-46
-97

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + col2 / + 41 + - col2 AS col1 FROM tab0 AS cor0
----
-10
-46
-97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7545
SELECT ALL + - col0 DIV + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + - col0 / + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + 38 + col0 AS col0 FROM tab0
----
125
135
53

query I rowsort
SELECT DISTINCT + col1 + col1 - col1 * + - col2 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT + 72 + ( col0 ) * col1 AS col0 FROM tab2
----
2418
5000
5097

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT ALL + COUNT( * ) - - 15 col1 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7549
SELECT ALL + COUNT ( * ) - - 15 col1 FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST( + - col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 cor0 WHERE CAST ( + - col0 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - - col2 - 55 AS col2 FROM tab1 AS cor0
----
13
4
41

query II rowsort
SELECT ALL col2 AS col2, - 14 AS col1 FROM tab2 AS cor0
----
23
-14
40
-14
58
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT ALL + - SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL + - SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7554
SELECT + CAST( 59 AS SIGNED ) FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-7554
SELECT + CAST ( 59 AS INTEGER ) FROM tab1
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT ALL + 25 - COUNT( * ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + 25 - COUNT ( * ) FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT MAX( - col0 ) FROM tab1 WHERE ( ( - 8 ) * - col1 ) NOT BETWEEN + col1 / - col0 AND col0 * - col0
----
-51

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT MAX ( - col0 ) FROM tab1 WHERE ( ( - 8 ) * - col1 ) NOT BETWEEN + col1 / - col0 AND col0 * - col0
----
-51

query I rowsort
SELECT DISTINCT + 1 * 42 + + 66 FROM tab1
----
108

query I rowsort
SELECT + col0 / - col1 AS col1 FROM tab0 WHERE col1 + col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col1 + - col1 >= ( + 9 + - col0 * col2 )
----

query I rowsort
SELECT col2 + + col1 * - col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7561
SELECT DISTINCT - COUNT( col2 ) DIV - COUNT( * ) + + MIN( DISTINCT CAST( col2 AS SIGNED ) ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - COUNT ( col2 ) / - COUNT ( * ) + + MIN ( DISTINCT CAST ( col2 AS INTEGER ) ) FROM tab2
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7562
SELECT 47 + - SUM( ALL col1 ) FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-7562
SELECT 47 + - SUM ( ALL col1 ) FROM tab2
----
-148

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) = + 87
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT - col1 FROM tab2 WHERE + col2 * - col2 + + col0 BETWEEN + col0 AND 90 * + 14
----

query I rowsort
SELECT col1 * - col2 + ( 70 ) AS col2 FROM tab2
----
-1103
-3010
-3816

query I rowsort
SELECT col0 + + ( - 66 ) * - 44 AS col2 FROM tab1
----
2955
2989
2995

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL - col2 + col2 DIV - col1 AS col2 FROM tab1
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL - col2 + col2 / - col1 AS col2 FROM tab1
----
-102
-69
-70

query I rowsort
SELECT DISTINCT 53 FROM tab0 WHERE NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > 23 + + 48
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 87 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 93 ) + - col2 AS col0 FROM tab2
----
35
53
70

query I rowsort
SELECT 24 * 4 + + 90 FROM tab1
----
186
186
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT DISTINCT + AVG ( ALL CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT + AVG ( ALL CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 68 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= col1 * ( - col2 * 97 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7578
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + 96 * 29 AS col1 FROM tab0 AS cor0
----
2794
2831
2883

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 84 * - 15 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7580
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 84 * - 15 IS NOT NULL
----
3

query I rowsort
SELECT ALL col2 + 5 FROM tab2
----
28
45
63

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7582
SELECT ALL * FROM tab0 WHERE ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7582
SELECT ALL * FROM tab0 WHERE ( CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT - col1 + + 30 * col2 AS col2 FROM tab0
----
1329
279
2969

query I rowsort
SELECT DISTINCT - - ( - col1 ) FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT col0 + 48 FROM tab2 AS cor0 WHERE col1 * - col0 <> ( - col2 )
----
112
123
94

query I rowsort
SELECT DISTINCT 43 - 4 FROM tab1 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT - 50 - COUNT( * ) FROM tab0 AS cor0 WHERE ( col1 * + col2 + + 33 * + ( 13 ) ) IS NULL
----
-50

skipif mysql # not compatible
query I rowsort label-7587
SELECT - 50 - COUNT ( * ) FROM tab0 AS cor0 WHERE ( col1 * + col2 + + 33 * + ( 13 ) ) IS NULL
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT - 55 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT - 55 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT DISTINCT + - 20 + + COUNT( * ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + - 20 + + COUNT ( * ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT + - 15 * col2 FROM tab1 AS cor0
----
-1020
-1440
-885

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7591
SELECT - COUNT( + col0 ) DIV 85 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT - COUNT ( + col0 ) / 85 AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( + 57 - - col1 * - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 42 + 90 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + col0 + + col1 AS col0 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE + 24 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE + 24 IS NULL
----

query I rowsort
SELECT + col1 * + - ( col0 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT 82 - + COUNT( * ) AS col1 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-7597
SELECT 82 - + COUNT ( * ) AS col1 FROM tab2
----
79

query I rowsort
SELECT ALL + col0 + + + col0 AS col2 FROM tab1
----
102
170
182

query III rowsort
SELECT * FROM tab1 WHERE + col1 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 - col1 col1 FROM tab2
----
-28
-44
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7601
SELECT DISTINCT + CAST( - ( + col0 ) AS SIGNED ) DIV - col1 + + 99 FROM tab1
----
100
102
116

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + CAST ( - ( + col0 ) AS INTEGER ) / - col1 + + 99 FROM tab1
----
100
102
116

onlyif mysql # aggregate syntax: 
query I rowsort label-7602
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NULL > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT - 45 FROM tab2 WHERE - col2 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7603
SELECT - 45 FROM tab2 WHERE - col2 NOT IN ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7604
SELECT ALL col2 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7604
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col0 ) - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7606
SELECT + - ( + + CAST( NULL AS SIGNED ) ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7606
SELECT + - ( + + CAST ( NULL AS INTEGER ) ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - MIN( ALL - col1 ) * + 61 FROM tab1
----
2867

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - MIN ( ALL - col1 ) * + 61 FROM tab1
----
2867

query I rowsort
SELECT DISTINCT - + 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT MAX( - 96 ) FROM tab0 WHERE NOT ( - col1 * 54 ) NOT BETWEEN + col0 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7609
SELECT MAX ( - 96 ) FROM tab0 WHERE NOT ( - col1 * 54 ) NOT BETWEEN + col0 AND col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT + col0 DIV + + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT + col0 / + + col1 FROM tab0 AS cor0
----
0
4
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 86 col2, col1 AS col2 FROM tab0 AS cor0
----
-86
1
-86
21
-86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT ALL - + COUNT( DISTINCT - - 17 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - + COUNT ( DISTINCT - - 17 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab0 AS cor0 WHERE NOT - col1 / col2 * col2 IS NULL
----
58
58
58

query II rowsort
SELECT + 32 AS col2, + col1 + + col1 * + col1 FROM tab1 AS cor0
----
32
210
32
2256
32
30

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col1 / - 16 IN ( - col2 * - col0 + ( - 8 ) / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT - CAST( + + 78 AS SIGNED ) col1 FROM tab2 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7617
SELECT - CAST ( + + 78 AS INTEGER ) col1 FROM tab2 AS cor0
----
-78
-78
-78

query II rowsort
SELECT ALL + 7 AS col1, - 82 + col2 AS col0 FROM tab0 AS cor0
----
7
-35
7
-72
7
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL - MAX( + col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7619
SELECT ALL - MAX ( + col1 ) AS col0 FROM tab2 cor0
----
-77

query I rowsort
SELECT 36 AS col1 FROM tab2 WHERE NOT ( NULL ) BETWEEN - col0 * + col1 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7621
SELECT DISTINCT COUNT( * ) + - 58 col0 FROM tab2
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7621
SELECT DISTINCT COUNT ( * ) + - 58 col0 FROM tab2
----
-55

query I rowsort
SELECT ALL col1 + + + 12 FROM tab1
----
17
26
59

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 - - 19 - col2 BETWEEN ( col2 ) AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + COUNT( * ) col0 FROM tab0 WHERE NOT + col2 <> 13
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7624
SELECT + COUNT ( * ) col0 FROM tab0 WHERE NOT + col2 <> 13
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT ALL + SUM( + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7625
SELECT ALL + SUM ( + - col2 ) FROM tab0
----
-156

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7626
SELECT * FROM tab2 WHERE + 93 * CAST( NULL AS DECIMAL ) <= ( - 14 )
----

skipif mysql # not compatible
query III rowsort label-7626
SELECT * FROM tab2 WHERE + 93 * CAST ( NULL AS REAL ) <= ( - 14 )
----

query I rowsort
SELECT col0 + ( - - 38 ) FROM tab1
----
123
129
89

query III rowsort
SELECT * FROM tab1 WHERE - 57 * + - 77 BETWEEN ( - 9 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT + 60 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7629
SELECT + 60 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( 15 + + 11 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT - COUNT( * ) + - + ( - COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7631
SELECT - COUNT ( * ) + - + ( - COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - 90 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + 55 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - COUNT( - 87 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7634
SELECT - COUNT ( - 87 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT + col2 * + col2 DIV col2 + + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7635
SELECT + col2 * + col2 / col2 + + - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IS NULL AND NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - + COUNT( * ) - - MAX( + col2 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-7637
SELECT - + COUNT ( * ) - - MAX ( + col2 ) FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7638
SELECT 47 - - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7638
SELECT 47 - - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7639
SELECT DISTINCT col0 - + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT col0 - + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + MAX( ALL + 64 ) AS col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + MAX ( ALL + 64 ) AS col0 FROM tab0 AS cor0
----
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <= ( + 61 )
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col2 BETWEEN - ( + col0 ) + - col2 * + col0 AND ( NULL ) )
----

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab1 WHERE NOT ( col2 ) >= + 94
----
138
90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NOT ( NULL ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - 94 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT ( + 66 * + - ( - col1 ) * - - col0 ) <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7647
SELECT + COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7647
SELECT + COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7648
SELECT DISTINCT - 16 DIV - - 42 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT - 16 / - - 42 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab0 cor0 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + 3 AS col0, - col2 - - 73 FROM tab2 AS cor0
----
3
15
3
33
3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7651
SELECT ALL MIN( + col2 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 * - + 14 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL MIN ( + col2 ) FROM tab0 AS cor0 WHERE NULL NOT IN ( col1 * - + 14 )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7653
SELECT DISTINCT - COUNT( * ) AS col2, + MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3
46

skipif mysql # not compatible
query II rowsort label-7653
SELECT DISTINCT - COUNT ( * ) AS col2, + MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-3
46

query I rowsort
SELECT ALL - col2 * - + 91 FROM tab0
----
4277
9009
910

onlyif mysql # aggregate syntax: 
query I rowsort label-7655
SELECT - COUNT( ALL + + 81 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7655
SELECT - COUNT ( ALL + + 81 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT DISTINCT MAX( ALL 25 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7656
SELECT DISTINCT MAX ( ALL 25 ) AS col0 FROM tab0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-7657
SELECT ALL ( - col0 ) DIV 87 - - 31 FROM tab0
----
30
30
31

skipif mysql # not compatible
query I rowsort label-7657
SELECT ALL ( - col0 ) / 87 - - 31 FROM tab0
----
30
30
31

query I rowsort
SELECT - + 60 AS col0 FROM tab1 cor0
----
-60
-60
-60

query II rowsort
SELECT - + col2 * col0, + col0 * - col0 AS col1 FROM tab2 AS cor0
----
-1058
-2116
-2560
-4096
-4350
-5625

query I rowsort
SELECT col1 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - 56 BETWEEN + 85 * + + col2 AND + - ( - col1 ) * + col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE col0 >= - 81
----
-10
-47
-99

query II rowsort
SELECT - 83 AS col0, 20 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7663
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 61 <= - col1 * - - ( + 6 )
----
3

skipif mysql # not compatible
query I rowsort label-7663
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 61 <= - col1 * - - ( + 6 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7664
SELECT - 65 * - + 9 + + col0 + - CAST( - 27 AS SIGNED ) + col2 col2 FROM tab0 AS cor0
----
674
709
808

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7664
SELECT - 65 * - + 9 + + col0 + - CAST ( - 27 AS INTEGER ) + col2 col2 FROM tab0 AS cor0
----
674
709
808

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT ALL + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7665
SELECT ALL + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT BETWEEN + col1 + + - 19 AND + + col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT - 75 AS col2 FROM tab0 WHERE ( + 6 ) BETWEEN - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) - - + col0 / - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7667
SELECT - 75 AS col2 FROM tab0 WHERE ( + 6 ) BETWEEN - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) - - + col0 / - CAST ( + col0 AS INTEGER ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 <= + - col0 * col1
----

query II rowsort
SELECT col1 AS col2, 26 FROM tab2
----
51
26
67
26
77
26

query I rowsort
SELECT + 67 AS col0 FROM tab1 WHERE ( - col2 / - col1 + - col1 + + col2 * col2 + - + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7671
SELECT - 38, - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 WHERE + 3 BETWEEN NULL AND col2 - - col2
----

skipif mysql # not compatible
query II rowsort label-7671
SELECT - 38, - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 WHERE + 3 BETWEEN NULL AND col2 - - col2
----

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE - - 61 + - + ( 62 ) NOT IN ( + col0, col1 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT + col0 * col2 DIV - + 12 FROM tab2
----
-213
-362
-88

skipif mysql # not compatible
query I rowsort label-7673
SELECT + col0 * col2 / - + 12 FROM tab2
----
-213
-362
-88

query I rowsort
SELECT ALL + - col1 + - 80 FROM tab2 WHERE NOT ( ( NOT NULL <= - col1 / + - 79 + + col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7675
SELECT - 37 + + CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
-16
-36
44

skipif mysql # not compatible
query I rowsort label-7675
SELECT - 37 + + CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
-16
-36
44

query I rowsort
SELECT - AVG ( - + col1 ) AS col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + - col1 - col0 AS col2, - col1 * col1 FROM tab0 cor0
----
-108
-441
-96
-6561
-98
-1

query I rowsort
SELECT ALL - + 75 * col1 * 74 FROM tab1 AS cor0
----
-260850
-27750
-77700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7679
SELECT CAST( - 87 AS SIGNED ) * - - 42 + + - SUM( + col0 ) FROM tab2 AS cor0
----
-3839

skipif mysql # not compatible
query I rowsort label-7679
SELECT CAST ( - 87 AS INTEGER ) * - - 42 + + - SUM ( + col0 ) FROM tab2 AS cor0
----
-3839

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 8
----

query I rowsort
SELECT 66 * + col0 FROM tab1
----
3366
5610
6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT 74 * + col2 * CAST( - col1 AS SIGNED ) FROM tab2
----
-227920
-287564
-86802

skipif mysql # not compatible
query I rowsort label-7682
SELECT 74 * + col2 * CAST ( - col1 AS INTEGER ) FROM tab2
----
-227920
-287564
-86802

onlyif mysql # aggregate syntax: 
query II rowsort label-7683
SELECT DISTINCT 13 * COUNT( * ) * + 31 + + - 79 - + + COUNT( * ), 93 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
1127
93

skipif mysql # not compatible
query II rowsort label-7683
SELECT DISTINCT 13 * COUNT ( * ) * + 31 + + - 79 - + + COUNT ( * ), 93 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
1127
93

query II rowsort
SELECT - 59 AS col1, col2 - - col2 FROM tab1
----
-59
118
-59
136
-59
192

query II rowsort
SELECT ALL - + col2, col2 FROM tab2 WHERE + 60 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 98 ) IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, + 6 FROM tab1 AS cor0
----
-51
6
-85
6
-91
6

query II rowsort
SELECT ALL - col2 * col2 - + col2, col1 FROM tab2 AS cor0
----
-1640
77
-3422
67
-552
51

query I rowsort
SELECT DISTINCT + + 28 * - + col1 * + col1 FROM tab2 AS cor0
----
-125692
-166012
-72828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - - col2 AND + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( + 35 ) * - - col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7692
SELECT ALL + CAST( - AVG ( DISTINCT + 39 ) AS SIGNED ) DIV - - 66 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL + CAST ( - AVG ( DISTINCT + 39 ) AS INTEGER ) / - - 66 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + col1 ) FROM tab2 WHERE NOT + col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + ( 31 ) * - COUNT( ALL - 6 ) * 41 * - 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
617706

skipif mysql # not compatible
query I rowsort label-7694
SELECT + ( 31 ) * - COUNT ( ALL - 6 ) * 41 * - 54 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
617706

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7696
SELECT ALL - 58 AS col2, COUNT( * ) FROM tab0
----
-58
3

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL - 58 AS col2, COUNT ( * ) FROM tab0
----
-58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT MIN( ALL - 44 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-7697
SELECT MIN ( ALL - 44 ) FROM tab1 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + 70 BETWEEN - - col0 AND + + col1 * - + 8 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7699
SELECT DISTINCT - ( - COUNT( - 56 ) ) + + 79 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
79

skipif mysql # not compatible
query I rowsort label-7699
SELECT DISTINCT - ( - COUNT ( - 56 ) ) + + 79 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT DISTINCT + 37 + + COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-7700
SELECT DISTINCT + 37 + + COUNT ( * ) FROM tab0 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7702
SELECT * FROM tab2 AS cor0 WHERE + col1 * 78 + + + CAST( ( + 36 ) AS SIGNED ) * + col2 - col0 NOT BETWEEN NULL AND - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7702
SELECT * FROM tab2 AS cor0 WHERE + col1 * 78 + + + CAST ( ( + 36 ) AS INTEGER ) * + col2 - col0 NOT BETWEEN NULL AND - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 - + col1 FROM tab1 AS cor0 WHERE 92 * - 12 * + 13 / - - 3 + 67 + + - 23 + + ( - col0 ) NOT BETWEEN ( - + col1 ) AND ( NULL )
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7704
SELECT ALL col1 + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7704
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - MAX( - col1 ) FROM tab2 WHERE NULL IN ( - ( - col1 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-7705
SELECT - MAX ( - col1 ) FROM tab2 WHERE NULL IN ( - ( - col1 ) )
----
NULL

query I rowsort
SELECT ALL - col1 + + + col0 - + - 33 AS col1 FROM tab0
----
-33
129
99

query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab0, tab2 AS cor0
----
15

query I rowsort
SELECT ( - - col0 ) FROM tab1 WHERE + 57 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 >= col1 - + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 60 + + col1 AS col1, col2 AS col0 FROM tab2
----
111
23
127
58
137
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - COUNT( * ) FROM tab2 WHERE - 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT - COUNT ( * ) FROM tab2 WHERE - 32 IS NULL
----
0

query I rowsort
SELECT 36 + - col2 + + col1 FROM tab1 AS cor0
----
-18
-46
15

query I rowsort
SELECT DISTINCT - - ( + col0 ) * + 81 AS col0 FROM tab0 AS cor0
----
1215
7047
7857

query I rowsort
SELECT + 17 + + ( - 60 ) FROM tab1 AS cor0
----
-43
-43
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 35 * + 74 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 56 FROM tab1 WHERE 3 IS NOT NULL
----
56
56
56

query I rowsort
SELECT + 87 AS col0 FROM tab0 WHERE NULL IS NULL
----
87
87
87

query III rowsort
SELECT * FROM tab1 WHERE col2 + + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT DISTINCT - 76 + COUNT( * ) * - 1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7719
SELECT DISTINCT - 76 + COUNT ( * ) * - 1 FROM tab1
----
-79

query I rowsort
SELECT - col2 - + - 91 FROM tab0 AS cor0
----
-8
44
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 10 col0 FROM tab1 AS cor0
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - 10 + - - SUM( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7722
SELECT - 10 + - - SUM ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + + ( + col2 ) * - col0 / - - col0 BETWEEN ( 47 * + col2 * + 34 * + + 21 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7724
SELECT - + CAST( NULL AS SIGNED ) * 5 + + + 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-7724
SELECT - + CAST ( NULL AS INTEGER ) * 5 + + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 96 FROM tab2 WHERE NOT - col1 + 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7726
SELECT + COUNT( * ) * - + COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7726
SELECT + COUNT ( * ) * - + COUNT ( * ) col1 FROM tab1
----
-9

query II rowsort
SELECT col2 AS col0, col2 FROM tab2 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT 43 * - + 40 AS col1 FROM tab0
----
-1720
-1720
-1720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) > - + CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - col0 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) > - + CAST ( + + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7730
SELECT + ( - - COUNT( * ) ), 34 AS col0 FROM tab2
----
3
34

skipif mysql # not compatible
query II rowsort label-7730
SELECT + ( - - COUNT ( * ) ), 34 AS col0 FROM tab2
----
3
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT ALL + MIN( DISTINCT + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7731
SELECT ALL + MIN ( DISTINCT + col0 ) FROM tab1
----
51

query I rowsort
SELECT col0 * - 8 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT + ( - 22 ) FROM tab2
----
-22
-22
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7734
SELECT ALL SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7734
SELECT ALL SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7735
SELECT - COUNT( DISTINCT + - ( + 1 ) ) DIV - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7735
SELECT - COUNT ( DISTINCT + - ( + 1 ) ) / - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 76 + col0 + col0 * - col0 * + - ( + ( 7 ) ) * - ( - col1 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 4 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

query I rowsort
SELECT DISTINCT + 65 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
65

query I rowsort
SELECT ALL 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7740
SELECT + - CAST( NULL AS SIGNED ) * AVG ( + ( + - 61 ) ) + - - CAST( + COUNT( * ) AS DECIMAL ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7740
SELECT + - CAST ( NULL AS INTEGER ) * AVG ( + ( + - 61 ) ) + - - CAST ( + COUNT ( * ) AS REAL ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 * - - 19 FROM tab2 AS cor0
----
-1216
-1425
-874

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7743
SELECT DISTINCT 36 DIV - CAST( - 81 AS SIGNED ) + - + ( + + COUNT( * ) ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7743
SELECT DISTINCT 36 / - CAST ( - 81 AS INTEGER ) + - + ( + + COUNT ( * ) ) col1 FROM tab0
----
-3

query I rowsort
SELECT - 18 AS col0 FROM tab2 WHERE NULL IS NULL
----
-18
-18
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT ALL + COUNT( DISTINCT - - 84 ) DIV - - 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL + COUNT ( DISTINCT - - 84 ) / - - 95 FROM tab0
----
0

query I rowsort
SELECT ALL - col0 * - + col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 24 + 13 + 71 FROM tab1
----
108

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( 82 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT + SUM( - + col0 ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-7749
SELECT + SUM ( - + col0 ) AS col1 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT COUNT( ( - 25 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7750
SELECT COUNT ( ( - 25 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - - 68 AS col2 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7752
SELECT DISTINCT * FROM tab2 WHERE ( + + col1 - - + CAST( NULL AS SIGNED ) ) < ( - col0 / + 96 )
----

skipif mysql # not compatible
query III rowsort label-7752
SELECT DISTINCT * FROM tab2 WHERE ( + + col1 - - + CAST ( NULL AS INTEGER ) ) < ( - col0 / + 96 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7753
SELECT ALL 61 DIV - COUNT( * ) AS col1 FROM tab0 cor0
----
-20

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL 61 / - COUNT ( * ) AS col1 FROM tab0 cor0
----
-20

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT 96 + + COUNT( ALL 7 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7755
SELECT 96 + + COUNT ( ALL 7 ) FROM tab2 AS cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT - 49 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-134
-140

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7758
SELECT DISTINCT - 42 DIV + COUNT( * ) AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-7758
SELECT DISTINCT - 42 / + COUNT ( * ) AS col1 FROM tab1
----
-14

query I rowsort
SELECT ALL - 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # DIV for integer division: 
query I rowsort label-7760
SELECT DISTINCT - 21 DIV - 43 * col2 col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7760
SELECT DISTINCT - 21 / - 43 * col2 col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - - 76 ), 87 col0 FROM tab1 AS cor0 WHERE + col0 * col0 IS NOT NULL
----
-76
87
-76
87
-76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7762
SELECT ALL - + COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7762
SELECT ALL - + COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col0 * - col0 AS col2, col1 + ( - + col0 ) FROM tab2 AS cor0 WHERE NOT ( col0 * col2 * - 94 ) NOT IN ( col1 - - 59 )
----

query I rowsort
SELECT + 67 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IN ( col1 ) AND - - ( - - col0 ) * - col0 IS NOT NULL
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab0 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - + 24 + + - col0 AND NULL
----

query II rowsort
SELECT + col1, + 39 + 97 FROM tab1
----
14
136
47
136
5
136

query I rowsort
SELECT - ( - 45 ) FROM tab0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7769
SELECT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL CAST( 58 AS SIGNED ) FROM tab0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL CAST ( 58 AS INTEGER ) FROM tab0
----
58
58
58

query II rowsort
SELECT + col0 * - col2 * - + col2, 26 FROM tab0 WHERE NOT - 64 < NULL
----

query I rowsort
SELECT ALL - col0 * col0 + - - 25 AS col0 FROM tab2 WHERE NOT + + col2 + ( + - col2 ) - col2 * + ( + 10 ) * + 83 / + col0 * - col1 + - col2 IS NULL
----
-2091
-4071
-5600

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT - - ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7773
SELECT - - ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT ALL - SUM( + 3 ) * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - SUM ( + 3 ) * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT - + col2 * - + 47 * - 6 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + col1 IS NOT NULL
----

query II rowsort
SELECT col2 + 24 AS col0, + col1 FROM tab1
----
120
14
83
5
92
47

query I rowsort
SELECT col2 * + ( 47 ) AS col0 FROM tab1
----
2773
3196
4512

query I rowsort
SELECT + col2 * - + 74 FROM tab2
----
-1702
-2960
-4292

onlyif mysql # aggregate syntax: 
query I rowsort label-7779
SELECT + MIN( - + 21 ) * 7 FROM tab2 cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7779
SELECT + MIN ( - + 21 ) * 7 FROM tab2 cor0
----
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col0 * - 62 col0 FROM tab1 AS cor0
----
-303552
-310930
-383656

query I rowsort
SELECT ALL + col0 * + col1 + - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
1288
2368
675

query I rowsort
SELECT ALL + 38 FROM tab2 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT 91 * - COUNT( * ) * - 52 FROM tab0 AS cor0
----
14196

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT 91 * - COUNT ( * ) * - 52 FROM tab0 AS cor0
----
14196

query II rowsort
SELECT DISTINCT - col0 + + col0 AS col1, - 51 AS col0 FROM tab2 AS cor0
----
0
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * 46 + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 49 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
2513
4170
4506

query I rowsort
SELECT ALL - 72 + + col0 AS col0 FROM tab1
----
-21
13
19

query II rowsort
SELECT - 27 * + 78 + - + col0 * - col1 + + col0 AS col0, - col0 AS col0 FROM tab0
----
-1912
-97
-192
-87
-876
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT SUM( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
-121

query I rowsort
SELECT - col2 + 68 - + 81 * + col1 FROM tab2
----
-4086
-5417
-6209

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT + 4 + + COUNT( col1 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT + 4 + + COUNT ( col1 ) AS col0 FROM tab2
----
7

query III rowsort
SELECT * FROM tab0 WHERE - + 20 / + 25 NOT BETWEEN + col2 AND ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + 13 + + 32 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + 13 + + 32 FROM tab2
----
48

query I rowsort
SELECT DISTINCT - 77 + - col0 AS col1 FROM tab1
----
-128
-162
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT COUNT( * ) - - + MAX( ALL - ( - 50 ) ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT COUNT ( * ) - - + MAX ( ALL - ( - 50 ) ) FROM tab2 AS cor0
----
53

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7797
SELECT ALL 18 AS col1, - COUNT( * ) AS col0 FROM tab2
----
18
-3

skipif mysql # not compatible
query II rowsort label-7797
SELECT ALL 18 AS col1, - COUNT ( * ) AS col0 FROM tab2
----
18
-3

query I rowsort
SELECT ( - - 82 ) FROM tab2
----
82
82
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7799
SELECT + + 93 DIV + COUNT( CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7799
SELECT + + 93 / + COUNT ( CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 64 col2 FROM tab2 cor0 WHERE NOT - col1 IS NULL
----
64
64
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2, - 72 FROM tab2 AS cor0
----
23
-72
40
-72
58
-72

query II rowsort
SELECT + + col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT DISTINCT + + SUM( + col1 ) DIV 54 AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7804
SELECT DISTINCT + + SUM ( + col1 ) / 54 AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT DISTINCT - - 12, + col1 FROM tab2 AS cor0
----
12
51
12
67
12
77

query I rowsort
SELECT + col0 + - ( col2 ) * 11 AS col2 FROM tab2 AS cor0 WHERE NOT 89 IS NOT NULL
----

query II rowsort
SELECT ALL + + col1 AS col1, 21 FROM tab0 AS cor0
----
1
21
21
21
81
21

query I rowsort
SELECT DISTINCT + - 1 AS col1 FROM tab2 AS cor0 WHERE - col1 * + - 78 / + col0 <= col0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col2, ( - col1 ) + 38 col1 FROM tab0 cor0
----
1
37
21
17
81
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT 93 * COUNT( * ) * 17 AS col0 FROM tab2
----
4743

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT 93 * COUNT ( * ) * 17 AS col0 FROM tab2
----
4743

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT - col0 * + - CAST( + 59 AS SIGNED ) FROM tab0
----
5133
5723
885

skipif mysql # not compatible
query I rowsort label-7811
SELECT - col0 * + - CAST ( + 59 AS INTEGER ) FROM tab0
----
5133
5723
885

query I rowsort
SELECT DISTINCT + 71 * - col0 AS col1 FROM tab1
----
-3621
-6035
-6461

query I rowsort
SELECT - 12 * - col0 AS col1 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query II rowsort label-7814
SELECT + MIN( 82 ), - 20 AS col1 FROM tab1
----
82
-20

skipif mysql # not compatible
query II rowsort label-7814
SELECT + MIN ( 82 ), - 20 AS col1 FROM tab1
----
82
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT DISTINCT - COUNT( DISTINCT 70 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7815
SELECT DISTINCT - COUNT ( DISTINCT 70 ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 * + 0 IS NULL
----

query II rowsort
SELECT 87, + col1 AS col1 FROM tab1
----
87
14
87
47
87
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7818
SELECT - col2 * + 62 + - 55 DIV col0 AS col0 FROM tab2
----
-1427
-2480
-3596

skipif mysql # not compatible
query I rowsort label-7818
SELECT - col2 * + 62 + - 55 / col0 AS col0 FROM tab2
----
-1427
-2480
-3596

query III rowsort
SELECT * FROM tab1 WHERE + - ( - 20 ) * - 93 = - 37
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7820
SELECT + - 34 + - + col2 - CAST( NULL AS DECIMAL ) * + + col2 * - col1 * + + 5 + - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT + - 34 + - + col2 - CAST ( NULL AS REAL ) * + + col2 * - col1 * + + 5 + - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 53 FROM tab2 cor0 WHERE NULL IS NULL
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT + COUNT( * ) + - 58 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-7822
SELECT + COUNT ( * ) + - 58 FROM tab2 AS cor0
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( + - col1 ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT - 58, col0 FROM tab2 AS cor0
----
-58
46
-58
64
-58
75

query III rowsort
SELECT * FROM tab2 WHERE col2 BETWEEN col2 * - col2 * + + ( + col2 ) AND NULL
----

query I rowsort
SELECT ALL col0 + - col0 + + col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT - ( col0 ) * - 55 + + - 9 AS col1 FROM tab1
----
2796
4666
4996

query I rowsort
SELECT 65 * 74 FROM tab0
----
4810
4810
4810

query I rowsort
SELECT DISTINCT col2 + ( + 61 ) AS col2 FROM tab1
----
120
129
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col0 + - 59 + - col1 col1 FROM tab0
----
1075
1747
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL 44 + + + COUNT( * ) AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL 44 + + + COUNT ( * ) AS col0 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT COUNT( + col0 ) - 63 col1 FROM tab2
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7833
SELECT DISTINCT COUNT ( + col0 ) - 63 col1 FROM tab2
----
-60

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE col2 BETWEEN 56 / - + col1 AND NULL
----

query II rowsort
SELECT ALL - col0 - - col2, col2 AS col1 FROM tab1 cor0
----
-23
68
-26
59
45
96

query I rowsort
SELECT 54 * col1 AS col2 FROM tab0 AS cor0
----
1134
4374
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT - MIN( + 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - MIN ( + 7 ) AS col2 FROM tab2 AS cor0
----
-7

query I rowsort
SELECT ALL + col0 * + col2 + col1 AS col2 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT + - 28 FROM tab2 AS cor0 WHERE NOT 22 NOT BETWEEN + col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT - col0 DIV 64 AS col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7840
SELECT - col0 / 64 AS col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( + - 66 ) FROM tab2 cor0
----
-66

query I rowsort
SELECT DISTINCT + 36 * + 45 FROM tab1 AS cor0
----
1620

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT COUNT( * ) + + 46 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-7844
SELECT COUNT ( * ) + + 46 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL < - col1
----
0

query I rowsort
SELECT + + 56 AS col0 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query II rowsort label-7846
SELECT + 28, MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
28
-23

skipif mysql # not compatible
query II rowsort label-7846
SELECT + 28, MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
28
-23

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( 7 ) AND - - col0
----

query I rowsort
SELECT ALL col0 * + - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT 79 * 59 AS col0 FROM tab1
----
4661
4661
4661

query I rowsort
SELECT ALL - 10 * + - col2 * - col1 AS col1 FROM tab1
----
-13440
-2950
-31960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT ALL - ( - + col0 ) * + + col2 FROM tab2 WHERE NOT + + CAST( + col1 AS SIGNED ) * - + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7851
SELECT ALL - ( - + col0 ) * + + col2 FROM tab2 WHERE NOT + + CAST ( + col1 AS INTEGER ) * - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + + col1 + + col0 + - - 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, col2 - col2 FROM tab1
----
59
0
68
0
96
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT DISTINCT - - col1 DIV col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - - col1 / col1 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7855
SELECT + CAST( NULL AS SIGNED ) + + MIN( 50 ) * - COUNT( * ) * + SUM( ALL col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT + CAST ( NULL AS INTEGER ) + + MIN ( 50 ) * - COUNT ( * ) * + SUM ( ALL col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7856
SELECT - col1 + + 31 + 2 + + 2 + 76 * col1 + col0 DIV 55 FROM tab2 AS cor0
----
3860
5061
5811

skipif mysql # not compatible
query I rowsort label-7856
SELECT - col1 + + 31 + 2 + + 2 + 76 * col1 + col0 / 55 FROM tab2 AS cor0
----
3860
5061
5811

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT DISTINCT + + SUM( ALL + ( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT + + SUM ( ALL + ( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 66 ) col0 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-7859
SELECT DISTINCT + COUNT( * ) AS col2, + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
81

skipif mysql # not compatible
query II rowsort label-7859
SELECT DISTINCT + COUNT ( * ) AS col2, + 81 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7860
SELECT + ( + CAST( ( COUNT( * ) ) AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7860
SELECT + ( + CAST ( ( COUNT ( * ) ) AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( + + ( - 58 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

query I rowsort
SELECT ALL 43 * + 75 * + 85 + - col1 + ( col1 ) * col1 FROM tab0
----
274125
274545
280605

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7863
SELECT * FROM tab1 AS cor0 WHERE CAST( + - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7863
SELECT * FROM tab1 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7864
SELECT - - col2 * col0 - - 93 + 75 + + col0 + col0 DIV - 3 + + - col2 * - col1 * 85 FROM tab2 AS cor0
----
100962
264571
334878

skipif mysql # not compatible
query I rowsort label-7864
SELECT - - col2 * col0 - - 93 + 75 + + col0 + col0 / - 3 + + - col2 * - col1 * 85 FROM tab2 AS cor0
----
100962
264571
334878

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 26 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT + SUM( DISTINCT ( - - col0 ) ) AS col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + SUM ( DISTINCT ( - - col0 ) ) AS col1 FROM tab0 AS cor0
----
199

query II rowsort
SELECT + col0 - col2 AS col1, col0 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT ALL - + CAST( 79 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-79
-79
-79

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL - + CAST ( 79 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT DISTINCT MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7870
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 28 - - - ( - 12 ) col2 FROM tab2
----
104
115
86

query I rowsort
SELECT ALL col1 + col1 - - - col2 + col1 AS col1 FROM tab2
----
130
143
191

query I rowsort
SELECT - + col1 / 67 / + + 25 - - 33 + + - ( + col1 ) / + 78 * - col2 / col1 * + - col2 FROM tab1 WHERE + 89 * col0 IS NULL
----

query I rowsort
SELECT ALL col1 - + 9 AS col1 FROM tab0
----
-8
12
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - + col2 >= NULL
----

query I rowsort
SELECT - col1 * 85 AS col2 FROM tab2
----
-4335
-5695
-6545

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT - MIN( ALL col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT - MIN ( ALL col2 ) FROM tab2 AS cor0
----
-23

query II rowsort
SELECT + - 5, + col1 FROM tab0 AS cor0
----
-5
1
-5
21
-5
81

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT NULL IN ( + ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT ALL 45 * + 76 * - 95 * - - ( - COUNT( * ) ) FROM tab0
----
974700

skipif mysql # not compatible
query I rowsort label-7880
SELECT ALL 45 * + 76 * - 95 * - - ( - COUNT ( * ) ) FROM tab0
----
974700

query I rowsort
SELECT DISTINCT - 2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-7882
SELECT + 62 DIV 20 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7882
SELECT + 62 / 20 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7883
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - col0 + col2 * + col0 / - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7883
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - col0 + col2 * + col0 / - col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 65 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7885
SELECT DISTINCT + COUNT( - + col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7885
SELECT DISTINCT + COUNT ( - + col2 ) col1 FROM tab2 cor0
----
3

query I rowsort
SELECT ALL 56 * + col0 - + col1 * + col1 * col1 AS col0 FROM tab0 AS cor0
----
-4389
-530601
5431

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + 61 NOT BETWEEN ( NULL ) AND + col2 * - + col0
----

query I rowsort
SELECT col1 * + 75 + - - col1 AS col0 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT ALL + - 5 FROM tab2 WHERE - + ( ( - col2 ) ) + + 26 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - - col1 IS NOT NULL
----

query I rowsort
SELECT - - col2 + + 56 AS col0 FROM tab1 AS cor0
----
115
124
152

query I rowsort
SELECT col1 + - ( col2 ) AS col1 FROM tab0
----
-98
11
34

query II rowsort
SELECT DISTINCT - col1 AS col1, - col0 FROM tab2 cor0 WHERE - 84 * + col1 * 27 * - col0 IS NOT NULL
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT DISTINCT + - col1 - + col2 + - col1 + col0 FROM tab1 AS cor0
----
-71
-73
16

query II rowsort
SELECT DISTINCT - 35 AS col2, - 0 FROM tab0 AS cor0
----
-35
0

query II rowsort
SELECT - col0 AS col1, 2 FROM tab2 AS cor0
----
-46
2
-64
2
-75
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT MAX( + col1 ) + 91 FROM tab1 AS cor0 WHERE + 80 * - - ( col2 ) IN ( col1, col1 / col1, col1 / col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT MAX ( + col1 ) + 91 FROM tab1 AS cor0 WHERE + 80 * - - ( col2 ) IN ( col1, col1 / col1, col1 / col1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT ALL + COUNT( + CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL + COUNT ( + CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7900
SELECT - - SUM( DISTINCT - 67 ) - + - 60 AS col2 FROM tab0 WHERE - + col0 IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-7900
SELECT - - SUM ( DISTINCT - 67 ) - + - 60 AS col2 FROM tab0 WHERE - + col0 IS NOT NULL
----
-7

query I rowsort
SELECT ALL - 46 + col1 + - 57 + 97 + + 94 AS col0 FROM tab2 WHERE NOT - - 31 * + + col0 IS NULL
----
139
155
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL SUM( ALL col0 ) FROM tab1 WHERE + - col0 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL SUM ( ALL col0 ) FROM tab1 WHERE + - col0 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7903
SELECT DISTINCT + CAST( - + 6 AS SIGNED ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT + CAST ( - + 6 AS INTEGER ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - + 45 FROM tab0 cor0
----
-45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 74 * + - col2 IS NOT NULL
----

query I rowsort
SELECT - ( - col2 ) * - col2 * - col0 AS col0 FROM tab1
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 col2 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT col2 / CAST( NULL AS SIGNED ) + + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7908
SELECT col2 / CAST ( NULL AS INTEGER ) + + + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7909
SELECT COUNT( ALL col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7909
SELECT COUNT ( ALL col0 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 <> - - 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7911
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) >= col1
----

skipif mysql # not compatible
query III rowsort label-7911
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) >= col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + col1 AS col0, col0 AS col1 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT ALL MIN( col1 ) * - 56 FROM tab2 AS cor0
----
-2856

skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL MIN ( col1 ) * - 56 FROM tab2 AS cor0
----
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7916
SELECT ALL CAST( NULL AS SIGNED ) + + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL CAST ( NULL AS INTEGER ) + + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 39 * col2 * - + col2 AS col2, - 73 FROM tab1 AS cor0
----
135759
-73
180336
-73
359424
-73

query I rowsort
SELECT DISTINCT + - 27 + + col2 - - 9 + - - col1 FROM tab0 AS cor0
----
110
13
82

query I rowsort
SELECT ALL - 34 + + col0 AS col2 FROM tab0
----
-19
53
63

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( col0 ) BETWEEN + - col2 * + 48 * - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT - COUNT( * ) * - COUNT( + - 75 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7921
SELECT - COUNT ( * ) * - COUNT ( + - 75 ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT ( - 46 ) + - col1 FROM tab0
----
-127
-47
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 68 ) col0 FROM tab2
----
68
68
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7924
SELECT ALL 30 + - - col1 - - + CAST( NULL AS DECIMAL ) + - 48 * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL 30 + - - col1 - - + CAST ( NULL AS REAL ) + - 48 * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT - MAX( 28 ) FROM tab2
----
-28

skipif mysql # not compatible
query I rowsort label-7925
SELECT - MAX ( 28 ) FROM tab2
----
-28

query I rowsort
SELECT + 49 + col1 + - + 83 FROM tab1
----
-20
-29
13

query I rowsort
SELECT DISTINCT + 76 AS col1 FROM tab0 WHERE col2 IS NULL AND NOT ( NULL ) <> + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7928
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 * + col0 - - 67 + + - col0, + ( - 63 ), col2, - col1 + - ( - CAST( - - 75 AS SIGNED ) ), 63 * - + 30 + + - 43 ) AND NOT NULL >= + col2 * col0
----

skipif mysql # not compatible
query III rowsort label-7928
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col2 * + col0 - - 67 + + - col0, + ( - 63 ), col2, - col1 + - ( - CAST ( - - 75 AS INTEGER ) ), 63 * - + 30 + + - 43 ) AND NOT NULL >= + col2 * col0
----

query I rowsort
SELECT DISTINCT - 38 + 1 FROM tab0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 + + col0 col2 FROM tab2 AS cor0
----
112
130
141

query I rowsort
SELECT + - ( + + 36 ) FROM tab1 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col2 * + col2 + - - col1 AS col1 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT DISTINCT col1 * - 1 + col2 AS col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT col2 - + + col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - col1 + col0 + + col0 FROM tab1 AS cor0
----
135
165
88

query I rowsort
SELECT - col0 * + - col0 + - - 23 FROM tab0 AS cor0
----
248
7592
9432

query I rowsort
SELECT DISTINCT - 35 * + - col1 + + col1 - - + col0 FROM tab2 AS cor0
----
1882
2487
2836

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7938
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0, + 28 AS col1 FROM tab0 AS cor0
----
NULL
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7938
SELECT DISTINCT CAST ( NULL AS REAL ) col0, + 28 AS col1 FROM tab0 AS cor0
----
NULL
28

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 13 + - 47 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 15 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 / + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 73 FROM tab0, tab1 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query II rowsort label-7942
SELECT ALL - 21 AS col1, + COUNT( * ) AS col0 FROM tab2
----
-21
3

skipif mysql # not compatible
query II rowsort label-7942
SELECT ALL - 21 AS col1, + COUNT ( * ) AS col0 FROM tab2
----
-21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT - col0 DIV - - col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-7943
SELECT - col0 / - - col1 FROM tab1
----
-1
-17
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <> - 73
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7945
SELECT + 90 col2, COUNT( + col1 ) AS col1 FROM tab1
----
90
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7945
SELECT + 90 col2, COUNT ( + col1 ) AS col1 FROM tab1
----
90
3

query I rowsort
SELECT + 22 AS col1 FROM tab0 WHERE NOT + col2 / + col0 * 5 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 AS col2, col2 * - - ( - 35 ) FROM tab1
----
51
-3360
85
-2065
91
-2380

query II rowsort
SELECT ALL 68 AS col1, 26 AS col1 FROM tab2
----
68
26
68
26
68
26

query I rowsort
SELECT DISTINCT ( - - 45 ) FROM tab0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 / + 45 + - ( - - col1 ) + + col0 = NULL
----

query I rowsort
SELECT + col2 * - col0 - - - col1 + - 51 * + - col1 * - col0 FROM tab1 cor0
----
-224362
-26695
-41324

query I rowsort
SELECT 84 + col0 * - 13 FROM tab0 AS cor0
----
-1047
-111
-1177

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT col0 * - 35 = ( - - 72 * + + col1 / + + col2 * + 93 + - col0 )
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT + SUM( DISTINCT 1 ) AS col1 FROM tab1 AS cor0 WHERE 66 >= - col2
----
1

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT + SUM ( DISTINCT 1 ) AS col1 FROM tab1 AS cor0 WHERE 66 >= - col2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7955
SELECT COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT ALL + + 27 * + + col2 + + col2 - - 39 * + 2 FROM tab2 AS cor0
----
1198
1702
722

query I rowsort
SELECT DISTINCT + - col2 * - 33 + - 6 FROM tab2 AS cor0
----
1314
1908
753

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT + COUNT( - 2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7958
SELECT + COUNT ( - 2 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 * + 32 AS col1 FROM tab1
----
-1632
-2720
-2912

onlyif mysql # aggregate syntax: 
query II rowsort label-7960
SELECT COUNT( * ) AS col0, - 87 + - COUNT( ALL + 68 ) FROM tab0
----
3
-90

skipif mysql # not compatible
query II rowsort label-7960
SELECT COUNT ( * ) AS col0, - 87 + - COUNT ( ALL + 68 ) FROM tab0
----
3
-90

query I rowsort
SELECT ALL ( - - 26 ) AS col1 FROM tab0 cor0
----
26
26
26

query I rowsort
SELECT + col1 + + - 82 AS col2 FROM tab0 AS cor0
----
-1
-61
-81

query I rowsort
SELECT DISTINCT 40 + col0 AS col2 FROM tab2
----
104
115
86

query I rowsort
SELECT - 78 * - - col2 + - - col1 AS col1 FROM tab2
----
-1743
-3043
-4457

query I rowsort
SELECT ALL 24 + - 68 * - ( + col1 ) + col2 * + col2 AS col0 FROM tab1
----
10192
3845
7844

query I rowsort
SELECT ALL + 34 * + 35 + col2 AS col1 FROM tab0
----
1200
1237
1289

onlyif mysql # aggregate syntax: 
query II rowsort label-7967
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) col0, COUNT( * ) * 83 AS col2 FROM tab2 AS cor0
----
6
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7967
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) col0, COUNT ( * ) * 83 AS col2 FROM tab2 AS cor0
----
6
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( + + 7 ) col2, col0 FROM tab2 AS cor0
----
7
46
7
64
7
75

query I rowsort
SELECT 66 * col0 * - col2 * - - col2 + col2 FROM tab1 AS cor0
----
-19528351
-27771676
-31020960

onlyif mysql # aggregate syntax: 
query II rowsort label-7970
SELECT MAX( ALL + col0 ) col0, COUNT( * ) FROM tab2 AS cor0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7970
SELECT MAX ( ALL + col0 ) col0, COUNT ( * ) FROM tab2 AS cor0
----
75
3

query I rowsort
SELECT col2 * - ( 54 ) FROM tab2
----
-1242
-2160
-3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 col1 FROM tab0
----
1
441
6561

query II rowsort
SELECT ALL + 93, col2 AS col0 FROM tab2 WHERE NOT col1 * - col2 IS NULL
----
93
23
93
40
93
58

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 91 / - col2 IS NOT NULL
----

query I rowsort
SELECT + ( col1 ) + + + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7977
SELECT + 95 DIV - COUNT( * ) AS col0 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-7977
SELECT + 95 / - COUNT ( * ) AS col0 FROM tab1
----
-31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7978
SELECT - + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7978
SELECT - + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - 46 AS col1, - col0 FROM tab2 AS cor0
----
-46
-46
-46
-64
-46
-75

query I rowsort
SELECT - col0 AS col0 FROM tab0 cor0 WHERE col2 + col2 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col0 * + 91 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-7982
SELECT ALL - COUNT( * ) AS col0, 84, - - CAST( NULL AS SIGNED ) + + COUNT( * ) * + COUNT( * ) + + - MAX( + 69 ) * + + 38 AS col2 FROM tab1 AS cor0
----
-3
84
NULL

skipif mysql # not compatible
query III rowsort label-7982
SELECT ALL - COUNT ( * ) AS col0, 84, - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) * + COUNT ( * ) + + - MAX ( + 69 ) * + + 38 AS col2 FROM tab1 AS cor0
----
-3
84
NULL

query I rowsort
SELECT + 37 + 35 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT SUM( DISTINCT + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT SUM ( DISTINCT + 48 ) FROM tab0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL CAST( NULL AS SIGNED ) + col2 * - 48 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL CAST ( NULL AS INTEGER ) + col2 * - 48 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 89 + + - 29 AS col1 FROM tab1
----
60

query I rowsort
SELECT DISTINCT ( + + ( - col0 ) ) FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7988
SELECT ALL COUNT( * ) + + COUNT( * ) DIV 18 AS col0, 14 AS col0 FROM tab0
----
3
14

skipif mysql # not compatible
query II rowsort label-7988
SELECT ALL COUNT ( * ) + + COUNT ( * ) / 18 AS col0, 14 AS col0 FROM tab0
----
3
14

query I rowsort
SELECT ALL col2 * - col1 * - + col0 + - 80 FROM tab0
----
18190
57025
9523

query II rowsort
SELECT col0 + - col2 AS col2, - col2 * + col2 FROM tab2
----
17
-3364
23
-529
24
-1600

query I rowsort
SELECT DISTINCT - col2 + + col2 FROM tab2 WHERE NOT 70 IS NOT NULL
----

query I rowsort
SELECT 27 + - ( - 42 ) AS col2 FROM tab0
----
69
69
69

query I rowsort
SELECT ALL - ( - col2 ) AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT + ( - MIN( + 7 ) ) AS col1 FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7994
SELECT + ( - MIN ( + 7 ) ) AS col1 FROM tab1 cor0
----
-7

query I rowsort
SELECT - - col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 0 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL COUNT( * ) * - 51 col2 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7997
SELECT ALL COUNT ( * ) * - 51 col2 FROM tab0 AS cor0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7998
SELECT ALL - COUNT( * ) * MAX( CAST( 44 AS SIGNED ) ) AS col1 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL - COUNT ( * ) * MAX ( CAST ( 44 AS INTEGER ) ) AS col1 FROM tab1
----
-132

onlyif mysql # DIV for integer division: 
query I rowsort label-7999
SELECT 0 DIV - col0 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7999
SELECT 0 / - col0 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * - col0 * + col0 * + col1 AS col1 FROM tab0
----
-13828563
-273375
-912673

query II rowsort
SELECT ALL - 10 * ( - col2 ) * - + 94 * + - 82, - 86 AS col1 FROM tab2
----
1772840
-86
3083200
-86
4470640
-86

query I rowsort
SELECT 91 * - - col2 AS col1 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8004
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - CAST( NULL AS SIGNED ) = - col0
----

skipif mysql # not compatible
query III rowsort label-8004
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - CAST ( NULL AS INTEGER ) = - col0
----

query I rowsort
SELECT ALL + + 94 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT 5 * - col0 * - col2 + CAST( NULL AS SIGNED ) * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8006
SELECT 5 * - col0 * - col2 + CAST ( NULL AS INTEGER ) * + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 88 ) AS col1 FROM tab2 AS cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8008
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + + 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8010
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN NULL AND - 60
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT COUNT( DISTINCT 33 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8012
SELECT COUNT ( DISTINCT 33 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8013
SELECT 97 col1, - COUNT( * ) FROM tab0
----
97
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8013
SELECT 97 col1, - COUNT ( * ) FROM tab0
----
97
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT - 33 * - SUM( ALL - + col0 ) FROM tab2
----
-6105

skipif mysql # not compatible
query I rowsort label-8014
SELECT - 33 * - SUM ( ALL - + col0 ) FROM tab2
----
-6105

query I rowsort
SELECT DISTINCT + - col0 / - col1 FROM tab0 WHERE NOT - col2 IS NOT NULL AND NOT + col1 <> col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8016
SELECT DISTINCT SUM( - col1 ) - + 6 DIV + 23 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT SUM ( - col1 ) - + 6 / + 23 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 * - - col1 * col0 > NULL
----

query I rowsort
SELECT DISTINCT + - 4 AS col2 FROM tab1 cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT - ( ( - col0 ) ) DIV 40 + - 17 FROM tab1 AS cor0
----
-15
-15
-16

skipif mysql # not compatible
query I rowsort label-8019
SELECT - ( ( - col0 ) ) / 40 + - 17 FROM tab1 AS cor0
----
-15
-15
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT ALL + 64 * + COUNT( * ) FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8020
SELECT ALL + 64 * + COUNT ( * ) FROM tab0 AS cor0
----
192

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8021
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

skipif mysql # not compatible
query IIIIII rowsort label-8021
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT DISTINCT - COUNT( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8022
SELECT DISTINCT - COUNT ( * ) col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - 89 * + col2 AS col0, - 43 AS col1 FROM tab0 AS cor0
----
-4183
-43
-8811
-43
-890
-43

query I rowsort
SELECT DISTINCT + col2 * + + 97 FROM tab0
----
4559
9603
970

query II rowsort
SELECT + col2 AS col2, 2 + - col0 FROM tab2
----
23
-44
40
-62
58
-73

query I rowsort
SELECT DISTINCT - col2 + + col0 AS col0 FROM tab1 WHERE NOT - col2 * + col1 + + col0 <> + col2 * - + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT ALL col0 DIV - 45 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL col0 / - 45 FROM tab1
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL + COUNT( * ) FROM tab0, tab1 AS cor0 WHERE - 29 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + COUNT ( * ) FROM tab0, tab1 AS cor0 WHERE - 29 IS NOT NULL
----
9

query I rowsort
SELECT col2 * 12 FROM tab0
----
1188
120
564

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL + + 1 * - - col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - - 30 col2 FROM tab0 AS cor0
----
-57
-67
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN NULL AND + col2 * + col2 * + - col0 * col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8034
SELECT * FROM tab1 WHERE NOT + col1 * col1 IN ( ( - CAST( - col1 AS SIGNED ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8034
SELECT * FROM tab1 WHERE NOT + col1 * col1 IN ( ( - CAST ( - col1 AS INTEGER ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-8035
SELECT * FROM tab2 WHERE NOT col0 DIV + 83 <> col2 DIV col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8035
SELECT * FROM tab2 WHERE NOT col0 / + 83 <> col2 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( 55 ) AS col2 FROM tab0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - COUNT( * ) * 98 col2 FROM tab2
----
-294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8037
SELECT DISTINCT - COUNT ( * ) * 98 col2 FROM tab2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT COUNT( DISTINCT - 35 ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8038
SELECT COUNT ( DISTINCT - 35 ) AS col2 FROM tab2
----
1

query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0 WHERE NOT 98 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8040
SELECT DISTINCT - SUM( DISTINCT 83 ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT - SUM ( DISTINCT 83 ) FROM tab2
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8041
SELECT * FROM tab2 WHERE NOT - col2 * CAST( 38 AS SIGNED ) + 16 IN ( 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8041
SELECT * FROM tab2 WHERE NOT - col2 * CAST ( 38 AS INTEGER ) + 16 IN ( 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 - + col1 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 / 94 )
----

query I rowsort
SELECT ALL col0 - - 17 * + 2 AS col2 FROM tab1
----
119
125
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8045
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab2 WHERE - 3 + - ( col1 + 57 / col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab2 WHERE - 3 + - ( col1 + 57 / col0 ) IS NULL
----
NULL

query I rowsort
SELECT + 81 * - col1 FROM tab1
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL - COUNT( * ) + 2 col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8047
SELECT ALL - COUNT ( * ) + 2 col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT 60 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
60

query I rowsort
SELECT ALL - 63 + - col1 AS col2 FROM tab2
----
-114
-130
-140

query I rowsort
SELECT ALL + 78 * col2 FROM tab2
----
1794
3120
4524

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 <= - col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT ALL MAX( col0 ) * + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
455

skipif mysql # not compatible
query I rowsort label-8052
SELECT ALL MAX ( col0 ) * + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
455

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8053
SELECT - 9 DIV COUNT( * ) + SUM( + col2 ) * + 62 AS col2 FROM tab2
----
7499

skipif mysql # not compatible
query I rowsort label-8053
SELECT - 9 / COUNT ( * ) + SUM ( + col2 ) * + 62 AS col2 FROM tab2
----
7499

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT + 42 FROM tab1 WHERE NOT ( + 33 + CAST( NULL AS SIGNED ) * col1 ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8054
SELECT + 42 FROM tab1 WHERE NOT ( + 33 + CAST ( NULL AS INTEGER ) * col1 ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + COUNT( * ) FROM tab2 WHERE col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8055
SELECT + COUNT ( * ) FROM tab2 WHERE col2 < NULL
----
0

query I rowsort
SELECT ALL + 4 * 44 FROM tab1
----
176
176
176

query I rowsort
SELECT ALL col0 + + col2 * col0 AS col1 FROM tab0
----
720
957
9700

query I rowsort
SELECT - col1 * + 79 FROM tab2
----
-4029
-5293
-6083

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT ( 97 ) + col2 DIV - col0 FROM tab2
----
97
97
97

skipif mysql # not compatible
query I rowsort label-8059
SELECT ( 97 ) + col2 / - col0 FROM tab2
----
97
97
97

query I rowsort
SELECT ( + 88 ) + col1 AS col1 FROM tab0
----
109
169
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT 50 DIV 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT 50 / 60 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - ( + 99 ) + - COUNT( * ) AS col1 FROM tab1
----
-102

skipif mysql # not compatible
query I rowsort label-8062
SELECT - ( + 99 ) + - COUNT ( * ) AS col1 FROM tab1
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-8063
SELECT DISTINCT + col1 DIV + 73 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT + col1 / + 73 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 57 * - col1 FROM tab2
----
-2907
-3819
-4389

query I rowsort
SELECT ( 53 ) AS col1 FROM tab0 AS cor0
----
53
53
53

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col2 * col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8067
SELECT ALL + MIN( 58 ) DIV - 31 AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8067
SELECT ALL + MIN ( 58 ) / - 31 AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 * + 43 NOT BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 * + 43 NOT BETWEEN col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8069
SELECT ALL * FROM tab0 WHERE NOT ( CAST( 76 AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8069
SELECT ALL * FROM tab0 WHERE NOT ( CAST ( 76 AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * 65 AS col1 FROM tab1 cor0 WHERE - col1 + 76 < ( - col1 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL ( - 49 ) FROM tab1
----
-49
-49
-49

query I rowsort
SELECT + col1 * + 94 * + col1 FROM tab2
----
244494
421966
557326

query I rowsort
SELECT ALL + 49 * + - col1 * col2 + col1 * - col1 FROM tab2
----
-156849
-194903
-60078

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 78 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT - 48 * - col0 AS col0 FROM tab0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + ( MIN( ALL - 61 ) ) * MAX( ALL - 6 ) AS col0 FROM tab1
----
366

skipif mysql # not compatible
query I rowsort label-8078
SELECT + ( MIN ( ALL - 61 ) ) * MAX ( ALL - 6 ) AS col0 FROM tab1
----
366

query I rowsort
SELECT + col1 * + 38 FROM tab0
----
3078
38
798

query I rowsort
SELECT ALL col1 * + + col2 * + 38 FROM tab0
----
144666
3762
7980

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN - 73 AND col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( - col2 ) <= ( 48 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT DISTINCT + - 3 * 25 + + COUNT( * ) * - ( - 10 * + COUNT( * ) ) AS col1 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8083
SELECT DISTINCT + - 3 * 25 + + COUNT ( * ) * - ( - 10 * + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT ALL + col2 DIV + ( col0 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8084
SELECT ALL + col2 / + ( col0 ) AS col0 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE 23 <> 58 * col1
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8086
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE col1 + col0 * + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8086
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE col1 + col0 * + col2 IS NULL
----

query I rowsort
SELECT + 87 + col0 AS col2 FROM tab0
----
102
174
184

query I rowsort
SELECT ALL - - 53 * - 16 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40d351092fb992ddca605957a785e04b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8090
SELECT ALL + 57 DIV CAST( + ( col1 ) AS SIGNED ) AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL + 57 / CAST ( + ( col1 ) AS INTEGER ) AS col0 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + 33 / - col2 <> ( + ( + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + + col0 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL + 87 FROM tab0 AS cor0 WHERE NOT NULL <> + col2 * - 51
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + col2 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT MAX( 55 ) + + COUNT( col0 ) FROM tab1 AS cor0 WHERE NOT NULL > ( - col0 / + - 76 / col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT MAX ( 55 ) + + COUNT ( col0 ) FROM tab1 AS cor0 WHERE NOT NULL > ( - col0 / + - 76 / col1 )
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + 28 / + - ( 68 ) * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 69 + - + col1 FROM tab0 AS cor0
----
-12
48
68

query I rowsort
SELECT - - 37 FROM tab2 cor0
----
37
37
37

query I rowsort
SELECT + 71 - col1 FROM tab2 WHERE ( + ( - col2 ) * + 90 ) IS NOT NULL
----
-6
20
4

query I rowsort
SELECT col0 * 42 AS col0 FROM tab1
----
2142
3570
3822

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT + SUM( - col1 ) - COUNT( * ) + SUM( ALL + col1 ) * - 25 FROM tab1
----
-1719

skipif mysql # not compatible
query I rowsort label-8102
SELECT + SUM ( - col1 ) - COUNT ( * ) + SUM ( ALL + col1 ) * - 25 FROM tab1
----
-1719

query I rowsort
SELECT ALL col1 + col1 * col1 AS col2 FROM tab2
----
2652
4556
6006

query I rowsort
SELECT + col0 - col1 + + + 85 - 59 * col2 FROM tab0
----
-2754
-439
-5660

query II rowsort
SELECT DISTINCT - col0 - + col1 AS col0, + col1 - - + 7 + - 16 * + col0 * - col1 FROM tab0
----
-108
29260
-96
19528
-98
1560

query II rowsort
SELECT DISTINCT col0 - - - col2 AS col1, + col0 * col2 FROM tab0
----
-2
9603
-32
705
77
870

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT IN ( col1 )
----

query I rowsort
SELECT col1 - - 82 AS col2 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
133
149
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT 95 * + - CAST( + 69 AS SIGNED ) AS col0 FROM tab1 cor0
----
-6555
-6555
-6555

skipif mysql # not compatible
query I rowsort label-8109
SELECT 95 * + - CAST ( + 69 AS INTEGER ) AS col0 FROM tab1 cor0
----
-6555
-6555
-6555

query I rowsort
SELECT col0 * + - col1 AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL - 86 * - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 01eccf3f2284d5ec9666ca23d540c662

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 74 ) BETWEEN col0 AND col0 + col1 * + ( - 7 + - 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT + 92 DIV - 66 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8113
SELECT + 92 / - 66 FROM tab0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + + 29 IN ( - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT ALL + SUM( + 29 ) AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL + SUM ( + 29 ) AS col0 FROM tab0 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT COUNT( + 5 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8116
SELECT COUNT ( + 5 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - ( - 97 ) AS col1 FROM tab1 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT 92 + + COUNT( * ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT 92 + + COUNT ( * ) FROM tab0 AS cor0
----
95

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8120
SELECT ALL 19 col2, COUNT( * ) AS col1 FROM tab1
----
19
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8120
SELECT ALL 19 col2, COUNT ( * ) AS col1 FROM tab1
----
19
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT ( + + COUNT( * ) ) + - 92 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT ( + + COUNT ( * ) ) + - 92 FROM tab2
----
-89

query II rowsort
SELECT ALL + + 26, col2 FROM tab0 WHERE NOT - col2 IS NULL
----
26
10
26
47
26
99

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - ( - - col2 ) AND - - 90
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 * + - col0 * + 52 ) NOT IN ( 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT ALL - 57 * COUNT( * ) AS col2 FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8125
SELECT ALL - 57 * COUNT ( * ) AS col2 FROM tab1
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT + COUNT( * ) + + 12 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8126
SELECT + COUNT ( * ) + + 12 FROM tab1 AS cor0
----
15

query II rowsort
SELECT ALL col2 + - - col1 AS col0, col2 * col2 FROM tab1 AS cor0
----
110
9216
115
4624
64
3481

query I rowsort
SELECT - 36 + + + 96 + + + col0 + 71 + + col0 + - col1 AS col1 FROM tab2 AS cor0
----
172
182
214

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 * - col0 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - + ( - ( + + 49 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col0, + 30 FROM tab0 AS cor0
----
1
30
21
30
81
30

query I rowsort
SELECT ALL 57 * + - 5 + 5 FROM tab0
----
-280
-280
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT SUM( DISTINCT - 41 ) AS col1 FROM tab2
----
-41

skipif mysql # not compatible
query I rowsort label-8133
SELECT SUM ( DISTINCT - 41 ) AS col1 FROM tab2
----
-41

query I rowsort
SELECT - 96 - + col0 AS col2 FROM tab1 AS cor0
----
-147
-181
-187

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( 84 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8136
SELECT - MIN( col1 ) - - MIN( 88 ) - - CAST( + COUNT( * ) AS SIGNED ) * 0 FROM tab1 cor0
----
83

skipif mysql # not compatible
query I rowsort label-8136
SELECT - MIN ( col1 ) - - MIN ( 88 ) - - CAST ( + COUNT ( * ) AS INTEGER ) * 0 FROM tab1 cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT ALL - ( - - 74 ) - + + COUNT( * ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8137
SELECT ALL - ( - - 74 ) - + + COUNT ( * ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT + COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT + COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + AVG ( col1 ) AS col0 FROM tab1 AS cor0 WHERE col1 + 8 IN ( col1 + - 75 / col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8140
SELECT ALL - MAX( DISTINCT col1 ) AS col2, ( - 41 ) AS col2 FROM tab2 AS cor0
----
-77
-41

skipif mysql # not compatible
query II rowsort label-8140
SELECT ALL - MAX ( DISTINCT col1 ) AS col2, ( - 41 ) AS col2 FROM tab2 AS cor0
----
-77
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT - CAST( NULL AS SIGNED ) + - col2 - + 97 * + 58 - - - 59 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT - CAST ( NULL AS INTEGER ) + - col2 - + 97 * + 58 - - - 59 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 1 * + col0 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8143
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2, + ( + + 38 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE NOT NULL NOT IN ( + col2, + ( + + 38 ) )
----

query I rowsort
SELECT ALL - col2 * + + 11 AS col0 FROM tab2
----
-253
-440
-638

query I rowsort
SELECT DISTINCT + col1 - + col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT DISTINCT + COUNT( * ) * - - 34 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8147
SELECT DISTINCT + COUNT ( * ) * - - 34 FROM tab0 AS cor0
----
102

query I rowsort
SELECT col2 * + - ( col0 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
59
68
96

query I rowsort
SELECT ALL 19 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT 54 * + col0 * col0 AS col1 FROM tab2
----
114264
221184
303750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8152
SELECT MIN( ALL - 17 ) DIV + 17 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8152
SELECT MIN ( ALL - 17 ) / + 17 AS col2 FROM tab1
----
-1

query I rowsort
SELECT ALL + col0 + 23 AS col2 FROM tab0 cor0 WHERE col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - 68 * - MAX( + col1 ) + + 16 AS col1 FROM tab1 AS cor0
----
3212

skipif mysql # not compatible
query I rowsort label-8154
SELECT - 68 * - MAX ( + col1 ) + + 16 AS col1 FROM tab1 AS cor0
----
3212

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 41 col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - ( - 14 ) AS col0 FROM tab2 AS cor0
----
14
14
14

query II rowsort
SELECT DISTINCT col0 + col2 AS col2, ( col0 ) AS col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8158
SELECT ALL col2 * + - CAST( NULL AS DECIMAL ) + + 74 + - + 47 * col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8158
SELECT ALL col2 * + - CAST ( NULL AS REAL ) + + 74 + - + 47 * col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col1 > ( - + col0 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 40, - col2 AS col0 FROM tab2
----
40
-23
40
-40
40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8161
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE + ( ( 68 ) ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8161
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE + ( ( 68 ) ) * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - 33 + - 12 FROM tab0
----
1539
318
3255

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL MAX( DISTINCT 84 ) * - + ( + ( + COUNT( * ) ) ) + + 91 + 78 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL MAX ( DISTINCT 84 ) * - + ( + ( + COUNT ( * ) ) ) + + 91 + 78 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8164
SELECT 63 * - col0 * + - CAST( + col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
14175
476847
592767

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8164
SELECT 63 * - col0 * + - CAST ( + col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
14175
476847
592767

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8165
SELECT * FROM tab0 AS cor0 WHERE CAST( 72 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8165
SELECT * FROM tab0 AS cor0 WHERE CAST ( 72 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 70 * col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab0 WHERE - col2 NOT BETWEEN ( - col0 + 31 * - 53 * col1 + ( - - col2 ) - 94 ) AND - col1
----
-40
-40

query II rowsort
SELECT - 40 + - 87, + 78 AS col2 FROM tab1
----
-127
78
-127
78
-127
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab2
----
128
150
92

query I rowsort
SELECT + 7 + col2 * - - col2 FROM tab2
----
1607
3371
536

query I rowsort
SELECT ALL + col2 + col2 * - - col2 + + + 25 AS col0 FROM tab2
----
1665
3447
577

onlyif mysql # DIV for integer division: 
query I rowsort label-8172
SELECT DISTINCT - ( - 43 ) + col2 DIV - 57 AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT - ( - 43 ) + col2 / - 57 AS col1 FROM tab1
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8173
SELECT CAST( NULL AS SIGNED ) AS col2, 95 AS col1 FROM tab2 cor0
----
NULL
95
NULL
95
NULL
95

skipif mysql # not compatible
query II rowsort label-8173
SELECT CAST ( NULL AS INTEGER ) AS col2, 95 AS col1 FROM tab2 cor0
----
NULL
95
NULL
95
NULL
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, + col1 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8175
SELECT DISTINCT 29 AS col2, 49 * + COUNT( * ) * - 63 + COUNT( * ) FROM tab1 AS cor0
----
29
-9258

skipif mysql # not compatible
query II rowsort label-8175
SELECT DISTINCT 29 AS col2, 49 * + COUNT ( * ) * - 63 + COUNT ( * ) FROM tab1 AS cor0
----
29
-9258

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT DISTINCT ( COUNT( - col1 ) ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8176
SELECT DISTINCT ( COUNT ( - col1 ) ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL - 40 * 94 AS col2, + col2 AS col0 FROM tab2
----
-3760
23
-3760
40
-3760
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8178
SELECT DISTINCT - 90 * + 40 col1, + ( + + CAST( NULL AS SIGNED ) ) / - 48 FROM tab1
----
-3600
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8178
SELECT DISTINCT - 90 * + 40 col1, + ( + + CAST ( NULL AS INTEGER ) ) / - 48 FROM tab1
----
-3600
NULL

query I rowsort
SELECT ALL - ( + + 90 ) AS col2 FROM tab2
----
-90
-90
-90

query II rowsort
SELECT + 93, + 23 AS col0 FROM tab2 AS cor0
----
93
23
93
23
93
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8181
SELECT DISTINCT + ( SUM( ALL - + CAST( NULL AS DECIMAL ) ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT DISTINCT + ( SUM ( ALL - + CAST ( NULL AS REAL ) ) ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT ALL - 45 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL - 45 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - SUM( DISTINCT 0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8183
SELECT - SUM ( DISTINCT 0 ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8184
SELECT ALL col1 * 89 * col1 DIV 94 AS col2 FROM tab0 AS cor0
----
0
417
6212

skipif mysql # not compatible
query I rowsort label-8184
SELECT ALL col1 * 89 * col1 / 94 AS col2 FROM tab0 AS cor0
----
0
417
6212

query II rowsort
SELECT 3, 6 AS col2 FROM tab0 AS cor0
----
3
6
3
6
3
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col1 - + 83 * - 43 col2 FROM tab2
----
3643
3686
3694

query I rowsort
SELECT DISTINCT 65 + + col1 * + col2 AS col2 FROM tab2
----
1238
3145
3951

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT ALL - ( + col1 ) + - col0 FROM tab1 WHERE NOT 25 IS NULL
----
-138
-65
-90

query I rowsort
SELECT - col0 FROM tab0 WHERE col0 + ( col1 ) + 64 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8192
SELECT DISTINCT - CAST( NULL AS SIGNED ) - ( - 37 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8192
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - ( - 37 ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT COUNT( * ) * 85 AS col0 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-8193
SELECT COUNT ( * ) * 85 AS col0 FROM tab1 AS cor0
----
255

query I rowsort
SELECT DISTINCT - col0 + + col2 * + + col2 * col2 + - + 79 FROM tab0 AS cor0
----
103729
834
970123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72, col1 col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 * 80 )
----

query II rowsort
SELECT col2 * 30 - - - 39 * - ( + col1 ), + col0 FROM tab2
----
2679
46
4203
64
4353
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT + COUNT( DISTINCT 79 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + COUNT ( DISTINCT 79 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT + col2 - + 38 - + col0 * - col1 AS col2 FROM tab2
----
2331
4930
5045

query I rowsort
SELECT ALL 33 * col0 AS col0 FROM tab0 AS cor0
----
2871
3201
495

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - MAX( - 22 ) FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-8200
SELECT - MAX ( - 22 ) FROM tab0 cor0
----
22

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 18 AND NULL
----
97
1
99

query I rowsort
SELECT + 8 * 11 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT DISTINCT - - MAX( col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8203
SELECT DISTINCT - - MAX ( col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 * - + 3 + + col2 AS col1 FROM tab2 AS cor0
----
-130
-143
-191

query II rowsort
SELECT DISTINCT + col1 AS col1, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT - col1 AS col1, col0 - col0 + - - 70 AS col2 FROM tab0
----
-1
70
-21
70
-81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT COUNT( * ) * + - 42 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT COUNT ( * ) * + - 42 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8208
SELECT - 29 AS col2, + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
-29
NULL

skipif mysql # not compatible
query II rowsort label-8208
SELECT - 29 AS col2, + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
-29
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8209
SELECT DISTINCT + COUNT( * ), ( - 82 ) DIV - ( + 43 ) AS col1 FROM tab1
----
3
1

skipif mysql # not compatible
query II rowsort label-8209
SELECT DISTINCT + COUNT ( * ), ( - 82 ) / - ( + 43 ) AS col1 FROM tab1
----
3
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8210
SELECT DISTINCT - COUNT( ALL - col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8210
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ( CAST( NULL AS SIGNED ) ) * 57 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ( CAST ( NULL AS INTEGER ) ) * 57 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 32, + 84 AS col1 FROM tab2
----
-32
84
-32
84
-32
84

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT col2 * col2 DIV + col1 col1 FROM tab0
----
27
4
9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8213
SELECT col2 * col2 / + col1 col1 FROM tab0
----
27
4
9801

query I rowsort
SELECT 18 * + + 48 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 <> NULL
----

query II rowsort
SELECT - col1 AS col0, 71 * + 82 FROM tab2 AS cor0
----
-51
5822
-67
5822
-77
5822

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col1 * 57 AS col2 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8218
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + - 57 + - - MIN( + 52 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8218
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + - 57 + - - MIN ( + 52 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8219
SELECT DISTINCT + CAST( + col0 AS SIGNED ), col2 FROM tab0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-8219
SELECT DISTINCT + CAST ( + col0 AS INTEGER ), col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL - 97 * + - 3 * - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
873

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL - 97 * + - 3 * - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
873

query I rowsort
SELECT DISTINCT - col1 * + col2 * - col1 + col2 AS col0 FROM tab2 cor0
----
237200
260420
59846

query I rowsort
SELECT col0 / - col1 * + - 80 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( ( - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT ALL MIN( ALL + col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8225
SELECT ALL MIN ( ALL + col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT DISTINCT col0 / col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8227
SELECT DISTINCT col0 / col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 0 + col1 * col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col1 + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, + 7 AS col2 FROM tab1
----
14
7
47
7
5
7

query II rowsort
SELECT col2, - col2 - 34 AS col0 FROM tab0
----
10
-44
47
-81
99
-133

query I rowsort
SELECT DISTINCT - 90 - 60 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 58 AS col2, - COUNT( * ) AS col2 FROM tab0
----
-58
-3

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 58 AS col2, - COUNT ( * ) AS col2 FROM tab0
----
-58
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 44 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8235
SELECT CAST( NULL AS SIGNED ) * - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8235
SELECT CAST ( NULL AS INTEGER ) * - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 56 - - 19 + - - col0 * - + col0 FROM tab1 AS cor0
----
-2526
-7150
-8206

query I rowsort
SELECT + + 43 + + col1 AS col0 FROM tab0 AS cor0
----
124
44
64

onlyif mysql # DIV for integer division: 
query I rowsort label-8239
SELECT ALL + col0 DIV 6 * + + col1 AS col0 FROM tab1 AS cor0
----
112
70
705

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + col0 / 6 * + + col1 AS col0 FROM tab1 AS cor0
----
112
70
705

query I rowsort
SELECT 86 FROM tab2 AS cor0 WHERE NOT 13 * + col0 < NULL
----

query II rowsort
SELECT - col0 * + - col2, 26 AS col0 FROM tab0 cor0
----
705
26
870
26
9603
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL - - MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - - MAX ( col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT col0 * - 3 * + col0 + + col2 * - 26 + 76 AS col1 FROM tab2 AS cor0
----
-13252
-18307
-6870

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + - 30 ) IS NOT NULL
----

query I rowsort
SELECT 63 * col0 FROM tab0
----
5481
6111
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8246
SELECT DISTINCT 7 - COUNT( * ) DIV + 72 - 14 AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-7

skipif mysql # not compatible
query I rowsort label-8246
SELECT DISTINCT 7 - COUNT ( * ) / + 72 - 14 AS col0 FROM tab1 WHERE + col0 IS NOT NULL
----
-7

query I rowsort
SELECT ALL - col1 * + 84 / - col2 * + - col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col0 FROM tab1
----
-32
-32
-32

query II rowsort
SELECT ALL - col2, col1 AS col0 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT 29 AS col1, col0 FROM tab2
----
29
46
29
64
29
75

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE + - col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT COUNT( DISTINCT - 68 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8252
SELECT COUNT ( DISTINCT - 68 ) FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT + col2 * - - 9 + col0 / - + CAST( NULL AS SIGNED ) + - ( col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8253
SELECT + col2 * - - 9 + col0 / - + CAST ( NULL AS INTEGER ) + - ( col1 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + ( + col1 ) FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT + col0 * + 47 FROM tab0 AS cor0
----
4089
4559
705

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL + col1 * - 38 AS col1 FROM tab0 AS cor0
----
-3078
-38
-798

query I rowsort
SELECT + + 70 * + col0 AS col0 FROM tab0 AS cor0
----
1050
6090
6790

query I rowsort
SELECT - 86 - col0 + + col2 FROM tab1 AS cor0
----
-109
-112
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-8260
SELECT DISTINCT col1 DIV - - col1 + col0 * - - col1 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
2347
23
4929
40
5026
58

skipif mysql # not compatible
query II rowsort label-8260
SELECT DISTINCT col1 / - - col1 + col0 * - - col1 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
2347
23
4929
40
5026
58

query II rowsort
SELECT + 6 * - - col0 * - col2 + + col1, col0 FROM tab1 AS cor0
----
-29362
51
-30085
85
-37081
91

onlyif mysql # DIV for integer division: 
query I rowsort label-8262
SELECT - col0 DIV 90 + - col0 FROM tab0 AS cor0
----
-15
-87
-98

skipif mysql # not compatible
query I rowsort label-8262
SELECT - col0 / 90 + - col0 FROM tab0 AS cor0
----
-15
-87
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ( - + COUNT( ALL 70 ) ) + - MAX( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8263
SELECT ( - + COUNT ( ALL 70 ) ) + - MAX ( ALL + + col1 ) AS col2 FROM tab1 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8264
SELECT ALL - col2 DIV - 65 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL - col2 / - 65 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - 72 + 41 + - COUNT( * ) AS col2 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-8265
SELECT - 72 + 41 + - COUNT ( * ) AS col2 FROM tab2
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT DISTINCT COUNT( * ) + + - MIN( - 10 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8266
SELECT DISTINCT COUNT ( * ) + + - MIN ( - 10 ) FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE - col0 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8268
SELECT DISTINCT COUNT( DISTINCT col0 ) + ( - 48 ) + + CAST( - 73 AS SIGNED ) AS col1 FROM tab1
----
-118

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT COUNT ( DISTINCT col0 ) + ( - 48 ) + + CAST ( - 73 AS INTEGER ) AS col1 FROM tab1
----
-118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col2 ) col2 FROM tab1 WHERE NULL = + 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 55 + + col0 ) IS NULL
----

query I rowsort
SELECT - 11 + col1 AS col0 FROM tab0
----
-10
10
70

query I rowsort
SELECT ALL + col2 - - 20 * ( + col1 ) FROM tab1 AS cor0
----
1008
159
376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - - col0 * ( 53 ) col0 FROM tab0 cor0 WHERE ( NULL ) IS NULL
----
-5141
-64395
-96831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8274
SELECT ( + SUM( col0 ) ) DIV + 74 AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8274
SELECT ( + SUM ( col0 ) ) / + 74 AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT ALL MAX( - ( - col0 ) ) DIV 2 AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL MAX ( - ( - col0 ) ) / 2 AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT DISTINCT + - MAX( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + ( - 80 ) ) / 55 IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-8276
SELECT DISTINCT + - MAX ( - - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + ( - 80 ) ) / 55 IS NULL
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col1, - ( + col2 ) col2 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 47 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8280
SELECT COUNT( * ), - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8280
SELECT COUNT ( * ), - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT + MAX( + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + MAX ( + col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8282
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 90 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 90 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab2
----
60

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + + col2 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 77 * col1 * - + col2 col0 FROM tab1
----
-1340185
-16734256
-9934848

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8286
SELECT col2 * - CAST( - col2 AS SIGNED ) AS col0 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-8286
SELECT col2 * - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8287
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col1, ( + COUNT( * ) ) * + 35 FROM tab1
----
NULL
105

skipif mysql # not compatible
query II rowsort label-8287
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col1, ( + COUNT ( * ) ) * + 35 FROM tab1
----
NULL
105

query I rowsort
SELECT - ( 21 ) AS col1 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + 39 * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-351

skipif mysql # not compatible
query I rowsort label-8289
SELECT + 39 * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-351

query I rowsort
SELECT col2 + + col0 + + + 21 FROM tab1
----
165
168
180

query I rowsort
SELECT ALL col1 + - 52 AS col2 FROM tab2
----
-1
15
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT 57 + COUNT( * ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8292
SELECT 57 + COUNT ( * ) FROM tab0 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 BETWEEN 23 * + + 32 + + - col0 * + 65 AND - 45 * + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col0, ( - col1 ) FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8295
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) + col1 NOT IN ( col0 * - CAST( + col0 AS SIGNED ) + + + ( + col2 ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-8295
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + col1 NOT IN ( col0 * - CAST ( + col0 AS INTEGER ) + + + ( + col2 ) * - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT ALL + - COUNT( * ) col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8298
SELECT ALL + - COUNT ( * ) col2 FROM tab0 cor0
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col0, 89 AS col0 FROM tab2
----
46
89
64
89
75
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT DISTINCT - COUNT( ALL - col2 ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8300
SELECT DISTINCT - COUNT ( ALL - col2 ) + - COUNT ( * ) FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL - COUNT( DISTINCT + - 5 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL - COUNT ( DISTINCT + - 5 ) FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 9 + - 32 AS col1 FROM tab1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT CAST( col1 AS SIGNED ) - 25 FROM tab2
----
26
42
52

skipif mysql # not compatible
query I rowsort label-8303
SELECT CAST ( col1 AS INTEGER ) - 25 FROM tab2
----
26
42
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + 16 col0 FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT - - COUNT( * ) AS col1 FROM tab2 WHERE NULL IN ( + col0, 33, 79, 52, col2, - + 55 )
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT - - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IN ( + col0, 33, 79, 52, col2, - + 55 )
----
0

query I rowsort
SELECT col1 - - 19 AS col1 FROM tab0
----
100
20
40

query I rowsort
SELECT - ( - ( col0 ) ) - - ( + col1 ) FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8308
SELECT ALL + 28 * - SUM( + 58 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-4872

skipif mysql # not compatible
query I rowsort label-8308
SELECT ALL + 28 * - SUM ( + 58 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-4872

query I rowsort
SELECT - 55 - + - ( - col1 ) AS col1 FROM tab1
----
-102
-60
-69

query I rowsort
SELECT DISTINCT - 0 - + col0 * - col0 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + col0 AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + col1 * + ( + col1 ) + - 52 FROM tab2 AS cor0
----
-119698
-336727
-379508

query I rowsort
SELECT + + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query I rowsort
SELECT + ( + - col2 ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - + col0 * + 30 FROM tab0 AS cor0
----
-2610
-2910
-450

query I rowsort
SELECT + ( - col2 ) * col2 AS col1 FROM tab0 cor0
----
-100
-2209
-9801

query I rowsort
SELECT ALL - 66 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT 77, col2 FROM tab1
----
77
59
77
68
77
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 37 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT ALL MAX( DISTINCT + 58 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8321
SELECT ALL MAX ( DISTINCT + 58 ) FROM tab2
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col1 FROM tab1
----
71
71
71

query I rowsort
SELECT ALL - col2 * + 47 + + + 86 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8324
SELECT - + col0 + col2 + + col2 DIV - col0 FROM tab0 AS cor0
----
-77
1
29

skipif mysql # not compatible
query I rowsort label-8324
SELECT - + col0 + col2 + + col2 / - col0 FROM tab0 AS cor0
----
-77
1
29

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8325
SELECT ALL 46 DIV col0 + - 52, col1 * + CAST( NULL AS SIGNED ) DIV - col0 AS col2 FROM tab0 AS cor0
----
-49
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-8325
SELECT ALL 46 / col0 + - 52, col1 * + CAST ( NULL AS INTEGER ) / - col0 AS col2 FROM tab0 AS cor0
----
-49
NULL
-52
NULL
-52
NULL

query I rowsort
SELECT DISTINCT - 93 + + - 7 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 27 + - 63 col2 FROM tab2 WHERE col0 IS NOT NULL
----
-1305
-1791
-2088

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT DISTINCT + 36 + MAX( - 12 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT + 36 + MAX ( - 12 ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT ALL COUNT( * ) - + - 17 AS col2 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL COUNT ( * ) - + - 17 AS col2 FROM tab1 AS cor0
----
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + - + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8332
SELECT + 28 + - + 25 AS col2, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8332
SELECT + 28 + - + 25 AS col2, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT - ( - + COUNT( * ) ) + - SUM( DISTINCT - 10 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-8333
SELECT - ( - + COUNT ( * ) ) + - SUM ( DISTINCT - 10 ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT - CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT - CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 93 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8336
SELECT ALL + COUNT( * ) FROM tab2 WHERE 50 > ( col2 ) * + col1 + - col0 + 18 * + CAST( NULL AS SIGNED ) + + 30
----
0

skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + COUNT ( * ) FROM tab2 WHERE 50 > ( col2 ) * + col1 + - col0 + 18 * + CAST ( NULL AS INTEGER ) + + 30
----
0

query I rowsort
SELECT + ( 47 ) * + 20 AS col0 FROM tab1
----
940
940
940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8338
SELECT ALL 64 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT ALL 64 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 col2 FROM tab2 AS cor0
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT SUM( DISTINCT + col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8340
SELECT SUM ( DISTINCT + col2 ) FROM tab0 cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT + CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8341
SELECT + CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + - col2 + - - 74 / 32 + ( + 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT 74 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT 74 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
222

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - 37 AS col0, col2 FROM tab2
----
-37
23
-37
40
-37
58

query I rowsort
SELECT + 79 - - 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6f26a03989006af44e1b70d584e50047

query II rowsort
SELECT ALL - col2 AS col1, - 41 AS col2 FROM tab1
----
-59
-41
-68
-41
-96
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT SUM( ALL + col0 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-8348
SELECT SUM ( ALL + col0 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
681

query II rowsort
SELECT + 92 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
92
51
92
67
92
77

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT NULL <= 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT - - CAST( - col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8351
SELECT - - CAST ( - col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * + + 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8353
SELECT DISTINCT COUNT( * ) + - + 10 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT COUNT ( * ) + - + 10 FROM tab2
----
-7

query I rowsort
SELECT - 10 * - ( + - col2 ) FROM tab1
----
-590
-680
-960

query I rowsort
SELECT + col1 * - 95 AS col2 FROM tab2
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT 37 + - 10 + col1 + 44 FROM tab0
----
152
72
92

query I rowsort
SELECT + 77 * 67 FROM tab1
----
5159
5159
5159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8358
SELECT DISTINCT - CAST( - + col2 AS SIGNED ), col1 FROM tab1
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-8358
SELECT DISTINCT - CAST ( - + col2 AS INTEGER ), col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + 24 * - ( + col2 ) FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT + + MIN( + 18 ) FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8360
SELECT + + MIN ( + 18 ) FROM tab2 cor0
----
18

query I rowsort
SELECT DISTINCT + + ( + - ( 86 ) ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL + 15 FROM tab1 WHERE NULL IS NULL
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT MIN( - col2 ) + - - 14 AS col2 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT MIN ( - col2 ) + - - 14 AS col2 FROM tab0 AS cor0
----
-85

query I rowsort
SELECT DISTINCT ( + col2 ) * + col2 AS col2 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT ALL - 29 + - + 9 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - 21 IS NULL
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - 15 - + col2 AS col2 FROM tab0 AS cor0
----
-114
-25
-62

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT - 97 - - col0 FROM tab0 AS cor0
----
-10
-82
0

query I rowsort
SELECT col0 - - + 40 * + col1 FROM tab0
----
137
3255
927

query I rowsort
SELECT - col0 - + 30 AS col0 FROM tab0
----
-117
-127
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT + 9 * - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8371
SELECT + 9 * - COUNT ( * ) FROM tab1
----
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT IN ( col1 + + col1, + 43 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 = 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT - MAX( - col1 ) * - 85 AS col1 FROM tab1 AS cor0
----
-425

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT - MAX ( - col1 ) * - 85 AS col1 FROM tab1 AS cor0
----
-425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT col0 * CAST( 6 AS SIGNED ) col2 FROM tab2 AS cor0
----
276
384
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8375
SELECT col0 * CAST ( 6 AS INTEGER ) col2 FROM tab2 AS cor0
----
276
384
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8376
SELECT + CAST( + 45 AS SIGNED ) * - + SUM( + col0 ) AS col0 FROM tab2 cor0
----
-8325

skipif mysql # not compatible
query I rowsort label-8376
SELECT + CAST ( + 45 AS INTEGER ) * - + SUM ( + col0 ) AS col0 FROM tab2 cor0
----
-8325

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + col1 < col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8380
SELECT CAST( + + col1 AS SIGNED ) col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8380
SELECT CAST ( + + col1 AS INTEGER ) col2 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( + col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( + col0 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8382
SELECT - COUNT( * ) DIV + 49 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8382
SELECT - COUNT ( * ) / + 49 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - ( 18 ) * 5 FROM tab2 cor0
----
-90

query I rowsort
SELECT ALL - + col2 * - - 52 AS col0 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8385
SELECT - 93 DIV + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8385
SELECT - 93 / + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-31

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 95 NOT BETWEEN - col1 * + col2 AND - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT - COUNT( ALL - + col2 ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8387
SELECT - COUNT ( ALL - + col2 ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL ( + - 78 ) + + col2 FROM tab0 AS cor0
----
-31
-68
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, - col1 * + - col2 AS col0 FROM tab0
----
10
210
47
3807
99
99

query III rowsort
SELECT * FROM tab2 WHERE - col2 * - + 64 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * col0 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL - COUNT( * ) + MAX( - col1 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL - COUNT ( * ) + MAX ( - col1 ) FROM tab2
----
-54

query I rowsort
SELECT ALL col0 * + ( 98 ) AS col0 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-8394
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - col0 * col2 / - col2 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8394
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND - col0 * col2 / - col2 + - + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8395
SELECT DISTINCT + col2 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + col2 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8396
SELECT - COUNT( ( + ( + ( - 72 ) ) ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8396
SELECT - COUNT ( ( + ( + ( - 72 ) ) ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8397
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8397
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8398
SELECT DISTINCT 40 - + col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-7
NULL
26
NULL
35
NULL

skipif mysql # not compatible
query II rowsort label-8398
SELECT DISTINCT 40 - + col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-7
NULL
26
NULL
35
NULL

query I rowsort
SELECT ALL - 85 - - 70 FROM tab0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8400
SELECT DISTINCT col1 DIV + 28 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-8400
SELECT DISTINCT col1 / + 28 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT ALL + MIN( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8401
SELECT ALL + MIN ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT DISTINCT MIN( - col2 ) - + COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT MIN ( - col2 ) - + COUNT ( * ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT + 46 * + 68 + - + col2 * + col2 AS col0 FROM tab0 AS cor0
----
-6673
3028
919

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT 4 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8404
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT 4 = NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 28 NOT BETWEEN col2 AND col1 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT DISTINCT - SUM( DISTINCT + 70 ) col2 FROM tab0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8406
SELECT DISTINCT - SUM ( DISTINCT + 70 ) col2 FROM tab0
----
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * + + col2 col2 FROM tab2
----
1720
2494
989

query II rowsort
SELECT DISTINCT - 60 AS col1, + 62 FROM tab1 AS cor0
----
-60
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 / col1 * + col1 )
----

query I rowsort
SELECT ALL + - ( - 71 ) AS col2 FROM tab2 cor0
----
71
71
71

query I rowsort
SELECT col1 + + 88 + - + col0 * + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
394
7678
9498

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8412
SELECT - - col1, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8412
SELECT - - col1, - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * + + col2 + + col1 NOT BETWEEN + 80 + - col2 AND - 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT SUM( 88 ) col0 FROM tab2
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8414
SELECT SUM ( 88 ) col0 FROM tab2
----
264

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > 15 + - 80
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT - 69 + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-8416
SELECT - 69 + + col1 / col1 AS col0 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT ALL + ( - + 71 ) FROM tab1 cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT DISTINCT COUNT( * ) * - 51 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT COUNT ( * ) * - 51 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT DISTINCT + + ( + col2 ) FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT DISTINCT + - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT + - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + - 15 + + col0 FROM tab2 AS cor0
----
31
49
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT DISTINCT col0 + + + 76 - + col0 DIV - - 70 FROM tab0
----
162
172
91

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT col0 + + + 76 - + col0 / - - 70 FROM tab0
----
162
172
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 99 col0 FROM tab2
----
-2277
-3960
-5742

query I rowsort
SELECT ALL + col1 + + col2 + + 68 AS col2 FROM tab0
----
168
196
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT DISTINCT + ( + 73 ) * col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT DISTINCT + ( + 73 ) * col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT col2 AS col2, 7 FROM tab2
----
23
7
40
7
58
7

onlyif mysql # DIV for integer division: 
query I rowsort label-8427
SELECT ALL - col1 DIV 8 * + col2 AS col0 FROM tab0
----
-20
-470
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL - col1 / 8 * + col2 AS col0 FROM tab0
----
-20
-470
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * - col2 col1 FROM tab2
----
-1495
-2600
-3770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 + + col2 + col0 <> + 75 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= CAST( col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8431
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 <= CAST ( col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 86 + + 30 + - col1 AS col1 FROM tab2 AS cor0
----
39
49
65

query III rowsort
SELECT * FROM tab2 WHERE 55 BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT 1 * + col0 / - - col1 * - + 47 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8435
SELECT ALL + col2 DIV - col0 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8435
SELECT ALL + col2 / - col0 AS col1 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8436
SELECT ALL - + ( + ( COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8436
SELECT ALL - + ( + ( COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8437
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - CAST( + 66 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8437
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= - CAST ( + 66 AS REAL )
----

query I rowsort
SELECT - - 63 AS col0 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT DISTINCT 66 * 84 AS col0 FROM tab0 AS cor0
----
5544

query I rowsort
SELECT ALL col2 + col2 * + 93 AS col2 FROM tab2 WHERE NOT ( NOT NULL IN ( - col2 ) )
----

query I rowsort
SELECT - 35 * 66 FROM tab2
----
-2310
-2310
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL 23 * + COUNT( * ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL 23 * + COUNT ( * ) FROM tab0
----
69

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( + 61 IS NULL )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - MAX( 57 ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-8444
SELECT - MAX ( 57 ) FROM tab0
----
-57

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( ( col2 * - 29 <= - col1 + + col0 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8446
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) <> - col1 - - + col1
----

skipif mysql # not compatible
query III rowsort label-8446
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) <> - col1 - - + col1
----

query I rowsort
SELECT + col0 * - col2 + col2 * - col0 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
-2116
-5120
-8700

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT + ( - - 32 ) * - COUNT( * ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8448
SELECT + ( - - 32 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT ALL - - COUNT( + + col1 ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8449
SELECT ALL - - COUNT ( + + col1 ) AS col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + + ( - + 68 ) AS col1 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT DISTINCT + COUNT( + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT + COUNT ( + col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 31 BETWEEN NULL AND col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT DISTINCT - 76 + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-8453
SELECT DISTINCT - 76 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + - col1 >= 94 )
----
3

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + - col1 >= 94 )
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT NULL IN ( - col0 - + col1 ) ) )
----

query I rowsort
SELECT DISTINCT - col1 * - 18 AS col2 FROM tab0 AS cor0
----
1458
18
378

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8458
SELECT - 54, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-54
-3

skipif mysql # not compatible
query II rowsort label-8458
SELECT - 54, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-54
-3

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE + ( col2 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8460
SELECT + col2 DIV - col0 + - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8460
SELECT + col2 / - col0 + - col0 AS col1 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + col2 + - - 6 FROM tab0 AS cor0
----
105
16
53

query II rowsort
SELECT ALL 32 + + col0 * 24, 82 * col1 AS col0 FROM tab2 AS cor0
----
1136
4182
1568
6314
1832
5494

query II rowsort
SELECT DISTINCT col2 * - col2 + - + col0 AS col2, col0 FROM tab2 AS cor0
----
-1664
64
-3439
75
-575
46

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col0
----

query I rowsort
SELECT ALL + ( + 12 ) * col1 + + col0 FROM tab1
----
145
219
655

query II rowsort
SELECT + - col0, + col0 * - 63 * col1 AS col2 FROM tab2 WHERE - col0 IS NOT NULL
----
-46
-147798
-64
-310464
-75
-316575

query I rowsort
SELECT - col0 + - - col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8468
SELECT DISTINCT - + ( 46 ) * + - col0 + + CAST( + ( - col1 ) AS SIGNED ) + 53 * col0 col0 FROM tab2 AS cor0
----
4503
6259
7358

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8468
SELECT DISTINCT - + ( 46 ) * + - col0 + + CAST ( + ( - col1 ) AS INTEGER ) + 53 * col0 col0 FROM tab2 AS cor0
----
4503
6259
7358

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT DISTINCT + COUNT( * ) - - MAX( DISTINCT - + 21 ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8469
SELECT DISTINCT + COUNT ( * ) - - MAX ( DISTINCT - + 21 ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT col1 - - 29 * + + 9 FROM tab2
----
312
328
338

query I rowsort
SELECT DISTINCT - 91 * - col1 AS col0 FROM tab2
----
4641
6097
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 * + - col2 * - + 76 col1 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2, col0 col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT - MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8475
SELECT - MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT ALL MIN( + 92 ) col2 FROM tab0 AS cor0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8476
SELECT ALL MIN ( + 92 ) col2 FROM tab0 AS cor0
----
92

query I rowsort
SELECT DISTINCT + - 25 AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT ALL + - 55 * COUNT( * ) FROM tab2 cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8478
SELECT ALL + - 55 * COUNT ( * ) FROM tab2 cor0
----
-165

query I rowsort
SELECT ALL + - 60 * + col1 + + 32 * + 30 * + 87 FROM tab1 AS cor0
----
80700
82680
83220

query I rowsort
SELECT ALL - 3 * + col0 AS col2 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8481
SELECT DISTINCT - ( - col2 ) AS col2, - ( + + CAST( NULL AS SIGNED ) ) - + 57 * - 52 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-8481
SELECT DISTINCT - ( - col2 ) AS col2, - ( + + CAST ( NULL AS INTEGER ) ) - + 57 * - 52 AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT ALL - 58 AS col1, col0 FROM tab0
----
-58
15
-58
87
-58
97

query I rowsort
SELECT + ( - 89 ) AS col2 FROM tab0
----
-89
-89
-89

query I rowsort
SELECT - 18 * col0 FROM tab1
----
-1530
-1638
-918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8486
SELECT - col1 DIV 45 * col1 AS col1 FROM tab0
----
-81
0
0

skipif mysql # not compatible
query I rowsort label-8486
SELECT - col1 / 45 * col1 AS col1 FROM tab0
----
-81
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8487
SELECT - - col0 DIV - 38 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-8487
SELECT - - col0 / - 38 AS col2 FROM tab1 AS cor0
----
-1
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + + col1 = NULL
----

query I rowsort
SELECT + 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - col1 * + 70 + col1 * col0 FROM tab0
----
-4455
27
357

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( ( col1 ) ) NOT BETWEEN col1 AND NULL
----

query II rowsort
SELECT + + col0 + - 77 AS col0, - col0 FROM tab2 AS cor0
----
-13
-64
-2
-75
-31
-46

query II rowsort
SELECT DISTINCT - 34 * col1, - 74 AS col0 FROM tab2 AS cor0
----
-1734
-74
-2278
-74
-2618
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 84 <> + + col0 + + col1 + 59 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 ) col1 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - - 33 AS col2 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - ( - COUNT( * ) ) AS col1 FROM tab2 WHERE NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-8497
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab2 WHERE NULL > - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8498
SELECT ( + - CAST( - 52 AS SIGNED ) ) AS col2 FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-8498
SELECT ( + - CAST ( - 52 AS INTEGER ) ) AS col2 FROM tab1
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT + COUNT( * ) * + 18 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-8499
SELECT + COUNT ( * ) * + 18 FROM tab0
----
54

query III rowsort
SELECT * FROM tab2 WHERE + - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT MIN( 34 ) AS col1 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-8501
SELECT MIN ( 34 ) AS col1 FROM tab2
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT DISTINCT - col2 + + + ( + col1 ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT - col2 + + + ( + col1 ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( col0 ) AS col2 FROM tab1 WHERE NULL > col2
----

query I rowsort
SELECT col1 * 2 - - 80 - col0 FROM tab2
----
136
139
170

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE + ( col2 ) IN ( - + col0 * + col1 * - 93 + col0 )
----

query I rowsort
SELECT - 23 - + col0 FROM tab2
----
-69
-87
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 col0 FROM tab0
----
0

query I rowsort
SELECT ALL - - 67 FROM tab0 cor0
----
67
67
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 20 = NULL
----

query I rowsort
SELECT ALL 39 FROM tab0 cor0
----
39
39
39

query I rowsort
SELECT - col0 FROM tab0 WHERE ( NULL ) < 40 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL + col2 - - col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + col2 - - col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND - col0 * - 96
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= ( col2 * + ( col1 ) )
----

query I rowsort
SELECT ALL col0 + 65 * col0 AS col1 FROM tab0
----
5742
6402
990

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * + col1 + + 9 ) <= NULL
----

query I rowsort
SELECT col0 * 78 + 15 * - col1 FROM tab1
----
3768
6393
6555

query I rowsort
SELECT DISTINCT col1 - - 22 FROM tab2 WHERE + 68 IS NOT NULL
----
73
89
99

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE 39 * 66 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col2 + - ( - 71 ) AS col0 FROM tab1
----
130
139
167

query III rowsort
SELECT * FROM tab1 WHERE NOT + 28 / col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 89 * - col0 IS NULL
----

query I rowsort
SELECT 87 + + col1 FROM tab0
----
108
168
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

query I rowsort
SELECT + 68 + - col1 AS col0 FROM tab1
----
21
54
63

query I rowsort
SELECT - col2 * - col1 + col1 * - col1 FROM tab0
----
-231
-2754
98

query I rowsort
SELECT col2 * 83 + + col2 AS col0 FROM tab0
----
3948
8316
840

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8529
SELECT + ( + ( + CAST( ( - col1 ) AS SIGNED ) ) ) AS col1 FROM tab0 WHERE + 99 IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8529
SELECT + ( + ( + CAST ( ( - col1 ) AS INTEGER ) ) ) AS col1 FROM tab0 WHERE + 99 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8530
SELECT + SUM( ALL col2 ) AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8530
SELECT + SUM ( ALL col2 ) AS col2 FROM tab0
----
156

query I rowsort
SELECT - ( col2 ) + - col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT + 99 + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-8532
SELECT + 99 + COUNT ( * ) FROM tab1
----
102

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN + 29 AND NULL
----

query I rowsort
SELECT - 1 + col0 FROM tab0 AS cor0
----
14
86
96

query I rowsort
SELECT DISTINCT + 86 FROM tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 26 AS col1 FROM tab1 AS cor0
----
-12
-21
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( + 10 ) * 56 ) NOT BETWEEN 92 AND - 55 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 28 + col2 FROM tab0 AS cor0
----
-18
19
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT MIN( DISTINCT 23 ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8539
SELECT MIN ( DISTINCT 23 ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT ALL 41 * + ( - 90 ) + + col2 FROM tab0 AS cor0
----
-3591
-3643
-3680

query I rowsort
SELECT ALL - 58 / - 93 FROM tab1 WHERE NULL NOT BETWEEN + col2 * - col2 AND ( col0 / - col2 )
----

query I rowsort
SELECT DISTINCT col1 * 0 + 86 FROM tab2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8543
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT IN ( - col1 + + col0 / CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8543
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 * - col0 NOT IN ( - col1 + + col0 / CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT DISTINCT - col2 DIV - 35 + ( col2 ) FROM tab2 AS cor0 WHERE NOT 0 >= 73 * col0
----
23
41
59

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT - col2 / - 35 + ( col2 ) FROM tab2 AS cor0 WHERE NOT 0 >= 73 * col0
----
23
41
59

query I rowsort
SELECT ALL - - 27 - col0 * 11 FROM tab2 AS cor0
----
-479
-677
-798

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT ALL ( SUM( DISTINCT - col0 ) ) * + 12 FROM tab2 cor0
----
-2220

skipif mysql # not compatible
query I rowsort label-8546
SELECT ALL ( SUM ( DISTINCT - col0 ) ) * + 12 FROM tab2 cor0
----
-2220

onlyif mysql # DIV for integer division: 
query I rowsort label-8547
SELECT ALL - col2 DIV 57 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT ALL - col2 / 57 AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8548
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT ( col0 - ( col2 ) ) IS NULL
----
15
87
97

query I rowsort
SELECT - 85 + - ( + col1 ) FROM tab1 AS cor0
----
-132
-90
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8551
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT 30 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-57
-67
15

skipif mysql # not compatible
query I rowsort label-8552
SELECT 30 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-57
-67
15

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8553
SELECT DISTINCT COUNT( * ) * 42 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT DISTINCT COUNT ( * ) * 42 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT ALL + COUNT( * ) + COUNT( * ) * MAX( + 12 ) col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8554
SELECT ALL + COUNT ( * ) + COUNT ( * ) * MAX ( + 12 ) col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN col1 AND ( - 36 + col0 * col2 )
----
23
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT + 14 + COUNT( * ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-8556
SELECT + 14 + COUNT ( * ) AS col0 FROM tab2
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT ALL + MAX( DISTINCT - + 98 ) + COUNT( * ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + MAX ( DISTINCT - + 98 ) + COUNT ( * ) FROM tab1
----
-95

query I rowsort
SELECT DISTINCT - ( - 62 ) + - col2 * + col2 AS col0 FROM tab0
----
-2147
-38
-9739

query I rowsort
SELECT col2 + + ( + col1 ) - 79 FROM tab2
----
-5
38
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8560
SELECT ALL + col0 + col0 + CAST( NULL AS DECIMAL ) * 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8560
SELECT ALL + col0 + col0 + CAST ( NULL AS REAL ) * 84 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8561
SELECT ALL col0 + + - 36 DIV col1 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL col0 + + - 36 / col1 AS col0 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 88 ) + 27 col2 FROM tab1
----
115

query I rowsort
SELECT ALL + 26 - + col0 AS col0 FROM tab1
----
-25
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - MIN( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8564
SELECT - MIN ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE 76 * - 83 < ( col2 )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT + - COUNT( + + col0 ) * 42 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8567
SELECT + - COUNT ( + + col0 ) * 42 FROM tab0 AS cor0
----
-126

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 89 / col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT - - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8569
SELECT - - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 63 ) AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + 63 ) AND ( - col2 )
----
0

query I rowsort
SELECT - col2 * - col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8572
SELECT - 6 * - - CAST( COUNT( * ) AS SIGNED ) * + 61 FROM tab1
----
-1098

skipif mysql # not compatible
query I rowsort label-8572
SELECT - 6 * - - CAST ( COUNT ( * ) AS INTEGER ) * + 61 FROM tab1
----
-1098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT ALL CAST( + 58 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif mysql # not compatible
query I rowsort label-8573
SELECT ALL CAST ( + 58 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8574
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 / - col1 ) = CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 40
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT * FROM tab0 cor0 WHERE NOT ( + col0 / - col1 ) = CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8575
SELECT - 79 DIV - col1 + - - col1 + + col2 col0 FROM tab1 cor0
----
115
116
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8575
SELECT - 79 / - col1 + - - col1 + + col2 col0 FROM tab1 cor0
----
115
116
79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / - 83 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - COUNT( * ) + 67 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col2 * col0 - col0 AND + 33
----
67

skipif mysql # not compatible
query I rowsort label-8577
SELECT - COUNT ( * ) + 67 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - col2 * col0 - col0 AND + 33
----
67

query I rowsort
SELECT DISTINCT col0 + col0 + + 46 FROM tab1 AS cor0
----
148
216
228

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 86 + + - col1 IS NOT NULL
----

query I rowsort
SELECT col2 * col2 * col1 AS col1 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 - + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8582
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT ALL + 92 * - MIN( DISTINCT 25 ) * 29 FROM tab0
----
-66700

skipif mysql # not compatible
query I rowsort label-8583
SELECT ALL + 92 * - MIN ( DISTINCT 25 ) * 29 FROM tab0
----
-66700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 87 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8585
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8585
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 81 + col2 AS col1 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT ALL + 49 * + col2 FROM tab1 AS cor0
----
2891
3332
4704

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT DISTINCT - 99 * - + COUNT( * ) AS col0 FROM tab1 cor0
----
297

skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT - 99 * - + COUNT ( * ) AS col0 FROM tab1 cor0
----
297

query I rowsort
SELECT ALL + col0 + - col2 - - col2 * - + col0 FROM tab0 AS cor0
----
-737
-793
-9605

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col1 + - + ( - col2 ) / + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8590
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col1 + - + ( - col2 ) / + col1 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - 60 * + COUNT( * ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8591
SELECT DISTINCT - 60 * + COUNT ( * ) FROM tab0 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL 57 + + - COUNT( * ) AS col0 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL 57 + + - COUNT ( * ) AS col0 FROM tab1
----
54

query I rowsort
SELECT - + 69 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - - 81 FROM tab1 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 85 + ( + - 52 ) ) NOT BETWEEN NULL AND ( - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - + ( - + col0 ) + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - MAX( - + col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - MAX ( - + col0 ) FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT + COUNT( - - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8599
SELECT + COUNT ( - - col2 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT 29 - - + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8600
SELECT 29 - - + COUNT ( * ) FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT ALL COUNT( ALL 5 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8602
SELECT ALL COUNT ( ALL 5 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8604
SELECT DISTINCT + ( + 8 ) * + 84 + 9 * - + CAST( NULL AS SIGNED ) - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + ( + 8 ) * + 84 + 9 * - + CAST ( NULL AS INTEGER ) - col2 FROM tab2
----
NULL

query I rowsort
SELECT - 50 * col0 * + 29 * col2 * - col1 AS col2 FROM tab2
----
285824000
422602500
78239100

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NOT ( col1 * + col0 - 81 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8607
SELECT DISTINCT + SUM( ALL - ( - 57 ) ) AS col0 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8607
SELECT DISTINCT + SUM ( ALL - ( - 57 ) ) AS col0 FROM tab2 AS cor0
----
171

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT SUM( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT - col1 IN ( - - 57 * - + col0 )
----
156

skipif mysql # not compatible
query I rowsort label-8608
SELECT SUM ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT - col1 IN ( - - 57 * - + col0 )
----
156

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 18 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL < col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8611
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= ( + col0 / 80 + - col2 + - CAST( + col0 AS SIGNED ) )
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-8611
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 >= ( + col0 / 80 + - col2 + - CAST ( + col0 AS INTEGER ) )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8612
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL - MAX( col1 ) * + + COUNT( * ) + - + 84 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL - MAX ( col1 ) * + + COUNT ( * ) + - + 84 FROM tab1
----
-225

query I rowsort
SELECT ALL + + 20 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL 42 AS col1, col1 * + col2 AS col1 FROM tab0
----
42
210
42
3807
42
99

query I rowsort
SELECT ALL - col2 * + + col2 FROM tab2
----
-1600
-3364
-529

query II rowsort
SELECT DISTINCT - + col2 * + col0 AS col1, - col2 + - col2 FROM tab1 WHERE NOT NULL >= + + col1 / - col1
----

query II rowsort
SELECT ALL - + 17 AS col0, - col2 FROM tab0 AS cor0
----
-17
-10
-17
-47
-17
-99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( col0, - col2 )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( - col1 + + 57 + - 52 + - col1 * + col1 )
----

query I rowsort
SELECT col2 * col2 + + col1 AS col0 FROM tab2 AS cor0
----
1677
3431
580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8622
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 5 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 5 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8623
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( CAST( + 99 AS SIGNED ) ) IN ( - col1, + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8623
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( CAST ( + 99 AS INTEGER ) ) IN ( - col1, + ( - col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT - SUM( + - 16 ) col0 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8624
SELECT - SUM ( + - 16 ) col0 FROM tab0
----
48

query III rowsort
SELECT * FROM tab0 WHERE - + 21 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8626
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE ( NOT col2 * + col0 * col0 * + ( + col1 ) > - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8626
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE ( NOT col2 * + col0 * col0 * + ( + col1 ) > - col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col1 FROM tab0
----
174
194
30

query I rowsort
SELECT - col2 - - col2 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 78 * - 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 44 * - - col1 - + 9 + - - col2 AS col0 FROM tab1 AS cor0
----
2127
270
703

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8632
SELECT ALL + CAST( NULL AS SIGNED ) - + 85 AS col1, SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
156

skipif mysql # not compatible
query II rowsort label-8632
SELECT ALL + CAST ( NULL AS INTEGER ) - + 85 AS col1, SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT ALL + COUNT( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8633
SELECT ALL + COUNT ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8634
SELECT 21 + ( - col0 ) DIV - col0 AS col1, - col0 FROM tab2 AS cor0
----
22
-46
22
-64
22
-75

skipif mysql # not compatible
query II rowsort label-8634
SELECT 21 + ( - col0 ) / - col0 AS col1, - col0 FROM tab2 AS cor0
----
22
-46
22
-64
22
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT ALL col0 + + col2 * + ( 46 ) AS col1 FROM tab0
----
2177
4651
547

query I rowsort
SELECT ALL col1 * 41 FROM tab2
----
2091
2747
3157

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT ALL 95 * + + COUNT( * ) * - 12 col1 FROM tab0
----
-3420

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8638
SELECT ALL 95 * + + COUNT ( * ) * - 12 col1 FROM tab0
----
-3420

onlyif mysql # aggregate syntax: 
query I rowsort label-8639
SELECT MIN( - + 50 ) FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-8639
SELECT MIN ( - + 50 ) FROM tab2
----
-50

query II rowsort
SELECT ALL col1 AS col2, - col2 AS col0 FROM tab1
----
14
-96
47
-68
5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 29 ) col0 FROM tab0
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 27 col1 FROM tab2 AS cor0
----
27
27
27

query I rowsort
SELECT 24 + 82 + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
116
153
205

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8645
SELECT DISTINCT + ( + COUNT( * ) ), + COUNT( * ) * + 15 + + COUNT( * ) AS col1 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-8645
SELECT DISTINCT + ( + COUNT ( * ) ), + COUNT ( * ) * + 15 + + COUNT ( * ) AS col1 FROM tab2
----
3
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - - COUNT( * ) + - 2 * - 74 FROM tab1 AS cor0
----
151

skipif mysql # not compatible
query I rowsort label-8646
SELECT - - COUNT ( * ) + - 2 * - 74 FROM tab1 AS cor0
----
151

query I rowsort
SELECT - col2 * + - col1 * - - 3 + - col2 AS col1 FROM tab0 AS cor0
----
11374
198
620

query I rowsort
SELECT ALL 41 * + col0 FROM tab0 cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8649
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + 44 * - col1 ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8649
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 * + 44 * - col1 ) < - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT - + CAST( - 30 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - + CAST ( - 30 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
30

query III rowsort
SELECT * FROM tab2 WHERE + + ( + - col1 ) / + 47 + + col0 <= NULL
----

query I rowsort
SELECT ALL 31 * + col1 AS col1 FROM tab1
----
1457
155
434

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8653
SELECT ALL - 88 AS col0 FROM tab0 WHERE NOT ( + CAST( col0 AS DECIMAL ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL - 88 AS col0 FROM tab0 WHERE NOT ( + CAST ( col0 AS REAL ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT ALL + MIN( + 27 ) + - SUM( DISTINCT - col0 ) FROM tab1
----
254

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL + MIN ( + 27 ) + - SUM ( DISTINCT - col0 ) FROM tab1
----
254

query I rowsort
SELECT DISTINCT col0 + - + 28 * col2 + - + col2 AS col0 FROM tab0
----
-1348
-203
-2774

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * - col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT ALL + ( - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8657
SELECT ALL + ( - COUNT ( * ) ) col2 FROM tab2
----
-3

query I rowsort
SELECT + col0 * 49 * + col1 FROM tab2
----
114954
241472
246225

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 NOT BETWEEN - ( - col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT 13 AS col0 FROM tab2 cor0
----
13

query I rowsort
SELECT - 19 + + 10 * col2 FROM tab1
----
571
661
941

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 15 col1 FROM tab0
----
1215
15
315

query I rowsort
SELECT ALL - col1 * 94 * + 10 + + - 0 AS col0 FROM tab1
----
-13160
-44180
-4700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col2 * + 84 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 - 51 FROM tab0 AS cor0
----
-4
-41
48

query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab2 cor0
----
42

query I rowsort
SELECT ALL - 23 * - + 95 - + - 44 + + 9 - - - col2 + 92 FROM tab2 AS cor0
----
2272
2290
2307

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8668
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( 46 * - + ( CAST( + col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8668
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE ( 46 * - + ( CAST ( + col0 AS INTEGER ) ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 65 * - + col0 col1 FROM tab2 AS cor0
----
-2990
-4160
-4875

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT + MAX( col2 ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8670
SELECT + MAX ( col2 ) AS col1 FROM tab0 cor0
----
99

query I rowsort
SELECT - 3 * + - col1 AS col1 FROM tab1 AS cor0
----
141
15
42

query I rowsort
SELECT col1 FROM tab0 WHERE NOT col1 > - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 * 20 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8674
SELECT * FROM tab0 WHERE NOT + - col0 + col1 + col1 + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( + + col2 )
----

skipif mysql # not compatible
query III rowsort label-8674
SELECT * FROM tab0 WHERE NOT + - col0 + col1 + col1 + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8675
SELECT DISTINCT col1 * - - col0, - col1 * + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

skipif mysql # not compatible
query II rowsort label-8675
SELECT DISTINCT col1 * - - col0, - col1 * + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
2346
NULL
4928
NULL
5025
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8676
SELECT ALL ( COUNT( * ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL ( COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT 29 * 35 * + COUNT( * ) AS col1 FROM tab2
----
3045

skipif mysql # not compatible
query I rowsort label-8677
SELECT 29 * 35 * + COUNT ( * ) AS col1 FROM tab2
----
3045

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT ALL + MIN( + - col0 ) * + 39 FROM tab0
----
-3783

skipif mysql # not compatible
query I rowsort label-8678
SELECT ALL + MIN ( + - col0 ) * + 39 FROM tab0
----
-3783

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT ALL SUM( ( - 80 ) ) AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-8680
SELECT ALL SUM ( ( - 80 ) ) AS col1 FROM tab2
----
-240

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8682
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( + col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT col1 * - 37 * CAST( + col1 AS SIGNED ) * - col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-8683
SELECT col1 * - 37 * CAST ( + col1 AS INTEGER ) * - col1 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8684
SELECT DISTINCT + CAST( + ( + AVG ( - + 1 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT + CAST ( + ( + AVG ( - + 1 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col2 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8686
SELECT - - MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8686
SELECT - - MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8687
SELECT - + COUNT( * ) DIV 24 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT - + COUNT ( * ) / 24 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT COUNT( * ) * 21 AS col0 FROM tab0 cor0
----
63

skipif mysql # not compatible
query I rowsort label-8688
SELECT COUNT ( * ) * 21 AS col0 FROM tab0 cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8689
SELECT col0 DIV + col1 col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8689
SELECT col0 / + col1 col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT ALL + col0 * ( ( - + col2 ) ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT + col2 + - ( - col0 ) AS col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - 82 + col0 FROM tab0
----
-67
15
5

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND col0
----

query II rowsort
SELECT - col1 + col1 AS col0, col0 + - + col2 FROM tab2
----
0
17
0
23
0
24

query I rowsort
SELECT DISTINCT col0 + + + col0 + col1 - + + 31 FROM tab1
----
144
198
85

query I rowsort
SELECT ( + col2 ) * - - col2 + + col2 * col1 + + + col2 FROM tab1
----
10656
3835
7888

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL MAX( DISTINCT - col2 ) + - COUNT( * ) FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL MAX ( DISTINCT - col2 ) + - COUNT ( * ) FROM tab1
----
-62

query I rowsort
SELECT DISTINCT - 87 - - col0 FROM tab0
----
-72
0
10

query I rowsort
SELECT ALL col1 + + - col2 FROM tab0 WHERE NOT NULL NOT IN ( 1 + + col0 )
----

query I rowsort
SELECT ALL - - 19 - - col0 AS col2 FROM tab2 AS cor0
----
65
83
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8701
SELECT + + col1 * - 87 + + - col2 + - - 18 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1837
-204
-7094

skipif mysql # not compatible
query I rowsort label-8701
SELECT + + col1 * - 87 + + - col2 + - - 18 / - col1 AS col1 FROM tab0 AS cor0
----
-1837
-204
-7094

onlyif mysql # aggregate syntax: 
query II rowsort label-8702
SELECT - COUNT( * ) col2, SUM( col1 ) FROM tab0 cor0
----
-3
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8702
SELECT - COUNT ( * ) col2, SUM ( col1 ) FROM tab0 cor0
----
-3
103

query I rowsort
SELECT col0 + - 79 FROM tab1
----
-28
12
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col0 + - 52 col2 FROM tab2
----
2064
4044
5573

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT + + MIN( DISTINCT + - ( + + col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8706
SELECT + + MIN ( DISTINCT + - ( + + col1 ) ) FROM tab1 AS cor0
----
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 2 + + col2 / + - col0 + - 37 * ( - ( + col2 ) ) + + 44 < + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8708
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8708
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL IN ( col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col1 ) AS col2, 65 col0 FROM tab0 AS cor0
----
-1
65
-21
65
-81
65

query I rowsort
SELECT ALL + col2 * + col2 - + col1 FROM tab1 AS cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - + COUNT( * ) * + - ( - SUM( - col2 ) ) AS col1 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-8711
SELECT - + COUNT ( * ) * + - ( - SUM ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT - + COUNT( * ) + - AVG ( DISTINCT + col2 ) FROM tab0 WHERE NOT ( - 11 ) NOT BETWEEN NULL AND col2 * col1 - - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-8712
SELECT - + COUNT ( * ) + - AVG ( DISTINCT + col2 ) FROM tab0 WHERE NOT ( - 11 ) NOT BETWEEN NULL AND col2 * col1 - - - 12
----
NULL

query II rowsort
SELECT col0, - 82 AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - 3 <= + 11 + + - col1
----
-3

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - 3 <= + 11 + + - col1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8715
SELECT - CAST( NULL AS SIGNED ) col2, COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8715
SELECT - CAST ( NULL AS INTEGER ) col2, COUNT ( * ) FROM tab2
----
NULL
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col1 + + - col0 col2, 96 AS col2 FROM tab1 AS cor0
----
-110
96
-2300
96
-247
96

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8718
SELECT CAST( + SUM( DISTINCT - CAST( + col0 AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8718
SELECT CAST ( + SUM ( DISTINCT - CAST ( + col0 AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT + 82 + 27 AS col0 FROM tab0
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT - 31 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8720
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT - 31 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT - col2 + + col1 * + 21 <= - + 72 * - col2 + - - 37 )
----

query I rowsort
SELECT DISTINCT - 59 * 46 * + - 54 FROM tab2 AS cor0
----
146556

query I rowsort
SELECT ALL 85 * - - 46 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
179860
250240
293250

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT NULL < 27 / - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8725
SELECT COUNT( * ) + - + 10 + - 38 * MIN( - + 42 ) FROM tab2 AS cor0 WHERE + col2 + + CAST( NULL AS DECIMAL ) IS NULL
----
1589

skipif mysql # not compatible
query I rowsort label-8725
SELECT COUNT ( * ) + - + 10 + - 38 * MIN ( - + 42 ) FROM tab2 AS cor0 WHERE + col2 + + CAST ( NULL AS REAL ) IS NULL
----
1589

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 6 col1 FROM tab1
----
57
91
97

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NULL IN ( - - 57 + - + col0 - - 10, col0 * - 22, col1 + + 46 * + 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8728
SELECT DISTINCT - 86 DIV col2 col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8728
SELECT DISTINCT - 86 / col2 col2 FROM tab2
----
-1
-2
-3

query I rowsort
SELECT DISTINCT - col0 * 64 + 58 FROM tab1
----
-3206
-5382
-5766

query I rowsort
SELECT col1 - + + col1 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 90 IS NOT NULL
----

query I rowsort
SELECT ALL 70 * col2 - col2 AS col2 FROM tab1
----
4071
4692
6624

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8733
SELECT DISTINCT ( - COUNT( * ) ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT ( - COUNT ( * ) ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT COUNT( + - ( + 37 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT COUNT ( + - ( + 37 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL 83 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - col0 * - col0 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 62 ) * 4 col0 FROM tab1
----
-248
-248
-248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT - CAST( NULL AS SIGNED ) * - col2 / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8738
SELECT - CAST ( NULL AS INTEGER ) * - col2 / - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT + ( + ( SUM( + col2 ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8740
SELECT + ( + ( SUM ( + col2 ) ) ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT ( + 29 ) * + col0 AS col2 FROM tab0
----
2523
2813
435

query I rowsort
SELECT ALL col1 / - 89 * col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT + COUNT( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + COUNT ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * - 43 AS col1 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 73
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT DISTINCT + col1 DIV - 22 + + 28 * - 31 FROM tab0 AS cor0
----
-868
-871

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + col1 / - 22 + + 28 * - 31 FROM tab0 AS cor0
----
-868
-871

query I rowsort
SELECT + 49 + + col0 AS col1 FROM tab1 AS cor0
----
100
134
140

query I rowsort
SELECT ALL col1 * - + 36 AS col0 FROM tab1 AS cor0
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT 61 * + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
186

skipif mysql # not compatible
query I rowsort label-8751
SELECT 61 * + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8752
SELECT ALL + COUNT( * ) + + + CAST( NULL AS DECIMAL ) AS col1, 64 FROM tab0
----
NULL
64

skipif mysql # not compatible
query II rowsort label-8752
SELECT ALL + COUNT ( * ) + + + CAST ( NULL AS REAL ) AS col1, 64 FROM tab0
----
NULL
64

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 54 IS NULL
----

query I rowsort
SELECT col2 * + - col1 + 42 AS col0 FROM tab1
----
-1302
-253
-3154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 46 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 59 FROM tab1 WHERE 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT + COUNT( * ) + 79 AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT + COUNT ( * ) + 79 AS col1 FROM tab0
----
82

query I rowsort
SELECT DISTINCT col2 - - 97 FROM tab2 AS cor0
----
120
137
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8760
SELECT ALL ( - 40 ) * CAST( NULL AS SIGNED ) - + col0 + + 74 * - ( 60 ) + - col2 - + + 2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL ( - 40 ) * CAST ( NULL AS INTEGER ) - + col0 + + 74 * - ( 60 ) + - col2 - + + 2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - 99 ) FROM tab2 AS cor0
----
99
99
99

query I rowsort
SELECT ALL ( + 89 ) FROM tab1
----
89
89
89

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT + - col2 DIV + 39 + - ( + col1 ) FROM tab1 AS cor0
----
-16
-48
-6

skipif mysql # not compatible
query I rowsort label-8764
SELECT + - col2 / + 39 + - ( + col1 ) FROM tab1 AS cor0
----
-16
-48
-6

query II rowsort
SELECT + + col2 AS col0, col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
10
47
47
99
99

query II rowsort
SELECT ALL + col1 * - + col2 * + col2, col0 FROM tab2 AS cor0 WHERE - col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( 88 ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT DISTINCT + + col2 DIV 27 AS col1 FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT + + col2 / 27 AS col1 FROM tab1 AS cor0
----
2
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <= + 35
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8771
SELECT + col2 AS col0, ( CAST( + - ( - 9 ) AS SIGNED ) ) FROM tab2
----
23
9
40
9
58
9

skipif mysql # not compatible
query II rowsort label-8771
SELECT + col2 AS col0, ( CAST ( + - ( - 9 ) AS INTEGER ) ) FROM tab2
----
23
9
40
9
58
9

onlyif mysql # aggregate syntax: 
query II rowsort label-8772
SELECT ALL COUNT( * ) AS col2, - 32 AS col0 FROM tab0
----
3
-32

skipif mysql # not compatible
query II rowsort label-8772
SELECT ALL COUNT ( * ) AS col2, - 32 AS col0 FROM tab0
----
3
-32

query I rowsort
SELECT 82 * + - ( 26 ) * col2 AS col0 FROM tab1
----
-125788
-144976
-204672

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <= + 42
----

query I rowsort
SELECT - - 50 * col1 AS col0 FROM tab1 AS cor0
----
2350
250
700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8776
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + + col2 col0 FROM tab0 AS cor0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query II rowsort label-8778
SELECT ALL - + 5, ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-5
3

skipif mysql # not compatible
query II rowsort label-8778
SELECT ALL - + 5, ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-5
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT CAST( - AVG ( + 43 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-8779
SELECT CAST ( - AVG ( + 43 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-43

query I rowsort
SELECT ALL 48 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT + CAST( ( 41 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

skipif mysql # not compatible
query I rowsort label-8781
SELECT + CAST ( ( 41 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT DISTINCT - ( - + 62 ) AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT DISTINCT + COUNT( * ) DIV - 60 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8783
SELECT DISTINCT + COUNT ( * ) / - 60 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT DISTINCT 46 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL <= + 79
----

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT 46 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL <= + 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT - ( + ( - + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8785
SELECT - ( + ( - + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8786
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + ( CAST ( NULL AS REAL ) ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 67 - + 82 FROM tab0
----
-15
-15
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + - 22 col1 FROM tab2
----
23
23
23

onlyif mysql # DIV for integer division: 
query II rowsort label-8789
SELECT - 33 - - col0 * col0 * + col2 AS col0, + ( + 78 ) DIV - 25 - - col2 FROM tab0
----
10542
44
75657
7
931458
96

skipif mysql # not compatible
query II rowsort label-8789
SELECT - 33 - - col0 * col0 * + col2 AS col0, + ( + 78 ) / - 25 - - col2 FROM tab0
----
10542
44
75657
7
931458
96

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT COUNT( ALL + + 37 ) - + + 67 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-8791
SELECT COUNT ( ALL + + 37 ) - + + 67 FROM tab0
----
-64

query II rowsort
SELECT DISTINCT - col2 AS col2, - 50 + + 48 FROM tab2 AS cor0
----
-23
-2
-40
-2
-58
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + - MIN( ALL + col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8793
SELECT + - MIN ( ALL + col1 ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 <= 85 - + col0 + 33 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * + 42 / col0 <> NULL
----

query I rowsort
SELECT ALL + ( 81 ) AS col1 FROM tab0 cor0
----
81
81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 58 AS col2, + 49 col0 FROM tab2 cor0
----
-58
49
-58
49
-58
49

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT + MAX( col1 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8798
SELECT + MAX ( col1 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT ALL - 54 * + col2 FROM tab1
----
-3186
-3672
-5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) * - col0 col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT + SUM( ALL + - 75 ) * + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + SUM ( ALL + - 75 ) * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8803
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( ( - ( + col2 ) ), col0 * col2 + + + 50 + + CAST( - 36 AS SIGNED ) + + - 59, - 50 )
----

skipif mysql # not compatible
query III rowsort label-8803
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( ( - ( + col2 ) ), col0 * col2 + + + 50 + + CAST ( - 36 AS INTEGER ) + + - 59, - 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT DISTINCT MIN( ALL ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT MIN ( ALL ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL - - COUNT( col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL - - COUNT ( col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * ( + - col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT COUNT( - + 56 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8807
SELECT COUNT ( - + 56 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT ALL - 78 DIV + col2 FROM tab2 WHERE NOT - col2 + + - col0 IS NULL
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL - 78 / + col2 FROM tab2 WHERE NOT - col2 + + - col0 IS NULL
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8809
SELECT CAST( col1 AS SIGNED ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-8809
SELECT CAST ( col1 AS INTEGER ) * + col2 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 + + + col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT 4 * - col2 FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 75 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 col2, - col1 AS col0, col1 * - + 50 + - + 69 AS col2 FROM tab2
----
9 values hashing to d7121d8c6db18d86efb5b2132aea8312

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 61 * - col0 * 1 * - col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * - + col0 * - col0 + 16 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8816
SELECT + MAX( + col0 ) DIV + ( 85 ) + - 15 + + + 16 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8816
SELECT + MAX ( + col0 ) / + ( 85 ) + - 15 + + + 16 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT DISTINCT 44 - - col2 * + col2 FROM tab0 AS cor0
----
144
2253
9845

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT ALL + - 67 + - COUNT( * ) FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8818
SELECT ALL + - 67 + - COUNT ( * ) FROM tab1 AS cor0
----
-70

query I rowsort
SELECT - - col2 + - + 13 FROM tab2 AS cor0
----
10
27
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8821
SELECT 74 DIV + + col1 + - + 94 FROM tab1 AS cor0
----
-80
-89
-93

skipif mysql # not compatible
query I rowsort label-8821
SELECT 74 / + + col1 + - + 94 FROM tab1 AS cor0
----
-80
-89
-93

query I rowsort
SELECT DISTINCT - + ( - col1 ) + + 33 - col1 FROM tab2 AS cor0
----
33

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NOT + col0 + - + col2 - + col0 >= - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT + 62 * COUNT( * ) col0 FROM tab0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8824
SELECT + 62 * COUNT ( * ) col0 FROM tab0
----
186

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8825
SELECT ALL - SUM( ALL 45 ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL - SUM ( ALL 45 ) * + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT + 69 * + + ( + COUNT( * ) ) FROM tab2 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8826
SELECT + 69 * + + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
207

onlyif mysql # aggregate syntax: 
query II rowsort label-8827
SELECT COUNT( ALL 76 ), - COUNT( + - 76 ) AS col2 FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8827
SELECT COUNT ( ALL 76 ), - COUNT ( + - 76 ) AS col2 FROM tab1 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT DISTINCT - MAX( col0 ) * + - COUNT( * ) col1 FROM tab0 cor0
----
291

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT DISTINCT - MAX ( col0 ) * + - COUNT ( * ) col1 FROM tab0 cor0
----
291

query I rowsort
SELECT col2 + - col0 + - col0 + + col0 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-17
-23
-24

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8831
SELECT - 6 AS col1, - COUNT( DISTINCT + col0 ) FROM tab1
----
-6
-3

skipif mysql # not compatible
query II rowsort label-8831
SELECT - 6 AS col1, - COUNT ( DISTINCT + col0 ) FROM tab1
----
-6
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * - col1 col0 FROM tab1 AS cor0
----
-1598
-170
-476

onlyif mysql # DIV for integer division: 
query I rowsort label-8833
SELECT 20 DIV ( + - 25 ) + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8833
SELECT 20 / ( + - 25 ) + col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT - col1 + - 98 + - col1 AS col2, col2 * col2 FROM tab2 AS cor0
----
-200
529
-232
3364
-252
1600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT DISTINCT + col0 * - CAST( NULL AS SIGNED ) * - - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + col0 * - CAST ( NULL AS INTEGER ) * - - col2 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 13, col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-13
1
-13
21
-13
81

query I rowsort
SELECT ALL - + 36 * - col0 FROM tab0 AS cor0
----
3132
3492
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL + 29 * col2 + + CAST( NULL AS SIGNED ) * col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT ALL + 29 * col2 + + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8839
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col2 FROM tab2 WHERE NOT - 80 IS NULL
----
-96
-96
-96

query I rowsort
SELECT + col2 * - + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query II rowsort label-8842
SELECT ALL + col0 + col2, - 85 DIV + col1 + - 77 AS col1 FROM tab1
----
144
-94
147
-83
159
-78

skipif mysql # not compatible
query II rowsort label-8842
SELECT ALL + col0 + col2, - 85 / + col1 + - 77 AS col1 FROM tab1
----
144
-94
147
-83
159
-78

query II rowsort
SELECT ALL 47 + + col2, col0 AS col2 FROM tab0
----
146
97
57
87
94
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT + SUM( 12 ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + SUM ( 12 ) AS col1 FROM tab2
----
36

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

query I rowsort
SELECT col0 * + 91 AS col2 FROM tab0
----
1365
7917
8827

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 67 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8848
SELECT COUNT( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8848
SELECT COUNT ( + + col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8849
SELECT DISTINCT col1 DIV col1 * + 6 AS col1 FROM tab1 WHERE + + 52 + + col2 > col0
----
6

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT col1 / col1 * + 6 AS col1 FROM tab1 WHERE + + 52 + + col2 > col0
----
6

query I rowsort
SELECT DISTINCT + 25 - - + col0 FROM tab2 AS cor0
----
100
71
89

query I rowsort
SELECT DISTINCT - ( + - col1 ) - + - col2 AS col1 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 26 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT + 92 - ( - - MAX( + col1 ) ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8853
SELECT + 92 - ( - - MAX ( + col1 ) ) FROM tab2 AS cor0
----
15

query I rowsort
SELECT DISTINCT - col2 * 43 FROM tab1 AS cor0
----
-2537
-2924
-4128

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8855
SELECT COUNT( * ) - 99 DIV - 98 AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8855
SELECT COUNT ( * ) - 99 / - 98 AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL COUNT( * ) * 65 AS col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL COUNT ( * ) * 65 AS col1 FROM tab1 AS cor0
----
195

query I rowsort
SELECT - 19 * - col0 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + SUM( ALL - + 9 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + SUM ( ALL - + 9 ) FROM tab2
----
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT ALL - MIN( DISTINCT 39 ), COUNT( * ) + 30 col1 FROM tab1
----
-39
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8859
SELECT ALL - MIN ( DISTINCT 39 ), COUNT ( * ) + 30 col1 FROM tab1
----
-39
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT ALL ( + - CAST( - + col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8860
SELECT ALL ( + - CAST ( - + col1 AS INTEGER ) ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL - + 49 AS col2 FROM tab2 AS cor0
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 = + col2 * + 88 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8863
SELECT DISTINCT + MIN( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col1 - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8863
SELECT DISTINCT + MIN ( + col0 ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND col1 - + col2
----
NULL

query I rowsort
SELECT ALL + col0 * - + ( + - col0 ) FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT + 3 * - + ( - 95 ) * + col1 - + col2 AS col1 FROM tab2 AS cor0
----
14512
19037
21905

onlyif mysql # DIV for integer division: 
query I rowsort label-8866
SELECT col2 DIV ( - - col1 ) AS col2 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-8866
SELECT col2 / ( - - col1 ) AS col2 FROM tab1 AS cor0
----
1
11
6

query I rowsort
SELECT DISTINCT - col2 * + + col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-3540
-4692
-9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8868
SELECT + COUNT( ALL - - col1 ) DIV - COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-1
-3

skipif mysql # not compatible
query II rowsort label-8868
SELECT + COUNT ( ALL - - col1 ) / - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-1
-3

query I rowsort
SELECT + col1 * - + col0 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
107916
315392
376875

query I rowsort
SELECT ALL + 24 + - - 21 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT COUNT( ( col2 ) ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8872
SELECT COUNT ( ( col2 ) ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 44 * - col2 + + col0 + + 17 AS col1 FROM tab2 AS cor0
----
1075
1841
2644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT 21 * + col0 * + col1 + + CAST( - - col1 AS SIGNED ) + - - col2 AS col1 FROM tab2
----
103605
105650
49340

skipif mysql # not compatible
query I rowsort label-8874
SELECT 21 * + col0 * + col1 + + CAST ( - - col1 AS INTEGER ) + - - col2 AS col1 FROM tab2
----
103605
105650
49340

query I rowsort
SELECT ALL - col1 * - 13 FROM tab0
----
1053
13
273

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col2 + - + col0 * + col1 * 4 AND - + col1 + - - 31 + - - col2 + - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT - - COUNT( * ) * MAX( - 52 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT - - COUNT ( * ) * MAX ( - 52 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT - col2 * + col0 - - 4 FROM tab0 AS cor0
----
-701
-866
-9599

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8879
SELECT ALL - + CAST( NULL AS SIGNED ) + + col1 + col0 / 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL - + CAST ( NULL AS INTEGER ) + + col1 + col0 / 4 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT - 43 DIV 2 FROM tab2 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-8880
SELECT - 43 / 2 FROM tab2 AS cor0
----
-21
-21
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8881
SELECT ALL 10 DIV - col1 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8881
SELECT ALL 10 / - col1 col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8883
SELECT + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0 WHERE - + col0 * + + CAST( NULL AS SIGNED ) IS NOT NULL OR NOT + 39 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8883
SELECT + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0 WHERE - + col0 * + + CAST ( NULL AS INTEGER ) IS NOT NULL OR NOT + 39 IS NULL
----
59
68
96

query I rowsort
SELECT ( + + col2 ) + - col2 AS col1 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT - 74 + 36 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT - col0 + + - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-116
-175
-229

onlyif mysql # DIV for integer division: 
query I rowsort label-8887
SELECT ALL col2 DIV col0 * col1 AS col1 FROM tab0 AS cor0
----
0
1
243

skipif mysql # not compatible
query I rowsort label-8887
SELECT ALL col2 / col0 * col1 AS col1 FROM tab0 AS cor0
----
0
1
243

query I rowsort
SELECT ALL - col0 + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-37
-44
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - 3 / + - CAST( NULL AS SIGNED ) * + - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT - 3 / + - CAST ( NULL AS INTEGER ) * + - col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 23 AS col2, 60 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT + 70 DIV - col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8891
SELECT + 70 / - col0 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT + SUM( ALL col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + SUM ( ALL col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT DISTINCT + MIN( + 15 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT + MIN ( + 15 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8894
SELECT DISTINCT + col2 col1, col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8894
SELECT DISTINCT + col2 col1, col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT col0 * + - col2 AS col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query II rowsort label-8896
SELECT COUNT( * ) AS col2, - COUNT( * ) * - 92 FROM tab1 AS cor0
----
3
276

skipif mysql # not compatible
query II rowsort label-8896
SELECT COUNT ( * ) AS col2, - COUNT ( * ) * - 92 FROM tab1 AS cor0
----
3
276

query I rowsort
SELECT DISTINCT col2 * - 25 AS col2 FROM tab1 AS cor0
----
-1475
-1700
-2400

query I rowsort
SELECT ALL col0 * ( 26 ) FROM tab0
----
2262
2522
390

query II rowsort
SELECT + 94, col2 FROM tab1
----
94
59
94
68
94
96

query II rowsort
SELECT ALL ( + AVG ( ALL col2 ) ), + 0 AS col1 FROM tab1 WHERE + col0 IS NULL
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT DISTINCT + COUNT( * ) * + - ( MIN( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8901
SELECT DISTINCT + COUNT ( * ) * + - ( MIN ( ALL col1 ) ) AS col0 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT DISTINCT + + col2 / + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT DISTINCT + + col2 / + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * 90 > NULL
----

query I rowsort
SELECT ALL + col1 + + - col2 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL + col2 + - 91 + 7 AS col1 FROM tab2 cor0
----
-26
-44
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT DISTINCT + + col2 / - - ( col2 ) + + - col1 / - - col1 + - col2 + + ( - ( - 25 ) ) + CAST( NULL AS SIGNED ) + + - col1 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + + col2 / - - ( col2 ) + + - col1 / - - col1 + - col2 + + ( - ( - 25 ) ) + CAST ( NULL AS INTEGER ) + + - col1 AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - + col0 NOT BETWEEN 69 AND ( 30 - - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8909
SELECT ALL - COUNT( * ) + - COUNT( * ) * 9 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8909
SELECT ALL - COUNT ( * ) + - COUNT ( * ) * 9 FROM tab0 AS cor0
----
-30

query I rowsort
SELECT - col0 * + - 66 * + col2 * col1 FROM tab2
----
13009920
19235700
3561228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8911
SELECT + col2 * ( + 18 ) AS col1, - 49 + - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0
----
1782
NULL
180
NULL
846
NULL

skipif mysql # not compatible
query II rowsort label-8911
SELECT + col2 * ( + 18 ) AS col1, - 49 + - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0
----
1782
NULL
180
NULL
846
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT DISTINCT col0 DIV - - ( - + col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT col0 / - - ( - + col0 ) FROM tab0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + ( - 98 ) col2 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT + 88 * + COUNT( 12 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
792

skipif mysql # not compatible
query I rowsort label-8914
SELECT + 88 * + COUNT ( 12 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
792

query I rowsort
SELECT + ( col1 ) / - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * 60 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 85 + - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL + MIN( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-8918
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT ALL + SUM( ALL col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL + SUM ( ALL col0 ) AS col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 29 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
29
29
29

query I rowsort
SELECT 85 + col1 + col2 FROM tab0 AS cor0 WHERE NOT 5 IS NULL
----
116
185
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT CAST( - 60 AS SIGNED ) FROM tab2
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-8922
SELECT CAST ( - 60 AS INTEGER ) FROM tab2
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-8923
SELECT 63 * - COUNT( * ) AS col0 FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-8923
SELECT 63 * - COUNT ( * ) AS col0 FROM tab2
----
-189

query I rowsort
SELECT col0 * - 59 AS col1 FROM tab1
----
-3009
-5015
-5369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - ( - + col2 ) col1 FROM tab2
----
160
232
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8926
SELECT DISTINCT - col1 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IN ( col2, - col1 )
----

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - col1 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( col2, - col1 )
----

query II rowsort
SELECT col2 * + - col2 AS col1, + ( + 60 ) AS col1 FROM tab0
----
-100
60
-2209
60
-9801
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT DISTINCT MAX( 6 ) col2 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8928
SELECT DISTINCT MAX ( 6 ) col2 FROM tab2
----
6

query I rowsort
SELECT + - 29 AS col1 FROM tab2 AS cor0
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + ( - ( + col0 ) ) + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8932
SELECT * FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + - 70 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8932
SELECT * FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + - 70 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8933
SELECT ALL + CAST( + SUM( ALL - 45 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-8933
SELECT ALL + CAST ( + SUM ( ALL - 45 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT + col2 / - 35 * + 66 * - + col1 * - col2 + - - col2 - + - col1 + col2 FROM tab1 AS cor0 WHERE 50 IS NULL
----

query I rowsort
SELECT + - 39 * col2 FROM tab1 AS cor0
----
-2301
-2652
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-8936
SELECT ALL + ( - COUNT( + 47 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8936
SELECT ALL + ( - COUNT ( + 47 ) ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 5 + + 31 * + 45 FROM tab2 AS cor0
----
1400

query I rowsort
SELECT ALL - + 77 FROM tab1 WHERE + col2 IS NOT NULL AND + ( - col0 ) <> - + col1
----
-77
-77
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 - - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 25 ) + + col2 col2 FROM tab1
----
34
43
71

query II rowsort
SELECT ALL col2 + + col0, ( + - 33 ) AS col0 FROM tab0
----
196
-33
62
-33
97
-33

query I rowsort
SELECT col2 - + - 78 AS col0 FROM tab1 AS cor0
----
137
146
174

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 84 ) > - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 91 * - 36 AS col1, 29 col2 FROM tab1
----
-3276
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 73 ) * - + ( col0 ) col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 < + - 39 - + - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8947
SELECT + 16 * - 92 + + CAST( + 65 AS SIGNED ) + col2, col1 FROM tab2 AS cor0
----
-1349
67
-1367
77
-1384
51

skipif mysql # not compatible
query II rowsort label-8947
SELECT + 16 * - 92 + + CAST ( + 65 AS INTEGER ) + col2, col1 FROM tab2 AS cor0
----
-1349
67
-1367
77
-1384
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT DISTINCT MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT 32 * - ( - - col2 ) AS col0 FROM tab0
----
-1504
-3168
-320

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + + col1 < NULL )
----

query I rowsort
SELECT col2 * 32 AS col1 FROM tab2
----
1280
1856
736

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT COUNT( * ) * + + SUM( ALL - 13 ) AS col0 FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-8952
SELECT COUNT ( * ) * + + SUM ( ALL - 13 ) AS col0 FROM tab0
----
-117

query II rowsort
SELECT + 84 AS col2, - col1 FROM tab0
----
84
-1
84
-21
84
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * - 46 col2 FROM tab1
----
-3680
-3680
-3680

onlyif mysql # DIV for integer division: 
query I rowsort label-8955
SELECT - 85 * col2 DIV col2 DIV + col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8955
SELECT - 85 * col2 / col2 / + col2 FROM tab0 AS cor0
----
-1
-8
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8956
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab1 WHERE NULL <= ( col1 * 65 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8956
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab1 WHERE NULL <= ( col1 * 65 )
----

query I rowsort
SELECT ALL 78 + 3 FROM tab2
----
81
81
81

query I rowsort
SELECT ( 9 ) AS col0 FROM tab0 WHERE NOT - col2 - col2 IS NULL
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8959
SELECT - 23 + + COUNT( * ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-8959
SELECT - 23 + + COUNT ( * ) AS col2 FROM tab1
----
-20

onlyif mysql # DIV for integer division: 
query I rowsort label-8960
SELECT DISTINCT - 67 + 2 DIV col0 AS col2 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-8960
SELECT DISTINCT - 67 + 2 / col0 AS col2 FROM tab0
----
-67

query I rowsort
SELECT - 23 * 15 FROM tab1
----
-345
-345
-345

query I rowsort
SELECT 38 * - ( - 3 ) FROM tab2
----
114
114
114

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL COUNT( * ) + 86 AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL COUNT ( * ) + 86 AS col1 FROM tab1
----
89

query I rowsort
SELECT - 13 * + col2 AS col0 FROM tab1
----
-1248
-767
-884

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col1 * col1 )
----

query I rowsort
SELECT ALL - 45 + col0 AS col2 FROM tab1 WHERE NULL <= ( 93 )
----

query I rowsort
SELECT col2 * + ( col0 ) + + ( col0 ) AS col0 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT - COUNT( ALL - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - COUNT ( ALL - col2 ) FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 57 NOT BETWEEN col0 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab1
----
92

query I rowsort
SELECT DISTINCT col2 * 51 AS col0 FROM tab0
----
2397
5049
510

query I rowsort
SELECT - 92 AS col2 FROM tab0 WHERE col0 <> ( + col0 * col1 )
----
-92
-92

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT 79 + COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-8974
SELECT 79 + COUNT ( * ) FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL 17 * COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL 17 * COUNT ( * ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT ALL MIN( ALL col1 ) * - 12 FROM tab2
----
-612

skipif mysql # not compatible
query I rowsort label-8976
SELECT ALL MIN ( ALL col1 ) * - 12 FROM tab2
----
-612

query I rowsort
SELECT DISTINCT - 56 * + 91 FROM tab1
----
-5096

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 51 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * + col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-8980
SELECT col2 DIV - 46 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8980
SELECT col2 / - 46 AS col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col1 * col2 + + col0 AS col1 FROM tab1 WHERE NULL IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8982
SELECT ALL 41 DIV col0 - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL 41 / col0 - col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL 30 * COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL 30 * COUNT ( * ) AS col0 FROM tab0
----
90

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) IN ( - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8985
SELECT ALL ( + col0 ) DIV + 16 AS col0 FROM tab2
----
2
4
4

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL ( + col0 ) / + 16 AS col0 FROM tab2
----
2
4
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 4 * + 23 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 83 FROM tab1 AS cor0 WHERE NULL IS NULL
----
83
83
83

query I rowsort
SELECT ALL 20 * - col2 - + ( col2 ) AS col0 FROM tab1 cor0
----
-1239
-1428
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT - COUNT( * ) - + 41 FROM tab0 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - COUNT ( * ) - + 41 FROM tab0 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT ALL COUNT( - col2 ) col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8990
SELECT ALL COUNT ( - col2 ) col1 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN ( col1 ) AND - 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 52 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-8993
SELECT DISTINCT MAX( - 95 ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-8993
SELECT DISTINCT MAX ( - 95 ) AS col2 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT DISTINCT 19 * - 29 FROM tab1
----
-551

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col1 FROM tab0
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 >= - col0 * col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + col0 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + AVG ( ALL + col0 ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + col1 AND ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab2 cor0
----
96

query I rowsort
SELECT ALL + + 39 * + col0 FROM tab0 AS cor0
----
3393
3783
585

query I rowsort
SELECT DISTINCT col0 * col2 AS col1 FROM tab1 AS cor0 WHERE + 78 + col1 * - col0 IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT ALL MAX( col0 ) * - 83 col1 FROM tab0 AS cor0
----
-8051

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9003
SELECT ALL MAX ( col0 ) * - 83 col1 FROM tab0 AS cor0
----
-8051

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 38 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9005
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-9005
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ) * - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 51 * col2 + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * col2 AS col0 FROM tab2 WHERE NOT col0 + col1 IN ( - ( 52 ) )
----
1173
3080
3886

query I rowsort
SELECT - ( + - 54 ) * + 2 AS col2 FROM tab2
----
108
108
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT AVG ( DISTINCT col2 ) * COUNT( * ) FROM tab2 WHERE NOT - 32 * + 16 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9009
SELECT AVG ( DISTINCT col2 ) * COUNT ( * ) FROM tab2 WHERE NOT - 32 * + 16 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT - ( + COUNT( * ) ) + COUNT( * ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9011
SELECT - ( + COUNT ( * ) ) + COUNT ( * ) col1 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + + col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + ( - 94 ) + col0 AS col0 FROM tab2 AS cor0
----
140
158
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9014
SELECT - CAST( + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9014
SELECT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col0 col2 FROM tab1 AS cor0 WHERE + col0 - - col1 IS NULL
----

query I rowsort
SELECT - 68 FROM tab1 AS cor0 WHERE ( 7 - col0 ) > ( + 34 )
----

query I rowsort
SELECT DISTINCT + col1 * - ( ( + col1 ) ) + 70 AS col1 FROM tab1 AS cor0
----
-126
-2139
45

query I rowsort
SELECT - ( - 63 ) FROM tab1
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT MIN( col2 ) FROM tab1 WHERE + 27 IN ( + col2 * col2 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT MIN ( col2 ) FROM tab1 WHERE + 27 IN ( + col2 * col2 + col2 )
----
NULL

query I rowsort
SELECT ALL + 45 + col1 FROM tab2
----
112
122
96

query III rowsort
SELECT ALL * FROM tab1 WHERE 47 IN ( ( - 53 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9022
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) + 74 * 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL ( + CAST ( NULL AS REAL ) ) + 74 * 64 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9023
SELECT DISTINCT CAST( NULL AS DECIMAL ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9023
SELECT DISTINCT CAST ( NULL AS REAL ), + col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col0 - - 38 FROM tab0
----
125
135
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT ALL MAX( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL MAX ( DISTINCT + - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col1 + + + col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 - + col1 AND NULL
----

query II rowsort
SELECT DISTINCT - col2, + col0 - col0 AS col2 FROM tab1 cor0
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT SUM( DISTINCT col1 ) + 10 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-9029
SELECT SUM ( DISTINCT col1 ) + 10 FROM tab1 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + 81 BETWEEN ( NULL ) AND ( col0 ) + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9031
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9031
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE ( + col2 ) BETWEEN - col2 AND 44
----
73
73

query I rowsort
SELECT ALL + col2 * - ( col0 * col2 ) FROM tab0 AS cor0 WHERE NOT 60 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT + 93 + + COUNT( * ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 93 + + COUNT ( * ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT + col2 + + 7 * + col1 AS col2 FROM tab1 AS cor0
----
194
397
94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9037
SELECT - col1 + + col0 + + + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-24
-59
21

skipif mysql # not compatible
query I rowsort label-9037
SELECT - col1 + + col0 + + + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-24
-59
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9038
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - ( + - col2 ) * col2 FROM tab0 WHERE NULL IS NULL
----
100
2209
9801

query I rowsort
SELECT ALL col2 + + col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( - 73 * + 81 + + 97 + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT COUNT( * ) FROM tab2 WHERE - + 5 / 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9041
SELECT COUNT ( * ) FROM tab2 WHERE - + 5 / 66 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE ( + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + 6 ) + 48 * + - col2 FROM tab0
----
-2262
-4758
-486

query I rowsort
SELECT DISTINCT + col2 * - col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - col1 * - col0 + 99 AS col1 FROM tab2
----
2445
5027
5124

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 * col1 col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9047
SELECT - + 37 * 13 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9047
SELECT - + 37 * 13 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col2 ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9048
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN 45 AND - col1 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9048
SELECT DISTINCT * FROM tab1 WHERE NOT col1 NOT BETWEEN 45 AND - col1 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT ALL - SUM( - col0 ) AS col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9049
SELECT ALL - SUM ( - col0 ) AS col0 FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 < 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + MIN( + col0 ) AS col1 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-9051
SELECT + MIN ( + col0 ) AS col1 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT MIN( - col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9052
SELECT MIN ( - col1 ) FROM tab1 cor0
----
-47

query I rowsort
SELECT ALL + - ( + ( + col1 ) ) * 31 FROM tab0 AS cor0
----
-2511
-31
-651

onlyif mysql # aggregate syntax: 
query II rowsort label-9054
SELECT DISTINCT - - ( - + SUM( ALL + + col1 ) ) AS col1, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-103
3

skipif mysql # not compatible
query II rowsort label-9054
SELECT DISTINCT - - ( - + SUM ( ALL + + col1 ) ) AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-103
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT ALL - SUM( + + col0 ) * - - 7 AS col1 FROM tab2 AS cor0
----
-1295

skipif mysql # not compatible
query I rowsort label-9055
SELECT ALL - SUM ( + + col0 ) * - - 7 AS col1 FROM tab2 AS cor0
----
-1295

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 > - + col2 * + - ( col1 )
----

query I rowsort
SELECT ALL - col0 * - - 96 AS col2 FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9058
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 80 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 80 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9059
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * + CAST( + col1 AS SIGNED ) * + + 1 - col2 * + col0 + col1
----

skipif mysql # not compatible
query III rowsort label-9059
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col1 * + CAST ( + col1 AS INTEGER ) * + + 1 - col2 * + col0 + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col0 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT 59 + - 95 + col2 AS col1 FROM tab2 WHERE NOT ( col2 + - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 4 * col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 56 + - col1 AS col0 FROM tab1
----
-103
-61
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT ALL COUNT( * ) * - 12 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9065
SELECT ALL COUNT ( * ) * - 12 FROM tab0
----
-36

query I rowsort
SELECT - 16 * + 97 * + col1 FROM tab2
----
-103984
-119504
-79152

query II rowsort
SELECT col1, col2 + col2 AS col1 FROM tab1
----
14
192
47
136
5
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab2 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT ALL 72 FROM tab2 AS cor0 WHERE NOT 98 * ( - col1 ) IN ( - col2 )
----
72
72
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 84 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - + 26 col2, 90 FROM tab0
----
-11
90
61
90
71
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT + 55 + - col2 * - + CAST( - 81 AS SIGNED ) FROM tab2
----
-1808
-3185
-4643

skipif mysql # not compatible
query I rowsort label-9074
SELECT + 55 + - col2 * - + CAST ( - 81 AS INTEGER ) FROM tab2
----
-1808
-3185
-4643

query I rowsort
SELECT DISTINCT + 72 * - - ( - ( + 96 ) ) FROM tab0
----
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-9076
SELECT ( COUNT( - col1 ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9076
SELECT ( COUNT ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 <= 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 86 ) col2 FROM tab2 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9079
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT - 26 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT - ( - MIN( DISTINCT col0 ) ) col1 FROM tab1 WHERE + 67 IN ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9081
SELECT - ( - MIN ( DISTINCT col0 ) ) col1 FROM tab1 WHERE + 67 IN ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT CAST( - 17 AS SIGNED ) * + 56 - - col0 * + 2 AS col2 FROM tab2
----
-802
-824
-860

skipif mysql # not compatible
query I rowsort label-9082
SELECT CAST ( - 17 AS INTEGER ) * + 56 - - col0 * + 2 AS col2 FROM tab2
----
-802
-824
-860

query I rowsort
SELECT DISTINCT - ( - 29 ) + + 30 + col0 + col1 AS col0 FROM tab1
----
124
149
197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE - ( col1 ) / + col1 * ( - 80 ) / col1 * 37 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9084
SELECT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE - ( col1 ) / + col1 * ( - 80 ) / col1 * 37 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 62 * 10 - - 71 * - + col1 FROM tab2
----
-3001
-4137
-4847

onlyif mysql # aggregate syntax: 
query I rowsort label-9086
SELECT DISTINCT - MIN( ALL 43 ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-9086
SELECT DISTINCT - MIN ( ALL 43 ) FROM tab1
----
-43

query I rowsort
SELECT ALL col0 * + + 84 AS col1 FROM tab2
----
3864
5376
6300

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 25 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 29 FROM tab2
----
-1479
-1943
-2233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9090
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9090
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) col0 FROM tab1
----
1

query I rowsort
SELECT ALL - ( - ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT + ( - - 63 ) FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT ALL 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-9095
SELECT - - COUNT( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9095
SELECT - - COUNT ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9096
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( 75 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9096
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( 75 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT ALL - COUNT( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9097
SELECT ALL - COUNT ( ALL + - col1 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - MIN( - col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9098
SELECT - MIN ( - col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT + SUM( - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9099
SELECT + SUM ( - col1 ) FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + col2 col1 FROM tab1 cor0
----
-118
-136
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT 87 / - CAST( NULL AS SIGNED ) + + - col0 * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9101
SELECT 87 / - CAST ( NULL AS INTEGER ) + + - col0 * + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT ALL + - MAX( + ( 15 ) ) AS col0 FROM tab2 WHERE NOT - + 54 NOT BETWEEN - 8 AND + - 99 - - ( - col2 ) * - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT ALL + - MAX ( + ( 15 ) ) AS col0 FROM tab2 WHERE NOT - + 54 NOT BETWEEN - 8 AND + - 99 - - ( - col2 ) * - col0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 WHERE NOT - - 6 IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col1 + - - col1 FROM tab1 WHERE + 81 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 21 + - col0 FROM tab1
----
-106
-112
-72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + - 89 ) * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT - 38 + + COUNT( * ) AS col2 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT - 38 + + COUNT ( * ) AS col2 FROM tab1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT ALL 90 * - + COUNT( * ) + 19 FROM tab0
----
-251

skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL 90 * - + COUNT ( * ) + 19 FROM tab0
----
-251

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT + col1 DIV col0 DIV + - 98 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9109
SELECT + col1 / col0 / + - 98 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT + + col2 + 23 + - col2 + + 78 + col1 * + col1 FROM tab2 AS cor0
----
2702
4590
6030

query I rowsort
SELECT DISTINCT + + col0 - col0 * 4 * - + 90 * + col2 AS col0 FROM tab0 AS cor0
----
253815
313287
3457177

query II rowsort
SELECT ALL - - 55 AS col2, - 45 FROM tab2 AS cor0
----
55
-45
55
-45
55
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-9113
SELECT + + col1 DIV col1 + - 51 FROM tab1 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-9113
SELECT + + col1 / col1 + - 51 FROM tab1 AS cor0
----
-50
-50
-50

query II rowsort
SELECT DISTINCT - + col1 AS col1, 81 + - col2 + + col1 + + 68 FROM tab1 AS cor0
----
-14
67
-47
128
-5
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9115
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col1 NOT BETWEEN - col1 AND 35
----

skipif mysql # not compatible
query III rowsort label-9115
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 NOT BETWEEN - col1 AND 35
----

query I rowsort
SELECT + - 72 * + col1 AS col2 FROM tab2 cor0
----
-3672
-4824
-5544

query II rowsort
SELECT - 28 AS col1, 40 + - col0 FROM tab0 cor0
----
-28
-47
-28
-57
-28
25

query I rowsort
SELECT ALL - - 7 AS col1 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - 30 * - + ( - col0 ) FROM tab0
----
-2610
-2910
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 col1 FROM tab2
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + - col1
----

query I rowsort
SELECT DISTINCT ( - - col2 ) * - col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ( + 77 ) AS col0 FROM tab1 WHERE NOT NULL = + 91
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + + SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9125
SELECT + + SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT - - SUM( ALL + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9126
SELECT - - SUM ( ALL + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 88 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT col2 + 87 + - + col0 * - - 83 * + col0 * + + 58 FROM tab2
----
-10186314
-19718017
-27078605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + col0 col1 FROM tab0
----
16
88
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 73 col0, + col0 * col1 col2 FROM tab0
----
73
1215
73
1827
73
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - + 76 + - SUM( + col1 ) * 56 FROM tab2 AS cor0
----
-10996

skipif mysql # not compatible
query I rowsort label-9131
SELECT - + 76 + - SUM ( + col1 ) * 56 FROM tab2 AS cor0
----
-10996

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT - - COUNT( * ) * + 3 + - COUNT( * ) + - 80 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9132
SELECT - - COUNT ( * ) * + 3 + - COUNT ( * ) + - 80 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9133
SELECT - ( - CAST( col0 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col0 + + + 67, - col2 DIV - col0, + 94 )
----
15
87

skipif mysql # not compatible
query I rowsort label-9133
SELECT - ( - CAST ( col0 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT + col1 IN ( + col0 + + + 67, - col2 / - col0, + 94 )
----
15
87

query I rowsort
SELECT DISTINCT - ( + 6 ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - + 85 AS col0 FROM tab0 AS cor0 WHERE col1 < - ( + 26 )
----

query I rowsort
SELECT + 64 + - col0 * + col2 * + + 26 * - col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT + col1 AS col2 FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * 53 NOT BETWEEN - 91 AND col2
----

skipif mysql # not compatible
query I rowsort label-9137
SELECT + col1 AS col2 FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * 53 NOT BETWEEN - 91 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * col0 + col0 col1 FROM tab1
----
2397
3995
4277

query II rowsort
SELECT DISTINCT - col0 + col2 AS col2, - col1 + + col1 + - 36 * + col2 * - col2 - 46 + + 29 * - col2 FROM tab0
----
-77
3264
2
349919
32
78115

query I rowsort
SELECT ALL - col0 + col0 * + col2 FROM tab2
----
1012
2496
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT + col0 DIV + + col2 + 25 + - + col1 + - 27 * + - col2 col0 FROM tab0 AS cor0
----
1213
2697
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT + col0 / + + col2 + 25 + - + col1 + - 27 * + - col2 col0 FROM tab0 AS cor0
----
1213
2697
282

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - 78 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NULL IS NOT NULL WHERE NOT 6 <> ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE + 11 * + - 67 + - 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL + COUNT( * ) + + 63 + - 58 col2 FROM tab0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9145
SELECT ALL + COUNT ( * ) + + 63 + - 58 col2 FROM tab0
----
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 19 ) IS NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 IN ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 97 + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 35 * - col0 * - - col2 col0 FROM tab2 AS cor0
----
152250
37030
89600

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 NOT IN ( + + 78, 62 + + + col0, - - 3 / 33 + - 27 / + col1 + - 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ( + + MIN( ALL - 90 ) ) FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-9151
SELECT ( + + MIN ( ALL - 90 ) ) FROM tab0
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 13 >= NULL
----

query I rowsort
SELECT col2 * 72 * col1 * + ( + col0 ) FROM tab1
----
1805400
20940192
4935168

onlyif mysql # aggregate syntax: 
query II rowsort label-9154
SELECT + COUNT( * ) AS col2, 56 FROM tab1
----
3
56

skipif mysql # not compatible
query II rowsort label-9154
SELECT + COUNT ( * ) AS col2, 56 FROM tab1
----
3
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9155
SELECT ALL - 78 DIV + MAX( + 89 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT ALL - 78 / + MAX ( + 89 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - 16 ) + 58 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9157
SELECT + COUNT( * ), + MIN( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
3
-58

skipif mysql # not compatible
query II rowsort label-9157
SELECT + COUNT ( * ), + MIN ( ALL - + col2 ) AS col0 FROM tab2 AS cor0
----
3
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT DISTINCT - COUNT( * ) + - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-9158
SELECT DISTINCT - COUNT ( * ) + - 65 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= col1
----

query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab0 cor0
----
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9161
SELECT - + 91 + + 85 DIV SUM( 50 ) * + - CAST( - 15 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9161
SELECT - + 91 + + 85 / SUM ( 50 ) * + - CAST ( - 15 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT DISTINCT SUM( ALL - - 23 ) * + 95 + + ( - 64 ) AS col0 FROM tab1 AS cor0
----
6491

skipif mysql # not compatible
query I rowsort label-9162
SELECT DISTINCT SUM ( ALL - - 23 ) * + 95 + + ( - 64 ) AS col0 FROM tab1 AS cor0
----
6491

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT + 72 + + COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT + 72 + + COUNT ( * ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9164
SELECT - - 81 * - + COUNT( * ) FROM tab2 WHERE + - 56 IS NOT NULL
----
-243

skipif mysql # not compatible
query I rowsort label-9164
SELECT - - 81 * - + COUNT ( * ) FROM tab2 WHERE + - 56 IS NOT NULL
----
-243

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - + col0 IS NULL
----

query I rowsort
SELECT - + col1 FROM tab0 WHERE 72 - 37 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9167
SELECT COUNT( * ) * + 43 AS col1 FROM tab1, tab2 AS cor0
----
387

skipif mysql # not compatible
query I rowsort label-9167
SELECT COUNT ( * ) * + 43 AS col1 FROM tab1, tab2 AS cor0
----
387

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT 85 + + - COUNT( * ) FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-9168
SELECT 85 + + - COUNT ( * ) FROM tab0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, col0 col1 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT col0 * 87 * + col2 AS col2 FROM tab0 AS cor0
----
61335
75690
835461

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT - col1 * col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT - 36 FROM tab1 AS cor0 WHERE - col0 * + + col1 * col2 < col0 / + - col2
----
-36
-36
-36

query I rowsort
SELECT - + col0 - + 97 AS col2 FROM tab1 AS cor0
----
-148
-182
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL COUNT( * ) * + 88 * 48 FROM tab1
----
12672

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL COUNT ( * ) * + 88 * 48 FROM tab1
----
12672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + + col1 + 76 + - 27 col2, ( + 79 ) AS col1 FROM tab1 AS cor0
----
1393
79
3245
79
344
79

query I rowsort
SELECT - ( 28 ) AS col2 FROM tab0 AS cor0
----
-28
-28
-28

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col0 * - - col1 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
2346
-23
4928
-40
5025
-58

query I rowsort
SELECT ALL col1 * - 79 AS col2 FROM tab1 AS cor0
----
-1106
-3713
-395

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + + col2 + 30 + - col1 * col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9181
SELECT col0 * + ( col1 ) * - - CAST( NULL AS DECIMAL ) - - col0 - - + 3 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT col0 * + ( col1 ) * - - CAST ( NULL AS REAL ) - - col0 - - + 3 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9182
SELECT + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT + 68 IS NOT NULL )
----
15
87
97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9184
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9184
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - + CAST ( - col2 AS REAL )
----

query I rowsort
SELECT ALL - col0 * + - 6 AS col1 FROM tab2
----
276
384
450

query I rowsort
SELECT DISTINCT col0 / + - 42 FROM tab0 WHERE NOT 0 <= - 0
----

query II rowsort
SELECT - col0, - ( col1 ) * col2 AS col2 FROM tab2
----
-46
-1173
-64
-3080
-75
-3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + - 60 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9189
SELECT ALL COUNT( * ) DIV + CAST( - MIN( - col1 ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9189
SELECT ALL COUNT ( * ) / + CAST ( - MIN ( - col1 ) AS INTEGER ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9190
SELECT - 57 DIV - SUM( ALL - col1 ) * - 7 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9190
SELECT - 57 / - SUM ( ALL - col1 ) * - 7 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT + MIN( ALL - 82 ) AS col1 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-9191
SELECT + MIN ( ALL - 82 ) AS col1 FROM tab1
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-9192
SELECT - + ( ( - 18 ) ) DIV col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9192
SELECT - + ( ( - 18 ) ) / col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9193
SELECT DISTINCT + 64 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + 64 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT CAST( NULL AS SIGNED ) + col0 + - - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9194
SELECT CAST ( NULL AS INTEGER ) + col0 + - - col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + - ( col2 ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT DISTINCT + COUNT( * ) * + 4 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT + COUNT ( * ) * + 4 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT DISTINCT + MIN( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + MIN ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT ALL - 91 AS col0 FROM tab1 cor0
----
-91
-91
-91

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE + ( + 84 ) * - 89 * col0 = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT 24 * MIN( col2 ) FROM tab2 AS cor0 WHERE col1 + - 59 NOT BETWEEN + + col0 AND + col2 * - col0
----
552

skipif mysql # not compatible
query I rowsort label-9200
SELECT 24 * MIN ( col2 ) FROM tab2 AS cor0 WHERE col1 + - 59 NOT BETWEEN + + col0 AND + col2 * - col0
----
552

query I rowsort
SELECT DISTINCT + ( + 92 ) + - col2 + + col1 + + + 32 FROM tab1 AS cor0
----
103
42
70

query III rowsort
SELECT * FROM tab0 WHERE - 19 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 11 + col0 AS col1 FROM tab2
----
35
53
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9204
SELECT * FROM tab2 WHERE ( - 11 - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9204
SELECT * FROM tab2 WHERE ( - 11 - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 - col0 * - col2 - - col1 - col0 FROM tab2
----
1114
2650
4409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( col2 ) + - 55 col0 FROM tab2
----
-31
-32
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT DISTINCT - col0 * - col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT DISTINCT - col0 * - col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9208
SELECT - + COUNT( * ) DIV - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9208
SELECT - + COUNT ( * ) / - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 68 - + + col0 AS col2 FROM tab0 cor0
----
-155
-165
-83

query II rowsort
SELECT ALL col0 - - col1 AS col0, col2 + + - col2 FROM tab0 AS cor0
----
108
0
96
0
98
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + - 3 + ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9211
SELECT + - 3 + ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9212
SELECT + - 38 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9212
SELECT + - 38 + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT COUNT( * ) FROM tab1 WHERE col2 * - col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9213
SELECT COUNT ( * ) FROM tab1 WHERE col2 * - col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9214
SELECT 26 DIV 67 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT 26 / 67 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 35 - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-35

query I rowsort
SELECT 51 * - + col2 FROM tab1
----
-3009
-3468
-4896

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 IS NULL OR + 67 + col2 + col2 BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT ALL + col0 AS col2, + col1 FROM tab0 AS cor0 WHERE NULL < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9219
SELECT MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE NOT + 87 + + 84 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 = col2 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 25 FROM tab0 WHERE NOT + col1 NOT BETWEEN col2 / col2 - + col0 + + + col1 AND col1
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9223
SELECT + + 31 / 54 * + + CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT + 71 + + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9223
SELECT + + 31 / 54 * + + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT + 71 + + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT - col0 DIV + + col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-9224
SELECT - col0 / + + col2 FROM tab0
----
-8
0
0

query I rowsort
SELECT ALL + 37 AS col1 FROM tab1 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL OR NOT 78 * 4 + - col1 IN ( + + 13, col2 - + col1 + ( + ( + col1 ) ), - 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 63 * - 88 FROM tab0
----
-5544
-5544
-5544

query I rowsort
SELECT DISTINCT 70 * - + col2 AS col2 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL + ( + + col0 ) / col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL + ( + + col0 ) / col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + col0 ) * - - col2 + + - 72 FROM tab2 AS cor0
----
2488
4278
986

query I rowsort
SELECT DISTINCT + - ( + col0 ) * - - ( + col0 ) + - col0 FROM tab1 AS cor0
----
-2652
-7310
-8372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 36 + + col1 = + + col2
----

query I rowsort
SELECT + 60 + + 97 AS col2 FROM tab2 cor0
----
157
157
157

query I rowsort
SELECT ALL - + 31 AS col2 FROM tab0 AS cor0
----
-31
-31
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-9236
SELECT DISTINCT - 32 + + col2 DIV - - col1 FROM tab0 AS cor0
----
-32
67

skipif mysql # not compatible
query I rowsort label-9236
SELECT DISTINCT - 32 + + col2 / - - col1 FROM tab0 AS cor0
----
-32
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL - COUNT( DISTINCT ( + ( col0 ) ) ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - COUNT ( DISTINCT ( + ( col0 ) ) ) + - COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE - + col0 * - col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 14 - + 73 + - 34 + - col2 * 38 AS col1 FROM tab2
----
-1613
-2297
-967

query I rowsort
SELECT DISTINCT col1 * + col1 * col2 - + 87 FROM tab2
----
237073
260275
59736

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + ( + - col0 ) + - + 20
----

query I rowsort
SELECT - 81 * + 91 AS col1 FROM tab2 AS cor0
----
-7371
-7371
-7371

onlyif mysql # DIV for integer division: 
query I rowsort label-9243
SELECT col2 DIV + - col0 * - 21 - + ( col2 ) - - col0 FROM tab2 WHERE NOT ( NOT 36 IS NOT NULL )
----
17
23
24

skipif mysql # not compatible
query I rowsort label-9243
SELECT col2 / + - col0 * - 21 - + ( col2 ) - - col0 FROM tab2 WHERE NOT ( NOT 36 IS NOT NULL )
----
17
23
24

query II rowsort
SELECT - col0 * + col2 AS col0, 57 FROM tab2
----
-1058
57
-2560
57
-4350
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9245
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - + 27 AS col0 FROM tab1 cor0
----
-27
-27
-27

query I rowsort
SELECT ALL + + 37 FROM tab2 cor0
----
37
37
37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9249
SELECT ALL + + COUNT( * ) + + 44 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * 96 BETWEEN NULL AND CAST( NULL AS DECIMAL )
----
44

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL + + COUNT ( * ) + + 44 AS col2 FROM tab1 AS cor0 WHERE NOT col2 * 96 BETWEEN NULL AND CAST ( NULL AS REAL )
----
44

query I rowsort
SELECT ALL ( + col2 ) + col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9251
SELECT DISTINCT - + COUNT( * ) + + MAX( - - 4 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9251
SELECT DISTINCT - + COUNT ( * ) + + MAX ( - - 4 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1

query II rowsort
SELECT col2, 18 FROM tab1
----
59
18
68
18
96
18

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 < NULL
----

query I rowsort
SELECT - col0 * + - 43 AS col0 FROM tab2
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query II rowsort label-9255
SELECT COUNT( * ) AS col2, 85 FROM tab2
----
3
85

skipif mysql # not compatible
query II rowsort label-9255
SELECT COUNT ( * ) AS col2, 85 FROM tab2
----
3
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col1 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT ALL + COUNT( * ) * - - ( + MAX( DISTINCT - col2 ) ) AS col0, 72 AS col0 FROM tab1
----
-177
72

skipif mysql # not compatible
query II rowsort label-9257
SELECT ALL + COUNT ( * ) * - - ( + MAX ( DISTINCT - col2 ) ) AS col0, 72 AS col0 FROM tab1
----
-177
72

onlyif mysql # DIV for integer division: 
query I rowsort label-9258
SELECT DISTINCT + col1 DIV ( + + 92 ) - + 29 AS col2 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + col1 / ( + + 92 ) - + 29 AS col2 FROM tab0
----
-29

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9259
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 + + CAST( + col2 AS DECIMAL ), - col2 )
----

skipif mysql # not compatible
query I rowsort label-9259
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col0 + + CAST ( + col2 AS REAL ), - col2 )
----

query I rowsort
SELECT DISTINCT 71 + + + 49 AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 * - col0 / - col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2, + col1 * + - ( - 74 ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9263
SELECT - 32 DIV - + 58 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9263
SELECT - 32 / - + 58 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 - - - col1 col0 FROM tab2
----
-11
-21
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT - - MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT + col1 * + + 1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9267
SELECT DISTINCT col1 DIV col1 + col1 + - + col2 * col2 FROM tab0 AS cor0
----
-2127
-78
-9799

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT col1 / col1 + col1 + - + col2 * col2 FROM tab0 AS cor0
----
-2127
-78
-9799

query I rowsort
SELECT AVG ( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT - col1 AS col2, col1 AS col1 FROM tab1 cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT DISTINCT - - 3 AS col2, 26 - + 64 AS col2 FROM tab1 AS cor0
----
3
-38

query I rowsort
SELECT + 93 * - 86 AS col2 FROM tab0
----
-7998
-7998
-7998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ALL col2 + CAST( + + ( + 22 ) AS SIGNED ) * + col2 FROM tab2
----
1334
529
920

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL col2 + CAST ( + + ( + 22 ) AS INTEGER ) * + col2 FROM tab2
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT DISTINCT - 33 + MAX( ALL + - col0 ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - 33 + MAX ( ALL + - col0 ) FROM tab2
----
-79

query I rowsort
SELECT col0 + - col0 + + col2 * - col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - + 67 * 29 + col0 FROM tab0 AS cor0
----
-1846
-1856
-1928

onlyif mysql # aggregate syntax: 
query II rowsort label-9278
SELECT 98 AS col0, MIN( + col0 ) FROM tab2
----
98
46

skipif mysql # not compatible
query II rowsort label-9278
SELECT 98 AS col0, MIN ( + col0 ) FROM tab2
----
98
46

query I rowsort
SELECT - 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT DISTINCT - SUM( + - col0 ) AS col1 FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT - SUM ( + - col0 ) AS col1 FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9281
SELECT - 28 / - + 25 + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9281
SELECT - 28 / - + 25 + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 >= + - col2 * + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT + + COUNT( * ) + + 93 AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9283
SELECT + + COUNT ( * ) + + 93 AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT DISTINCT - - 14 AS col2 FROM tab1 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > + - col0 * - 80 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - - SUM( - 53 ) AS col1 FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - - SUM ( - 53 ) AS col1 FROM tab1 AS cor0
----
-159

query I rowsort
SELECT DISTINCT 48 * col1 AS col0 FROM tab1
----
2256
240
672

query I rowsort
SELECT col2 * + 76 FROM tab2
----
1748
3040
4408

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9289
SELECT ALL * FROM tab2 WHERE + - col0 + - + 76 * + CAST( col0 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9289
SELECT ALL * FROM tab2 WHERE + - col0 + - + 76 * + CAST ( col0 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - col1 * + 23 * + col2 AS col1 FROM tab2
----
-1375929
-5454680
-5988326

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9291
SELECT ALL + ( - + 11 ) / - + CAST( NULL AS DECIMAL ) + col2, - 11 * ( + - col1 ) * + - col1 col2 FROM tab2
----
NULL
-28611
NULL
-49379
NULL
-65219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9291
SELECT ALL + ( - + 11 ) / - + CAST ( NULL AS REAL ) + col2, - 11 * ( + - col1 ) * + - col1 col2 FROM tab2
----
NULL
-28611
NULL
-49379
NULL
-65219

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 BETWEEN 69 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > + 77
----

query I rowsort
SELECT ALL - 54 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 44 * - ( col2 ) * + - 76 FROM tab1
----
197296
227392
321024

query I rowsort
SELECT - + col0 + - col0 * - col0 FROM tab0 AS cor0
----
210
7482
9312

query I rowsort
SELECT col2 * 34 + 64 AS col2 FROM tab2 AS cor0
----
1424
2036
846

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT + COUNT( * ) * + 79 AS col1 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + COUNT ( * ) * + 79 AS col1 FROM tab1 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT + + 58 * + + 46 + - - col1 DIV col0 FROM tab0 AS cor0
----
2668
2668
2673

skipif mysql # not compatible
query I rowsort label-9299
SELECT + + 58 * + + 46 + - - col1 / col0 FROM tab0 AS cor0
----
2668
2668
2673

onlyif mysql # aggregate syntax: 
query I rowsort label-9300
SELECT ALL - MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9300
SELECT ALL - MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * 19 > + 42
----

query I rowsort
SELECT ALL - col2 * + 14 + + col2 AS col1 FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - COUNT( * ) FROM tab0 WHERE 78 * + col1 = - col0 * - col2 + + - 97
----
0

skipif mysql # not compatible
query I rowsort label-9303
SELECT - COUNT ( * ) FROM tab0 WHERE 78 * + col1 = - col0 * - col2 + + - 97
----
0

query III rowsort
SELECT * FROM tab1 WHERE col1 - - 58 - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT COUNT( * ) + + ( 59 ) AS col0 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT COUNT ( * ) + + ( 59 ) AS col0 FROM tab2
----
62

query III rowsort
SELECT * FROM tab0 WHERE + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9307
SELECT ALL col1 + + CAST( NULL AS SIGNED ) + col0 / - - col2 / + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) + col0 / - - col2 / + + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col2, + col2 AS col0 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT + col0 * + 64 AS col0 FROM tab2
----
2944
4096
4800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9310
SELECT ALL + 63 AS col0, + CAST( - 0 AS SIGNED ) FROM tab0
----
63
0
63
0
63
0

skipif mysql # not compatible
query II rowsort label-9310
SELECT ALL + 63 AS col0, + CAST ( - 0 AS INTEGER ) FROM tab0
----
63
0
63
0
63
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 * - + col2 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ALL + col1 AS col1, col1 + 31 FROM tab2 AS cor0
----
51
82
67
98
77
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT ALL + MIN( ALL - col1 ) - 33 AS col0 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-9314
SELECT ALL + MIN ( ALL - col1 ) - 33 AS col0 FROM tab0
----
-114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9315
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) * - 42 * - - 71 - 67 FROM tab2
----
-3049

skipif mysql # not compatible
query I rowsort label-9315
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) * - 42 * - - 71 - 67 FROM tab2
----
-3049

query I rowsort
SELECT DISTINCT col0 * - col2 - - 0 AS col2 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - + col0 - + 59 FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT + ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9318
SELECT + ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT - - col1 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9320
SELECT - 73 DIV - COUNT( * ) + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9320
SELECT - 73 / - COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + col0 col2 FROM tab2
----
-51
46
-67
75
-77
64

query I rowsort
SELECT + 8 * + col1 AS col2 FROM tab1
----
112
376
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 IN ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 88 * col1 * 97 AS col1 FROM tab1
----
119504
401192
42680

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT ALL + COUNT( * ) * - 61 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL + COUNT ( * ) * - 61 FROM tab2
----
-183

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col2 < 83
----
85
5
59
91
47
68

query II rowsort
SELECT DISTINCT + ( + ( 97 ) ) AS col1, - col2 AS col1 FROM tab0
----
97
-10
97
-47
97
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - col2, - col2, + + col2, - 30, - - col2 + - + 47, + ( + + 47 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 71 NOT BETWEEN + col0 AND NULL
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT - COUNT( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9330
SELECT - COUNT ( ALL + + col0 ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL + - ( + COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + - ( + COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT DISTINCT COUNT( * ) col0 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-9332
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL - + 19 * col2 + + 54 AS col2 FROM tab2 AS cor0
----
-1048
-383
-706

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT col1 * col2 + CAST( NULL AS SIGNED ) - - 68 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT col1 * col2 + CAST ( NULL AS INTEGER ) - - 68 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT ALL + 1 + MIN( + 34 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9335
SELECT ALL + 1 + MIN ( + 34 ) FROM tab0 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + - 16 * ( + - col2 ) col1 FROM tab1 cor0
----
-61360
-70720
-99840

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT + COUNT( * ) * 68 * + 16 + + - COUNT( * ) * + 23 + + 29 FROM tab1 AS cor0
----
3224

skipif mysql # not compatible
query I rowsort label-9337
SELECT + COUNT ( * ) * 68 * + 16 + + - COUNT ( * ) * + 23 + + 29 FROM tab1 AS cor0
----
3224

query I rowsort
SELECT 79 + + 34 * - col2 AS col0 FROM tab1
----
-1927
-2233
-3185

query I rowsort
SELECT ( col1 ) + col1 * + - col0 AS col1 FROM tab0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT - ( 64 ) + col1 AS col0 FROM tab2
----
-13
13
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 * - + col1 col0 FROM tab0
----
-1008
-3888
-48

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT ALL - 4 * + CAST( - 85 AS SIGNED ) * - ( + + 9 ) + col2 * + 66 AS col1 FROM tab2
----
-1542
-420
768

skipif mysql # not compatible
query I rowsort label-9343
SELECT ALL - 4 * + CAST ( - 85 AS INTEGER ) * - ( + + 9 ) + col2 * + 66 AS col1 FROM tab2
----
-1542
-420
768

query I rowsort
SELECT DISTINCT + 72 * + 88 AS col2 FROM tab1
----
6336

query I rowsort
SELECT ALL 21 * + 82 FROM tab1
----
1722
1722
1722

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT + - 11 DIV - - 33 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9346
SELECT + - 11 / - - 33 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9347
SELECT DISTINCT - col0 - - 22 DIV + col0 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9347
SELECT DISTINCT - col0 - - 22 / + col0 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT COUNT( * ) + + + 24 AS col0 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9348
SELECT COUNT ( * ) + + + 24 AS col0 FROM tab2 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9349
SELECT DISTINCT - MAX( - - 40 ) * 35 AS col0 FROM tab1 AS cor0
----
-1400

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - MAX ( - - 40 ) * 35 AS col0 FROM tab1 AS cor0
----
-1400

onlyif mysql # DIV for integer division: 
query I rowsort label-9350
SELECT ALL + col1 DIV + 33 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL + col1 / + 33 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT ALL + col0, 85 AS col1 FROM tab0 AS cor0
----
15
85
87
85
97
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT col2 * - col1 + + - col1 FROM tab2 cor0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9352
SELECT col2 * - col1 + + - col1 FROM tab2 cor0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT col1 AS col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL + SUM( + - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + SUM ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN + - col2 * + col0 AND NULL
----

query II rowsort
SELECT 69, col2 FROM tab0 AS cor0
----
69
10
69
47
69
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9357
SELECT ALL - CAST( col2 AS SIGNED ) col2, + col0 + + 8 FROM tab0
----
-10
95
-47
23
-99
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9357
SELECT ALL - CAST ( col2 AS INTEGER ) col2, + col0 + + 8 FROM tab0
----
-10
95
-47
23
-99
105

query I rowsort
SELECT - 93 * + 24 * ( - - 80 ) FROM tab1
----
-178560
-178560
-178560

query I rowsort
SELECT + 60 * + + 59 * + 37 * - - col1 AS col2 FROM tab2
----
10085460
6679980
8775660

query II rowsort
SELECT ALL - - col1 AS col0, col0 AS col2 FROM tab1 WHERE NOT col1 * + col1 + col1 * - 76 = - + col2
----
14
51
47
91
5
85

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 47 + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL > ( NULL )
----

query I rowsort
SELECT + 80 + + col0 AS col0 FROM tab0
----
167
177
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9364
SELECT col2 + - + CAST( NULL AS SIGNED ) / + col2 AS col1, 93 AS col0 FROM tab2
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
query II rowsort label-9364
SELECT col2 + - + CAST ( NULL AS INTEGER ) / + col2 AS col1, 93 AS col0 FROM tab2
----
NULL
93
NULL
93
NULL
93

query I rowsort
SELECT ALL - - 1 * - + col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 * - col1 + - 90 * - col2 AS col2 FROM tab1 AS cor0
----
2924
5015
7296

query I rowsort
SELECT ALL - - col0 + - 12 * + col0 AS col0 FROM tab0 cor0
----
-1067
-165
-957

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9368
SELECT + + col0, CAST( - - col2 AS SIGNED ) AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

skipif mysql # not compatible
query II rowsort label-9368
SELECT + + col0, CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9369
SELECT + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9369
SELECT + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 22 * - col0 col2 FROM tab2
----
-1344
-1575
-966

query I rowsort
SELECT DISTINCT + 38 * + 79 - col2 AS col1 FROM tab1
----
2906
2934
2943

query I rowsort
SELECT - 46 - 2 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT 78 - + col0 + 95 AS col1 FROM tab1
----
122
82
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9374
SELECT * FROM tab1 WHERE ( - ( - col0 ) + - col1 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9374
SELECT * FROM tab1 WHERE ( - ( - col0 ) + - col1 ) <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 + - col2 * + col2 + + col2 FROM tab0 AS cor0
----
-177
-2177
-9799

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9376
SELECT ALL + 74 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + 74 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 WHERE NULL IS NULL
----
-42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * ( 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9379
SELECT ALL + col0 DIV + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL + col0 / + - col1 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9380
SELECT DISTINCT - - 61 DIV COUNT( * ) FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - - 61 / COUNT ( * ) FROM tab2 cor0
----
20

query II rowsort
SELECT DISTINCT - 82 AS col2, - col0 FROM tab0 AS cor0
----
-82
-15
-82
-87
-82
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9382
SELECT - CAST( - 43 AS SIGNED ) FROM tab1 AS cor0
----
43
43
43

skipif mysql # not compatible
query I rowsort label-9382
SELECT - CAST ( - 43 AS INTEGER ) FROM tab1 AS cor0
----
43
43
43

query I rowsort
SELECT DISTINCT ( + + 71 ) AS col1 FROM tab0 AS cor0
----
71

query I rowsort
SELECT - + 86 FROM tab2 cor0
----
-86
-86
-86

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 46 * 90 <= NULL
----

query I rowsort
SELECT + 83 * - - col2 * - col1 * + col1 FROM tab1
----
-122425
-12467596
-1561728

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT - col1 DIV - ( + + 48 ) AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9389
SELECT - col1 / - ( + + 48 ) AS col0 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9390
SELECT col2 DIV + - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9390
SELECT col2 / + - col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9391
SELECT - ( - - col2 ) DIV 90 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT - ( - - col2 ) / 90 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9392
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, + MIN( + col0 ) AS col2 FROM tab0
----
NULL
15

skipif mysql # not compatible
query II rowsort label-9392
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, + MIN ( + col0 ) AS col2 FROM tab0
----
NULL
15

query I rowsort
SELECT + col0 * + 17 AS col1 FROM tab1
----
1445
1547
867

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT + SUM( - - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9394
SELECT + SUM ( - - col1 ) AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9395
SELECT + CAST( + - 49 AS SIGNED ) FROM tab0 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-9395
SELECT + CAST ( + - 49 AS INTEGER ) FROM tab0 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9396
SELECT 64 * + COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-9396
SELECT 64 * + COUNT ( * ) FROM tab2
----
192

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9397
SELECT ALL col2 + - col1 - - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL col2 + - col1 - - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9398
SELECT DISTINCT + + COUNT( - + col2 ), + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9398
SELECT DISTINCT + + COUNT ( - + col2 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 64 + + ( + - 42 ) + - 32 * + 23 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9400
SELECT + + col0 + col1, col2 DIV + + 92 AS col2 FROM tab1 AS cor0
----
138
0
65
1
90
0

skipif mysql # not compatible
query II rowsort label-9400
SELECT + + col0 + col1, col2 / + + 92 AS col2 FROM tab1 AS cor0
----
138
0
65
1
90
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9401
SELECT - - 28 * - + col0 + + 73 * + 1 + - CAST( + col2 AS SIGNED ) DIV + + col0 AS col2 FROM tab0 cor0
----
-2363
-2644
-350

skipif mysql # not compatible
query I rowsort label-9401
SELECT - - 28 * - + col0 + + 73 * + 1 + - CAST ( + col2 AS INTEGER ) / + + col0 AS col2 FROM tab0 cor0
----
-2363
-2644
-350

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9403
SELECT + col1 + CAST( NULL AS DECIMAL ) - - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9403
SELECT + col1 + CAST ( NULL AS REAL ) - - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 + + col0 FROM tab2
----
120
138
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9405
SELECT + col2 AS col2 FROM tab1 WHERE - col0 <= - - col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9405
SELECT + col2 AS col2 FROM tab1 WHERE - col0 <= - - col0 * - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT ALL - - COUNT( * ) col2 FROM tab1 WHERE ( NOT 66 * col1 * col0 IS NOT NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9406
SELECT ALL - - COUNT ( * ) col2 FROM tab1 WHERE ( NOT 66 * col1 * col0 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT COUNT( ALL - 70 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9407
SELECT COUNT ( ALL - 70 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT 51 - - - col1 AS col0 FROM tab1 cor0
----
37
4
46

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT - 45 - COUNT( * ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-9410
SELECT - 45 - COUNT ( * ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT - col1 + 29 AS col2 FROM tab2
----
-22
-38
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9412
SELECT + col1 + col2 DIV col0 AS col2 FROM tab1
----
15
47
5

skipif mysql # not compatible
query I rowsort label-9412
SELECT + col1 + col2 / col0 AS col2 FROM tab1
----
15
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + col0 + + col0 ) = NULL
----

query I rowsort
SELECT DISTINCT - 37 + - 65 FROM tab0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9415
SELECT 18 + CAST( 84 AS SIGNED ) FROM tab1
----
102
102
102

skipif mysql # not compatible
query I rowsort label-9415
SELECT 18 + CAST ( 84 AS INTEGER ) FROM tab1
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * + col2 col1 FROM tab0
----
-786
-891
-9604

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT ALL SUM( 15 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-9417
SELECT ALL SUM ( 15 ) FROM tab2
----
45

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT - 66 IS NULL
----
-23
-40
-58

query I rowsort
SELECT 24 + 1 AS col0 FROM tab2
----
25
25
25

query I rowsort
SELECT - 67 * 27 FROM tab1 WHERE NOT + col1 <> ( + col1 * - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT + ( MIN( col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT + ( MIN ( col0 ) ) AS col1 FROM tab1
----
51

query I rowsort
SELECT ALL - col2 + - 12 / col0 AS col2 FROM tab1 WHERE ( 49 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT MIN( - 40 ) AS col1 FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-9424
SELECT MIN ( - 40 ) AS col1 FROM tab0
----
-40

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT 44 + col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9426
SELECT 35 * COUNT( * ) AS col2 FROM tab1 WHERE 45 / col0 IS NOT NULL
----
105

skipif mysql # not compatible
query I rowsort label-9426
SELECT 35 * COUNT ( * ) AS col2 FROM tab1 WHERE 45 / col0 IS NOT NULL
----
105

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 IN ( - 89 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT + SUM( ALL - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9429
SELECT + SUM ( ALL - col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9430
SELECT DISTINCT CAST( - ( - ( col1 ) ) AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT CAST ( - ( - ( col1 ) ) AS INTEGER ) FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 74 col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1110
6438
7178

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT SUM( + ( - 37 ) ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9433
SELECT SUM ( + ( - 37 ) ) FROM tab1 AS cor0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT CAST( NULL AS SIGNED ) + 85 FROM tab1 AS cor0 WHERE NOT ( + col1 + + CAST( - col2 + 29 * - col1 AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-9434
SELECT CAST ( NULL AS INTEGER ) + 85 FROM tab1 AS cor0 WHERE NOT ( + col1 + + CAST ( - col2 + 29 * - col1 AS INTEGER ) ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT + 52 + col1 AS col1 FROM tab0
----
133
53
73

query I rowsort
SELECT col2 * 22 + - col0 FROM tab1
----
1213
1405
2061

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9438
SELECT ALL * FROM tab1 WHERE col0 + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9438
SELECT ALL * FROM tab1 WHERE col0 + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 78 * + 60 AS col0 FROM tab2 AS cor0
----
-4680
-4680
-4680

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 IN ( + col1 )
----

query I rowsort
SELECT + 75 * col2 AS col2 FROM tab0 AS cor0 WHERE 57 <> ( - 50 * + ( col1 ) )
----
3525
7425
750

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT + 29 / 53 BETWEEN NULL AND col2 + ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9445
SELECT DISTINCT ( + COUNT( * ) ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9445
SELECT DISTINCT ( + COUNT ( * ) ) + COUNT ( * ) FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT + ( SUM( ALL col2 ) ) - - 17 AS col0 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-9446
SELECT + ( SUM ( ALL col2 ) ) - - 17 AS col0 FROM tab2
----
138

query I rowsort
SELECT ALL 53 + - ( col2 ) FROM tab2
----
-5
13
30

query I rowsort
SELECT 19 FROM tab2 WHERE ( NULL ) <> - col0 + - 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT ALL MIN( col0 ) FROM tab1 WHERE - 38 * col2 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL MIN ( col0 ) FROM tab1 WHERE - 38 * col2 IS NOT NULL
----
51

query I rowsort
SELECT - 67 + col0 AS col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-21
-3
8

query I rowsort
SELECT ALL col0 + + - 55 * 8 FROM tab1
----
-349
-355
-389

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - ( 67 ) * - 33 )
----

query I rowsort
SELECT col1 - 77 FROM tab1
----
-30
-63
-72

query I rowsort
SELECT DISTINCT 38 + - + 66 FROM tab1
----
-28

query I rowsort
SELECT DISTINCT col0 * + col0 - - col2 FROM tab0
----
272
7579
9508

query III rowsort
SELECT * FROM tab2 WHERE col0 * col2 NOT IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9457
SELECT - col2 * + + col1 - - CAST( NULL AS SIGNED ) * + 87 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9457
SELECT - col2 * + + col1 - - CAST ( NULL AS INTEGER ) * + 87 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - 33 AS col2 FROM tab2
----
108
79
97

query III rowsort
SELECT ALL * FROM tab0 WHERE - 77 > - 53
----

query I rowsort
SELECT col1 * - + col2 + - ( + col2 ) FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT ALL + 52 * - ( col1 ) - + col0 AS col2 FROM tab2
----
-2698
-3559
-4068

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT - col0 * + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9462
SELECT - col0 * + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 78 - col2 col1 FROM tab1
----
-4074
-6689
-7166

query I rowsort
SELECT ALL + 26 * - 21 * col2 FROM tab1 AS cor0
----
-32214
-37128
-52416

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 18
----

query I rowsort
SELECT - + col0 * + 55 AS col2 FROM tab2 cor0
----
-2530
-3520
-4125

query I rowsort
SELECT ALL - 56 * - 68 AS col1 FROM tab1 AS cor0
----
3808
3808
3808

query I rowsort
SELECT + col1 / col2 FROM tab1 AS cor0 WHERE NOT col0 / + col1 BETWEEN ( - 10 ) AND 84 * + col0
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( - ( col1 ) ) NOT BETWEEN ( NULL ) AND ( - ( 95 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT - MIN( DISTINCT + - 63 ) col1 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9470
SELECT - MIN ( DISTINCT + - 63 ) col1 FROM tab0
----
63

query I rowsort
SELECT - 57 * 19 * + 95 FROM tab1
----
-102885
-102885
-102885

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9472
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN + ( col2 ) AND - col2 * + col1 - + col2
----

skipif mysql # not compatible
query III rowsort label-9472
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + ( col2 ) AND - col2 * + col1 - + col2
----

query I rowsort
SELECT - col0 * - + 38 AS col1 FROM tab1
----
1938
3230
3458

query I rowsort
SELECT + 65 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT - + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-76

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE 18 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - SUM( ALL + 45 ) AS col2 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-9477
SELECT - SUM ( ALL + 45 ) AS col2 FROM tab2
----
-135

query II rowsort
SELECT ALL - 25, + col2 AS col0 FROM tab0 AS cor0
----
-25
10
-25
47
-25
99

query I rowsort
SELECT ALL + + col0 * + + 27 AS col1 FROM tab1 cor0
----
1377
2295
2457

query I rowsort
SELECT ALL - 75 AS col1 FROM tab1 cor0
----
-75
-75
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 13 ) * col0 - 8 col2 FROM tab0 AS cor0
----
1123
1253
187

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL MAX( DISTINCT + col1 ) FROM tab1 cor0 WHERE + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL MAX ( DISTINCT + col1 ) FROM tab1 cor0 WHERE + col0 < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9483
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( + col2 * - col0 + - CAST( + col0 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9483
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN ( + col2 * - col0 + - CAST ( + col0 AS INTEGER ) ) AND ( NULL )
----

query I rowsort
SELECT ALL - - 70 * ( + 56 ) * + col0 + col0 AS col1 FROM tab2 AS cor0
----
180366
250944
294075

query I rowsort
SELECT + col0 * + + 35 FROM tab2 AS cor0
----
1610
2240
2625

query I rowsort
SELECT DISTINCT col2 * col2 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
-12167
-195112
-64000

onlyif mysql # DIV for integer division: 
query II rowsort label-9487
SELECT 3 AS col1, - col0 DIV + - 70 + 25 AS col0 FROM tab0 AS cor0
----
3
25
3
26
3
26

skipif mysql # not compatible
query II rowsort label-9487
SELECT 3 AS col1, - col0 / + - 70 + 25 AS col0 FROM tab0 AS cor0
----
3
25
3
26
3
26

query I rowsort
SELECT 13 * - + col1 AS col1 FROM tab2
----
-1001
-663
-871

onlyif mysql # DIV for integer division: 
query I rowsort label-9489
SELECT ALL 44 DIV + ( + col1 ) AS col2 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-9489
SELECT ALL 44 / + ( + col1 ) AS col2 FROM tab1
----
0
3
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( + col2 * + 57 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 42 IN ( - ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + ( + ( col2 ) ) AS col0 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9493
SELECT DISTINCT col1 - ( + ( 28 ) ) FROM tab2 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) IN ( + ( - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-9493
SELECT DISTINCT col1 - ( + ( 28 ) ) FROM tab2 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) IN ( + ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9494
SELECT DISTINCT 29 DIV col0 AS col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT 29 / col0 AS col0 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 + + 92 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT ALL + CAST( MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT ALL + CAST ( MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL COUNT( + 44 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL COUNT ( + 44 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9499
SELECT ALL - CAST( NULL AS DECIMAL ) * - - COUNT( DISTINCT - - 17 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - CAST ( NULL AS REAL ) * - - COUNT ( DISTINCT - - 17 ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * + - 7 * + 74 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9501
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN + 31 AND 96 * - - col2 * CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9501
SELECT * FROM tab1 cor0 WHERE NULL BETWEEN + 31 AND 96 * - - col2 * CAST ( - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab2
----
31
31
31

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT + SUM( 38 ) FROM tab1 cor0
----
114

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + SUM ( 38 ) FROM tab1 cor0
----
114

query I rowsort
SELECT + + 62 + 30 AS col1 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT 40 FROM tab1 cor0 WHERE NULL NOT BETWEEN 40 * - + col1 AND + - col2 * - col2 * - col1 + col1 - - col2
----

query I rowsort
SELECT DISTINCT col0 - - + ( - - 39 ) + ( col2 ) + - col0 * 7 FROM tab1 AS cor0
----
-171
-412
-439

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 ) <= 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9509
SELECT DISTINCT 84 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-9509
SELECT DISTINCT 84 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9510
SELECT ALL + 28 * 42 + + CAST( NULL AS SIGNED ) + + SUM( col0 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9510
SELECT ALL + 28 * 42 + + CAST ( NULL AS INTEGER ) + + SUM ( col0 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT + CAST( + + 85 AS SIGNED ) + 19 * + 2 * + - 21 + - col1 AS col2 FROM tab2 AS cor0
----
-764
-780
-790

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + CAST ( + + 85 AS INTEGER ) + 19 * + 2 * + - 21 + - col1 AS col2 FROM tab2 AS cor0
----
-764
-780
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT - - MAX( col0 ) + ( - 81 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9512
SELECT - - MAX ( col0 ) + ( - 81 ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT DISTINCT + MAX( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9513
SELECT DISTINCT + MAX ( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9514
SELECT 5 + ( + COUNT( * ) ) FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-9514
SELECT 5 + ( + COUNT ( * ) ) FROM tab2 cor0
----
8

query I rowsort
SELECT ALL 37 + + - col1 - + + 33 AS col2 FROM tab1 AS cor0
----
-1
-10
-43

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 5 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 42 + col0 * - - 56 + - - ( + - col1 ) * col1 AS col1 FROM tab1
----
2702
2929
4777

query I rowsort
SELECT DISTINCT col1 - - + col2 FROM tab1
----
110
115
64

query II rowsort
SELECT + + col0 AS col2, col0 FROM tab2 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL - CAST( NULL AS SIGNED ) + + + 77 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9520
SELECT ALL - CAST ( NULL AS INTEGER ) + + + 77 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 + + ( - col2 ) AND + 42 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT - - COUNT( * ) * 23 FROM tab1 AS cor0 WHERE NOT col2 <> - ( + ( - - 82 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9523
SELECT - - COUNT ( * ) * 23 FROM tab1 AS cor0 WHERE NOT col2 <> - ( + ( - - 82 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT MAX( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9524
SELECT MAX ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - - col1 * + 36 AS col2 FROM tab2 AS cor0
----
1836
2412
2772

query I rowsort
SELECT + 74 * + - 84 AS col1 FROM tab0
----
-6216
-6216
-6216

query I rowsort
SELECT + col2 * - ( - col2 ) / + col0 + 23 + 67 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( col1 ) * - + col0 AS col1 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT MIN( DISTINCT + - ( + - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9529
SELECT MIN ( DISTINCT + - ( + - col2 ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9530
SELECT + 46 DIV - COUNT( * ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9530
SELECT + 46 / - COUNT ( * ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9531
SELECT MAX( 90 ) col2 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9531
SELECT MAX ( 90 ) col2 FROM tab0 AS cor0
----
90

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 22 IS NULL
----

query I rowsort
SELECT ALL 33 * + col1 FROM tab1 cor0
----
1551
165
462

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 * - col2 * + col2 + - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN - 48 AND ( - - col1 * + ( + + col0 ) )
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT 2 DIV + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT 2 / + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL + col0 + - + col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - ( + col2 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 14 + + ( - 95 ) + - col0 AS col2 FROM tab2
----
-127
-145
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL - COUNT( - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - COUNT ( - col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT + ( + COUNT( - col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9543
SELECT + ( + COUNT ( - col2 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ( + MAX( ALL col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9544
SELECT ( + MAX ( ALL col2 ) ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT + COUNT( * ) * 78 * MIN( ALL col0 ) FROM tab2
----
10764

skipif mysql # not compatible
query I rowsort label-9545
SELECT + COUNT ( * ) * 78 * MIN ( ALL col0 ) FROM tab2
----
10764

query I rowsort
SELECT ALL 54 * + - 23 AS col1 FROM tab1
----
-1242
-1242
-1242

query I rowsort
SELECT DISTINCT + col1 * + - 60 + + + col1 FROM tab0 AS cor0
----
-1239
-4779
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT MAX( ALL + + 56 ) + - 14 AS col0 FROM tab0 cor0 WHERE 57 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT MAX ( ALL + + 56 ) + - 14 AS col0 FROM tab0 cor0 WHERE 57 IS NOT NULL
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-9549
SELECT DISTINCT + 18 DIV 39 * 19 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9549
SELECT DISTINCT + 18 / 39 * 19 AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + 59 * - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-531

query I rowsort
SELECT DISTINCT + - 25 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-25

query I rowsort
SELECT ALL + 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 * col2 + - col1 AND - + col2
----

query I rowsort
SELECT 74 * 42 AS col2 FROM tab2 cor0
----
3108
3108
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT + 30 - - COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9555
SELECT + 30 - - COUNT ( * ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT - - col0 * - 18 - - - col1 AS col1 FROM tab0 AS cor0 WHERE 11 IS NOT NULL
----
-1587
-1747
-351

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9557
SELECT + col1 - - col2 * + CAST( NULL AS SIGNED ) + + ( + - col1 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9557
SELECT + col1 - - col2 * + CAST ( NULL AS INTEGER ) + + ( + - col1 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT + MIN( DISTINCT - col0 ) AS col2 FROM tab0 WHERE ( - 90 * + col2 + - 85 / - 38 + col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9558
SELECT + MIN ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE ( - 90 * + col2 + - 85 / - 38 + col2 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9559
SELECT CAST( - col2 AS SIGNED ) - + col1 FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9559
SELECT CAST ( - col2 AS INTEGER ) - + col1 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL MIN( - + 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL MIN ( - + 78 ) FROM tab2
----
-78

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + + 39 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NOT col1 BETWEEN + 35 / - + col2 + 15 * - col1 AND - 78
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT DISTINCT COUNT( ALL + 91 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9563
SELECT DISTINCT COUNT ( ALL + 91 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - + ( col2 ) ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= - 30 - - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 18 + + 98 * + col0 * - + 37 AS col0 FROM tab2 AS cor0 WHERE NOT 41 / - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( + 16 ) ) AS col2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-9569
SELECT DISTINCT + COUNT( * ), 26 * + + 92 col2 FROM tab2 AS cor0
----
3
2392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9569
SELECT DISTINCT + COUNT ( * ), 26 * + + 92 col2 FROM tab2 AS cor0
----
3
2392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9570
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9570
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT ALL col1 * 9, + col0 FROM tab0 AS cor0
----
189
87
729
15
9
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col0 + + CAST( - 62 AS SIGNED ) - + ( col2 ) + + ( 21 ) + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9572
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col0 + + CAST ( - 62 AS INTEGER ) - + ( col2 ) + + ( 21 ) + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT + - COUNT( ALL + + col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9573
SELECT + - COUNT ( ALL + + col2 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - col0 * + + col2 + 59 * - - 53 FROM tab2 AS cor0
----
-193993
-288323
-50831

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT - COUNT( DISTINCT - ( 34 ) ) + SUM( - - 44 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
131

skipif mysql # not compatible
query I rowsort label-9575
SELECT - COUNT ( DISTINCT - ( 34 ) ) + SUM ( - - 44 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9576
SELECT ( col0 ) * + - col0 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9576
SELECT ( col0 ) * + - col0 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 16 + + 15 AS col0 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL 14 FROM tab1 WHERE NOT + col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT - 25 * + MIN( + + 61 ) FROM tab0 WHERE NOT - + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - 25 * + MIN ( + + 61 ) FROM tab0 WHERE NOT - + col1 <> NULL
----
NULL

query I rowsort
SELECT + col0 * - 60 * + col1 AS col1 FROM tab0 AS cor0
----
-109620
-5820
-72900

query I rowsort
SELECT ( - - 36 ) FROM tab1 AS cor0
----
36
36
36

query I rowsort
SELECT + 69 - + col1 AS col0 FROM tab0
----
-12
48
68

query I rowsort
SELECT DISTINCT - col1 - - + 53 AS col2 FROM tab1 AS cor0
----
39
48
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9584
SELECT 92 * - + 9 + + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT 92 * - + 9 + + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT - MAX( 53 ) + - 3 AS col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9585
SELECT - MAX ( 53 ) + - 3 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, 45 + 50 col2 FROM tab2 AS cor0
----
46
95
64
95
75
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, - col0 - - col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT CAST( NULL AS SIGNED ) * - 75 * 32 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9589
SELECT CAST ( NULL AS INTEGER ) * - 75 * 32 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + - 51 FROM tab0 AS cor0
----
2397
5049
510

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT 83 * + - col0 AS col2 FROM tab1
----
-4233
-7055
-7553

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 * - col0 + col0 / - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT CAST( + + 20 AS SIGNED ) AS col2 FROM tab1
----
20
20
20

skipif mysql # not compatible
query I rowsort label-9595
SELECT CAST ( + + 20 AS INTEGER ) AS col2 FROM tab1
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT + - MAX( ALL 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9596
SELECT + - MAX ( ALL 23 ) FROM tab0 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( 21, - 97, + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT - COUNT( + + 2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - COUNT ( + + 2 ) AS col0 FROM tab0
----
-3

query II rowsort
SELECT ALL + 73 AS col0, - col0 FROM tab1 AS cor0
----
73
-51
73
-85
73
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9600
SELECT - - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9600
SELECT - - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT - + MIN( - - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9601
SELECT - + MIN ( - - col0 ) FROM tab1 cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 / + col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 < col1
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL > NULL
----

query II rowsort
SELECT DISTINCT - 96 + col2 AS col0, + 67 AS col0 FROM tab1
----
-28
67
-37
67
0
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9607
SELECT ALL + MAX( - col0 ) + + COUNT( * ) + ( 86 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + MAX ( - col0 ) + + COUNT ( * ) + ( 86 ) FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT MIN( ALL col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT MIN ( ALL col1 ) AS col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab1 WHERE + col0 * 42 > col0 + 34
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL = + col2 * + col2 )
----

query I rowsort
SELECT ALL - + 53 AS col2 FROM tab1 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 3 + - + 42 * - col2 * + 49, col1 col0 FROM tab2 AS cor0
----
119367
67
47337
51
82323
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + ( - ( - col2 ) ) + - - 1 col1, - 61 AS col2 FROM tab0
----
100
-61
211
-61
3808
-61

query I rowsort
SELECT ALL - 59 + col1 + + 91 FROM tab2
----
109
83
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT 69 DIV + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9615
SELECT 69 / + col0 AS col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT ALL + 81 + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
90

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + 81 + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
90

query I rowsort
SELECT DISTINCT + 35 - + col0 + col2 + + ( - 21 ) FROM tab0
----
-63
16
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9618
SELECT DISTINCT col0 DIV - col0 - 74 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-9618
SELECT DISTINCT col0 / - col0 - 74 FROM tab0
----
-75

query I rowsort
SELECT ALL col0 - + col0 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 * + + col0 * 65 * - 56 col0 FROM tab2 AS cor0
----
14232400
19801600
23205000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT ALL + 32 * + + CAST( - + col1 AS SIGNED ) - - col2 - - - col0 * - col0 * - col0 - - + 27 FROM tab1 cor0 WHERE NOT - 20 + - - CAST( col2 AS SIGNED ) * + 71 > 63 * ( - + col2 ) + + col2
----

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL + 32 * + + CAST ( - + col1 AS INTEGER ) - - col2 - - - col0 * - col0 * - col0 - - + 27 FROM tab1 cor0 WHERE NOT - 20 + - - CAST ( col2 AS INTEGER ) * + 71 > 63 * ( - + col2 ) + + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 77 + + 37 * + - 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT ALL - COUNT( * ) * + + 49 FROM tab2 AS cor0 WHERE NOT + ( - 40 ) * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - COUNT ( * ) * + + 49 FROM tab2 AS cor0 WHERE NOT + ( - 40 ) * + col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL + col1 * - col1 AS col1, 45 * ( - + 49 ) FROM tab1 AS cor0
----
-196
-2205
-2209
-2205
-25
-2205

query I rowsort
SELECT DISTINCT + - col1 + - + 81 AS col1 FROM tab1 WHERE NOT - + col0 + - col0 < + col1 / col2
----

query I rowsort
SELECT col1 * + 26 FROM tab1
----
1222
130
364

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT + col0 * - col0 FROM tab2 WHERE NOT col0 * CAST( - col2 AS SIGNED ) + 66 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-9627
SELECT + col0 * - col0 FROM tab2 WHERE NOT col0 * CAST ( - col2 AS INTEGER ) + 66 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + 33 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9629
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9629
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT ALL MAX( ALL + 89 ) FROM tab2 cor0
----
89

skipif mysql # not compatible
query I rowsort label-9630
SELECT ALL MAX ( ALL + 89 ) FROM tab2 cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT + SUM( ALL ( - 60 ) ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT + SUM ( ALL ( - 60 ) ) FROM tab1
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ( COUNT( * ) ) * 5 AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9632
SELECT ( COUNT ( * ) ) * 5 AS col2 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 + - col2 AS col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9634
SELECT * FROM tab2 WHERE NOT NULL <= - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-9634
SELECT * FROM tab2 WHERE NOT NULL <= - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT + + ( - - COUNT( * ) ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9635
SELECT + + ( - - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col1 + - + 76 col0 FROM tab2 AS cor0 WHERE NOT - 9 / - col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9637
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 = - + col2 / - + col1 * - CAST( NULL AS SIGNED ) - - - 6 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-9637
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 = - + col2 / - + col1 * - CAST ( NULL AS INTEGER ) - - - 6 + + col1 )
----

query I rowsort
SELECT DISTINCT - ( + + 78 ) * + 74 FROM tab2 cor0
----
-5772

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT - + 13 + - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT - + 13 + - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-10

query I rowsort
SELECT col1 + 47 FROM tab1 AS cor0
----
52
61
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9641
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 IN ( col1, 13, ( col0 ), CAST( NULL AS SIGNED ) / + col1, col0 )
----

skipif mysql # not compatible
query III rowsort label-9641
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 IN ( col1, 13, ( col0 ), CAST ( NULL AS INTEGER ) / + col1, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9642
SELECT + COUNT( * ) * + + CAST( NULL AS SIGNED ) * MAX( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, - col2 * + 41, - 72, 63 * + - 58 / - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9642
SELECT + COUNT ( * ) * + + CAST ( NULL AS INTEGER ) * MAX ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, - col2 * + 41, - 72, 63 * + - 58 / - col2 )
----
NULL

query I rowsort
SELECT 78 + col0 FROM tab1 AS cor0
----
129
163
169

query I rowsort
SELECT DISTINCT + 97 + + col2 * + col2 FROM tab2
----
1697
3461
626

query I rowsort
SELECT ALL 44 * - - col0 + - - col0 FROM tab2
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-9646
SELECT DISTINCT + COUNT( * ) + - MIN( 74 ) AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + COUNT ( * ) + - MIN ( 74 ) AS col0 FROM tab1
----
-71

query III rowsort
SELECT * FROM tab2 WHERE - col1 IN ( 74 + + + 57, ( - + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9648
SELECT DISTINCT COUNT( * ) + + 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9648
SELECT DISTINCT COUNT ( * ) + + 79 FROM tab1
----
82

onlyif mysql # aggregate syntax: 
query II rowsort label-9649
SELECT DISTINCT COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 89 col1 FROM tab0
----
104
176
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT DISTINCT - COUNT( * ) - - SUM( ALL + col0 ) FROM tab0
----
196

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT - COUNT ( * ) - - SUM ( ALL + col0 ) FROM tab0
----
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9653
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + ( - 39 ) AS col0 FROM tab1 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - col1 - + ( + 19 ) FROM tab1 AS cor0
----
-24
-33
-66

query I rowsort
SELECT ALL + col2 * 31 FROM tab1
----
1829
2108
2976

onlyif mysql # DIV for integer division: 
query I rowsort label-9657
SELECT col1 DIV 86 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9657
SELECT col1 / 86 FROM tab2
----
0
0
0

query I rowsort
SELECT 5 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, + 24 + + col0 * col0 + + - col2 FROM tab2 AS cor0
----
-51
2117
-67
5591
-77
4080

query II rowsort
SELECT col0 AS col1, 39 FROM tab1 cor0
----
51
39
85
39
91
39

query I rowsort
SELECT - + ( + + ( - + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT + + 80 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-9662
SELECT + + 80 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT - ( COUNT( * ) ) * - 75 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - ( COUNT ( * ) ) * - 75 FROM tab2 AS cor0
----
225

query I rowsort
SELECT - 42 * + ( - 27 ) * ( - col1 ) FROM tab1 AS cor0
----
-15876
-53298
-5670

query I rowsort
SELECT ALL + col1 * + + col0 - + col2 * - - col2 FROM tab2 AS cor0
----
1661
1817
3328

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT 16 * COUNT( * ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT 16 * COUNT ( * ) AS col1 FROM tab2
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9667
SELECT * FROM tab1 WHERE NOT + + 94 NOT IN ( - 67 + 4 + col0 * - col1 / + 54 * + 2 * col1, - col1 / - CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9667
SELECT * FROM tab1 WHERE NOT + + 94 NOT IN ( - 67 + 4 + col0 * - col1 / + 54 * + 2 * col1, - col1 / - CAST ( - - col2 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9668
SELECT SUM( ALL - col1 ) DIV - 84 AS col1, SUM( + col0 ) col0 FROM tab2
----
2
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9668
SELECT SUM ( ALL - col1 ) / - 84 AS col1, SUM ( + col0 ) col0 FROM tab2
----
2
185

query I rowsort
SELECT + + 7 AS col1 FROM tab2 cor0
----
7
7
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9670
SELECT col2 DIV + col2 + + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-9670
SELECT col2 / + col2 + + col0 AS col2 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query II rowsort label-9671
SELECT - - MIN( ALL + 8 ) + - 66 AS col2, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9671
SELECT - - MIN ( ALL + 8 ) + - 66 AS col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----
NULL
0

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - + 91 AS col1 FROM tab0
----
-112
-172
-92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9674
SELECT ALL - col2 + ( - 67 ) * - + col2 AS col1, + col1 * - + col2 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
1518
NULL
2640
NULL
3828
NULL

skipif mysql # not compatible
query II rowsort label-9674
SELECT ALL - col2 + ( - 67 ) * - + col2 AS col1, + col1 * - + col2 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
1518
NULL
2640
NULL
3828
NULL

query II rowsort
SELECT DISTINCT 81 AS col2, - col0 AS col2 FROM tab2 AS cor0
----
81
-46
81
-64
81
-75

query II rowsort
SELECT ALL + - col1 AS col2, col2 + - - col2 FROM tab1 AS cor0 WHERE NOT - 82 IS NULL
----
-14
192
-47
136
-5
118

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT + SUM( + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9677
SELECT + SUM ( + col1 ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT col1, ( - col2 ) FROM tab0 cor0
----
1
-99
21
-10
81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT + 71 * - COUNT( * ) FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9679
SELECT DISTINCT + 71 * - COUNT ( * ) FROM tab0 AS cor0
----
-213

query I rowsort
SELECT DISTINCT - col0 + col0 + - ( - + ( + col2 ) ) + ( + col0 ) AS col2 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 99 ) >= ( - + col1 ) * + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 80 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 FROM tab0 WHERE - + 68 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE + - ( + 87 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT DISTINCT col2 DIV - col2 + 59 AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT col2 / - col2 + 59 AS col2 FROM tab2
----
58

query I rowsort
SELECT ( - + col2 ) + - - col0 FROM tab2
----
17
23
24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col1 * + 5 <= 95
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + 87 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + col0 / + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 57 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 > - col1 + + - col1
----

query I rowsort
SELECT + + 72 * - col1 AS col1 FROM tab1 AS cor0
----
-1008
-3384
-360

query I rowsort
SELECT ALL + - 2 * - 27 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT + ( + COUNT( DISTINCT - 81 ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9696
SELECT + ( + COUNT ( DISTINCT - 81 ) ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT SUM( + 27 ) * + COUNT( * ) AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9697
SELECT SUM ( + 27 ) * + COUNT ( * ) AS col2 FROM tab2
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9698
SELECT DISTINCT + col1 * + col1 / - CAST( NULL AS SIGNED ) * - - 78 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9698
SELECT DISTINCT + col1 * + col1 / - CAST ( NULL AS INTEGER ) * - - 78 col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 54 col0 FROM tab2 WHERE NOT NULL <> + col0 / + + 28 * col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 42 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-9702
SELECT ALL + col0, ( + col2 ) DIV + col1 FROM tab1
----
51
6
85
11
91
1

skipif mysql # not compatible
query II rowsort label-9702
SELECT ALL + col0, ( + col2 ) / + col1 FROM tab1
----
51
6
85
11
91
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - 50 + - - col1 col2 FROM tab1
----
-59
-45
-68
-3
-96
-36

query I rowsort
SELECT DISTINCT ( + + col1 ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT COUNT( * ) + COUNT( - col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9705
SELECT COUNT ( * ) + COUNT ( - col1 ) FROM tab2
----
6

query II rowsort
SELECT DISTINCT - col2 AS col0, 4 FROM tab0
----
-10
4
-47
4
-99
4

query I rowsort
SELECT DISTINCT - col2 - 84 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-143
-152
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT - 91 + COUNT( * ) + - MIN( + - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( ( - 51 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT - 91 + COUNT ( * ) + - MIN ( + - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( ( - 51 ) )
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 17 + - 67 AS col1 FROM tab0 AS cor0
----
103
1616
732

onlyif mysql # DIV for integer division: 
query I rowsort label-9710
SELECT ALL col0 DIV - - ( 93 ) AS col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL col0 / - - ( 93 ) AS col1 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9711
SELECT - 77 DIV 77 AS col2 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9711
SELECT - 77 / 77 AS col2 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9713
SELECT ALL 55 * + - COUNT( * ), - COUNT( ALL + 8 ) + - + 60 col0 FROM tab2 AS cor0
----
-165
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9713
SELECT ALL 55 * + - COUNT ( * ), - COUNT ( ALL + 8 ) + - + 60 col0 FROM tab2 AS cor0
----
-165
-63

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND + + 59
----

query II rowsort
SELECT DISTINCT + 3 * + + col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
138
51
192
77
225
67

query I rowsort
SELECT + col1 + col0 + 3 AS col1 FROM tab0 AS cor0
----
101
111
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9717
SELECT + COUNT( * ) + + 45 + - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9717
SELECT + COUNT ( * ) + + 45 + - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col1 * + col1 * col0 + col2 FROM tab1 AS cor0
----
-200951
-2066
-9900

query I rowsort
SELECT DISTINCT - col1 + + + col2 * - + col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT - col0 + - - col2 - - col2 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 45 + + col0 - + col2 * col0 * col1 + - + 61 AS col2 FROM tab2 AS cor0
----
-197162
-291481
-54018

query I rowsort
SELECT ALL col1 + - - 51 AS col0 FROM tab2
----
102
118
128

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - 16 + - COUNT( * ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-9724
SELECT - 16 + - COUNT ( * ) FROM tab2
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL + 52 - + COUNT( * ) AS col2 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL + 52 - + COUNT ( * ) AS col2 FROM tab0
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - - col0 + - col1 col2 FROM tab2
----
41
51
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN - col1 * 83 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9727
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN - col1 * 83 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 80 <= ( + 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT col1 + + col2 DIV - col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT col1 + + col2 / - col1 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT DISTINCT 17 - - col2 DIV - ( + ( 33 ) ) FROM tab1
----
15
16

skipif mysql # not compatible
query I rowsort label-9730
SELECT DISTINCT 17 - - col2 / - ( + ( 33 ) ) FROM tab1
----
15
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT ALL - MIN( col2 ) - - - COUNT( DISTINCT - - col1 ) col2 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9731
SELECT ALL - MIN ( col2 ) - - - COUNT ( DISTINCT - - col1 ) col2 FROM tab0 AS cor0
----
-13

query II rowsort
SELECT DISTINCT - + 67 AS col0, - col0 + + col1 FROM tab2 AS cor0
----
-67
-8
-67
13
-67
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT + MIN( - - 67 ) FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9733
SELECT + MIN ( - - 67 ) FROM tab1 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT MIN( ALL 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9734
SELECT MIN ( ALL 86 ) FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT - MIN( ALL + col0 ) col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9735
SELECT - MIN ( ALL + col0 ) col1 FROM tab2 cor0
----
-46

query I rowsort
SELECT DISTINCT + - 42 AS col0 FROM tab1 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9737
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9737
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT SUM( - 94 ) FROM tab1 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT SUM ( - 94 ) FROM tab1 AS cor0
----
-282

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 57 + - 89 / - ( + - col0 ) IN ( col2, - 11 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - ( 9 ) FROM tab0 AS cor0
----
9
9
9

query II rowsort
SELECT ALL 95 * - col1 + col1 + + col2 AS col1, + 58 AS col0 FROM tab0 AS cor0
----
-1964
58
-7567
58
5
58

query I rowsort
SELECT + col0 * + col1 + + 84 FROM tab0 AS cor0
----
1299
181
1911

query I rowsort
SELECT - - 51 AS col2 FROM tab1 AS cor0
----
51
51
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL 9 + ( + - COUNT( * ) ) col1 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9744
SELECT ALL 9 + ( + - COUNT ( * ) ) col1 FROM tab1
----
6

query II rowsort
SELECT col1, col1 * + col0 * - 55 AS col0 FROM tab1
----
14
-39270
47
-235235
5
-23375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 49 AS col2, - 13 col2 FROM tab2 WHERE + 54 / - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT - 55 * + MAX( ALL 12 ) FROM tab0
----
-660

skipif mysql # not compatible
query I rowsort label-9747
SELECT - 55 * + MAX ( ALL 12 ) FROM tab0
----
-660

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL >= - 31
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9749
SELECT 37 * + 99 * + - col2 / + col0 / - col2 / + CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9749
SELECT 37 * + 99 * + - col2 / + col0 / - col2 / + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 93 * col0 + 96 + - - 21 * + + 55 * + + col1 * - col2 FROM tab1 AS cor0
----
-1547481
-332724
-3682821

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT DISTINCT - ( - MIN( 56 ) ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT - ( - MIN ( 56 ) ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9752
SELECT DISTINCT - 23 + - + 45 DIV + MIN( DISTINCT - 88 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT - 23 + - + 45 / + MIN ( DISTINCT - 88 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

query I rowsort
SELECT ALL - 70 + - col2 FROM tab2
----
-110
-128
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 - + col0 col0 FROM tab0
----
-31
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT 82 + COUNT( * ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-9755
SELECT 82 + COUNT ( * ) FROM tab1
----
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9756
SELECT ALL COUNT( * ), 81 col0 FROM tab2
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9756
SELECT ALL COUNT ( * ), 81 col0 FROM tab2
----
3
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / col0 + - - col2 <> NULL
----

query I rowsort
SELECT + col1 * - ( + col1 ) AS col0 FROM tab0
----
-1
-441
-6561

query II rowsort
SELECT col2, col0 - + col2 FROM tab2
----
23
23
40
24
58
17

query I rowsort
SELECT ( 27 ) FROM tab0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL COUNT( * ) * 88 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL COUNT ( * ) * 88 FROM tab0 AS cor0
----
264

query I rowsort
SELECT DISTINCT col1 - - col1 + - col1 + + 73 * + col1 FROM tab1 AS cor0
----
1036
3478
370

query I rowsort
SELECT col0 - + - 29 FROM tab1
----
114
120
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT COUNT( * ) + + - ( - - COUNT( ALL col2 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT COUNT ( * ) + + - ( - - COUNT ( ALL col2 ) ) FROM tab0
----
0

query I rowsort
SELECT col2 + - 27 AS col0 FROM tab1
----
32
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT ALL + COUNT( + + 62 ) - - 52 AS col1 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-9766
SELECT ALL + COUNT ( + + 62 ) - - 52 AS col1 FROM tab1
----
55

query I rowsort
SELECT col0 + + + col2 AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 + - - 69 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * col2 * - 15 + - col2 AS col2 FROM tab1
----
-20256
-4484
-48008

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 24 > - col0 * col0
----

query I rowsort
SELECT ALL - 43 AS col1 FROM tab0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - + 35 FROM tab1 cor0
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-9773
SELECT DISTINCT SUM( ALL - 48 ), + 66 AS col2 FROM tab0 AS cor0
----
-144
66

skipif mysql # not compatible
query II rowsort label-9773
SELECT DISTINCT SUM ( ALL - 48 ), + 66 AS col2 FROM tab0 AS cor0
----
-144
66

query I rowsort
SELECT ALL - 11 AS col1 FROM tab0 cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - MAX( DISTINCT col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9775
SELECT - MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
-75

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 49 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9777
SELECT DISTINCT + 42 * 33 * - col1 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT DISTINCT + 42 * 33 * - col1 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 66 + + ( col2 ) * col0 + + col0 * - ( + 14 ) < NULL
----

query I rowsort
SELECT DISTINCT 37 AS col1 FROM tab2 AS cor0
----
37

query I rowsort
SELECT + - ( ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9782
SELECT + CAST( - ( col1 ) AS SIGNED ) AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

skipif mysql # not compatible
query II rowsort label-9782
SELECT + CAST ( - ( col1 ) AS INTEGER ) AS col1, - col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT - COUNT( + col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9783
SELECT - COUNT ( + col0 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col1 + + 1 AS col1 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT - + MIN( ALL 43 ) AS col1 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9785
SELECT - + MIN ( ALL 43 ) AS col1 FROM tab1 AS cor0
----
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT - col0 DIV col1 * - + col0 * col2 + + col1 FROM tab0
----
3501
81
931492

skipif mysql # not compatible
query I rowsort label-9786
SELECT - col0 / col1 * - + col0 * col2 + + col1 FROM tab0
----
3501
81
931492

onlyif mysql # DIV for integer division: 
query II rowsort label-9787
SELECT ALL 11 * + - col0 + + col0 DIV + col0 AS col0, + col1 DIV - col1 FROM tab2
----
-505
-1
-703
-1
-824
-1

skipif mysql # not compatible
query II rowsort label-9787
SELECT ALL 11 * + - col0 + + col0 / + col0 AS col0, + col1 / - col1 FROM tab2
----
-505
-1
-703
-1
-824
-1

query III rowsort
SELECT * FROM tab0 WHERE NOT 99 * - + col2 > - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 43 ) * - - 57 + + - col0 * - - col0 col1 FROM tab1
----
-10732
-5052
-9676

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NULL >= + 1 * + col1 - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9791
SELECT ALL CAST( NULL AS SIGNED ) * - + 75 col1, 37 FROM tab2
----
NULL
37
NULL
37
NULL
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9791
SELECT ALL CAST ( NULL AS INTEGER ) * - + 75 col1, 37 FROM tab2
----
NULL
37
NULL
37
NULL
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT - col0 FROM tab0 WHERE col2 IN ( + ( + 41 ), CAST( col2 AS SIGNED ), + - col2, CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ), + + col2 - + - ( + 18 ) * - col0, col0 + + col0 / + + col1 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9792
SELECT - col0 FROM tab0 WHERE col2 IN ( + ( + 41 ), CAST ( col2 AS INTEGER ), + - col2, CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ), + + col2 - + - ( + 18 ) * - col0, col0 + + col0 / + + col1 )
----
-15
-87
-97

query I rowsort
SELECT - 81 * - col0 - + - col0 AS col2 FROM tab0 WHERE - col1 * + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT + COUNT( ALL col1 ) FROM tab2 AS cor0 WHERE NULL <= 46
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT + COUNT ( ALL col1 ) FROM tab2 AS cor0 WHERE NULL <= 46
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT COUNT( * ) * + 57 * + - 56 AS col2 FROM tab1 AS cor0
----
-9576

skipif mysql # not compatible
query I rowsort label-9795
SELECT COUNT ( * ) * + 57 * + - 56 AS col2 FROM tab1 AS cor0
----
-9576

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT + + col1 DIV - + col0 - - + col0 AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9796
SELECT + + col1 / - + col0 - - + col0 AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT COUNT( * ) + 17 AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-9797
SELECT COUNT ( * ) + 17 AS col1 FROM tab2
----
20

query I rowsort
SELECT + 99 FROM tab1 AS cor0 WHERE + 64 * + ( - 45 ) * - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL MAX( ALL 70 ) AS col2 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL MAX ( ALL 70 ) AS col2 FROM tab1 AS cor0
----
70

query I rowsort
SELECT col2 * col1 + - + col1 + + + col0 + - + col0 AS col0 FROM tab0 AS cor0
----
189
3726
98

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT NULL < 10
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9802
SELECT DISTINCT + COUNT( * ) * 31 DIV COUNT( * ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + COUNT ( * ) * 31 / COUNT ( * ) FROM tab0
----
31

query III rowsort
SELECT * FROM tab2 WHERE NOT 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT ALL - col1 DIV - - 77 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL - col1 / - - 77 FROM tab2
----
-1
0
0

query I rowsort
SELECT - col1 * + 47 FROM tab1
----
-2209
-235
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT COUNT( * ) AS col1 FROM tab0, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9808
SELECT COUNT ( * ) AS col1 FROM tab0, tab0 cor0
----
9

query I rowsort
SELECT ALL col0 * + 33 - + col1 * - ( - col0 ) AS col0 FROM tab1 WHERE - col2 NOT BETWEEN - col0 * - col0 + - col1 + - - col1 * - col0 - - col1 * - col2 AND + - 46 * + col2 * + + col1
----
-1274
2380
969

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 50 col0 FROM tab0, tab1 cor0
----
50

query I rowsort
SELECT + + ( - 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9813
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = + CAST( + 93 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9813
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = + CAST ( + 93 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col1
----

query II rowsort
SELECT ALL col1 * 10 + + col0 * - 50, - col2 + + 7 AS col1 FROM tab0 AS cor0
----
-4140
-3
-4840
-92
60
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + 39 + col0 col2 FROM tab0 WHERE NOT NULL NOT IN ( - col1, + col0, - col1 )
----

query I rowsort
SELECT ALL AVG ( - + 81 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ( + col1 ) * - col2 + - - col2 AS col0 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT + + 95 + + col2 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 <= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9822
SELECT ( - 9 ) DIV + + col1 + - 36 col2 FROM tab1 AS cor0
----
-36
-36
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9822
SELECT ( - 9 ) / + + col1 + - 36 col2 FROM tab1 AS cor0
----
-36
-36
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-9823
SELECT + - ( + - COUNT( * ) ) AS col1, + 15 FROM tab0 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-9823
SELECT + - ( + - COUNT ( * ) ) AS col1, + 15 FROM tab0 AS cor0
----
3
15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + 36
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT ALL - COUNT( * ) + + COUNT( * ) col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9826
SELECT ALL - COUNT ( * ) + + COUNT ( * ) col2 FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - + col1 * + col1 * col2 * col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - 67 * - col2 < - col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + col2 <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * ( - 80 ) - col1 col0 FROM tab1 WHERE + 25 >= + col0 - - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9831
SELECT ALL + CAST( MAX( - 54 ) AS SIGNED ) AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-9831
SELECT ALL + CAST ( MAX ( - 54 ) AS INTEGER ) AS col1 FROM tab1
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-9832
SELECT 88 DIV col0 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9832
SELECT 88 / col0 AS col2 FROM tab0
----
0
1
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9833
SELECT DISTINCT MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + col1 * 45 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 5 * - 3 + col2 + - col2 AS col2 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT ALL 1 * + 48 FROM tab2
----
48
48
48

query I rowsort
SELECT DISTINCT 37 * 14 + 87 + + - 80 AS col0 FROM tab2 cor0
----
525

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT ALL + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9838
SELECT ALL + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT DISTINCT COUNT( + - 14 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9839
SELECT DISTINCT COUNT ( + - 14 ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL + 31 - + - col1 AS col0 FROM tab1 AS cor0
----
36
45
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 35 * - col0 * 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT + col0 DIV - col0 - col2 DIV + 41 col0 FROM tab2 cor0
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9842
SELECT + col0 / - col0 - col2 / + 41 col0 FROM tab2 cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL - + SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - + SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 92 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT ALL COUNT( col0 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT ALL COUNT ( col0 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT + COUNT( DISTINCT - ( - 28 ) ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9846
SELECT + COUNT ( DISTINCT - ( - 28 ) ) col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + + ( - 57 ) * col2 FROM tab1 AS cor0
----
-3363
-3876
-5472

query I rowsort
SELECT ALL + ( + - col1 ) * - 45 FROM tab0
----
3645
45
945

query I rowsort
SELECT DISTINCT + 98 * + 70 FROM tab2
----
6860

onlyif mysql # aggregate syntax: 
query I rowsort label-9851
SELECT ALL - MIN( ALL 91 ) * + + COUNT( * ) * 60 FROM tab2
----
-16380

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - MIN ( ALL 91 ) * + + COUNT ( * ) * 60 FROM tab2
----
-16380

onlyif mysql # aggregate syntax: 
query II rowsort label-9852
SELECT + COUNT( * ) AS col1, - ( - - SUM( col2 ) ) FROM tab2
----
3
-121

skipif mysql # not compatible
query II rowsort label-9852
SELECT + COUNT ( * ) AS col1, - ( - - SUM ( col2 ) ) FROM tab2
----
3
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT + ( + - MIN( - + ( - - col1 ) ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9853
SELECT + ( + - MIN ( - + ( - - col1 ) ) ) FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9854
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 39 AS col0 FROM tab0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT - MAX( DISTINCT + - col2 ) * 47 col0 FROM tab0 AS cor0
----
470

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9856
SELECT - MAX ( DISTINCT + - col2 ) * 47 col0 FROM tab0 AS cor0
----
470

query II rowsort
SELECT DISTINCT + col1, + 78 * + 88 + - + col0 FROM tab1 cor0
----
14
6813
47
6773
5
6779

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 79 BETWEEN 55 AND 77
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT - - 84 * - COUNT( * ) col2 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9859
SELECT DISTINCT - - 84 * - COUNT ( * ) col2 FROM tab2 AS cor0
----
-252

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT ALL SUM( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL SUM ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
156

query II rowsort
SELECT - + col0, + 57 * 19 FROM tab0 AS cor0 WHERE NOT NULL >= col2 / - col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9862
SELECT - 40 AS col0, + CAST( NULL AS SIGNED ) * col2 FROM tab1
----
-40
NULL
-40
NULL
-40
NULL

skipif mysql # not compatible
query II rowsort label-9862
SELECT - 40 AS col0, + CAST ( NULL AS INTEGER ) * col2 FROM tab1
----
-40
NULL
-40
NULL
-40
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9864
SELECT DISTINCT - COUNT( * ), 46 AS col1 FROM tab1
----
-3
46

skipif mysql # not compatible
query II rowsort label-9864
SELECT DISTINCT - COUNT ( * ), 46 AS col1 FROM tab1
----
-3
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9865
SELECT col1 DIV - + 51 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT col1 / - + 51 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT + col2 * - - col0 * - col2 FROM tab2 AS cor0
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT DISTINCT - - COUNT( * ) * + 73 AS col1 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-9867
SELECT DISTINCT - - COUNT ( * ) * + 73 AS col1 FROM tab1 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 * + col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + + ( + col1 ) * - col2 + + col1 FROM tab0 AS cor0
----
-178848
-2079
-9800

query I rowsort
SELECT 63 + - - 9 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT ALL col2 + - 76 AS col0 FROM tab2 AS cor0
----
-18
-36
-53

query I rowsort
SELECT DISTINCT - - ( + - col2 ) + - ( + 2 ) AS col0 FROM tab1 AS cor0
----
-61
-70
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9873
SELECT + 44 + + col2 + - + col1 * - CAST( - 78 AS SIGNED ) FROM tab0
----
-1584
-6227
65

skipif mysql # not compatible
query I rowsort label-9873
SELECT + 44 + + col2 + - + col1 * - CAST ( - 78 AS INTEGER ) FROM tab0
----
-1584
-6227
65

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT ALL - col2 + col0 + + - col1 * - ( + - col1 ) - - + 24 * col2 FROM tab0
----
-124
-5465
2373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT CAST( - col0 AS SIGNED ) + - col0 FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-9876
SELECT CAST ( - col0 AS INTEGER ) + - col0 FROM tab0
----
-174
-194
-30

query I rowsort
SELECT - col0 * - + col1 + - 67 * - 25 FROM tab0
----
1772
2890
3502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL 17 AS col2 FROM tab2 WHERE NOT + col0 IN ( - - ( - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-9878
SELECT ALL 17 AS col2 FROM tab2 WHERE NOT + col0 IN ( - - ( - - CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT DISTINCT col0 - - 19 AS col0 FROM tab2
----
65
83
94

query I rowsort
SELECT ALL + col2 * + 61 FROM tab1
----
3599
4148
5856

query I rowsort
SELECT DISTINCT 98 AS col1 FROM tab2 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT DISTINCT MIN( DISTINCT - 52 ) AS col0 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT MIN ( DISTINCT - 52 ) AS col0 FROM tab2 AS cor0
----
-52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9883
SELECT DISTINCT + col0 DIV - CAST( + 21 AS SIGNED ), col1 AS col2 FROM tab0 AS cor0
----
-4
1
-4
21
0
81

skipif mysql # not compatible
query II rowsort label-9883
SELECT DISTINCT + col0 / - CAST ( + 21 AS INTEGER ), col1 AS col2 FROM tab0 AS cor0
----
-4
1
-4
21
0
81

query I rowsort
SELECT DISTINCT - 98 + col2 * + col0 AS col0 FROM tab1
----
4798
4917
6090

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT ALL + ( COUNT( * ) ) + + + SUM( - - col2 ) FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-9885
SELECT ALL + ( COUNT ( * ) ) + + + SUM ( - - col2 ) FROM tab1
----
226

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) IS NULL AND NOT ( + col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT DISTINCT + 71 + + 13 * MAX( ALL - col0 ) FROM tab0
----
-124

skipif mysql # not compatible
query I rowsort label-9887
SELECT DISTINCT + 71 + + 13 * MAX ( ALL - col0 ) FROM tab0
----
-124

onlyif mysql # aggregate syntax: 
query II rowsort label-9888
SELECT ALL + 35 AS col2, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
35
3

skipif mysql # not compatible
query II rowsort label-9888
SELECT ALL + 35 AS col2, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
35
3

query I rowsort
SELECT ALL - 79 * - col1 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9890
SELECT + - COUNT( * ) * + 30 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9890
SELECT + - COUNT ( * ) * + 30 FROM tab2 AS cor0
----
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT ALL + MIN( ALL + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL + MIN ( ALL + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 * + col2 AS col2 FROM tab2 AS cor0
----
46
1058
64
2560
75
4350

query I rowsort
SELECT DISTINCT col0 / - col2 FROM tab1 AS cor0 WHERE NOT col1 <= - - col0 / + 97 + + 83
----

query I rowsort
SELECT col2 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * - 5 AS col1 FROM tab1
----
-255
-425
-455

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0 + + + col0, + col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL CAST( NULL AS SIGNED ) * - 59 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col0 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL CAST ( NULL AS INTEGER ) * - 59 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 69 * - col0 AS col2, col0 * + ( 85 ) col0 FROM tab2
----
-3174
3910
-4416
5440
-5175
6375

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + - ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 <= + + 53
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 12 + col1 * col1 col2 FROM tab2 AS cor0
----
2612
4535
5957

query I rowsort
SELECT 71 + + - col2 AS col0 FROM tab1
----
-25
12
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT 50 + - col1 FROM tab1
----
3
36
45

query I rowsort
SELECT col0 + 61 AS col0 FROM tab2
----
107
125
136

query I rowsort
SELECT + 42 * - col1 AS col2 FROM tab2 AS cor0
----
-2142
-2814
-3234

query I rowsort
SELECT ALL - + ( + 65 ) * + col2 * 3 FROM tab2 AS cor0
----
-11310
-4485
-7800

query I rowsort
SELECT ALL - 66 + 5 * + col2 + + col1 AS col1 FROM tab1 AS cor0
----
234
321
428

query I rowsort
SELECT - - col2 * + + col0 AS col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 * - col0 + - 56 col0, ( 39 ) AS col0 FROM tab2 AS cor0
----
1002
39
2504
39
4294
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - col0 + 90 col0 FROM tab2 AS cor0
----
-1014
-1446
-1710

query I rowsort
SELECT DISTINCT 75 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
290
3434
999

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE + 35 IS NULL
----

query II rowsort
SELECT col1 AS col0, - col2 AS col1 FROM tab0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( + + col1 ) col1 FROM tab0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL col0 DIV + + 48 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL col0 / + + 48 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL + - col0 DIV + + col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL + - col0 / + + col1 + - col0 FROM tab2 AS cor0
----
-46
-64
-76

query I rowsort
SELECT DISTINCT - ( 14 ) AS col1 FROM tab0 cor0
----
-14

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 56 + + 83 NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT ALL + + SUM( + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + + SUM ( + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT - + SUM( ALL 43 ) FROM tab2 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-9923
SELECT - + SUM ( ALL 43 ) FROM tab2 AS cor0
----
-129

query I rowsort
SELECT + ( col0 ) + 16 * 42 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
723
757
763

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 67 BETWEEN + + 34 * 52 AND + col0 * - col2 - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col2 AND - col0 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * - 38 col1 FROM tab2
----
-2204
-2204
-2204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9928
SELECT - - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9928
SELECT - - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 10 IN ( ( + 73 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 + col2 / + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT ALL 7 * COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9931
SELECT ALL 7 * COUNT ( * ) FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 col0 FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND ( + col1 * 73 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col0 * ( 84 ) )
----

query I rowsort
SELECT + 66 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
66
66
66

query I rowsort
SELECT DISTINCT + 47 * col1 FROM tab0
----
3807
47
987

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT ALL - 63 + 36 * + COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9936
SELECT ALL - 63 + 36 * + COUNT ( * ) AS col1 FROM tab1
----
45

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= ( col0 / col2 )
----

query I rowsort
SELECT ALL - 17 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9939
SELECT ALL COUNT( * ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9939
SELECT ALL COUNT ( * ) FROM tab0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT + ( col0 ) + col1 * col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT + col2 + ( + col2 ) AS col1 FROM tab1
----
118
136
192

query I rowsort
SELECT - col0 * - 24 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT ALL - 11 * + 55 FROM tab2
----
-605
-605
-605

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9944
SELECT + 52 DIV + MIN( - ( + col2 ) ) + 33 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9944
SELECT + 52 / + MIN ( - ( + col2 ) ) + 33 FROM tab2
----
33

query I rowsort
SELECT ALL + ( - col1 ) + col2 FROM tab1
----
21
54
82

query I rowsort
SELECT + 1 * col2 AS col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT 45 + col1 * - 49 AS col2 FROM tab2
----
-2454
-3238
-3728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab1 WHERE ( col1 * + col0 ) >= ( - 0 * 25 + col0 * - col0 )
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT ALL 66 * + MAX( - col0 ) FROM tab0 WHERE NOT ( 65 ) * col0 + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL 66 * + MAX ( - col0 ) FROM tab0 WHERE NOT ( 65 ) * col0 + col0 <> NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9950
SELECT ALL 74 DIV MAX( 12 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9950
SELECT ALL 74 / MAX ( 12 ) AS col1 FROM tab2
----
6

query III rowsort
SELECT * FROM tab0 WHERE ( - 8 * col2 ) >= - col1 * + col1 + + 73
----
15
81
47
87
21
10

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 <> - 64
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 * 51 ) > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9954
SELECT CAST( + COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9954
SELECT CAST ( + COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9955
SELECT DISTINCT 64 DIV - MIN( DISTINCT 60 ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT 64 / - MIN ( DISTINCT 60 ) AS col2 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 89 + + 99 BETWEEN col0 / 66 AND ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9957
SELECT ALL col2 * CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL col2 * CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9958
SELECT * FROM tab2 WHERE + CAST( col2 AS SIGNED ) + col2 NOT BETWEEN NULL AND 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9958
SELECT * FROM tab2 WHERE + CAST ( col2 AS INTEGER ) + col2 NOT BETWEEN NULL AND 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT col1 >= + col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT ALL COUNT( DISTINCT 85 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL COUNT ( DISTINCT 85 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ( + 83 ) - + col2 FROM tab2 AS cor0
----
25
43
60

query I rowsort
SELECT - 36 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 * + col2 - + 99 * - 35 FROM tab2 AS cor0
----
3994
5065
6829

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT MAX( + col1 ) * 64 FROM tab2 AS cor0
----
4928

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT MAX ( + col1 ) * 64 FROM tab2 AS cor0
----
4928

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT ALL + SUM( - 76 ) col0 FROM tab1
----
-228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9965
SELECT ALL + SUM ( - 76 ) col0 FROM tab1
----
-228

query I rowsort
SELECT - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT - 77 AS col0 FROM tab2 WHERE NOT col0 IN ( col2 + col1 )
----
-77
-77
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT col0 DIV 48 AS col2 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT col0 / 48 AS col2 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col2 BETWEEN - 89 AND ( col1 + 47 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 26 * - 64 ) IS NOT NULL
----

query I rowsort
SELECT - - ( - 15 ) AS col1 FROM tab0 AS cor0
----
-15
-15
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - 32 ) col1 FROM tab1 AS cor0
----
-32
-32
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <= - col0 + - col1 * col0
----
0

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <= - col0 + - col1 * col0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * + col1 ) >= ( - col0 ) + + 53 * 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 79 * col0 FROM tab2
----
202240
343650
83582

onlyif mysql # aggregate syntax: 
query I rowsort label-9978
SELECT SUM( ALL - col2 ) * - COUNT( * ) AS col2 FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-9978
SELECT SUM ( ALL - col2 ) * - COUNT ( * ) AS col2 FROM tab0
----
468

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 30 * col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9980
SELECT + CAST( 39 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9980
SELECT + CAST ( 39 AS INTEGER ) / col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9981
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) * + col1 BETWEEN NULL AND ( col0 )
----

skipif mysql # not compatible
query III rowsort label-9981
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + col1 BETWEEN NULL AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9982
SELECT + - CAST( + - col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9982
SELECT + - CAST ( + - col0 AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 62 * - 89 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 31 * - col1 + - + col2 FROM tab0
----
-130
-2558
-661

query I rowsort
SELECT DISTINCT + 59 * - col0 + 59 FROM tab2
----
-2655
-3717
-4366

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT ALL 7 * - COUNT( + ( - ( 6 ) ) ) + + ( ( 39 ) ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9987
SELECT ALL 7 * - COUNT ( + ( - ( 6 ) ) ) + + ( ( 39 ) ) FROM tab1
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9989
SELECT - COUNT( * ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9989
SELECT - COUNT ( * ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * - + col1 + - + col0 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT ALL + col0 * - col2 * 54 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col2 + - col0 * + col1 FROM tab2 cor0
----
-2323
-4888
-4967

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 47 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9995
SELECT CAST( - col2 AS SIGNED ) - - col1 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9995
SELECT CAST ( - col2 AS INTEGER ) - - col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL col2 - + + col0 - + - col2 * + + col2 * + col2 FROM tab0
----
103855
923
970301

query I rowsort
SELECT ALL - 33 + - 28 + + col1 * + 29 FROM tab0
----
-32
2288
548

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT - COUNT( * ) - - - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT - COUNT ( * ) - - - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) BETWEEN ( NULL ) AND ( col1 )
----

