sqllogictest
Artifact Content
Not logged in

Artifact a1c9e81b6465470fc93f15706c5f2bcaec53c82b:


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
3